public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail•com>
To: git@vger•kernel.org
Subject: Re: Teach "git checkout" to use git-show-ref
Date: Sat, 16 Sep 2006 00:11:38 +0200	[thread overview]
Message-ID: <eef8dq$nbc$1@sea.gmane.org> (raw)
In-Reply-To: Pine.LNX.4.64.0609151455150.4388@g5.osdl.org

Linus Torvalds wrote:

> @@ -51,7 +51,7 @@ while [ "$#" != "0" ]; do
>                         fi
>                         new="$rev"
>                         new_name="$arg^0"
> -                       if [ -f "$GIT_DIR/refs/heads/$arg" ]; then
> +                       if git-show-ref --verify --quiet -- "refs/heads/$arg" ]; then
  +                       if git-show-ref --verify --quiet -- "refs/heads/$arg"; then
>                                 branch="$arg"
>                         fi
>                 elif rev=$(git-rev-parse --verify "$arg^{tree}" 2>/dev/null)

There is leftover ] before ; in if.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

  reply	other threads:[~2006-09-15 22:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-15 18:19 Add "git show-ref" builtin command Linus Torvalds
2006-09-15 21:00 ` Junio C Hamano
2006-09-15 21:24   ` Jakub Narebski
2006-09-15 22:54     ` Junio C Hamano
2006-09-15 21:56 ` Teach "git checkout" to use git-show-ref Linus Torvalds
2006-09-15 22:11   ` Jakub Narebski [this message]
2006-09-16  9:33   ` 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='eef8dq$nbc$1@sea.gmane.org' \
    --to=jnareb@gmail$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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