30 Oct
2003
30 Oct
'03
6:57 a.m.
I expect most people already know this but in case not here's a trick to get cvs commit to display a diff of what you're checking in:
Create a file called ~/bin/cvsdiffedit:
---------------------------------- #!/bin/bash echo Building diff... cvs diff -u 2>/dev/null | perl -ne 'print "CVS: $_" unless /^?/' >> $1 exec emacs $1 ----------------------------------
(Change 'emacs' to your favorite editor)
Then put this in your .cshrc:
---------------------------------- ... if (-e $HOME/bin/cvsdiffedit) then setenv CVSEDITOR "$HOME/bin/cvsdiffedit" endif ... ----------------------------------
Or if you use BASH or similar:
---------------------------------- ... export CVSEDITOR=~/bin/cvsdiffedit ... ----------------------------------
Bryce
7723
Age (days ago)
7723
Last active (days ago)
0 comments
1 participants
participants (1)
-
Bryce Harrington