* Fix git-mailinfo to understand empty commit messages
@ 2005-08-19 7:59 Marco Costalba
0 siblings, 0 replies; only message in thread
From: Marco Costalba @ 2005-08-19 7:59 UTC (permalink / raw)
To: junkio; +Cc: git
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-19 7:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-19 7:59 Fix git-mailinfo to understand empty commit messages Marco Costalba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox