Skip to content
Snippets Groups Projects
Commit 4c45a574 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

autoload/magit/git.vim: fix git_diff

parent 0fed70e6
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ function! magit#git#git_diff(filename, status, mode) ...@@ -109,7 +109,7 @@ function! magit#git#git_diff(filename, status, mode)
\ " --no-color -p -- " . dev_null . " " \ " --no-color -p -- " . dev_null . " "
\ . a:filename \ . a:filename
silent let diff_list=magit#utils#systemlist(git_cmd) silent let diff_list=magit#utils#systemlist(git_cmd)
if ( dev_null != "" && v:shell_error != 0 ) if ( a:status != '?' && v:shell_error != 0 )
echohl WarningMsg echohl WarningMsg
echom "Git error: " . string(diff_list) echom "Git error: " . string(diff_list)
echom "Git cmd: " . git_cmd echom "Git cmd: " . git_cmd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment