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

autoload/git.vim: use 'diff -p' instead of 'diff --patch' (fix #52)

diff --patch appeared @ git 1.7.10
parent 2bbe9d98
No related branches found
No related tags found
No related merge requests found
......@@ -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) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment