From: Ping Yin Date: Sat, 03 May 2008 14:13:12 GMT Subject: Re: [PATCH] --color-words: Make the word characters configurable Message-ID: <46dff0320805030713r673ea479u37018333c32131bb@mail.gmail.com> In-Reply-To: On Sat, May 3, 2008 at 10:03 PM, Johannes Schindelin wrote: > > Now, you can specify which characters are to be interpreted as word > characters with "--color-words=A-Za-z", or by setting the config variable > diff.wordCharacters. > > Signed-off-by: Johannes Schindelin > --- > > I would have preferred an approach like this. > > Documentation/config.txt | 6 ++++ > Documentation/diff-options.txt | 8 ++++- > README | 2 +- > diff.c | 64 +++++++++++++++++++++++++++++++++++++++- > 4 files changed, 77 insertions(+), 3 deletions(-) > > diff --git a/Documentation/config.txt b/Documentation/config.txt > index 05bf2df..663d82b 100644 > --- a/Documentation/config.txt > +++ b/Documentation/config.txt > @@ -546,6 +546,12 @@ diff.renames:: > will enable basic rename detection. If set to "copies" or > "copy", it will detect copies, as well. > > +diff.wordcharacters:: > + This config setting overrides which characters are interpreted as > + word characters by the --color-words option of linkgit:git-diff[1]. I think a-zA-Z0-9_ should always be word characters. We can't override them, instead, we just extend them. > > -"git" can mean anything, depending on your mood. > +"git" cann mean anything, depending on your mood. Why replacing can as cann? -- Ping Yin