Thread (44 messages) 44 messages, 3 authors, 2d ago

Re: [PATCH v3 5/5] builtin/refs: add "rename" subcommand

From: Patrick Steinhardt <hidden>
Date: 2026-07-06 07:13:10

On Fri, Jul 03, 2026 at 04:31:46PM +0200, Toon Claes wrote:
Patrick Steinhardt [off-list ref] writes:
quoted
diff --git a/Documentation/git-refs.adoc b/Documentation/git-refs.adoc
index e6a3528349..ce278c59bf 100644
--- a/Documentation/git-refs.adoc
+++ b/Documentation/git-refs.adoc
@@ -23,6 +23,7 @@ git refs optimize [--all] [--no-prune] [--auto] [--include <pattern>] [--exclude
 git refs create [--message=<reason>] [--no-deref] [--create-reflog] <ref> <new-value>
 git refs delete [--message=<reason>] [--no-deref] <ref> [<old-value>]
 git refs update [--message=<reason>] [--no-deref] [--create-reflog] <ref> <new-value> [<old-value>]
+git refs rename [--message=<reason>] <old-ref> <new-ref>
So symrefs cannot be renamed with this command?
Indeed, we don't support renaming symbolic references at all. This is a
limitation of our backends, even though it's not necessariliy a sensible
one.

Patrick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help