Re: [PATCH v3 5/5] builtin/refs: add "rename" subcommand
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Jul 6, 2026, 07:12 UTC
- Message-ID
- <aktVeqTiHV7c_CIK@pks.im>
- In-Reply-To
- <87o6go2lgt.fsf@emacs.iotcl.com>
On Fri, Jul 03, 2026 at 04:31:46PM +0200, Toon Claes wrote:
Show 12 quoted lines
> Patrick Steinhardt <ps@pks.im> writes: > > 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