git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] `git branch --contains ID name` creates branch "name"
@ 2013-01-30 18:57 Peter Wu
  2013-01-31  6:43 ` [PATCH 0/2] improve "git branch --contains=<commit> <pattern>" Jeff King
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Wu @ 2013-01-30 18:57 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-02-01  5:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-30 18:57 [BUG] `git branch --contains ID name` creates branch "name" Peter Wu
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

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).