All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Wu <lekensteyn@gmail.com>
To: git@vger.kernel.org
Subject: [BUG] `git branch --contains ID name` creates branch "name"
Date: Wed, 30 Jan 2013 19:57:03 +0100	[thread overview]
Message-ID: <679787987.uZRbjA7AMj@al> (raw)

Hi,

I was trying to check whether a certain branch contained a commit and ran:

     git branch --contains ddc150f7a33ae0c9cb16eaac3641abc00f56316f master

This resulted in:

    fatal: A branch named 'master' already exists.
When "name" does not exist, this command creates a branch. I expect this 
command to search the mentioned branch, not trying to create it. The manual 
page of git-branch(1) does not mention such special behavior either.

Git version 1.8.1.2

Regards,
Peter

             reply	other threads:[~2013-01-30 18:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-30 18:57 Peter Wu [this message]
2013-01-31  6:43 ` [PATCH 0/2] improve "git branch --contains=<commit> <pattern>" Jeff King
2013-01-31  6:45   ` [PATCH 1/2] docs: clarify git-branch --list behavior Jeff King
2013-02-01  0:20     ` Eric Sunshine
2013-02-01  0:37       ` Junio C Hamano
2013-02-01  5:06         ` Jeff King
2013-02-01  5:42           ` Junio C Hamano
2013-01-31  6:46   ` [PATCH 2/2] branch: let branch filters imply --list Jeff King
2013-01-31 16:13     ` Peter Wu
2013-01-31 17:02       ` Junio C Hamano
2013-01-31 15:53   ` [PATCH 0/2] improve "git branch --contains=<commit> <pattern>" 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=679787987.uZRbjA7AMj@al \
    --to=lekensteyn@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.