svndiff – handy function

Trivial but handy utility/function to give you a subversion diff with paging and syntax coloring:

svndiff ()
{
  svn diff $* | colordiff | less -r
}

Pass it anything you’d pass to “svn diff”: e.g., “.” for the current directory, a list of filenames, or options like –no-diff-deleted.

Leave a Reply

Your email address will not be published. Required fields are marked *