version control - Emacs: Is there a way to generate a skeleton ChangeLog from diff? -
I want to automate the creation of partial GNU-style changelog entries while working with source code in version control . Add-Change-Entry-Other-Window works with one file at a time and you have to go to use the file.
What I want to see instead is some command which will take the output of diff -u -p (or integration with VC mode so that it is svn diff < / Code> etc.) and skeletal entries to create them all at once.
For example, if svn status shows
d file1.cm file2.c a file3.c will create a command
2009-09-05 My name & lt; My.email & gt; * File1.c: Extracted * File2.c: Write your changes here * file3.c: New
Better yet, if it parsed to some extent in some languages in some files So it can offer:
* file2.c (new_function): New Function (Deleted_function): Extracted (changed jobs): Write your changes here
I have found, but I do not think how can I apply it here.
Any suggestions? Thank you.
Edit: An answer suggested, unfortunately, it only supports CVS and changes the entries written by at least VC logs before questioning. Thus even if it supports svn and others, it would be impossible to make changes and changes in the same commit.
EDIT2: Apparently the add-change-entry-other-window (CX4A) works not only from the tour file, but also the file containing the difference. () This is almost what I see. It should solve this with the Aliste Loop for it to be repeated through all the peels.
One of my works, but it should be easy to implement. Basically, you want to get changed files for
- for every file
- ,
add-change-log Call
"Change the log file, and add an entry for today and an item for this file. Alternate strings WHOAMI (interactive prefix) use non-neil prompt for user name and email (` Ad-log-full - name 'and' ad-log-mailing-address ') The second ARG file-NAME is the file name of the change log. If zero, then use the value of `change-log-default-name'. The third AGR is the other- Window Non-Nil means that go to the second window, fourth ARG. The meaning of e-entry non-neil always creates a new entry in the front, never to be included in an existing entry. The option 'log-in-conversion-add-together' entry is created. -On-always-start-new-record 'non-neil means always making a new record, even if the last record is done on the same date and by the same person. The change log file is a copyright notice and Begin with the notice of copy permission. The first blank line indicates the end of these notices that today's date is calculated according to the 'add-log-time-zone-rule' if not otherwise in local time. "
Then the magic code is going to look something like this
(" make-magic-change-log-entry changed-file-list 'apply) and make-magic-change-log-entry works only in the add-change-log function so that only logic is Filename - You set others up.
Comments
Post a Comment