diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-07-25 23:41:14 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-07-27 10:06:15 -0400 |
commit | b216f8311a3e4eb4bf637ec11f40fdd0c65585a0 (patch) | |
tree | 5fd1e727ec521e51652d6c973b4e8be2e9f4995d /requirements.txt | |
parent | 8823118dc9c378f632bafe5ffe1c3283eddc0a91 (diff) | |
download | b4-b216f8311a3e4eb4bf637ec11f40fdd0c65585a0.tar.gz |
Fix basement detection for empty commit message bodies
The get_body_parts() method added in ba6c790 (Parse body parts into
usual chunks, 2020-04-27) splits the commit message body on "\n---\n"
and takes the second half as the "basement" of the patch. The body is
stripped of flanking new lines, though, so a delimiter beginning with
a new line isn't appropriate for commit messages without a message
body. Make the starting new line optional.
Note that this doesn't matter in the end in terms of the final applied
patch. Before 31f33fd (Fix body part parsing when '---' is not used,
2020-06-08), the expected patch output was produced despite the diff
lines being processed as the message body. After that commit, the
information following the triple dash is a bit off, but it doesn't
matter because git discards it anyway.
Signed-off-by: Kyle Meyer <kyle@kyleam.com>
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'requirements.txt')
0 files changed, 0 insertions, 0 deletions