mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 04:34:26 +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
|
||||
let prefix = 'git -C ' . fzf#shellescape(root) . ' '
|
||||
if a:args != '?'
|
||||
let source = prefix . 'ls-files -z'
|
||||
let source = prefix . 'ls-files -z ' . a:args
|
||||
if s:git_version_requirement(2, 31)
|
||||
let source .= ' --deduplicate'
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user