]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit.c
Start the 2.46 cycle
[thirdparty/git.git] / commit.c
index 1da10ec916c5e08a542da4bdc3b70518e91f113d..1a479a997c4e470318be6098e03dac11d1fda606 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -1928,7 +1928,8 @@ size_t ignored_log_message_bytes(const char *buf, size_t len)
                else
                        next_line++;
 
-               if (buf[bol] == comment_line_char || buf[bol] == '\n') {
+               if (starts_with_mem(buf + bol, cutoff - bol, comment_line_str) ||
+                   buf[bol] == '\n') {
                        /* is this the first of the run of comments? */
                        if (!boc)
                                boc = bol;