Only search text files in Git repositories.

This commit is contained in:
empathicqubit 2018-08-23 05:20:05 -04:00
parent 3c62071b1d
commit ad4db7754a

View file

@ -515,7 +515,7 @@ function! fzf#vim#gitfiles(args, ...)
endif
if a:args != '?'
return s:fzf('gfiles', {
\ 'source': 'git ls-files '.a:args.(s:is_win ? '' : ' | uniq'),
\ 'source': 'git grep --cached -Il "" '.a:args.(s:is_win ? '' : ' | uniq'),
\ 'dir': root,
\ 'options': '-m --prompt "GitFiles> "'
\}, a:000)