Skip to content

Commit 72f7507

Browse files
artagnongitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 01449e3 commit 72f7507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,7 +1811,7 @@ __git_config_get_set_variables ()
18111811
_git_config ()
18121812
{
18131813
case "$prev" in
1814-
branch.*.remote)
1814+
branch.*.remote|branch.*.pushremote)
18151815
__gitcomp_nl "$(__git_remotes)"
18161816
return
18171817
;;
@@ -1907,7 +1907,7 @@ _git_config ()
19071907
;;
19081908
branch.*.*)
19091909
local pfx="${cur%.*}." cur_="${cur##*.}"
1910-
__gitcomp "remote merge mergeoptions rebase" "$pfx" "$cur_"
1910+
__gitcomp "remote pushremote merge mergeoptions rebase" "$pfx" "$cur_"
19111911
return
19121912
;;
19131913
branch.*)

0 commit comments

Comments
 (0)