[BCommits] Remove --graph option (#474)

This commit is contained in:
Josh Pencheon 2017-10-25 10:57:27 +01:00 committed by Junegunn Choi
parent b51382fe9e
commit f31a2925fe

View file

@ -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'