diff options
| author | Alexander Shopov <ash@kambanaria.org> | 2024-07-24 14:11:11 +0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-07-25 08:04:34 -0700 |
| commit | 988587124846c7c1d8ab094995604840ac6cbe74 (patch) | |
| tree | f39e86bd8881470193267bb7944bfd1ee737222d | |
| parent | show-ref: introduce --branches and deprecate --heads (diff) | |
| download | git-988587124846c7c1d8ab094995604840ac6cbe74.tar.gz git-988587124846c7c1d8ab094995604840ac6cbe74.zip | |
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>
| -rw-r--r-- | builtin/show-ref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/show-ref.c b/builtin/show-ref.c index f634bc3e44..3a57e9a741 100644 --- a/builtin/show-ref.c +++ b/builtin/show-ref.c @@ -286,8 +286,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")), |
