[issue231] Option to have diff displayed in commit editor buffer
Thomas Arendsen Hein
thomas at intevation.de
Wed May 10 05:08:55 CDT 2006
* Dan Smith <mercurial-bugs at selenic.com> [20060506 01:41]:
> I think it would be useful to have the option to have a diff of my changes
> displayed in the editor buffer while committing. Perhaps something like "hg
> commit --show-diff" or something. I find myself making several changes per
> changeset, but only recording the most recent in my commit message. If you
> prefix the diff with "HG:" then it won't go into the commit message (which, of
> course, would be a good thing :)
Please have a look at the hgeditor script, configure the [ui] editor
to use it, change $EDITOR to vim or emacs and try committing
something. For other editors you have to change hgeditor to your
needs.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list