]> git.99rst.org Git - git.git/commitdiff
replay: improve code comment and die message
authorKristoffer Haugsbakk <redacted>
Mon, 5 Jan 2026 19:53:20 +0000 (20:53 +0100)
committerJunio C Hamano <redacted>
Mon, 5 Jan 2026 22:30:16 +0000 (07:30 +0900)
Suggested-by: Elijah Newren <redacted>
Signed-off-by: Kristoffer Haugsbakk <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/replay.c

index 1899ccc7cc3ff53eac1afcf07ab9f4f5bed991f2..402db44af2b38fa91a717bf85534ca95e1f696fe 100644 (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!"));
 
git clone https://git.99rst.org/PROJECT