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

Re: [PATCH] xdiff: Show function names in hunk headers.

From
Andreas Ericsson <ae@op5.se>
Date
Mar 28, 2006, 11:07 UTC
Message-ID
<442918D4.6070105@op5.se>
In-Reply-To
<11435126113456-git-send-email-mdw@distorted.org.uk>
Mark Wooding wrote:
Show 6 quoted lines
> 
> The function names are parsed by a particularly stupid algorithm at the
> moment: it just tries to find a line in the `old' file, from before the
> start of the hunk, whose first character looks plausible.  Still, it's
> most definitely a start.
> 

Stupid is sometimes good. I've noticed that the gnu diff algorithm sometimes won't notice changes in small structs, though they are large enough for the surrounding context in the unified diff not to show it either.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Mark Wooding
Message 8 of 8 in “xdiff: Show function names in hunk headers.”
  1. xdiff: Show function names in hunk headers.Mark Wooding, Mar 28, 2006
  2. Junio C HamanoMar 28, 2006
  3. Junio C HamanoMar 28, 2006
  4. Mark WoodingMar 28, 2006
  5. Mark WoodingMar 28, 2006
  6. Junio C HamanoMar 29, 2006
  7. Mark WoodingMar 29, 2006
  8. Andreas EricssonMar 28, 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.