summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-02-09 18:01:51 +0700
committerJunio C Hamano <gitster@pobox.com>2018-02-09 10:24:50 -0800
commit4304d3d1442d667de3b9c28f25b722ba440a39cd (patch)
treeee260b3c01507bdd9a2a6b2efacf8708b8a326b0
parent26e90958e9f2561d88e01b379f143e5c03f5e764 (diff)
downloadgit-4304d3d1442d667de3b9c28f25b722ba440a39cd.tar.gz
completion: use __gitcomp_builtin in _git_clone
The new completable options are: --config --dissociate --ipv4 --ipv6 --jobs= --progress --reference-if-able --separate-git-dir= --shallow-exclude --shallow-since= --verbose Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--contrib/completion/git-completion.bash21
1 files changed, 1 insertions, 20 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index b7de381876..6afab02a4c 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1320,26 +1320,7 @@ _git_clone ()
{
case "$cur" in
--*)
- __gitcomp "
- --local
- --no-hardlinks
- --shared
- --reference
- --quiet
- --no-checkout
- --bare
- --mirror
- --origin
- --upload-pack
- --template=
- --depth
- --single-branch
- --no-tags
- --branch
- --recurse-submodules
- --no-single-branch
- --shallow-submodules
- "
+ __gitcomp_builtin clone "--no-single-branch"
return
;;
esac