Created
June 18, 2010 17:21
-
-
Save jsocol/443924 to your computer and use it in GitHub Desktop.
d - makes svn diffs pretty like git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Use colordiff and less to get git-like diffs out of SVN, too. | |
if [ -d '.svn' ]; then | |
DIFF=`svn diff $1` | |
if [ -n "$DIFF" ]; then | |
echo "$DIFF" | colordiff | less -R | |
fi | |
fi | |
if [ -d '.git' ]; then | |
git diff $1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment