mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 21:24:40 +08:00
fix: GFiles is ignoring args (#1447)
The commit linked below removed `a:args` from the `git ls-files` command, making it
unable to take any options like `--cached`, `--others` and
`--exclude-standard`
531dd67350
This commit is contained in:
@@ -634,7 +634,7 @@ function! fzf#vim#gitfiles(args, ...)
|
|||||||
endif
|
endif
|
||||||
let prefix = 'git -C ' . fzf#shellescape(root) . ' '
|
let prefix = 'git -C ' . fzf#shellescape(root) . ' '
|
||||||
if a:args != '?'
|
if a:args != '?'
|
||||||
let source = prefix . 'ls-files -z'
|
let source = prefix . 'ls-files -z ' . a:args
|
||||||
if s:git_version_requirement(2, 31)
|
if s:git_version_requirement(2, 31)
|
||||||
let source .= ' --deduplicate'
|
let source .= ' --deduplicate'
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user