| author | Junio C Hamano <gitster@pobox.com> | |
| Sat, 17 Jan 2009 16:09:53 +0000 (17:09 +0100) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Sun, 18 Jan 2009 02:36:49 +0000 (18:36 -0800) | ||
| commit | ae5a6c3684c378bc32c1f6ecc0e6dc45300c14c1 | |
| tree | 20d6d00faed53b46d0b1382adc4236fff2a96f7e | tree | snapshot |
| parent | 7bbd8d6c139f163ee26b8416cd227408888f31c3 | commit | diff |
checkout: implement "@{-N}" shortcut name for N-th last branch
Implement a shortcut @{-N} for the N-th last branch checked out, that
works by parsing the reflog for the message added by previous
git-checkout invocations. We expand the @{-N} to the branch name, so
that you end up on an attached HEAD on that branch.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Implement a shortcut @{-N} for the N-th last branch checked out, that
works by parsing the reflog for the message added by previous
git-checkout invocations. We expand the @{-N} to the branch name, so
that you end up on an attached HEAD on that branch.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| builtin-checkout.c | diff | blob | history | |
| cache.h | diff | blob | history | |
| sha1_name.c | diff | blob | history |