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

[PATCH] log-tree.c: Make log_tree_diff_flush() honor line_termination.

From
GSGovind Salinas <govind@sophiasuchtig.com>
Date
Apr 22, 2008, 02:18 UTC
Message-ID
<5d46db230804211918u1444a80cwe1e977d37c2eb257@mail.gmail.com>
Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>
---
I sent this in a few weeks ago, but it was not eligible for inclusion on 1.5.5.
There was some discussion but I was never sure if the patch was acceptable
to everyone.  I would like to know if this could be done for the next version?
 log-tree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/log-tree.c b/log-tree.c
index 5b29639..374b277 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -347,7 +347,7 @@ int log_tree_diff_flush(struct rev_info *opt)
 			int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
 			if ((pch & opt->diffopt.output_format) == pch)
 				printf("---");
-			putchar('\n');
+			putchar(opt->diffopt.line_termination);
 		}
 	}
 	diff_flush(&opt->diffopt);
-- 
1.5.5.rc2.131.g3d2f
Next: Junio C Hamano
Message 1 of 2 in “log-tree.c: Make log_tree_diff_flush() honor line_termination.”
  1. log-tree.c: Make log_tree_diff_flush() honor line_termination.Govind Salinas, Apr 22, 2008
  2. Junio C HamanoApr 22, 2008

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.