When I run
hg commit (or
git commit, same difference...) from the command line without supplying a commit message it pops up an emacs buffer with the following contents:
. . HG: Enter commit message. Lines beginning with 'HG:' are removed. HG: Leave message empty to abort commit. HG: -- HG: user: Myself <email@example.com> HG: branch 'default' HG: changed filename
But when I use Emacs'
C-x v v the message buffer is empty.
How can I have the vc message buffer pre-populated with useful information, but have it stripped out of the final message before commit?
It doesn't have to be the message that mercurial (or git) supplies. In fact, in the case above I would prefer if a diffstat were included.