Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@xxxxxxxxx> --- tig.1.txt | 4 ++++ tig.c | 6 ++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/tig.1.txt b/tig.1.txt index db8a4d7..abcd9f3 100644 --- a/tig.1.txt +++ b/tig.1.txt @@ -11,6 +11,7 @@ SYNOPSIS tig [options] [revisions] [--] [paths] tig show [options] [revisions] [--] [paths] tig blame [rev] path +tig branch tig status tig < [git command output] @@ -43,6 +44,9 @@ blame:: Show given file annotated or blamed by commits. Optionally limited from given revision. +branch:: + Start up in branch view. + status:: Start up in status view. diff --git a/tig.c b/tig.c index 60d73d5..20a40b9 100644 --- a/tig.c +++ b/tig.c @@ -7249,6 +7249,7 @@ static const char usage[] = "Usage: tig [options] [revs] [--] [paths]\n" " or: tig show [options] [revs] [--] [paths]\n" " or: tig blame [rev] path\n" +" or: tig branch\n" " or: tig status\n" " or: tig < [git command output]\n" "\n" @@ -7321,6 +7322,11 @@ parse_options(int argc, const char *argv[]) warn("ignoring arguments after `%s'", subcommand); return REQ_VIEW_STATUS; + } else if (!strcmp(subcommand, "branch")) { + if (argc > 2) + warn("ignoring arguments after `%s'", subcommand); + return REQ_VIEW_BRANCH; + } else if (!strcmp(subcommand, "blame")) { if (argc <= 2 || argc > 4) die("invalid number of options to blame\n\n%s", usage); -- 1.6.2.rc1.258.g1d592.dirty -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html