Feb14
2007
2007
If like me, you’re not too keen on the sometimes cluttered output produced by a Subversion diff command (svn diff), here is a way to use Unix diff with Subversion instead. I’ve also used the -b parameter to ignore whitespace differences.
$ svn diff --diff-cmd diff --extensions '-b'
It looks a little messy at first but you could probably alias it quite easily using something like:
alias "svn_diff_b"="svn diff --diff-cmd diff --extensions '-b'"
in your .bashrc (or equivalent) file.
February 15th, 2007 at 2:32 pm
Nice, much better than using something like tkdiff which I used to use with RCS/CVS in a past life….
February 27th, 2007 at 1:46 pm
Excellent James, I had to use this today and it’s very handy here. Just one point the text of the article has changed the double-hyphens into single dashes also altered the apostrophes.
February 27th, 2007 at 3:09 pm
Thanks Martin, I replaced the paragraph tags around that text with
tagsand it has resolved the translation issues being seen.March 26th, 2007 at 5:29 pm
nice hint. Never thought of re-piping.