Note that there are some explanatory texts on larger screens.

plurals
  1. POEmacs: Is there a way to generate a skeleton ChangeLog from diff?
    primarykey
    data
    text
    <p>I'd like to partly automate creation of GNU-style ChangeLog entries when working with source code in version control. The <code>add-changelog-entry-other-window</code> works with one file at a time and you have to visit the file to use it.</p> <p>What I'd like to see instead is to have some command that would take an output of <code>diff -u -p</code> (or have integration with VC modes so it could process <code>svn diff</code> etc) and to create all the skeleton entries at once.</p> <p>For example, if <code>svn status</code> shows</p> <pre><code>D file1.c M file2.c A file3.c </code></pre> <p>the command would create</p> <pre><code>2009-09-05 My Name &lt;my.email&gt; * file1.c: Removed. * file2.c: WRITE YOUR CHANGES HERE * file3.c: New. </code></pre> <p>Better yet, if it could parse the changed files in some languages to an extent so it could offer:</p> <pre><code> * file2.c (new_function): New function. (deleted_function): Removed. (changed_function): WRITE YOUR CHANGES HERE </code></pre> <p>I have found <a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/Log-Buffer.html" rel="nofollow noreferrer">this feature in Emacs manual</a>, but I don't see how I could apply it here.</p> <p>Any suggestions? Thanks.</p> <p>EDIT: One answer suggested <a href="http://gnu.cict.fr/software/emacs/manual/html_node/emacs/Change-Logs-and-VC.html" rel="nofollow noreferrer">vc-update-change-log</a>. Unfortunately it only supports CVS and it creates ChangeLog entries by querying the already-commited VC logs. Thus even if it supported svn and others, it would be impossible to commit the changes and the ChangeLog in the same commit.</p> <p>EDIT2: Apparently add-changelog-entry-other-window (C-x 4 a) works not only from visited file but from diff hunk involving that file too. (<a href="http://www.emacswiki.org/emacs/ChangeLog" rel="nofollow noreferrer">Source</a>) This is almost what I am looking for. This together with elisp loop to iterate through all hunks should solve it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload