[PATCH] diff: graduate word-diff option from experimental

Yuya Nishihara yuya at tcha.org
Mon Jul 9 08:57:24 EDT 2018


On Sun, 8 Jul 2018 18:29:37 +0530, Pulkit Goyal wrote:
> > --- a/mercurial/help/config.txt
> > +++ b/mercurial/help/config.txt
> > @@ -702,6 +702,9 @@ for related options for the annotate com
> >  ``unified``
> >      Number of lines of context to show.
> >
> > +``word-diff``
> > +    Highlight changed words.
> > +
> >
> 
> ​TBH, I am not fan of documenting config options in `hg help config`.
> Rather we should document this in commands' help text where it is
> applicable so that this is more discoverable.​

I agree that it's nice if each command help includes reference to related
configs, but I think 'help config' should be the canonical source of all
supported options. Otherwise we would have to grep all command helps to
find a meaning of a certain config option.


More information about the Mercurial-devel mailing list