Skip to content

Commit 7e6a0cc

Browse files
artagnongitster
authored andcommitted
git-completion.bash: add remote.pushdefault to config list
224c217 (remote.c: introduce remote.pushdefault, 2013-04-02) introduced the remote.pushdefault configuration variable, 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 72f7507 commit 7e6a0cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,6 +1823,10 @@ _git_config ()
18231823
__gitcomp "false true"
18241824
return
18251825
;;
1826+
remote.pushdefault)
1827+
__gitcomp_nl "$(__git_remotes)"
1828+
return
1829+
;;
18261830
remote.*.fetch)
18271831
local remote="${prev#remote.}"
18281832
remote="${remote%.fetch}"
@@ -2202,6 +2206,7 @@ _git_config ()
22022206
receive.fsckObjects
22032207
receive.unpackLimit
22042208
receive.updateserverinfo
2209+
remote.pushdefault
22052210
remotes.
22062211
repack.usedeltabaseoffset
22072212
rerere.autoupdate

0 commit comments

Comments
 (0)