diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-02-13 13:39:15 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-02-13 13:39:15 -0800 |
| commit | 8df7f755569135140bd99bbf57aa354bcc5ac9be (patch) | |
| tree | e09172a6ee6d5cefc860aa461b79523c5e2a1149 | |
| parent | Merge branch 'jt/long-running-process-doc' (diff) | |
| parent | completion: fix completing merge strategies on non-C locales (diff) | |
| download | git-8df7f755569135140bd99bbf57aa354bcc5ac9be.tar.gz git-8df7f755569135140bd99bbf57aa354bcc5ac9be.zip | |
Merge branch 'nd/list-merge-strategy'
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
| -rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 3683c772c5..88813e9124 100644 --- 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/.*:// |
