Merge branch 'nd/list-merge-strategy' into maint

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
This commit is contained in:
Junio C Hamano 2018-03-22 14:24:11 -07:00
commit 091853a1aa

View File

@ -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/.*://