]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jc/checkout-detach-wo-tracking-report'
authorJunio C Hamano <gitster@pobox.com>
Fri, 12 Apr 2024 18:31:39 +0000 (11:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Apr 2024 18:31:39 +0000 (11:31 -0700)
"git checkout/switch --detach foo", after switching to the detached
HEAD state, gave the tracking information for the 'foo' branch,
which was pointless.

Tested-by: M Hickford <mirth.hickford@gmail.com>
cf. <CAGJzqsmE9FDEBn=u3ge4LA3ha4fDbm4OWiuUbMaztwjELBd7ug@mail.gmail.com>

* jc/checkout-detach-wo-tracking-report:
  checkout: omit "tracking" information on a detached HEAD

1  2 
builtin/checkout.c

Simple merge