update git aliases for gdiff/bcdiff
This commit is contained in:
parent
980283313d
commit
47635b2b60
@ -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
|
||||
|
5
git_bc2diff
Executable file
5
git_bc2diff
Executable 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
|
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
gvimdiff "$2" "$5"
|
||||
# give gvimdiff a chance to read the file before exiting
|
||||
sleep 1
|
Loading…
x
Reference in New Issue
Block a user