]> Kevux Git Server - rit/commit
replay: do not copy "gpgsign-sha256" header
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Wed, 26 Nov 2025 14:33:37 +0000 (14:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Nov 2025 17:33:52 +0000 (09:33 -0800)
commit9f3a11508719a244fa52d5418bfd29847a272211
treed0df1f7cd96dea5faf8064727f0fb5cbbd6912ee
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed
replay: do not copy "gpgsign-sha256" header

When "git replay" replays a commit it copies the extended headers
across from the original commit. However, if the original commit
was signed, we do not want to copy the header associated with the
signature is it wont be valid for the new commit. The code already
knows to avoid coping the "gpgsig" header but does not know to avoid
copying the "gpgsig-sha256" header.  Add that header to the list of
exclusions to match what "git commit --amend" does.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replay.c