Skip to content

Commit

Permalink
autoload/git.vim: use 'diff -p' instead of 'diff --patch' (fix #52)
Browse files Browse the repository at this point in the history
diff --patch appeared @ git 1.7.10
  • Loading branch information
jreybert committed Dec 8, 2015
1 parent 2bbe9d9 commit 847d6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/magit/git.vim
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function! magit#git#git_diff(filename, status, mode)
let dev_null = ( a:status == '?' ) ? " /dev/null " : " "
let staged_flag = ( a:mode == 'staged' ) ? " --staged " : " "
let git_cmd="git diff --no-ext-diff " . staged_flag .
\ "--no-color --patch -- " . dev_null . " "
\ "--no-color -p -- " . dev_null . " "
\ .a:filename
silent let diff_list=magit#utils#systemlist(git_cmd)
if ( empty(diff_list) )
Expand Down

0 comments on commit 847d6ac

Please sign in to comment.