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

New ref generates 8MB mail message

From
MWMatthew Wilcox <matthew@wil.cx>
Date
Jan 18, 2006, 14:09 UTC
Message-ID
<20060118140907.GV19769@parisc-linux.org>

There's a bit of an unfortunate mistake in the default mail script that causes making a new ref for Linus' kernel tree to generate an 8MB mail message.

Based on the idea that a new branch is probably a branch off master, and if it isn't, then at least sending a log vs master is better than a log vs the beginning of time, I propose this patch:

diff --git a/templates/hooks--update b/templates/hooks--update
index 6db555f..609b4fe 100644
--- a/templates/hooks--update
+++ b/templates/hooks--update
@@ -13,7 +13,7 @@ recipient="commit-list@example.com"
 if expr "$2" : '0*$' >/dev/null
 then
 	echo "Created a new ref, with the following commits:"
-	git-rev-list --pretty "$3"
+	git-rev-list --pretty "$3" ^master
 else
 	base=$(git-merge-base "$2" "$3")
 	case "$base" in
Next: Linus Torvalds
Message 1 of 3 in “New ref generates 8MB mail message”
  1. Matthew WilcoxJan 18, 2006
  2. Linus TorvaldsJan 18, 2006
  3. Andreas EricssonJan 19, 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.