replay: improve code comment and die message

Suggested-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Kristoffer Haugsbakk 2026-01-05 20:53:20 +01:00 committed by Junio C Hamano
parent 3074d08cfa
commit f67f7ddbbd

View File

@ -418,7 +418,7 @@ int cmd_replay(int argc,
onto_name, &advance_name,
&onto, &update_refs);
/* FIXME: Should handle replaying down to root commit */
/* FIXME: Should allow replaying commits with the first as a root commit */
/* Build reflog message */
if (advance_name_opt)
@ -454,7 +454,7 @@ int cmd_replay(int argc,
int hr;
if (!commit->parents)
die(_("replaying down to root commit is not supported yet!"));
die(_("replaying down from root commit is not supported yet!"));
if (commit->parents->next)
die(_("replaying merge commits is not supported yet!"));