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

[PATCH/RFC] Restore line limit option in post-receive-email

From
CLCheng Leong <leongc@alumni.rice.edu>
Date
Nov 11, 2011, 06:35 UTC
Message-ID
<1320993311-27112-1-git-send-email-leongc@alumni.rice.edu>

The hooks.emailmaxlines config currently has no effect. Stop prep_for_email from clobbering the already-initialized maxlines variable in the contrib/hooks/post-receive-email example.

Signed-off-by: Cheng Leong <leongc@alumni.rice.edu>
---
 contrib/hooks/post-receive-email |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index ba077c1..ac2e0ed 100755
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -85,7 +85,6 @@ prep_for_email()
 	oldrev=$(git rev-parse $1)
 	newrev=$(git rev-parse $2)
 	refname="$3"
-	maxlines=$4
 
 	# --- Interpret
 	# 0000->1234 (create)
-- 
1.7.7.1.msysgit.0
Next: Junio C Hamano
Message 1 of 4 in “Restore line limit option in post-receive-email”
  1. Restore line limit option in post-receive-emailCheng Leong, Nov 11, 2011
  2. Junio C HamanoNov 11, 2011
  3. Cheng LeongNov 11, 2011
  4. Cheng LeongJan 12, 2012

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.