From: Junio C Hamano Date: Thu, 27 Aug 2026 17:32:44 GMT Subject: Re: [PATCH v10 0/4] worktree add: improve message for ambiguous remote branch name Message-ID: In-Reply-To: "Yoichi NAKAYAMA via GitGitGadget" writes: > 'git worktree add ../foo-dir bar-topic' fails to dwim when there are > multiple remote branches with name `bar-topic'. But it doesn't display > meaningful message as 'git checkout bar-topic' does under the same > situation. > > We improve this by adding advice and modify the error message for worktree > add. > > By Junio's suggestion, we include matched remote names in the advice. It is > applied to checkout, too. > > We also fix the behavior of --guess-remote when there are multiple matches. > > Changes from the previous patch: > > * [1/4] fix the function name and add detailed commit message > * [2/4] change type of tracking_name_data.remote_names This iteration looks good to me. Let's mark it for 'next' unless we hear other comments in a few days. Thanks.