mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 20:54:28 +08:00
[BCommits] Remove --graph option (#474)
This commit is contained in:
committed by
Junegunn Choi
parent
b51382fe9e
commit
f31a2925fe
@@ -1070,7 +1070,7 @@ function! s:commits(buffer_local, args)
|
|||||||
return s:warn('Not in git repository')
|
return s:warn('Not in git repository')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let source = 'git log '.get(g:, 'fzf_commits_log_options', '--graph --color=always '.fzf#shellescape('--format=%C(auto)%h%d %s %C(green)%cr'))
|
let source = 'git 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)
|
||||||
@@ -1083,6 +1083,8 @@ function! s:commits(buffer_local, args)
|
|||||||
return s:warn('The current buffer is not in the working tree')
|
return s:warn('The current buffer is not in the working tree')
|
||||||
endif
|
endif
|
||||||
let source .= ' --follow '.fzf#shellescape(current)
|
let source .= ' --follow '.fzf#shellescape(current)
|
||||||
|
else
|
||||||
|
let source .= ' --graph'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let command = a:buffer_local ? 'BCommits' : 'Commits'
|
let command = a:buffer_local ? 'BCommits' : 'Commits'
|
||||||
|
|||||||
Reference in New Issue
Block a user