[PATCH/RFC v4 0/5] N-th last checked out branch
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Jan 17, 2009, 16:09 UTC
- Message-ID
- <1232208597-29249-1-git-send-email-trast@student.ethz.ch>
- In-Reply-To
- <alpine.DEB.1.00.0901171602340.3586@pacific.mpi-cbg.de>
Johannes Schindelin wrote:
Show 17 quoted lines
> > Instead of traversing them twice, we just build a list of branch switches, > pick the one we're interested in, and free the list again. > > Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> > --- > > On Sat, 17 Jan 2009, Thomas Rast wrote: > > > Johannes Schindelin wrote: > > > > > I really have to ask: why did you not work on top of Junio's > > > patch, just adding docs, tests, and checkout -? And then -- maybe -- > > > the string_list... > > Of course, I meant the patch as-is, with Junio as author. But > hey, if he does not care...
*shrug*
For one thing there was no commit message.
I made up a message, split the changes I made into smaller patches, and added a fixed up version of your patch on top, since it had some context that is not in any version I have.
Johannes Schindelin (1): interpret_nth_last_branch(): avoid traversing the reflogs twice
Junio C Hamano (1):
checkout: implement "@{-N}" shortcut name for N-th last branchThomas Rast (3):
sha1_name: tweak @{-N} lookup
sha1_name: support @{-N} syntax in get_sha1()
checkout: implement "-" abbreviation, add docs and testsDocumentation/git-checkout.txt | 4 ++ Documentation/git-rev-parse.txt | 3 + builtin-checkout.c | 15 ++++++- cache.h | 1 + sha1_name.c | 88 +++++++++++++++++++++++++++++++++++++- t/t1505-rev-parse-last.sh | 71 +++++++++++++++++++++++++++++++ t/t2012-checkout-last.sh | 50 ++++++++++++++++++++++ 7 files changed, 227 insertions(+), 5 deletions(-) create mode 100755 t/t1505-rev-parse-last.sh create mode 100755 t/t2012-checkout-last.sh