author | Thomas Rast <trast@student.ethz.ch> | |
Sat, 17 Jan 2009 16:09:54 +0000 (17:09 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Jan 2009 02:37:02 +0000 (18:37 -0800) | ||
commit | a884d0cb71463c28d0329c593dce1ef9758f6177 | |
tree | c684355d77afba751051ee99463b7824104b7683 | tree | snapshot |
parent | ae5a6c3684c378bc32c1f6ecc0e6dc45300c14c1 | commit | diff |
sha1_name: tweak @{-N} lookup
Have the lookup only look at "interesting" checkouts, meaning those
that tell you "Already on ..." don't count even though they also cause
a reflog entry.
Let interpret_nth_last_branch() return the number of characters
parsed, so that git-checkout can verify that the branch spec was
@{-N}, not @{-1}^2 or something like that. (The latter will be added
later.)
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Have the lookup only look at "interesting" checkouts, meaning those
that tell you "Already on ..." don't count even though they also cause
a reflog entry.
Let interpret_nth_last_branch() return the number of characters
parsed, so that git-checkout can verify that the branch spec was
@{-N}, not @{-1}^2 or something like that. (The latter will be added
later.)
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c | diff | blob | history | |
sha1_name.c | diff | blob | history |