summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorKaartic Sivaraam <kaartic.sivaraam@gmail.com>2017-11-27 17:28:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-11-28 02:33:12 (GMT)
commit75ce14957507bc310ad118df08c4a85fd9cedc0d (patch)
treef0137d3aad019a1764b7134d6b4c9170f55dce40 /daemon.c
parent9752ad0bb79f680bca48db7adc45338b298304b0 (diff)
downloadgit-75ce14957507bc310ad118df08c4a85fd9cedc0d.zip
git-75ce14957507bc310ad118df08c4a85fd9cedc0d.tar.gz
git-75ce14957507bc310ad118df08c4a85fd9cedc0d.tar.bz2
Doc/checkout: checking out using @{-N} can lead to detached state
@{-N} is a syntax for the N-th last "checkout" and not the N-th last "branch". Therefore, in some cases using `git checkout @{-$N}` DOES lead to a "detached HEAD" state. This can also be ensured by the commit message of 75d6e552a (Documentation: @{-N} can refer to a commit, 2014-01-19) which clearly specifies how @{-N} can be used to refer not only to a branch but also to a commit. Correct the misleading sentence which states that @{-N} doesn't detach HEAD. Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'daemon.c')
0 files changed, 0 insertions, 0 deletions