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

[PATCH 1/2] post-receive-email: remove unused variable

From
mhagger@alum.mit.edu <mhagger@alum.mit.edu>
Date
Feb 27, 2012, 18:34 UTC
Message-ID
<1330367650-23091-2-git-send-email-mhagger@alum.mit.edu>
In-Reply-To
<1330367650-23091-1-git-send-email-mhagger@alum.mit.edu>
From: Michael Haggerty <mhagger@alum.mit.edu>
prep_for_email neither is passed a fourth argument nor uses it.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.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.9
Previous: mhagger@alum.mit.eduNext: mhagger@alum.mit.edu
Message 2 of 4 in “Trivial cleanups in the post-receive-email script”
  1. 0/2 Trivial cleanups in the post-receive-email scriptmhagger@alum.mit.edu, Feb 27, 2012
  2. 1/2 post-receive-email: remove unused variablemhagger@alum.mit.edu, Feb 27, 2012
  3. 2/2 post-receive-email: match up $LOGBEGIN..$LOGEND pairs correctlymhagger@alum.mit.edu, Feb 27, 2012
  4. Junio C HamanoFeb 27, 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.