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

[PATCH 1/3] format-patch: remove unused total parameter from reopen_stdout()

From
Stephen Boyd <bebarino@gmail.com>
Date
Mar 18, 2009, 19:51 UTC
Message-ID
<780e0a6b0903181251j5f3cda50xcadccb4622bad66c@mail.gmail.com>
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
---
 builtin-log.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/builtin-log.c b/builtin-log.c
index 8684fcd..c72e35a 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -573,7 +573,7 @@ static FILE *realstdout = NULL;
 static const char *output_directory = NULL;
 static int outdir_offset;

-static int reopen_stdout(const char *oneline, int nr, int total)
+static int reopen_stdout(const char *oneline, int nr)
 {
 	char filename[PATH_MAX];
 	int len = 0;
@@ -687,7 +687,7 @@ static void make_cover_letter(struct rev_info
*rev, int use_stdout,
 		die("Cover letter needs email format");

 	if (!use_stdout && reopen_stdout(numbered_files ?
-				NULL : "cover-letter", 0, rev->total))
+				NULL : "cover-letter", 0))
 		return;

 	head_sha1 = sha1_to_hex(head->object.sha1);
@@ -1106,7 +1106,7 @@ int cmd_format_patch(int argc, const char
**argv, const char *prefix)
 		}
 		if (!use_stdout && reopen_stdout(numbered_files ? NULL :
 				get_oneline_for_filename(commit, keep_subject),
-				rev.nr, rev.total))
+				rev.nr))
 			die("Failed to create output files");
 		shown = log_tree_commit(&rev, commit);
 		free(commit->buffer);
-- 
1.6.2
Message 1 of 1 in “format-patch: remove unused total parameter from reopen_stdout()”
  1. 1/3 format-patch: remove unused total parameter from reopen_stdout()Stephen Boyd, Mar 18, 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.