completion: use __gitcomp_builtin in _git_ls_files
The new completable options are: --debug --empty-directory --eol --recurse-submodules --resolve-undo 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:02 UTC
c893985d46472ae6bedaaa4bed533e1e5d3f5c24
1 file changed
+1
-7
contrib/completion/git-completion.bash
+1
-7
@@ -1616,13 +1616,7 @@ _git_ls_files ()
1616
{
1617
case "$cur" in
1618
--*)
1619
- __gitcomp "--cached --deleted --modified --others --ignored
1620
- --stage --directory --no-empty-directory --unmerged
1621
- --killed --exclude= --exclude-from=
1622
- --exclude-per-directory= --exclude-standard
1623
- --error-unmatch --with-tree= --full-name
1624
- --abbrev --ignored --exclude-per-directory
1625
- "
1619
+ __gitcomp_builtin ls-files "--no-empty-directory"
1620
return
1621
;;
1622
esac