Re: [PATCH v4 3/3] branch: rename orphan branches in any worktree
On 27/2/23 20:41, Jonathan Tan wrote:
Show 13 quoted lines
> Rubén Justo <rjusto@gmail.com> 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?