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>
Nguyễn Thái Ngọc Duy committed
Feb 9, 2018 at 18:01 UTC
4304d3d1442d667de3b9c28f25b722ba440a39cd
1 file changed
+1
-20
contrib/completion/git-completion.bash
+1
-20
@@ -1320,26 +1320,7 @@ _git_clone ()
1320
{
1321
case "$cur" in
1322
--*)
1323
- __gitcomp "
1324
- --local
1325
- --no-hardlinks
1326
- --shared
1327
- --reference
1328
- --quiet
1329
- --no-checkout
1330
- --bare
1331
- --mirror
1332
- --origin
1333
- --upload-pack
1334
- --template=
1335
- --depth
1336
- --single-branch
1337
- --no-tags
1338
- --branch
1339
- --recurse-submodules
1340
- --no-single-branch
1341
- --shallow-submodules
1342
- "
1323
+ __gitcomp_builtin clone "--no-single-branch"
1324
return
1325
;;
1326
esac