help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: VC-CVS commit with standard comment


From: Vagn Johansen
Subject: Re: VC-CVS commit with standard comment
Date: Sat, 20 Feb 2010 18:57:28 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin)

"Sven Bretfeld" <sven.bretfeld@gmx.ch> writes:

F> Andrea Crotti <andrea.crotti.0@gmail.com> writes:
>
>> "Sven Bretfeld" <sven.bretfeld@gmx.ch> writes:
>
>>> Is it possible to set an automatic standard comment when checking in a
>>> version controlled file? 
>>>

(add-hook 'log-edit-mode-hook '(lambda () (interactive) (insert "new")))

>>> I'm the only client of my repository and I always give the same comment
>>> "new" when I check in files. This can surely be automated to save time
>>> (or to entrust checkins to the "midnight" function). But how?
>>
>> Good idea I also wanted something like that.
>> I have under git also many org-mode files, sometimes I can't really give
>> a commit message that makes sense, maybe something auto-generated from
>> the diff also would be nice (like the first n-chars of every diff line).
>
> Same issue for me.
>

Maybe do something clever via log-edit-mode-hook

-- 
Vagn Johansen


reply via email to

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