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

[PATCH] Remove unused sha1 parameter from pprint_tag function.

From
Thiago Farina <tfransosi@gmail.com>
Date
Sep 17, 2009, 00:12 UTC
Message-ID
<1253146356-17867-1-git-send-email-tfransosi@gmail.com>
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
---
 builtin-cat-file.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/builtin-cat-file.c b/builtin-cat-file.c
index 5906842..626c6a7 100644
--- a/builtin-cat-file.c
+++ b/builtin-cat-file.c
@@ -13,7 +13,7 @@
 #define BATCH 1
 #define BATCH_CHECK 2
 
-static void pprint_tag(const unsigned char *sha1, const char *buf, unsigned long size)
+static void pprint_tag(const char *buf, unsigned long size)
 {
 	/* the parser in tag.c is useless here. */
 	const char *endp = buf + size;
@@ -126,7 +126,7 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name)
 		if (!buf)
 			die("Cannot read object %s", obj_name);
 		if (type == OBJ_TAG) {
-			pprint_tag(sha1, buf, size);
+			pprint_tag(buf, size);
 			return 0;
 		}
 
-- 
1.6.5.rc0.dirty
Message 1 of 1 in “Remove unused sha1 parameter from pprint_tag function.”
  1. Remove unused sha1 parameter from pprint_tag function.Thiago Farina, Sep 17, 2009

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.