Created
April 13, 2015 12:27
-
-
Save qbein/ee799d39317671836bd6 to your computer and use it in GitHub Desktop.
Bash function for making svn more usable
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
svn() { | |
case "$1" in | |
"log") | |
`which svn` log $2 | perl -l40pe 's/^-+/\n/'| less | |
;; | |
"diff") | |
`which svn` diff $2 | vim -R - | |
;; | |
"st" | "status") | |
`which svn` status $2 | grep '^\s*[\?MDRCIA!~]' | |
;; | |
*) | |
`which svn` "$@" | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment