name-rev: split usage string

Give each mode of operation (all, from stdin, given commits) its own usage
line to make it easier to see that they are mutually exclusive.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
René Scharfe 2011-10-01 19:04:44 +02:00 committed by Junio C Hamano
parent 7ed863a85a
commit 44c8e6049f

View file

@ -172,7 +172,9 @@ static void show_name(const struct object *obj,
}
static char const * const name_rev_usage[] = {
"git name-rev [options] ( --all | --stdin | <commit>... )",
"git name-rev [options] <commit>...",
"git name-rev [options] --all",
"git name-rev [options] --stdin",
NULL
};