threads / patch / 28546

patchname-rev: split usage string

Subject: [PATCH] name-rev: split usage string

## tl;dr

One message between Oct 1, 2011 and Oct 1, 2011. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

René Scharfe· Oct 1, 2011, 17:04 UTC · lore

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>
---
 builtin/name-rev.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
Show changes to builtin/name-rev.c +3 −1
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
 };
 
-- 
1.7.7

← back to recent threads