From: Patrick Steinhardt <ps@pks.im>
To: Alexander Shopov <ash@kambanaria.org>
Cc: git@vger.kernel.org, gitster@pobox.com, worldhello.net@gmail.com
Subject: Re: [PATCH 1/1] show-ref: improve short help messages of options
Date: Thu, 25 Jul 2024 09:15:36 +0200 [thread overview]
Message-ID: <ZqH7mDh73vkX4bPT@tanuki> (raw)
In-Reply-To: <20240724111116.91615-1-ash@kambanaria.org>
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
On Wed, Jul 24, 2024 at 02:11:11PM +0300, Alexander Shopov wrote:
> 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")),
Agreed, I think that this is a sensible change. In practice, this
feature can also be combined with `--head`, so in that spirit we might
even change it to:
"only show tags (can be combined with --branches and --head)"
Not sure though whether this is getting too noisy?
Patrick
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-07-25 7:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-24 11:11 [PATCH 1/1] show-ref: improve short help messages of options Alexander Shopov
2024-07-25 7:15 ` Patrick Steinhardt [this message]
2024-07-25 15:03 ` Junio C Hamano
2024-07-26 12:28 ` Patrick Steinhardt
2024-07-26 15:46 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZqH7mDh73vkX4bPT@tanuki \
--to=ps@pks.im \
--cc=ash@kambanaria.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=worldhello.net@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox