From: Franck Bui-Huu <vagabon.xyz@gmail.com>
To: moreau francis <francis_moreau2000@yahoo.fr>,
Junio C Hamano <junkio@cox.net>
Cc: jnareb@gmail.com, git@vger.kernel.org
Subject: Re: Re : 2 questions on git-send-email usage
Date: Tue, 11 Jul 2006 12:08:19 +0200 [thread overview]
Message-ID: <44B37893.5090501@innova-card.com> (raw)
In-Reply-To: <20060711084635.81393.qmail@web25809.mail.ukl.yahoo.com>
moreau francis wrote:
> 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
next prev parent reply other threads:[~2006-07-11 10:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 8:46 Re : 2 questions on git-send-email usage moreau francis
2006-07-11 10:08 ` Franck Bui-Huu [this message]
2006-07-11 19:22 ` Junio C Hamano
2006-07-12 7:37 ` Franck Bui-Huu
2006-07-12 15:43 ` Linus Torvalds
2006-07-12 16:19 ` Junio C Hamano
2006-07-12 16:24 ` Junio C Hamano
2006-07-12 16:37 ` Linus Torvalds
2006-07-13 4:34 ` Junio C Hamano
2006-07-13 4:40 ` Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44B37893.5090501@innova-card.com \
--to=vagabon.xyz@gmail.com \
--cc=francis_moreau2000@yahoo.fr \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).