Re: [PATCH v4 3/3] branch: rename orphan branches in any worktree
- From
- Jonathan Tan <jonathantanmy@google.com>
- Date
- Feb 27, 2023, 19:41 UTC
- Message-ID
- <20230227194116.2417165-1-jonathantanmy@google.com>
- In-Reply-To
- <3d567892-bdd0-9ad9-a30e-1a67e7face11@gmail.com>
Rubén Justo <rjusto@gmail.com> writes:
Show 9 quoted lines
> @@ -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?