diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2014-01-05 15:48:05 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-01-06 09:17:25 -0800 |
commit | c39a2f117853d89f0aee5b616c52df46a30b108b (patch) | |
tree | f94e9f85c7e8764ea81a589f98bc74b972f48e7a /contrib/completion | |
parent | completion: fix branch.autosetup(merge|rebase) (diff) | |
download | tgif-c39a2f117853d89f0aee5b616c52df46a30b108b.tar.xz |
completion: fix remote.pushdefault
When attempting to complete
$ git config remote.push<TAB>
'pushdefault' doesn't come up. This is because "$cur" is matched with
"remote.*" and a list of remotes are completed. Add 'pushdefault' as a
candidate for completion too, using __gitcomp_nl_append ().
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-rw-r--r-- | contrib/completion/git-completion.bash | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index a57bcbe403..4fe5ce31bd 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1884,6 +1884,7 @@ _git_config () remote.*) local pfx="${cur%.*}." cur_="${cur#*.}" __gitcomp_nl "$(__git_remotes)" "$pfx" "$cur_" "." + __gitcomp_nl_append "pushdefault" "$pfx" "$cur_" return ;; url.*.*) |