mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Guard config flag in file moves check
This commit is contained in:
@@ -296,7 +296,11 @@ endfunction
|
|||||||
" Returns a dict of current path to original path at the given base.
|
" Returns a dict of current path to original path at the given base.
|
||||||
function! s:obtain_file_renames(bufnr, base)
|
function! s:obtain_file_renames(bufnr, base)
|
||||||
let renames = {}
|
let renames = {}
|
||||||
let cmd = gitgutter#git().' -c "core.safecrlf=false" diff --diff-filter=R --name-status '.a:base
|
let cmd = gitgutter#git()
|
||||||
|
if gitgutter#utility#git_supports_command_line_config_override()
|
||||||
|
let cmd .= ' -c "core.safecrlf=false"'
|
||||||
|
endif
|
||||||
|
let cmd .= ' diff --diff-filter=R --name-status '.a:base
|
||||||
let [out, error_code] = gitgutter#utility#system(gitgutter#utility#cd_cmd(a:bufnr, cmd))
|
let [out, error_code] = gitgutter#utility#system(gitgutter#utility#cd_cmd(a:bufnr, cmd))
|
||||||
if error_code
|
if error_code
|
||||||
" Assume the problem is the diff base.
|
" Assume the problem is the diff base.
|
||||||
|
|||||||
Reference in New Issue
Block a user