]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'jc/symbolic-ref-no-recurse'
authorJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2022 18:37:28 +0000 (11:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2022 18:37:28 +0000 (11:37 -0700)
commit4a48c7d25f941532befaf3320f95f16d3c62b530
tree8c693852b1f94caa53ab519bc808a17fc9ac2c52
parent6269c46ada8f0b6249ee5b8c5568e5d7c98d0746
parentb77e3bdd978bda6415e819972f962b3b16d22a71
Merge branch 'jc/symbolic-ref-no-recurse'

After checking out a "branch" that is a symbolic-ref that points at
another branch, "git symbolic-ref HEAD" reports the underlying
branch, not the symbolic-ref the user gave checkout as argument.
The command learned the "--no-recurse" option to stop after
dereferencing a symbolic-ref only once.

* jc/symbolic-ref-no-recurse:
  symbolic-ref: teach "--[no-]recurse" option
builtin/symbolic-ref.c
t/t1401-symbolic-ref.sh