[BZ#700683] allow to write commit message while reviewing diff
Submitted by Luc Pi
Link to original bug (#700683)
Description
Currently it happens in two steps:
- review all diffs
- write commit message at once (the dialog is modal, you can't look at the diff anymore)
I would like to be able to enter the commit message as I am reviewing
In addition, the commit message could be updated automatically with the diff context.
EXAMPLE: with emacs you
- put the cursor on the change you want to comment on
- launch the command (Ctrl-x + 4 + A)
--> this opens a buffer with the changelog entry
--> the changelog entry is pre-set with the diff context:
- the filename + the nearest enclosing symbol (function, struct, etc.)
-------------->%-------------->%-------------- 2013-05-20 Name Surname email@example.org
* file (symbol): <_cursor_>
-------------->%-------------->%--------------
This is the GNU std changelog [1] entry. It could be modified with the "std" style of the VCS system used. For example, with git, it could add a Sign-off line.
[1] http://www.gnu.org/prep/standards/html_node/Style-of-Change-Logs.html#Style-of-Change-Logs