add git_gvimdiff wrapper script and "gdiff" git alias

This commit is contained in:
Josh Holtrop committed 2011-05-31 09:14:18 -04:00
1 parent b760603b37
commit 53605facf8
2 files changed
+6

No files matched your search

+1
View File
@@ -90,6 +90,7 @@ function git-config-joshs()
git config --global core.excludesfile ${HOME}/.gitignore
git config --global core.pager 'less -FRXi'
git config --global alias.dc 'diff --cached'
git config --global alias.gdiff '!f() { GIT_EXTERNAL_DIFF=git_gvimdiff git --no-pager diff $1; }; f'
}
alias git-find-lost-commit='git fsck --lost-found'
if [[ "$(which jsvn 2>/dev/null)" != "" ]]; then
Executable
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
gvimdiff "$2" "$5"
# give gvimdiff a chance to read the file before exiting
sleep 1