git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
04308e9
)
completion: complete branch name for "branch --set-upstream-to="
author
Michael J Gruber
<redacted>
Tue, 11 Sep 2012 11:58:30 +0000
(13:58 +0200)
committer
Junio C Hamano
<redacted>
Tue, 11 Sep 2012 17:16:30 +0000
(10:16 -0700)
Signed-off-by: Michael J Gruber <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.bash
patch
|
blob
|
history
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 4a4d30af30e61eb41534faf729dc644c781cf957..e48cf8001241502e9dc4310895b136f8c7534e6b 100644
(file)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-875,6
+875,9
@@
_git_branch ()
done
case "$cur" in
+ --set-upstream-to=*)
+ __gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}"
+ ;;
--*)
__gitcomp "
--color --no-color --verbose --abbrev= --no-abbrev
git clone https://git.99rst.org/PROJECT