Suppress crlf warning when obtaining file moves

See comment above gitgutter#diff#run_diff() for rationale.
This commit is contained in:
Andy Stewart
2023-11-10 15:55:55 +00:00
parent 61f80c80ba
commit 6efb835aa2

View File

@@ -287,7 +287,7 @@ endfunction
" Returns a dict of current path to original path at the given base.
function! s:obtain_file_renames(bufnr, base)
let renames = {}
let cmd = gitgutter#git().' diff --diff-filter=R --name-status '.a:base
let cmd = gitgutter#git().' diff -c "core.safecrlf=false" --diff-filter=R --name-status '.a:base
let [out, error_code] = gitgutter#utility#system(gitgutter#utility#cd_cmd(a:bufnr, cmd))
if error_code
" Assume the problem is the diff base.