From: Toon Claes Date: Fri, 03 Jul 2026 14:31:46 GMT Subject: Re: [PATCH v3 5/5] builtin/refs: add "rename" subcommand Message-ID: <87o6go2lgt.fsf@emacs.iotcl.com> In-Reply-To: <20260630-pks-refs-writing-subcommands-v3-5-deb04de1ecef@pks.im> Patrick Steinhardt writes: > Add a "rename" subcommand to git-refs(1) with the syntax: > > $ git refs rename > > It renames together with its reflog to ; even when used > on a local branch ref, the current value and the reflog of the ref are > the only things that are renamed. Document it and redirect casual users > to "git branch -m" if that is what they wanted to do. > > Co-authored-by: Junio C Hamano > Signed-off-by: Patrick Steinhardt > --- > Documentation/git-refs.adoc | 6 ++ > builtin/refs.c | 49 +++++++++++++++++ > t/meson.build | 1 + > t/t1467-refs-rename.sh | 131 ++++++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 187 insertions(+) > > 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 ] [--exclude > git refs create [--message=] [--no-deref] [--create-reflog] > git refs delete [--message=] [--no-deref] [] > git refs update [--message=] [--no-deref] [--create-reflog] [] > +git refs rename [--message=] So symrefs cannot be renamed with this command? -- Cheers, Toon