* VC-CVS commit with standard comment
@ 2010-02-16 9:31 Sven Bretfeld
2010-02-16 10:01 ` Andrea Crotti
0 siblings, 1 reply; 7+ messages in thread
From: Sven Bretfeld @ 2010-02-16 9:31 UTC (permalink / raw)
To: help-gnu-emacs
Hi all
Is it possible to set an automatic standard comment when checking in a
version controlled file?
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?
--
Greetings
Sven
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VC-CVS commit with standard comment
2010-02-16 9:31 VC-CVS commit with standard comment Sven Bretfeld
@ 2010-02-16 10:01 ` Andrea Crotti
2010-02-16 18:56 ` Sven Bretfeld
[not found] ` <mailman.1350.1266346590.14305.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 7+ messages in thread
From: Andrea Crotti @ 2010-02-16 10:01 UTC (permalink / raw)
To: help-gnu-emacs
"Sven Bretfeld" <sven.bretfeld@gmx.ch> writes:
> Hi all
>
> Is it possible to set an automatic standard comment when checking in a
> version controlled file?
>
> 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).
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VC-CVS commit with standard comment
2010-02-16 10:01 ` Andrea Crotti
@ 2010-02-16 18:56 ` Sven Bretfeld
[not found] ` <mailman.1350.1266346590.14305.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 7+ messages in thread
From: Sven Bretfeld @ 2010-02-16 18:56 UTC (permalink / raw)
To: help-gnu-emacs
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?
>>
>> 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.
--
Greetings
Sven
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VC-CVS commit with standard comment
[not found] ` <mailman.1350.1266346590.14305.help-gnu-emacs@gnu.org>
@ 2010-02-20 17:57 ` Vagn Johansen
2010-02-22 12:05 ` Sven Bretfeld
[not found] ` <mailman.1639.1266840365.14305.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 7+ messages in thread
From: Vagn Johansen @ 2010-02-20 17:57 UTC (permalink / raw)
To: help-gnu-emacs
"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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VC-CVS commit with standard comment
2010-02-20 17:57 ` Vagn Johansen
@ 2010-02-22 12:05 ` Sven Bretfeld
2010-02-23 4:32 ` Kevin Rodgers
[not found] ` <mailman.1639.1266840365.14305.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 7+ messages in thread
From: Sven Bretfeld @ 2010-02-22 12:05 UTC (permalink / raw)
To: help-gnu-emacs
Vagn Johansen <gonz808@hotmail.com> 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")))
That's almost working. Thanks. The problem is that the second checkin
wants to add the comment "newnew", the third "newnewnew".
Greetings,
Sven
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VC-CVS commit with standard comment
2010-02-22 12:05 ` Sven Bretfeld
@ 2010-02-23 4:32 ` Kevin Rodgers
0 siblings, 0 replies; 7+ messages in thread
From: Kevin Rodgers @ 2010-02-23 4:32 UTC (permalink / raw)
To: help-gnu-emacs
Sven Bretfeld wrote:
> Vagn Johansen <gonz808@hotmail.com> 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")))
>
> That's almost working. Thanks. The problem is that the second checkin
> wants to add the comment "newnew", the third "newnewnew".
(lambda () (erase-buffer) (insert "new"))
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: VC-CVS commit with standard comment
[not found] ` <m21vgdjenl.fsf@hotmail.com>
@ 2010-02-23 9:46 ` Sven Bretfeld
0 siblings, 0 replies; 7+ messages in thread
From: Sven Bretfeld @ 2010-02-23 9:46 UTC (permalink / raw)
To: Vagn Johansen; +Cc: help-gnu-emacs
Hi
Vagn Johansen <gonz808@hotmail.com> writes:
> "Sven Bretfeld" <sven.bretfeld@gmx.ch> writes:
>>> (add-hook 'log-edit-mode-hook '(lambda () (interactive) (insert "new")))
>>
>> That's almost working. Thanks. The problem is that the second checkin
>> wants to add the comment "newnew", the third "newnewnew".
>
> Maybe this will work (untested)
>
> (add-hook 'log-edit-mode-hook '(lambda () (interactive)
> (delete-region (point-min) (point-max))
> (insert "new")))
That's working perfectly. Thank you very much.
Greetings,
Sven
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-02-23 9:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 9:31 VC-CVS commit with standard comment Sven Bretfeld
2010-02-16 10:01 ` Andrea Crotti
2010-02-16 18:56 ` Sven Bretfeld
[not found] ` <mailman.1350.1266346590.14305.help-gnu-emacs@gnu.org>
2010-02-20 17:57 ` Vagn Johansen
2010-02-22 12:05 ` Sven Bretfeld
2010-02-23 4:32 ` Kevin Rodgers
[not found] ` <mailman.1639.1266840365.14305.help-gnu-emacs@gnu.org>
[not found] ` <m21vgdjenl.fsf@hotmail.com>
2010-02-23 9:46 ` Sven Bretfeld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).