mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 20:54:28 +08:00
[[B]Commits] Add support for files in submodules (#919)
This commit is contained in:
@@ -1104,8 +1104,8 @@ function! s:commits(buffer_local, args)
|
|||||||
if empty(s:git_root)
|
if empty(s:git_root)
|
||||||
return s:warn('Not in git repository')
|
return s:warn('Not in git repository')
|
||||||
endif
|
endif
|
||||||
|
let path = expand('%:p:h')
|
||||||
let source = 'git log '.get(g:, 'fzf_commits_log_options', '--color=always '.fzf#shellescape('--format=%C(auto)%h%d %s %C(green)%cr'))
|
let source = 'git -C '.fzf#shellescape(path).' log '.get(g:, 'fzf_commits_log_options', '--color=always '.fzf#shellescape('--format=%C(auto)%h%d %s %C(green)%cr'))
|
||||||
let current = expand('%')
|
let current = expand('%')
|
||||||
let managed = 0
|
let managed = 0
|
||||||
if !empty(current)
|
if !empty(current)
|
||||||
|
|||||||
Reference in New Issue
Block a user