From: Junio C Hamano <gitster@pobox.com>
To: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] merge: support --strategy '?' for git-completion.bash
Date: Thu, 25 Jan 2018 10:49:45 -0800 [thread overview]
Message-ID: <xmqqo9lhai46.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <20180125094031.6584-1-pclouds@gmail.com> ("Nguyễn Thái Ngọc Duy"'s message of "Thu, 25 Jan 2018 16:40:31 +0700")
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
> Bash completion support gets the list of available strategies with a
> grep and sed trick which does not work on non-C locale since the anchor
> string is translated and it does not cover custom strategies either.
>
> Let's do it a better way and make git-merge provide all available
> strategies in machine-readable form.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
> Another, perhaps better, option is add "git merge --list-strategies".
> It requires some code movement, so I'll try with a simpler approach
> first.
If you run the probing "merge -s help" under C locale, that would
just be a one-liner, no ;-) I.e.
> - git merge -s help 2>&1 |
> + LANG=C LC_ALL=C git merge -s help 2>&1 |
Not rejecting the patch, but just wondering.
next prev parent reply other threads:[~2018-01-25 18:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-25 9:40 [PATCH] merge: support --strategy '?' for git-completion.bash Nguyễn Thái Ngọc Duy
2018-01-25 18:49 ` Junio C Hamano [this message]
2018-01-26 1:31 ` Duy Nguyen
2018-01-26 17:47 ` 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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqo9lhai46.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=pclouds@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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).