On Tue, Oct 24, 2000 at 08:54:37PM +0200, Gerhard Sittig wrote:
> Does anyone know a method how to incorporate "cvs diff" into the
> "cvs commit" message and thus aid the committer with showing what
> has changed when he is asked to specify what he did and why?
I would have to say, this is probably the ugliest idea I have ever seen.
You really want to do this on a regular basis? Why? this information can
ALWAYS be regenerated outside of the log message.
> As a background: At the moment I employ a homegrown wrapper
> script around RCS to catch the diff before invoking an editor
> with the diff log and the "tell me why you did it" message.
Why not a mycommit.sh that looks like the following:
CVSEDITLOG=/tmp/log.$$
cvs up > $CVSEDITLOG
CVSEDITOR=mycommitedit.sh
export CVSEDITLOG CVSEDITOR
cvs commit
rm /tmp/log
And mycommitedit.sh that looks like:
cat $CVSEDITLOG >> $1
vi $1
That is, instead of trying to shoe horn into cvs commit, put a wrapper
around it.
mrc
--
Mike Castle Life is like a clock: You can work constantly
[EMAIL PROTECTED] and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc
We are all of us living in the shadow of Manhattan. -- Watchmen
_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs