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

Re: -p diff output and the 'Index:' line

From
Junio C Hamano <junkio@cox.net>
Date
May 30, 2005, 07:42 UTC
Message-ID
<7v7jhh6ty5.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050529190305.GP1036@pasky.ji.cz>
>>>>> "PB" == Petr Baudis <pasky@ucw.cz> writes:

PB> It's just something along the lines of "Me Og. Og sees /^+/. Og makes PB> the line green." written in gawk (actually I'm not sure if pure awk PB> wouldn't do, but I actually don't know the language), so I don't think PB> the external diff thing would've helped me with that in any way.

Ah, I see. I thought you were talking about the Index: and separator lines. Colorizing diff/patch part, you need to parse the diff output with sed/awk/perl and annotate it anyway, and it does not matter if you annotate within GIT_EXTERNAL_DIFF or outside. I agree with you that using GIT_EXTERNAL_DIFF mechanism would not help you here.

Previous: Petr BaudisNext: Petr Baudis
Message 8 of 9 in “-p diff output and the 'Index:' line”
  1. Petr BaudisMay 29, 2005
  2. Junio C HamanoMay 29, 2005
  3. SeanMay 29, 2005
  4. Thomas GlanzmannMay 29, 2005
  5. Petr BaudisMay 29, 2005
  6. Junio C HamanoMay 29, 2005
  7. Petr BaudisMay 29, 2005
  8. Junio C HamanoMay 30, 2005
  9. Petr BaudisMay 30, 2005

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.