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

Annotating patches inside diff

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 10, 2008, 13:45 UTC
Message-ID
<200812101445.48034.jnareb@gmail.com>

I remember that long time ago on git mailing list there was discussed extending git-apply and friends (including git-am), to be able to ignore lines in patches with selected special prefix, different from '@' for chunks headers, ' ' for context, '+'/'-' for added/deleted lines. IIRC it was chose '|' for this purpose.

This way you could annotate patch
@@ -4667,7 +4667,6 @@ HTML
                                  hash_base => $parent_commit);
                print "<td class=\"linenr\">";
                print $cgi->a({ -href => "$blamed#l$orig_lineno",
| moved to <tr>
-                               -id => "l$lineno",
                                -class => "linenr" },
                              esc_html($lineno));
                print "</td>";


Was it accepted or dropped, or is this feature present but not 
documented?
-- 
Jakub Narebski
Poland
Next: Johannes Schindelin
Message 1 of 3 in “Annotating patches inside diff”
  1. Jakub NarebskiDec 10, 2008
  2. Johannes SchindelinDec 10, 2008
  3. Junio C HamanoDec 10, 2008

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.