Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-01-19 | interpret_nth_last_branch(): avoid traversing the reflog twice | Junio C Hamano | 1 | -0/+44 | |
You can have quite a many reflog entries, but you typically won't recall which branch you were on after switching branches for more than several times. Instead of reading the reflog twice, this reads the branch switching event and keeps as many entries as the user asked from the latest such entries, which is the minimum required to be able to switch back to the branch we were recently on. [jc: improvements from Dscho squashed in] Signed-off-by: Junio C Hamano <gitster@pobox.com> | |||||
2009-01-17 | checkout: implement "-" abbreviation, add docs and tests | Thomas Rast | 1 | -0/+50 | |
Have '-' mean the same as '@{-1}', i.e., the last branch we were on. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com> |