diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-02-09 01:22:09 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-02-09 01:22:09 +0100 |
commit | 541d0d75e781fad5761414d7a5500b8840f3e5bb (patch) | |
tree | efd22786b282e2381297e801cb42be49226a6cf9 /builtin/commit.c | |
parent | Merge branch 'jc/retire-cas-opt-name-constant' into maint-2.43 (diff) | |
parent | trailer: use offsets for trailer_start/trailer_end (diff) | |
download | git-541d0d75e781fad5761414d7a5500b8840f3e5bb.tar.xz git-541d0d75e781fad5761414d7a5500b8840f3e5bb.zip |
Merge branch 'la/trailer-cleanups' into maint-2.43
Code clean-up.
* la/trailer-cleanups:
trailer: use offsets for trailer_start/trailer_end
trailer: find the end of the log message
commit: ignore_non_trailer computes number of bytes to ignore
Diffstat (limited to 'builtin/commit.c')
-rw-r--r-- | builtin/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index 781af2e206..bf71fdaa7c 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -900,7 +900,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix, strbuf_stripspace(&sb, '\0'); if (signoff) - append_signoff(&sb, ignore_non_trailer(sb.buf, sb.len), 0); + append_signoff(&sb, ignored_log_message_bytes(sb.buf, sb.len), 0); if (fwrite(sb.buf, 1, sb.len, s->fp) < sb.len) die_errno(_("could not write commit template")); |