[BCommits] Remove --graph option (#474)
This commit is contained in:
parent
b51382fe9e
commit
f31a2925fe
1 changed files with 3 additions and 1 deletions
|
@ -1070,7 +1070,7 @@ function! s:commits(buffer_local, args)
|
|||
return s:warn('Not in git repository')
|
||||
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 managed = 0
|
||||
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')
|
||||
endif
|
||||
let source .= ' --follow '.fzf#shellescape(current)
|
||||
else
|
||||
let source .= ' --graph'
|
||||
endif
|
||||
|
||||
let command = a:buffer_local ? 'BCommits' : 'Commits'
|
||||
|
|
Loading…
Add table
Reference in a new issue