overide --git diff option

Steve Borho steve at borho.org
Tue Jan 22 21:05:56 UTC 2008


On Tue, 2008-01-22 at 14:48 -0600, Matt Mackall wrote:
> On Tue, 2008-01-22 at 14:14 -0600, Steve Borho wrote:
> > On Tue, 2008-01-22 at 14:46 -0500, Neal Becker wrote:
> > > I have a global (.hgrc) 
> > > [diff]
> > > git=1
> > > 
> > > But I'm trying out some tool that wants unified diff.
> > > 
> > > Wish hg diff had an option.
> > 
> > There's always this syntax:
> > 
> > hg diff --config diff.git=0
> 
> We should probably explicitly document this trick in the [defaults]
> section of hgrc.5.

Speaking of which, the man page HTML files on
http://www.selenic.com/mercurial/ are very old.  The hgrc(5) page
doesn't mention a [diff] section, hrmm..

changeset:   4011:15955d84bc68
user:        Benoit Boissinot <benoit.boissinot at ens-lyon.org>
date:        Fri Dec 29 04:22:31 2006 +0100
summary:     add [diff] section to hgrc documentation

-- 
Steve Borho (steve at borho.org)
http://www.borho.org/~steve/steve.asc
Key fingerprint = 2D08 E7CF B624 624C DE1F  E2E4 B0C2 5292 F2C6 2C8C




More information about the Mercurial-devel mailing list