diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-29 14:57:33 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-29 14:57:33 +0100 |
commit | 06fe962504cd130e53c1eec14525ff00d333b7e0 (patch) | |
tree | 3cc00349bebdb4745d21656824a757f2113643eb /bashrc | |
parent | Function for coverage reports (diff) | |
download | util-06fe962504cd130e53c1eec14525ff00d333b7e0.tar.bz2 util-06fe962504cd130e53c1eec14525ff00d333b7e0.tar.xz util-06fe962504cd130e53c1eec14525ff00d333b7e0.zip |
Use functions instead of aliases for vcs diffs
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -51,15 +51,25 @@ alias build='b2 -j$CORES $TARGET' alias autobuild="build ; while inotifywait -qr . --exclude '/bin/|\.sw.|/\.git/' -e modify ; do clear ; printf '\e[3J' ; build ; done" # CVS export CVSROOT=":pserver:danielg@hawking.howden.press.net:/usr/local/src/CVS_SOURCE_TREE" -alias cvsd='diffWith "cvs diff -wubB"' +cvsd() { + diffWith "cvs diff -wubB $@" +} # SVN -alias svnd='diffWith "svn diff --force --no-diff-deleted -x -b"' +svnd() { + diffWith "svn diff --force --no-diff-deleted -x -b $@" +} # Git -alias gitd='diffWith "git diff --no-prefix --relative -b -M"' -alias gitdc='diffWith "git diff --cached --no-prefix --relative -b -M"' +gitd() { + diffWith "git diff --no-prefix --relative -b -M $@" +} +gitdc() { + diffWith "git diff --cached --no-prefix --relative -b -M $@" +} alias gst='git status' # Hg -alias hgd='diffWith "hg diff -p -b"' +hgd() { + diffWith "hg diff -p -b $@" +} # Java PATH=$JAVA_HOME/bin:$PATH export CATALINA_HOME="/usr/share/tomcat-5.5/" |