Re: [bug] git diff --word-diff gives wrong result for utf-8 chinese
- From
Ping Yin <pkufranky@gmail.com>
- Date
- Dec 1, 2022, 07:08 UTC
- Message-ID
- <CACSwcnTj8kiM83+x3V69avohqW4ABOBVe4uG5n3giY-tQEP_Vg@mail.gmail.com>
- In-Reply-To
- <Y4ZVXWNHO25IFYQL@coredump.intra.peff.net>
> I wonder if OP has diff.wordRegex config (or attributes triggering a > diff.*.wordRegex) that is doing something else.
Wow, you are right, sorry for the noise.
$ git config -l | grep word diff.wordregex=[[:alnum:]_]+|[^[:space:]]