[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 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
address@hidden 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
- Re: Multiple-line log message, (continued)
- Re: Multiple-line log message, Rich Salz, 2000/10/23
- Re: Multiple-line log message, Larry Jones, 2000/10/23
- Re: diff in commit message (was: Multiple-line log message), Gerhard Sittig, 2000/10/24
- Re: diff in commit message (was: Multiple-line log message), Richard J. Duncan, 2000/10/24
- Re: diff in commit message (was: Multiple-line log message), Gerhard Sittig, 2000/10/26
- Re: diff in commit message (was: Multiple-line log message), Larry Jones, 2000/10/27
- Re: diff in commit message (was: Multiple-line log message), Gerhard Sittig, 2000/10/27
- Re: diff in commit message (was: Multiple-line log message), Larry Jones, 2000/10/28
- Re: diff in commit message (was: Multiple-line log message), Gerhard Sittig, 2000/10/29
- Re: diff in commit message (was: Multiple-line log message), Gerhard Sittig, 2000/10/30
Re: diff in commit message (was: Multiple-line log message),
Mike Castle <=