Skip to content

Commit 9885871

Browse files
alshopovgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 607c3d3 commit 9885871

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/show-ref.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ int cmd_show_ref(int argc, const char **argv, const char *prefix)
286286
struct show_one_options show_one_opts = {0};
287287
int verify = 0, exists = 0;
288288
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)")),
291291
OPT_HIDDEN_BOOL(0, "heads", &patterns_opts.branches_only,
292292
N_("deprecated synonym for --branches")),
293293
OPT_BOOL(0, "exists", &exists, N_("check for reference existence without resolving")),

0 commit comments

Comments
 (0)