]> git.ipfire.org Git - thirdparty/git.git/commitdiff
replay: improve code comment and die message
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Mon, 5 Jan 2026 19:53:20 +0000 (20:53 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Jan 2026 22:30:16 +0000 (07:30 +0900)
Suggested-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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!"));