From: René Scharfe Date: Sat, 01 Oct 2011 17:04:44 GMT Subject: [PATCH] name-rev: split usage string Message-ID: <4E87482C.30001@lsrfire.ath.cx> 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 --- builtin/name-rev.c | 4 +++- 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 | ... )", + "git name-rev [options] ...", + "git name-rev [options] --all", + "git name-rev [options] --stdin", NULL }; -- 1.7.7