Skip to contentSkip to conversation

name-rev: split usage string

PATCH New René Scharfe 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 builtin/name-rev.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
builtin/name-rev.c +3 -1
index 31f5c1c..7864056 100644
@@ -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
 };
 
Signature · 1 line
1.7.7