[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') 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'