summaryrefslogtreecommitdiff
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorYoichi NAKAYAMA <yoichi.nakayama@gmail.com>2026-08-27 14:41:55 +0000
committerJunio C Hamano <gitster@pobox.com>2026-08-27 10:29:43 -0700
commit05cf4ceb5bc28580ef30cb45c8bbd8b447431cf4 (patch)
treece95d7be48d4917cd9e5f68e28d3f9490e6c6f12 /contrib/persistent-https
parent1af4c26d6972ebf85633e56e67e28868b43f22be (diff)
checkout: improve message for ambiguous remote branch name
When the user runs 'git checkout bar-topic' without specifying a remote, and there is no local branch named bar-topic, we try to guess which remote branch bar-topic refers to, then create a new branch named bar-topic that tracks the remote branch. If multiple remotes have a branch named bar-topic, we cannot determine a single remote. To make it easier to resolve the ambiguity, provide the names of the matching remotes for the specified branch name. To achieve that, add an optional feature to the `unique_tracking_name()` function that allows the matching remote names to be exposed to the caller. Signed-off-by: Yoichi NAKAYAMA <yoichi.nakayama@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions