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

Re: Re : 2 questions on git-send-email usage

From
FBFranck Bui-Huu <vagabon.xyz@gmail.com>
Date
Jul 11, 2006, 10:08 UTC
Message-ID
<44B37893.5090501@innova-card.com>
In-Reply-To
<20060711084635.81393.qmail@web25809.mail.ukl.yahoo.com>
moreau francis wrote:
Show 7 quoted lines
> 2 RETs is missing. One after the Subject line and the other before the 
> Signed-off-by line. If I add the first missing RET, all works fine.  I guess
> it's missing because of git-cherry-pick command. But I don't understand
> why the last RET is missing
> 
> Can anybody tell me why ?
> 
Maybe that patch does what you want.
-- >8 --
Subject: [PATCH] Add a newline before appending "Signed-off-by:"
It looks nicer.
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
---
 log-tree.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/log-tree.c b/log-tree.c
index ebb49f2..2551a3f 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -19,7 +19,7 @@ static int append_signoff(char *buf, int
 	char *cp = buf;
 
 	/* Do we have enough space to add it? */
-	if (buf_sz - at <= strlen(signed_off_by) + signoff_len + 2)
+	if (buf_sz - at <= strlen(signed_off_by) + signoff_len + 3)
 		return at;
 
 	/* First see if we already have the sign-off by the signer */
@@ -34,6 +34,7 @@ static int append_signoff(char *buf, int
 			return at; /* we already have him */
 	}
 
+	buf[at++] = '\n';
 	strcpy(buf + at, signed_off_by);
 	at += strlen(signed_off_by);
 	strcpy(buf + at, signoff);
-- 
1.4.1.g35c6-dirty
Previous: moreau francisNext: Junio C Hamano
Message 2 of 10 in “Re : 2 questions on git-send-email usage”
  1. moreau francisJul 11, 2006
  2. Franck Bui-HuuJul 11, 2006
  3. Junio C HamanoJul 11, 2006
  4. Franck Bui-HuuJul 12, 2006
  5. Linus TorvaldsJul 12, 2006
  6. Junio C HamanoJul 12, 2006
  7. Junio C HamanoJul 12, 2006
  8. Linus TorvaldsJul 12, 2006
  9. Junio C HamanoJul 13, 2006
  10. Linus TorvaldsJul 13, 2006

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.