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

[PATCH] patch-id: "diff-tree" => "commit"

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 23, 2006, 15:36 UTC
Message-ID
<Pine.LNX.4.63.0606231731280.29667@wbgn013.biozentrum.uni-wuerzburg.de>

Some time ago we changed git-log in a massive way, and one consequence is that the keyword changed. Adjust patch-id for that.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 patch-id.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/patch-id.c b/patch-id.c
index edbc4aa..01845be 100644
--- a/patch-id.c
+++ b/patch-id.c
@@ -40,8 +40,8 @@ static void generate_id_list(void)
 		char *p = line;
 		int len;
 
-		if (!memcmp(line, "diff-tree ", 10))
-			p += 10;
+		if (!memcmp(line, "commit ", 7))
+			p += 7;
 
 		if (!get_sha1_hex(p, n)) {
 			flush_current_id(patchlen, sha1, &ctx);
-- 
1.4.1.rc1.g406e
Next: Linus Torvalds
Message 1 of 3 in “patch-id: "diff-tree" => "commit"”
  1. patch-id: "diff-tree" => "commit"Johannes Schindelin, Jun 23, 2006
  2. Linus TorvaldsJun 23, 2006
  3. Johannes SchindelinJun 23, 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.