summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 48949a1)
raw | patch | inline | side by side (parent: 48949a1)
author | Linus Torvalds <torvalds@linux-foundation.org> | |
Tue, 15 Apr 2008 18:01:36 +0000 (11:01 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Apr 2008 06:53:26 +0000 (23:53 -0700) |
"git log" and friends normally skip the initial empty lines when showing
one-line summary of a commit, but merge summary didn't.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
----
builtin-fmt-merge-msg.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
one-line summary of a commit, but merge summary didn't.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
----
builtin-fmt-merge-msg.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fmt-merge-msg.c | patch | blob | history |
index 6163bd4975e3e361e36ffc89ea4c91d0edd02949..03c2bc33ebdc47c9f5d79f07aae833c3720a077d 100644 (file)
--- a/builtin-fmt-merge-msg.c
+++ b/builtin-fmt-merge-msg.c
continue;
bol = strstr(commit->buffer, "\n\n");
+ if (bol) {
+ unsigned char c;
+ do {
+ c = *++bol;
+ } while (isspace(c));
+ if (!c)
+ bol = NULL;
+ }
+
if (!bol) {
append_to_list(&subjects, xstrdup(sha1_to_hex(
commit->object.sha1)),
continue;
}
- bol += 2;
eol = strchr(bol, '\n');
if (eol) {
oneline = xmemdupz(bol, eol - bol);