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

Re: [RFH] shifting xdiff hunks?

From
Jakub Narebski <jnareb@gmail.com>
Date
Apr 13, 2006, 07:44 UTC
Message-ID
<e1kvft$4r2$1@sea.gmane.org>
In-Reply-To
<7vmzeqyolw.fsf@assigned-by-dhcp.cox.net>
Junio C. Hamano wrote:
 
> Now, from correctness point of view, this is not a problem at
> all, but I am wondering if xdiff can help to always shift the
> hunk down or up to consistently produce one way or another
> (personally I feel the former is easier to read).

This would also help with adding new functions, as sometimes diff begins with the closing brace of the preceding function, instead of ending with closing brace of the added function.

Just my own 0.2 eurocents.
-- 
Jakub Narebski
Warsaw, Poland
Previous: Junio C Hamano
Message 5 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.