Re: [PATCH] docs: checking out using @{-N} can lead to detached state

2017-11-20 Thread Kaartic Sivaraam
On Monday 20 November 2017 07:39 AM, Junio C Hamano wrote: Kaartic Sivaraam writes: After the first paragraph explains what happens during "checkout " and goes from the normal case where is really a branch name to an arbitrary commit (where "detaching" needs to be

Re: [PATCH] docs: checking out using @{-N} can lead to detached state

2017-11-19 Thread Junio C Hamano
Kaartic Sivaraam writes: > The commit message of 75d6e552a (Documentation: @{-N} can refer to > a commit, 2014-01-19) clearly specifies how @{-N} can be used to > refer not only to a branch but also to a commit. IOW, @{-N} is a > syntax for the N-th last "checkout"

[PATCH] docs: checking out using @{-N} can lead to detached state

2017-11-19 Thread Kaartic Sivaraam
The commit message of 75d6e552a (Documentation: @{-N} can refer to a commit, 2014-01-19) clearly specifies how @{-N} can be used to refer not only to a branch but also to a commit. IOW, @{-N} is a syntax for the N-th last "checkout" and not the N-th last "branch" Therefore, in some cases using