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

[PATCH] sequencer: remove additional blank line

From
Ralf Thielow <ralf.thielow@googlemail.com>
Date
Apr 18, 2012, 21:07 UTC
Message-ID
<1334783245-8733-1-git-send-email-ralf.thielow@googlemail.com>

Remove an additional blank line between the headline and the list of conflicted files after doing a recursive merge.

Signed-off-by: Ralf Thielow <ralf.thielow@googlemail.com>
---
Normally, the list of conflicted files come directly after
the headline like this
    Conflicts:
        folder/file
	...
Without this patch it would looks like this:
    Conflicts:
        folder/file
	...
 sequencer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sequencer.c b/sequencer.c
index a37846a..f6e44b8 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -234,7 +234,7 @@ static int do_recursive_merge(struct commit *base, struct commit *next,
 
 	if (!clean) {
 		int i;
-		strbuf_addstr(msgbuf, "\nConflicts:\n\n");
+		strbuf_addstr(msgbuf, "\nConflicts:\n");
 		for (i = 0; i < active_nr;) {
 			struct cache_entry *ce = active_cache[i++];
 			if (ce_stage(ce)) {
-- 
1.7.10.170.gac579
Next: Junio C Hamano
Message 1 of 2 in “sequencer: remove additional blank line”
  1. sequencer: remove additional blank lineRalf Thielow, Apr 18, 2012
  2. Junio C HamanoApr 19, 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.