Ensure git uses source and destination prefixes when staging.

See #313.
This commit is contained in:
Andy Stewart
2017-02-20 13:51:36 +00:00
parent 5d1a0bfa1b
commit 80375e6b8b

View File

@@ -95,6 +95,7 @@ function! gitgutter#diff#run_diff(realtime, preserve_full_diff) abort
let cmd .= g:gitgutter_git_executable
if s:c_flag
let cmd .= ' -c "diff.autorefreshindex=0"'
let cmd .= ' -c "diff.noprefix=false"'
endif
let cmd .= ' diff --no-ext-diff --no-color -U0 '.g:gitgutter_diff_args.' '