summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-04-29 12:49:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-29 16:57:44 (GMT)
commit72f7507710b548f62ff8ac6a4e666fe5c004fbd2 (patch)
treef945399afefd1e0414efa4df1647a370a69229ed /contrib/completion
parent01449e314f383861f053786129120abdbeac3198 (diff)
downloadgit-72f7507710b548f62ff8ac6a4e666fe5c004fbd2.zip
git-72f7507710b548f62ff8ac6a4e666fe5c004fbd2.tar.gz
git-72f7507710b548f62ff8ac6a4e666fe5c004fbd2.tar.bz2
git-completion.bash: add branch.*.pushremote to config list
9f765ce (remote.c: introduce branch.<name>.pushremote, 2013-04-02) introduced the configuration variable branch.*.pushremote, but forgot to teach git-completion.bash about it. Fix this. 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.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 5dc54a3..9ec6671 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1811,7 +1811,7 @@ __git_config_get_set_variables ()
_git_config ()
{
case "$prev" in
- branch.*.remote)
+ branch.*.remote|branch.*.pushremote)
__gitcomp_nl "$(__git_remotes)"
return
;;
@@ -1907,7 +1907,7 @@ _git_config ()
;;
branch.*.*)
local pfx="${cur%.*}." cur_="${cur##*.}"
- __gitcomp "remote merge mergeoptions rebase" "$pfx" "$cur_"
+ __gitcomp "remote pushremote merge mergeoptions rebase" "$pfx" "$cur_"
return
;;
branch.*)