From: Ramkumar Ramachandra Date: Sun, 05 Jan 2014 10:18:05 GMT Subject: [PATCH v4 4/4] completion: fix remote.pushdefault Message-ID: <1388917085-18701-5-git-send-email-artagnon@gmail.com> In-Reply-To: <1388917085-18701-1-git-send-email-artagnon@gmail.com> When attempting to complete $ git config remote.push '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 --- contrib/completion/git-completion.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index a57bcbe..4fe5ce3 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.*.*) -- 1.8.5.2.227.g53f3478