Skip to content

Commit 6262fe9

Browse files
chriscoolgitster
authored andcommitted
trailer: retitle a test and correct an in-comment message
Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dc5d553 commit 6262fe9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

t/t7513-interpret-trailers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ test_expect_success 'with config option on the command line' '
9999
test_cmp expected actual
100100
'
101101

102-
test_expect_success 'with message that contains only a title' '
102+
test_expect_success 'with only a title in the message' '
103103
cat >expected <<-\EOF &&
104104
area: change
105105

trailer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,8 @@ static int find_trailer_start(struct strbuf **lines, int count)
748748
/*
749749
* Get the start of the trailers by looking starting from the end
750750
* for a line with only spaces before lines with one separator.
751-
* The start cannot be the first line.
751+
* The first line must not be analyzed as the others as it
752+
* should be either the message title or a blank line.
752753
*/
753754
for (start = count - 1; start >= 1; start--) {
754755
if (lines[start]->buf[0] == comment_line_char)

0 commit comments

Comments
 (0)