update git aliases for gdiff/bcdiff

This commit is contained in:
Josh Holtrop committed 2011-06-02 09:40:19 -04:00
1 parent 980283313d
commit 47635b2b60
3 files changed
+10 -6

No files matched your search

+5 -1
View File
@@ -90,7 +90,11 @@ 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'
git config --global alias.gdiff 'difftool -y -t gvimdiff'
git config --global alias.gdiffc 'difftool -y -t gvimdiff --cached'
git config --global alias.bcdiff 'difftool -y -t bc2'
git config --global alias.bcdiffc 'difftool -y -t bc2 --cached'
git config --global difftool.bc2.cmd 'git_bc2diff "$LOCAL" "$REMOTE"'
}
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
path1=$(cygpath -w "$1")
path2=$(cygpath -w "$2")
/cygdrive/c/apps/Beyond\ Compare\ 2/BC2.exe "$path1" "$path2" /title1=Base /leftreadonly
-5
View File
@@ -1,5 +0,0 @@
#!/bin/sh
gvimdiff "$2" "$5"
# give gvimdiff a chance to read the file before exiting
sleep 1