[Top][All Lists]

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

Re: ChangeLog and Version Control

From: Aman S Kohli
Subject: Re: ChangeLog and Version Control
Date: 26 Sep 2002 09:39:02 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

address@hidden (Kai Großjohann) writes:

> address@hidden (Richard V. Molen) writes:
> I think this is not the default behavior.  The default behavior is
> that the ChangeLog file is not changed after doing C-c C-c.
> So something in your config must be doing it.

vc provides a function to use as part of the checkin hook.  I got this from


     (add-hook 'vc-checkin-hook 'vc-checkin-add-log)
     ;;; Insert the file's new log entries in ChangeLog.
     (defun vc-checkin-add-log ()
       (let ((log (find-change-log)))
         (and log
         (y-or-n-p (format "Update %s for %s changes? "
                           (file-relative-name log)
                           (file-relative-name buffer-file-name)))
         (vc-comment-to-change-log nil log))))


> kai
> -- 
> ~/.signature is: umop ap!sdn    (Frank Nobis)

reply via email to

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