git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jay Soffian <jaysoffian@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [ANNOUNCE] GIT 1.6.2-rc1
Date: Mon, 16 Feb 2009 12:02:27 -0500	[thread overview]
Message-ID: <76718490902160902q50c0d730j4f18664455626b93@mail.gmail.com> (raw)
In-Reply-To: <7v8wo6bvn9.fsf@gitster.siamese.dyndns.org>

On Mon, Feb 16, 2009 at 4:04 AM, Junio C Hamano <gitster@pobox.com> wrote:
> * @{-1} is a way to refer to the last branch you were on.  This is
>  accepted not only where an object name is expected, but anywhere
>  a branch name is expected and acts as if you typed the branch name.
>  E.g. "git branch --track mybranch @{-1}", "git merge @{-1}", and
>  "git rev-parse --symbolic-full-name @{-1}" would work as expected.

I always find explicit examples clearer, especially since you really
have no idea what the reader expects. Some folks just have
unreasonable expectations. :-)

So,

 master> git checkout next
   next> git branch --track mybranch @{-1}

Creates "mybranch" from master, *not from next*, correct?

Also, the "--track" option is an unnecessary distraction to the
example, isn't it?

j.

  parent reply	other threads:[~2009-02-16 17:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16  9:04 [ANNOUNCE] GIT 1.6.2-rc1 Junio C Hamano
2009-02-16 16:38 ` Matt Kraai
2009-02-16 17:02 ` Jay Soffian [this message]
2009-02-16 21:42   ` Junio C Hamano

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=76718490902160902q50c0d730j4f18664455626b93@mail.gmail.com \
    --to=jaysoffian@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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).