Teach fmt-patch about --keep-subject

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Johannes Schindelin
2006-05-05 04:31:29 +02:00
committed by Junio C Hamano
parent 596524b33d
commit 8ac80a5701
2 changed files with 16 additions and 5 deletions

View File

@ -46,8 +46,11 @@ void show_log(struct rev_info *opt, struct log_info *log, const char *sep)
"Subject: [PATCH %d/%d] ",
opt->nr, opt->total);
subject = buffer;
} else
} else if (opt->total == 0)
subject = "Subject: [PATCH] ";
else
subject = "Subject: ";
printf("From %s Thu Apr 7 15:13:13 2005\n",
sha1_to_hex(commit->object.sha1));
} else {