Fix -c flag to apply to git command not diff subcommand

Fixes #874.
This commit is contained in:
Andy Stewart
2023-11-10 18:09:44 +00:00
parent 6efb835aa2
commit b9e9ad2ae2

View File

@@ -287,7 +287,7 @@ 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().' diff -c "core.safecrlf=false" --diff-filter=R --name-status '.a:base let cmd = gitgutter#git().' -c "core.safecrlf=false" 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.