[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diff in commit message (was: Multiple-line log message)

From: Mike Castle
Subject: Re: diff in commit message (was: Multiple-line log message)
Date: Tue, 24 Oct 2000 15:04:27 -0500
User-agent: Mutt/1.3.6i

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 that looks like the following:
cvs up > $CVSEDITLOG
cvs commit
rm /tmp/log

And that looks like:
cat $CVSEDITLOG >> $1
vi $1

That is, instead of trying to shoe horn into cvs commit, put a wrapper
around it.

       Mike Castle       Life is like a clock:  You can work constantly
  address@hidden  and be right all the time, or not work at all and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]