mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-08 20:43:32 +08:00
Pull out the git log options as an option.
In my environment '--graph' is a kiss of death. It results in seeing nothing but graph lines due to the number of branches in flight. Secondly the colors baked into this break with my color scheme which has a background of black rending the date unreadable. So to solve this I need to be able to specify my own options, so add a new options g:fzf_commits_log_options to allow this.
This commit is contained in:
@@ -729,7 +729,7 @@ function! s:commits(buffer_local, args)
|
||||
return s:warn('Not in git repository')
|
||||
endif
|
||||
|
||||
let source = 'git log --graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr"'
|
||||
let source = 'git log '.get(g:, 'fzf_commits_log_options', '--graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr"')
|
||||
let current = expand('%:S')
|
||||
let managed = 0
|
||||
if !empty(current)
|
||||
|
||||
Reference in New Issue
Block a user