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

Re: [RFH] shifting xdiff hunks?

From
Junio C Hamano <junkio@cox.net>
Date
Apr 13, 2006, 23:31 UTC
Message-ID
<7vslohvyq9.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0604131452250.10564@alien.or.mcafeemobile.com>
Davide Libenzi <davidel@xmailserver.org> writes:
Show 10 quoted lines
> On Wed, 12 Apr 2006, Davide Libenzi wrote:
>
>> Yes, this is what GNU diff does. It's a post-process of the edit
>> script. Not a problem at all. Till this weekend (included) I'm
>> pretty booked, but I'll do that in the following days.
>
> Dang, that was a short weekend. I found a lunch-time hour for
> this. Would you try to see if this libxdiff-based diff merges on your
> tree?
> See also how it looks for you.

Very impressed, and pleased with the result. I've only taken a cursory look, but with a very limited number of tests, it looks much better. Thanks.

For the sake of full disclosure, the reason I wanted consistency was not for the diff output I quoted earlier, but to help making the combined patch output cleaner. It does reduce false match from the infamous 12-way Octopus by Len Brown:

	git diff-tree --cc 9fdb62af92c741addbea15545f214a6e89460865
Previous: Davide LibenziNext: Jakub Narebski
Message 4 of 5 in “[RFH] shifting xdiff hunks?”
  1. Junio C HamanoApr 13, 2006
  2. Davide LibenziApr 13, 2006
  3. Davide LibenziApr 13, 2006
  4. Junio C HamanoApr 13, 2006
  5. Jakub NarebskiApr 13, 2006

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.