Add g:gitgutter_git_args for args to git when running git-diff.

See #541, #546.
This commit is contained in:
Andy Stewart
2018-07-31 14:28:36 +01:00
parent d2f38f401a
commit d2d2da11c5
4 changed files with 21 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ function! gitgutter#diff#run_diff(bufnr, preserve_full_diff) abort
call s:write_buffer(a:bufnr, buff_file)
" Call git-diff with the temporary files.
let cmd .= g:gitgutter_git_executable.' --no-pager'
let cmd .= g:gitgutter_git_executable.' --no-pager '.g:gitgutter_git_args
if s:c_flag
let cmd .= ' -c "diff.autorefreshindex=0"'
let cmd .= ' -c "diff.noprefix=false"'