[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: Gerhard Sittig
Subject: Re: diff in commit message (was: Multiple-line log message)
Date: Tue, 24 Oct 2000 20:54:37 +0200

On Mon, Oct 23, 2000 at 14:59 -0500, Giang, Richard P wrote:
> Does anyone know how to enter a log message that expands
> multiple lines using command line cvs commit -m?

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?

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.

I tried to accomplish something similar in CVS, but failed
miserably. :(  The rcsinfo is too static (updated only with "cvs
update", not referenced when -m is specified).  Setting an
CVSEDITOR pointing to a script to invoke "cvs diff" and "$EDITOR"
hangs due to the lock already set by "cvs commit".  So I realized
I had to fiddle with the source and narrowed it down to commit.c
at a time where start_server() is done but do_editor() is not
yet.  That's where I would catch the diff output and append it to
the saved_message.

Where am I wrong?  What did I miss?  Has someone already done
this successfully?

virtually yours   82D1 9B9C 01DC 4FB4 D7B4  61BE 3F49 4F77 72DE DA76
Gerhard Sittig   true | mail -s "get gpg key" address@hidden
     If you don't understand or are scared by any of the above
             ask your parents or an adult to help you.

reply via email to

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