Gabriela's Coding Blog
I keep a diary of my coding hobby here.
Thursday, 24 October 2013
How to use svn diff to create a list of visitable files with line numbers in the Emacs compile buffer
Here is how to use the
output within the emacs compile buffer to generate a handy list of files with line numbers that you can click on to visit every bit of code you've changed:
svn diff |\
perl -ne '/Index: (.*)$/ && ($name = $1);\
/^@@.*\+(\d+),/ && print "./$name:$1:diff\n";'
Thursday, October 24, 2013
Share to Twitter
Share to Facebook
Share to Pinterest
code I wrote