Include untracked files.
This commit is contained in:
parent
eb33d1b9aa
commit
c3418fc810
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ function! fzf#vim#gitfiles(args, ...)
|
||||||
|
|
||||||
if a:args != '?'
|
if a:args != '?'
|
||||||
return s:fzf('gfiles', {
|
return s:fzf('gfiles', {
|
||||||
\ 'source': 'git grep --cached -Il "" ' . a:args . exclude_current . (s:is_win ? '' : ' | uniq'),
|
\ 'source': '{ git grep --cached -Il "" && git ls-files --others --exclude-standard ; } ' . a:args . exclude_current . (s:is_win ? '' : ' | uniq'),
|
||||||
\ 'dir': root,
|
\ 'dir': root,
|
||||||
\ 'options': '-m --prompt "GitFiles> "'
|
\ 'options': '-m --prompt "GitFiles> "'
|
||||||
\}, a:000)
|
\}, a:000)
|
||||||
|
|
Loading…
Add table
Reference in a new issue