git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Rast <trast@student.ethz.ch>
To: "Adeodato Simó" <dato@net.com.org.es>
Cc: git@vger.kernel.org
Subject: Re: checkout @{-1} bug/oddity
Date: Sun, 19 Apr 2009 22:36:29 +0200	[thread overview]
Message-ID: <200904192236.32554.trast@student.ethz.ch> (raw)
In-Reply-To: <20090419153740.GA12431@chistera.yi.org>

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

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

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-04-19 20:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-19 15:37 checkout @{-1} bug/oddity Adeodato Simó
2009-04-19 20:36 ` Thomas Rast [this message]
2009-04-20  8:16   ` Adeodato Simó

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200904192236.32554.trast@student.ethz.ch \
    --to=trast@student.ethz.ch \
    --cc=dato@net.com.org.es \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).