git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Carlos Martín Nieto" <cmn@elego.de>
To: semtlenori@gmail.com
Cc: git@vger.kernel.org
Subject: Re: Finding all branches(remote and local) include given commit?
Date: Sat, 12 May 2012 14:07:14 +0200	[thread overview]
Message-ID: <1336824434.3002.17.camel@centaur.lab.cmartin.tk> (raw)
In-Reply-To: <CAFT+Tg9nJZ7E3FB3nA6+_TR=KUqu80128rL8b2DuRGtBavsj-Q@mail.gmail.com>

On Sat, 2012-05-12 at 20:42 +0900, Yi, EungJun wrote:
> Is there any way to find remote and local branches include given commit?
> 
> e.g.
> 
> $ git branch --all --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f
> * master
>   remotes/origin/next
> 
> As you know, it does not work and "git branch --contains" finds only
> local branches.

Works For Me. What version are you trying it with? Are you sure that
remote-tracking branches do contain that commit?

>From a quick look through the log and release notes, it was never
mentioned as a fix. The log contains 3f7701a4 from 2007 which fixes 'git
describe --all --contains' which, though unlikely, might be related.
This commit was however part of release 1.5.4, which makes it unlikely
you'd be using something older.

   cmn

  reply	other threads:[~2012-05-12 12:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-12 11:42 Finding all branches(remote and local) include given commit? Yi, EungJun
2012-05-12 12:07 ` Carlos Martín Nieto [this message]
2012-05-12 12:25   ` Yi, EungJun
2012-05-12 12:28     ` Yi, EungJun
2012-05-12 12:48     ` Carlos Martín Nieto
2012-05-12 12:52       ` Yi, EungJun

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=1336824434.3002.17.camel@centaur.lab.cmartin.tk \
    --to=cmn@elego.de \
    --cc=git@vger.kernel.org \
    --cc=semtlenori@gmail.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).