git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: html userdiff is not showing all my changes

From
Matthijs Kooijman <matthijs@stdin.nl>
Date
Dec 15, 2010, 09:12 UTC
Message-ID
<20101215091250.GO3069@login.drsnuggles.stderr.nl>
In-Reply-To
<4D08850D.3010402@drmicha.warpmail.net>
Hi Michael,
> If a wordRegex can make parts of diff disappear than there is problem
> deeper in the diff machinery.

It can do exactly that. The word regex determines what is a word, but everything else is counted as "whitespace". The word diff view shows only differences in words, not in whitespace (which is intentional, since whitespace changes in things like LaTeX or HTML are not interesting). Note that it doesn't show whitespace _differences_, but it does show the whitespace itself (taken from the "new" version of the file).

So, if the word regex somehow doesn't match the second line at all (or at least not the differen part), the differences could get ignored.

> Can you trim this down to a minimal example?
That would be useful in any case.
Gr.
Matthijs
Previous: Michael J GruberNext: Michael J Gruber
Message 3 of 4 in “html userdiff is not showing all my changes”
  1. Scott JohnsonDec 15, 2010
  2. Michael J GruberDec 15, 2010
  3. Matthijs KooijmanDec 15, 2010
  4. Michael J GruberDec 15, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.