summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-10-19 06:34:01 +0200
committerJunio C Hamano <gitster@pobox.com>2018-10-19 06:34:01 +0200
commitaef8e71f1512c2edb1b323969d3f215a23ff1c04 (patch)
tree09c4e15944f946ae0ebf318be47fe4f49ea71168 /contrib
parentFourth batch for 2.20 (diff)
parentcompletion: support "git fetch --multiple" (diff)
downloadgit-aef8e71f1512c2edb1b323969d3f215a23ff1c04.tar.xz
git-aef8e71f1512c2edb1b323969d3f215a23ff1c04.zip
Merge branch 'nd/complete-fetch-multiple-args'
Teach bash completion that "git fetch --multiple" only takes remote names as arguments and no refspecs. * nd/complete-fetch-multiple-args: completion: support "git fetch --multiple"
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/git-completion.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 06ec6ca113..db7fd87b6b 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -943,6 +943,7 @@ __git_complete_remote_or_refspec ()
*) ;;
esac
;;
+ --multiple) no_complete_refspec=1; break ;;
-*) ;;
*) remote="$i"; break ;;
esac