From: Jonathan Tan Date: Mon, 27 Feb 2023 19:41:16 GMT Subject: Re: [PATCH v4 3/3] branch: rename orphan branches in any worktree Message-ID: <20230227194116.2417165-1-jonathantanmy@google.com> In-Reply-To: <3d567892-bdd0-9ad9-a30e-1a67e7face11@gmail.com> Rubén Justo writes: > @@ -583,7 +587,7 @@ static void copy_or_rename_branch(const char *oldname, const char *newname, int > interpreted_oldname); > } > > - if (!copy) { > + if (!copy && (oldref_usage & IS_HEAD)) { > /* > * Update all per-worktree HEADs pointing at the old ref to > * point the new ref. What is the relevance of this change?