git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Adeodato SimóNext: Adeodato Simó
Message 2 of 3 in “checkout @{-1} bug/oddity”
  1. Adeodato SimóApr 19, 2009
  2. Thomas RastApr 19, 2009
  3. Adeodato SimóApr 20, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.