From: Junio C Hamano Date: Wed, 25 Mar 2026 21:22:38 +0000 (-0700) Subject: Merge branch 'sa/replay-revert' into tc/replay-ref X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff071a3af442c691b5a46e200a4c023fc25ae4e3;p=thirdparty%2Fgit.git Merge branch 'sa/replay-revert' into tc/replay-ref * sa/replay-revert: replay: add --revert mode to reverse commit changes sequencer: extract revert message formatting into shared function --- ff071a3af442c691b5a46e200a4c023fc25ae4e3 diff --cc replay.c index a63f6714c4,199066f6b3..d7239d4c83 --- a/replay.c +++ b/replay.c @@@ -11,12 -12,11 +12,17 @@@ #include "strmap.h" #include "tree.h" +/* + * We technically need USE_THE_REPOSITORY_VARIABLE for DEFAULT_ABBREV, but + * do not want to use the_repository. + */ +#define the_repository DO_NOT_USE_THE_REPOSITORY + + enum replay_mode { + REPLAY_MODE_PICK, + REPLAY_MODE_REVERT, + }; + static const char *short_commit_name(struct repository *repo, struct commit *commit) {