Merge branch 'mm/config-local-completion'

* mm/config-local-completion:
  completion: support 'git config --local'
This commit is contained in:
Junio C Hamano 2013-02-14 16:06:19 -08:00
commit b1bcb973af

View File

@ -1779,7 +1779,7 @@ __git_config_get_set_variables ()
while [ $c -gt 1 ]; do while [ $c -gt 1 ]; do
word="${words[c]}" word="${words[c]}"
case "$word" in case "$word" in
--global|--system|--file=*) --system|--global|--local|--file=*)
config_file="$word" config_file="$word"
break break
;; ;;
@ -1885,7 +1885,7 @@ _git_config ()
case "$cur" in case "$cur" in
--*) --*)
__gitcomp " __gitcomp "
--global --system --file= --system --global --local --file=
--list --replace-all --list --replace-all
--get --get-all --get-regexp --get --get-all --get-regexp
--add --unset --unset-all --add --unset --unset-all