Code

name-rev: split usage string
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 1 Oct 2011 17:04:44 +0000 (19:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2011 18:55:57 +0000 (11:55 -0700)
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>
builtin/name-rev.c

index 31f5c1c971381a9490b717e0413ee9a40260ef39..7864056f1ee64b896a7378cc76555e2cf7c3fd89 100644 (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
 };