show-ref: improve short help messages of options

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> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Alexander Shopov committed Jul 24, 2024 at 14:11 UTC 988587124846c7c1d8ab094995604840ac6cbe74
1 file changed +2 -2
builtin/show-ref.c
+2 -2
@@ -286,8 +286,8 @@ int cmd_show_ref(int argc, const char **argv, const char *prefix)
286 struct show_one_options show_one_opts = {0};
287 int verify = 0, exists = 0;
288 const struct option show_ref_options[] = {
289 - OPT_BOOL(0, "tags", &patterns_opts.tags_only, N_("only show tags (can be combined with branches)")),
290 - OPT_BOOL(0, "branches", &patterns_opts.branches_only, N_("only show branches (can be combined with tags)")),
289 + OPT_BOOL(0, "tags", &patterns_opts.tags_only, N_("only show tags (can be combined with --branches)")),
290 + OPT_BOOL(0, "branches", &patterns_opts.branches_only, N_("only show branches (can be combined with --tags)")),
291 OPT_HIDDEN_BOOL(0, "heads", &patterns_opts.branches_only,
292 N_("deprecated synonym for --branches")),
293 OPT_BOOL(0, "exists", &exists, N_("check for reference existence without resolving")),