diff options
author | doy <doy@tozt.net> | 2009-01-02 22:04:47 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-01-02 22:04:47 -0500 |
commit | dbf3cff0cd6bf21cce2ad9d5a39595013a0aa8d2 (patch) | |
tree | 20e4ac81c2b4f6d318fa263a21131e3b89fb2f4d /vimrc | |
parent | f7f2c7f26c91824ba75378de26b89b908098dfab (diff) | |
download | conf-dbf3cff0cd6bf21cce2ad9d5a39595013a0aa8d2.tar.gz conf-dbf3cff0cd6bf21cce2ad9d5a39595013a0aa8d2.zip |
add git to the diff vcs thing
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -413,6 +413,8 @@ function s:vcs_orig(file) return system("AFILE=" . a:file . "; MODFILE=`tempfile`; DIFF=`tempfile`; cp $AFILE $MODFILE && cvs diff -u $AFILE > $DIFF; patch -R $MODFILE $DIFF 2>&1 > /dev/null && cat $MODFILE; rm $MODFILE $DIFF") elseif finddir('_darcs', '.;') =~ '_darcs' return system('darcs show contents ' . a:file) + elseif finddir('.git', '.;') =~ '.git' + return system('git show HEAD:' . a:file) else throw 'No vcs found' endif |