Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nd/list-merge-strategy' into next
author
Junio C Hamano
<gitster@pobox.com>
Wed, 7 Feb 2018 22:56:00 +0000
(14:56 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 7 Feb 2018 22:56:00 +0000
(14:56 -0800)
Completion of "git merge -s<strategy>" (in contrib/) did not work
well in non-C locale.
* nd/list-merge-strategy:
completion: fix completing merge strategies on non-C locales
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
(from parent 1:
8bbb42a
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 3683c772c5586ccc1f6dfc8c047919d8d96aa891..88813e91244d820b4aa2c0fb5e60a44db03c3e59 100644
(file)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-594,7
+594,7
@@
__git_is_configured_remote ()
__git_list_merge_strategies ()
{
- git merge -s help 2>&1 |
+
LANG=C LC_ALL=C
git merge -s help 2>&1 |
sed -n -e '/[Aa]vailable strategies are: /,/^$/{
s/\.$//
s/.*://