Skip to content

Instantly share code, notes, and snippets.

@qbein
Created April 13, 2015 12:27
Show Gist options
  • Save qbein/ee799d39317671836bd6 to your computer and use it in GitHub Desktop.
Save qbein/ee799d39317671836bd6 to your computer and use it in GitHub Desktop.
Bash function for making svn more usable
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