]> git.ipfire.org Git - thirdparty/git.git/commitdiff
name-rev: prefix annotate-stdin with '--' in message
authorAlexander Shopov <ash@kambanaria.org>
Mon, 20 Jun 2022 16:44:34 +0000 (18:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Jun 2022 23:20:45 +0000 (16:20 -0700)
This is an option rather than command.  Make the message convey this
similar to the other messages in the file.

Signed-off-by: Alexander Shopov <ash@kambanaria.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/name-rev.c

index 02ea9d16330f650502e1722a7b5fb95fa7f52cb1..580b1eb170ef5793e8f3f6a231291c87aec47fe1 100644 (file)
@@ -577,7 +577,7 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
                                   N_("ignore refs matching <pattern>")),
                OPT_GROUP(""),
                OPT_BOOL(0, "all", &all, N_("list all commits reachable from all refs")),
-               OPT_BOOL(0, "stdin", &transform_stdin, N_("deprecated: use annotate-stdin instead")),
+               OPT_BOOL(0, "stdin", &transform_stdin, N_("deprecated: use --annotate-stdin instead")),
                OPT_BOOL(0, "annotate-stdin", &annotate_stdin, N_("annotate text from stdin")),
                OPT_BOOL(0, "undefined", &allow_undefined, N_("allow to print `undefined` names (default)")),
                OPT_BOOL(0, "always",     &always,