From: Nguyễn Thái Ngọc Duy Date: Fri, 9 Feb 2018 11:01:51 +0000 (+0700) Subject: completion: use __gitcomp_builtin in _git_clone X-Git-Tag: v2.17.0-rc0~7^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4304d3d1442d667de3b9c28f25b722ba440a39cd;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- 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