summaryrefslogtreecommitdiff
path: root/builtin/name-rev.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2011-10-01 17:04:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-10-03 18:55:57 (GMT)
commit44c8e6049f75b6d9427f91ba09b6104471e84300 (patch)
tree293192ab4f59fcfaa6e7346d96a5e8b59bde78fc /builtin/name-rev.c
parent7ed863a85a6ce2c4ac4476848310b8f917ab41f9 (diff)
downloadgit-44c8e6049f75b6d9427f91ba09b6104471e84300.zip
git-44c8e6049f75b6d9427f91ba09b6104471e84300.tar.gz
git-44c8e6049f75b6d9427f91ba09b6104471e84300.tar.bz2
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>
Diffstat (limited to 'builtin/name-rev.c')
-rw-r--r--builtin/name-rev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/name-rev.c b/builtin/name-rev.c
index 31f5c1c..7864056 100644
--- a/builtin/name-rev.c
+++ b/builtin/name-rev.c
@@ -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
};