From b9e9ad2ae2771809e83f68a31bba9b83ca63b841 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Fri, 10 Nov 2023 18:09:44 +0000 Subject: [PATCH] Fix -c flag to apply to git command not diff subcommand Fixes #874. --- autoload/gitgutter/utility.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/gitgutter/utility.vim b/autoload/gitgutter/utility.vim index 9c196fc..3577085 100644 --- a/autoload/gitgutter/utility.vim +++ b/autoload/gitgutter/utility.vim @@ -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 -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)) if error_code " Assume the problem is the diff base.