Re: checkout @{-1} bug/oddity
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Apr 19, 2009, 20:36 UTC
- Message-ID
- <200904192236.32554.trast@student.ethz.ch>
- In-Reply-To
- <20090419153740.GA12431@chistera.yi.org>
Adeodato Simó wrote:
Show 8 quoted lines
> | % g co bar
> | Already on 'bar'
> |
> | % g co -
> | Already on 'bar'
>
> In my opinion the last command should switch to master, as in, switching
> to the current branch should not lose the @{-1} history.This is by analogy with 'cd'. Try 'cd .; cd -' in the shell.
See
http://article.gmane.org/gmane.comp.version-control.git/106583
for the original mention; I don't have the time to re-read the entire thread, but IIRC it was not discussed again.
--
Thomas Rast
trast@{inf,student}.ethz.ch