Skip to content

Commit 44c8e60

Browse files
René Scharfegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7ed863a commit 44c8e60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builtin/name-rev.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ static void show_name(const struct object *obj,
172172
}
173173

174174
static char const * const name_rev_usage[] = {
175-
"git name-rev [options] ( --all | --stdin | <commit>... )",
175+
"git name-rev [options] <commit>...",
176+
"git name-rev [options] --all",
177+
"git name-rev [options] --stdin",
176178
NULL
177179
};
178180

0 commit comments

Comments
 (0)