git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Finding all branches(remote and local) include given commit?
@ 2012-05-12 11:42 Yi, EungJun
  2012-05-12 12:07 ` Carlos Martín Nieto
  0 siblings, 1 reply; 6+ messages in thread
From: Yi, EungJun @ 2012-05-12 11:42 UTC (permalink / raw)
  To: git

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.

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

* Re: Finding all branches(remote and local) include given commit?
  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
  2012-05-12 12:25   ` Yi, EungJun
  0 siblings, 1 reply; 6+ messages in thread
From: Carlos Martín Nieto @ 2012-05-12 12:07 UTC (permalink / raw)
  To: semtlenori; +Cc: git

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

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

* Re: Finding all branches(remote and local) include given commit?
  2012-05-12 12:07 ` Carlos Martín Nieto
@ 2012-05-12 12:25   ` Yi, EungJun
  2012-05-12 12:28     ` Yi, EungJun
  2012-05-12 12:48     ` Carlos Martín Nieto
  0 siblings, 2 replies; 6+ messages in thread
From: Yi, EungJun @ 2012-05-12 12:25 UTC (permalink / raw)
  To: Carlos Martín Nieto; +Cc: git

Wow, I should do like this:

$ git branch -a --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/origin/next
  remotes/origin/pu

git-branch has '-a' but not '-all', and git-remote has '--all' but not '-a'.

This is a bit confusing for me. Why don't the two commands have the
option under the same name?


2012/5/12 Carlos Martín Nieto <cmn@elego.de>:
> 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
>

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

* Re: Finding all branches(remote and local) include given commit?
  2012-05-12 12:25   ` Yi, EungJun
@ 2012-05-12 12:28     ` Yi, EungJun
  2012-05-12 12:48     ` Carlos Martín Nieto
  1 sibling, 0 replies; 6+ messages in thread
From: Yi, EungJun @ 2012-05-12 12:28 UTC (permalink / raw)
  To: Carlos Martín Nieto; +Cc: git

Oops, it's just my mistake. git-remote also does not have '--all' option.

2012/5/12 Yi, EungJun <semtlenori@gmail.com>:
> Wow, I should do like this:
>
> $ git branch -a --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f
> * master
>  remotes/origin/HEAD -> origin/master
>  remotes/origin/master
>  remotes/origin/next
>  remotes/origin/pu
>
> git-branch has '-a' but not '-all', and git-remote has '--all' but not '-a'.
>
> This is a bit confusing for me. Why don't the two commands have the
> option under the same name?
>
>
> 2012/5/12 Carlos Martín Nieto <cmn@elego.de>:
>> 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
>>

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

* Re: Finding all branches(remote and local) include given commit?
  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
  1 sibling, 1 reply; 6+ messages in thread
From: Carlos Martín Nieto @ 2012-05-12 12:48 UTC (permalink / raw)
  To: semtlenori; +Cc: git

On Sat, 2012-05-12 at 21:25 +0900, Yi, EungJun wrote:
> Wow, I should do like this:
> 
> $ git branch -a --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f
> * master
>   remotes/origin/HEAD -> origin/master
>   remotes/origin/master
>   remotes/origin/next
>   remotes/origin/pu
> 
> git-branch has '-a' but not '-all', and git-remote has '--all' but not '-a'.

The branch command has had long-form since 1.7.8

> 
> This is a bit confusing for me. Why don't the two commands have the
> option under the same name?
> 
> 
> 2012/5/12 Carlos Martín Nieto <cmn@elego.de>:
> > 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
> >
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

* Re: Finding all branches(remote and local) include given commit?
  2012-05-12 12:48     ` Carlos Martín Nieto
@ 2012-05-12 12:52       ` Yi, EungJun
  0 siblings, 0 replies; 6+ messages in thread
From: Yi, EungJun @ 2012-05-12 12:52 UTC (permalink / raw)
  To: Carlos Martín Nieto; +Cc: git

> The branch command has had long-form since 1.7.8

That sounds good to me! Thanks for letting me know.

2012/5/12 Carlos Martín Nieto <cmn@elego.de>:
> On Sat, 2012-05-12 at 21:25 +0900, Yi, EungJun wrote:
>> Wow, I should do like this:
>>
>> $ git branch -a --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f
>> * master
>>   remotes/origin/HEAD -> origin/master
>>   remotes/origin/master
>>   remotes/origin/next
>>   remotes/origin/pu
>>
>> git-branch has '-a' but not '-all', and git-remote has '--all' but not '-a'.
>
> The branch command has had long-form since 1.7.8
>
>>
>> This is a bit confusing for me. Why don't the two commands have the
>> option under the same name?
>>
>>
>> 2012/5/12 Carlos Martín Nieto <cmn@elego.de>:
>> > 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
>> >
>> --
>> To unsubscribe from this list: send the line "unsubscribe git" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
>
>

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

end of thread, other threads:[~2012-05-12 12:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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