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>

Kristoffer Haugsbakk committed Jan 5, 2026 at 20:53 UTC f67f7ddbbd03634318d54b1d1ad7ed8df4a2b292
1 file changed +2 -2
builtin/replay.c
+2 -2
@@ -418,7 +418,7 @@ int cmd_replay(int argc,
418 onto_name, &advance_name,
419 &onto, &update_refs);
420
421 - /* FIXME: Should handle replaying down to root commit */
421 + /* FIXME: Should allow replaying commits with the first as a root commit */
422
423 /* Build reflog message */
424 if (advance_name_opt)
@@ -454,7 +454,7 @@ int cmd_replay(int argc,
454 int hr;
455
456 if (!commit->parents)
457 - die(_("replaying down to root commit is not supported yet!"));
457 + die(_("replaying down from root commit is not supported yet!"));
458 if (commit->parents->next)
459 die(_("replaying merge commits is not supported yet!"));
460