From: Marco Costalba <mcostalba@yahoo.it>
To: junkio@cox.net
Cc: git@vger.kernel.org
Subject: Fix git-mailinfo to understand empty commit messages
Date: Fri, 19 Aug 2005 00:59:41 -0700 (PDT) [thread overview]
Message-ID: <20050819075941.89094.qmail@web26308.mail.ukl.yahoo.com> (raw)
In case of empty messages git-mailinfo ignores the "---"
line adding dirty stuff in commit message otherwise empty
Signed-off-by: Marco Costalba <mcostalba@yahoo.it>
---
tools/mailinfo.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
1ebfddf05e4655811157028091d03dfce39cc4f0
diff --git a/tools/mailinfo.c b/tools/mailinfo.c
--- a/tools/mailinfo.c
+++ b/tools/mailinfo.c
@@ -273,6 +273,12 @@ int main(int argc, char ** argv)
}
while (1) {
int len = read_one_header_line(line, sizeof(line), stdin);
+ /* Check for empty messages */
+ if (!memcmp("---", line, 3)) {
+ line[len] = '\n';
+ handle_rest();
+ break;
+ }
if (!len) {
handle_body();
break;
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
reply other threads:[~2005-08-19 7:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050819075941.89094.qmail@web26308.mail.ukl.yahoo.com \
--to=mcostalba@yahoo.it \
--cc=git@vger.kernel.org \
--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