Re: [ANNOUNCE] GIT 1.6.2-rc1
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Feb 16, 2009, 17:02 UTC
- Message-ID
- <76718490902160902q50c0d730j4f18664455626b93@mail.gmail.com>
- 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:
Show 5 quoted lines
> * @{-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.