From: Thomas Rast Date: Sun, 19 Apr 2009 20:36:29 GMT Subject: Re: checkout @{-1} bug/oddity Message-ID: <200904192236.32554.trast@student.ethz.ch> In-Reply-To: <20090419153740.GA12431@chistera.yi.org> Adeodato Simó wrote: > | % 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