]> git.ipfire.org Git - thirdparty/git.git/commit
replay: allow callers to control what happens with empty commits
authorPatrick Steinhardt <ps@pks.im>
Mon, 27 Apr 2026 05:53:51 +0000 (07:53 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Apr 2026 13:20:56 +0000 (22:20 +0900)
commit0cf4ad7cf555ac2ed6556a3169d30b2eabb68d41
treee17b8756863a948eb54ee43fd9cbaec20173fd1d
parent94f057755b7941b321fd11fec1b2e3ca5313a4e0
replay: allow callers to control what happens with empty commits

When replaying commits it may happen that some of the commits become
empty relative to their parent. Such commits are for now automatically
dropped by the replay subsystem without much control from the user.

Introduce a new enum that allows the caller to drop, keep or abort in
this case.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
replay.c
replay.h