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

[PATCH 1/1] show-ref: improve short help messages of options

From
Alexander Shopov <ash@kambanaria.org>
Date
Jul 24, 2024, 11:11 UTC
Message-ID
<20240724111116.91615-1-ash@kambanaria.org>

Trivial change to indicate that branches and tags are real options that can be used combined to get more information. This helps with linting translations and prompting the user that the terms represent options.

Signed-off-by: Alexander Shopov <ash@kambanaria.org>
---
 builtin/show-ref.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/builtin/show-ref.c b/builtin/show-ref.c
index 839a5c29f3..85700caae9 100644
--- a/builtin/show-ref.c
+++ b/builtin/show-ref.c
@@ -293,8 +293,8 @@ int cmd_show_ref(int argc, const char **argv, const char *prefix)
 	struct show_one_options show_one_opts = {0};
 	int verify = 0, exists = 0;
 	const struct option show_ref_options[] = {
-		OPT_BOOL(0, "tags", &patterns_opts.tags_only, N_("only show tags (can be combined with branches)")),
-		OPT_BOOL(0, "branches", &patterns_opts.branches_only, N_("only show branches (can be combined with tags)")),
+		OPT_BOOL(0, "tags", &patterns_opts.tags_only, N_("only show tags (can be combined with --branches)")),
+		OPT_BOOL(0, "branches", &patterns_opts.branches_only, N_("only show branches (can be combined with --tags)")),
 		OPT_HIDDEN_BOOL(0, "heads", &patterns_opts.branches_only,
 				N_("deprecated synonym for --branches")),
 		OPT_BOOL(0, "exists", &exists, N_("check for reference existence without resolving")),
-- 
2.45.2
Next: Patrick Steinhardt
Message 1 of 5 in “show-ref: improve short help messages of options”
  1. 1/1 show-ref: improve short help messages of optionsAlexander Shopov, Jul 24, 2024
  2. Patrick SteinhardtJul 25, 2024
  3. Junio C HamanoJul 25, 2024
  4. Patrick SteinhardtJul 26, 2024
  5. Junio C HamanoJul 26, 2024

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.