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

Re: html userdiff is not showing all my changes

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Dec 15, 2010, 09:29 UTC
Message-ID
<4D088A5D.60705@drmicha.warpmail.net>
In-Reply-To
<20101215091250.GO3069@login.drsnuggles.stderr.nl>
Matthijs Kooijman venit, vidit, dixit 15.12.2010 10:12:
Show 11 quoted lines
> 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).

Yep, I just found out myself experimenting with a wordRegex for csv. Seems like quite a "Gimme rope" feature...

So, it's the regex.
Show 5 quoted lines
> 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.

What strikes me is that both lines are semantically identical, yet one is treated correctly and the other isn't.

Michael
Previous: Matthijs Kooijman
Message 4 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.