From: Vincent Lefevre Date: Mon, 08 Jun 2026 10:58:21 GMT Subject: Re: [BUG] "git diff --word-diff" gives a diff while they are only space changes Message-ID: <20260608105821.GA2049040@cventin.lip.ens-lyon.fr> In-Reply-To: On 2026-05-28 12:25:01 -0700, Michael Montalbo wrote: > > Thanks for the ideas, Chris. Here is my attempt at synthesizing Chris' > > suggestions and Junio's feedback: > > > > The `--word-diff` option operates by taking the same line-by-line > > diff that is produced without the option and computing > > word-by-word changes within each hunk. This may produce a > > larger diff than a dedicated word-diff tool would. If Git > > acquires a different implementation in the future, the output > > may change. Note that this is similar to the `--diff-algorithm` > > option, which may also change the output. > > > > Does this work? > > Updated the patch with the revised wording: > https://lore.kernel.org/git/pull.2113.git.1778686956622.gitgitgadget@gmail.com/T/#t > > Please feel free to pick up, modify, or drop as appropriate. Just to say that this new text is fine for me. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)