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>

René Scharfe committed Oct 1, 2011 at 19:04 UTC 44c8e6049f75b6d9427f91ba09b6104471e84300
1 file changed +3 -1
builtin/name-rev.c
+3 -1
@@ -172,7 +172,9 @@ static void show_name(const struct object *obj,
172 }
173
174 static char const * const name_rev_usage[] = {
175 - "git name-rev [options] ( --all | --stdin | <commit>... )",
175 + "git name-rev [options] <commit>...",
176 + "git name-rev [options] --all",
177 + "git name-rev [options] --stdin",
178 NULL
179 };
180