git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] name-rev: prefix annotate-stdin with '--' in message

From
Alexander Shopov <ash@kambanaria.org>
Date
Jun 20, 2022, 16:44 UTC
Message-ID
<20220620164434.49618-1-ash@kambanaria.org>

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>
---

Add missing '--' prefix to option name in help message Based on discussion: https://github.com/git-l10n/git-po/pull/637

 builtin/name-rev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/name-rev.c b/builtin/name-rev.c
index 02ea9d1633..580b1eb170 100644
--- a/builtin/name-rev.c
+++ b/builtin/name-rev.c
@@ -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,
--
2.36.1
Message 1 of 1 in “name-rev: prefix annotate-stdin with '--' in message”
  1. name-rev: prefix annotate-stdin with '--' in messageAlexander Shopov, Jun 20, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.