From: Rubén Justo Date: Tue, 28 Feb 2023 00:23:54 GMT Subject: Re: [PATCH v4 3/3] branch: rename orphan branches in any worktree Message-ID: In-Reply-To: <20230227194116.2417165-1-jonathantanmy@google.com> On 27/2/23 20:41, Jonathan Tan wrote: > 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? > Maybe this change makes more sense in 2/3?