[PATCH 0 of 2] Revised - Add --git option to commands which output patches
jim.correia at gmail.com
jim.correia at gmail.com
Sat Feb 14 15:12:03 CST 2009
I've prepared a patch which adds a --git option to log, incoming, history
and tip.
The motivation for doing so is to be able to easily see the additional
things the --git diff format provides. (I had a couple of otherwise "empty"
changesets where just the +x bits changed.)
(I realize that you can force this through the --config switch, but this is
neither convenient, nor particularly discoverable, IMO.)
The first patch in the series adds the --git option.
The second patch in the series removes the short option graphlog adds to log
(-g) and takes that over as a short option for --git to be consistent with
other commands.
Implementation details:
changeset_templater (and its superclass) takes an additional argument
which represents the diff opts.
More information about the Mercurial-devel
mailing list