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

[PATCH] remote: improve argument help for add --mirror

From
René Scharfe <l.s.r@web.de>
Date
Aug 19, 2018, 17:34 UTC
Message-ID
<03cafb74-1671-727a-b53d-519381b18e32@web.de>

Group the possible values using a pair of parentheses and don't mark them for translation, as they are literal strings that have to be used as-is in any locale.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
---
 builtin/remote.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/remote.c b/builtin/remote.c
index 07bd51f8eb..7876db1c20 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -168,7 +168,7 @@ static int add(int argc, const char **argv)
 		OPT_STRING_LIST('t', "track", &track, N_("branch"),
 				N_("branch(es) to track")),
 		OPT_STRING('m', "master", &master, N_("branch"), N_("master branch")),
-		{ OPTION_CALLBACK, 0, "mirror", &mirror, N_("push|fetch"),
+		{ OPTION_CALLBACK, 0, "mirror", &mirror, "(push|fetch)",
 			N_("set up remote as a mirror to push to or fetch from"),
 			PARSE_OPT_OPTARG | PARSE_OPT_COMP_ARG, parse_mirror_opt },
 		OPT_END()
-- 
2.18.0
Message 1 of 1 in “remote: improve argument help for add --mirror”
  1. remote: improve argument help for add --mirrorRené Scharfe, Aug 19, 2018

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.