{"thread":{"id":"30520","subject":"Finding all branches(remote and local) include given commit?","startedAt":"2012-05-12T11:42:10Z","lastAt":"2012-05-12T12:52:11Z","messageCount":6,"participants":["Yi, EungJun","Carlos Martín Nieto"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"191447","messageId":"CAFT+Tg9nJZ7E3FB3nA6+_TR=KUqu80128rL8b2DuRGtBavsj-Q@mail.gmail.com","threadId":"30520","inReplyTo":null,"subject":"Finding all branches(remote and local) include given commit?","fromName":"Yi, EungJun","fromEmail":"semtlenori@gmail.com","sentAt":"2012-05-12T11:42:10Z","receivedAt":"2012-05-12T11:42:10Z","isPatch":false,"sender":{"key":"semtlenori@gmail.com","avatar":"https://gravatar.com/avatar/8363435d2badb3450df0dd7c4ec2113f6e1d62c44dd3cf7dfe83c5a389b8a9bf?d=mp&s=160"},"body":"Is there any way to find remote and local branches include given commit?\n\ne.g.\n\n$ git branch --all --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f\n* master\n  remotes/origin/next\n\nAs you know, it does not work and \"git branch --contains\" finds only\nlocal branches.\n"},{"id":"191448","messageId":"1336824434.3002.17.camel@centaur.lab.cmartin.tk","threadId":"30520","inReplyTo":"CAFT+Tg9nJZ7E3FB3nA6+_TR=KUqu80128rL8b2DuRGtBavsj-Q@mail.gmail.com","subject":"Re: Finding all branches(remote and local) include given commit?","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2012-05-12T12:07:14Z","receivedAt":"2012-05-12T12:07:14Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"On Sat, 2012-05-12 at 20:42 +0900, Yi, EungJun wrote:\n> Is there any way to find remote and local branches include given commit?\n> \n> e.g.\n> \n> $ git branch --all --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f\n> * master\n>   remotes/origin/next\n> \n> As you know, it does not work and \"git branch --contains\" finds only\n> local branches.\n\nWorks For Me. What version are you trying it with? Are you sure that\nremote-tracking branches do contain that commit?\n\n>From a quick look through the log and release notes, it was never\nmentioned as a fix. The log contains 3f7701a4 from 2007 which fixes 'git\ndescribe --all --contains' which, though unlikely, might be related.\nThis commit was however part of release 1.5.4, which makes it unlikely\nyou'd be using something older.\n\n   cmn\n"},{"id":"191451","messageId":"CAFT+Tg-cYCatcaP3fR7X7+GnpazUb3ys96A5AP6HTjvD_=+UyQ@mail.gmail.com","threadId":"30520","inReplyTo":"1336824434.3002.17.camel@centaur.lab.cmartin.tk","subject":"Re: Finding all branches(remote and local) include given commit?","fromName":"Yi, EungJun","fromEmail":"semtlenori@gmail.com","sentAt":"2012-05-12T12:25:44Z","receivedAt":"2012-05-12T12:25:44Z","isPatch":false,"sender":{"key":"semtlenori@gmail.com","avatar":"https://gravatar.com/avatar/8363435d2badb3450df0dd7c4ec2113f6e1d62c44dd3cf7dfe83c5a389b8a9bf?d=mp&s=160"},"body":"Wow, I should do like this:\n\n$ git branch -a --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f\n* master\n  remotes/origin/HEAD -> origin/master\n  remotes/origin/master\n  remotes/origin/next\n  remotes/origin/pu\n\ngit-branch has '-a' but not '-all', and git-remote has '--all' but not '-a'.\n\nThis is a bit confusing for me. Why don't the two commands have the\noption under the same name?\n\n\n2012/5/12 Carlos Martín Nieto <cmn@elego.de>:\n> On Sat, 2012-05-12 at 20:42 +0900, Yi, EungJun wrote:\n>> Is there any way to find remote and local branches include given commit?\n>>\n>> e.g.\n>>\n>> $ git branch --all --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f\n>> * master\n>>   remotes/origin/next\n>>\n>> As you know, it does not work and \"git branch --contains\" finds only\n>> local branches.\n>\n> Works For Me. What version are you trying it with? Are you sure that\n> remote-tracking branches do contain that commit?\n>\n> From a quick look through the log and release notes, it was never\n> mentioned as a fix. The log contains 3f7701a4 from 2007 which fixes 'git\n> describe --all --contains' which, though unlikely, might be related.\n> This commit was however part of release 1.5.4, which makes it unlikely\n> you'd be using something older.\n>\n>   cmn\n>\n"},{"id":"191452","messageId":"CAFT+Tg81f-fa-hf0jJ-y0TP99WbUGxVRAoxDyALd33cgaPrboQ@mail.gmail.com","threadId":"30520","inReplyTo":"CAFT+Tg-cYCatcaP3fR7X7+GnpazUb3ys96A5AP6HTjvD_=+UyQ@mail.gmail.com","subject":"Re: Finding all branches(remote and local) include given commit?","fromName":"Yi, EungJun","fromEmail":"semtlenori@gmail.com","sentAt":"2012-05-12T12:28:48Z","receivedAt":"2012-05-12T12:28:48Z","isPatch":false,"sender":{"key":"semtlenori@gmail.com","avatar":"https://gravatar.com/avatar/8363435d2badb3450df0dd7c4ec2113f6e1d62c44dd3cf7dfe83c5a389b8a9bf?d=mp&s=160"},"body":"Oops, it's just my mistake. git-remote also does not have '--all' option.\n\n2012/5/12 Yi, EungJun <semtlenori@gmail.com>:\n> Wow, I should do like this:\n>\n> $ git branch -a --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f\n> * master\n>  remotes/origin/HEAD -> origin/master\n>  remotes/origin/master\n>  remotes/origin/next\n>  remotes/origin/pu\n>\n> git-branch has '-a' but not '-all', and git-remote has '--all' but not '-a'.\n>\n> This is a bit confusing for me. Why don't the two commands have the\n> option under the same name?\n>\n>\n> 2012/5/12 Carlos Martín Nieto <cmn@elego.de>:\n>> On Sat, 2012-05-12 at 20:42 +0900, Yi, EungJun wrote:\n>>> Is there any way to find remote and local branches include given commit?\n>>>\n>>> e.g.\n>>>\n>>> $ git branch --all --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f\n>>> * master\n>>>   remotes/origin/next\n>>>\n>>> As you know, it does not work and \"git branch --contains\" finds only\n>>> local branches.\n>>\n>> Works For Me. What version are you trying it with? Are you sure that\n>> remote-tracking branches do contain that commit?\n>>\n>> From a quick look through the log and release notes, it was never\n>> mentioned as a fix. The log contains 3f7701a4 from 2007 which fixes 'git\n>> describe --all --contains' which, though unlikely, might be related.\n>> This commit was however part of release 1.5.4, which makes it unlikely\n>> you'd be using something older.\n>>\n>>   cmn\n>>\n"},{"id":"191453","messageId":"1336826919.3002.18.camel@centaur.lab.cmartin.tk","threadId":"30520","inReplyTo":"CAFT+Tg-cYCatcaP3fR7X7+GnpazUb3ys96A5AP6HTjvD_=+UyQ@mail.gmail.com","subject":"Re: Finding all branches(remote and local) include given commit?","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2012-05-12T12:48:39Z","receivedAt":"2012-05-12T12:48:39Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"On Sat, 2012-05-12 at 21:25 +0900, Yi, EungJun wrote:\n> Wow, I should do like this:\n> \n> $ git branch -a --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f\n> * master\n>   remotes/origin/HEAD -> origin/master\n>   remotes/origin/master\n>   remotes/origin/next\n>   remotes/origin/pu\n> \n> git-branch has '-a' but not '-all', and git-remote has '--all' but not '-a'.\n\nThe branch command has had long-form since 1.7.8\n\n> \n> This is a bit confusing for me. Why don't the two commands have the\n> option under the same name?\n> \n> \n> 2012/5/12 Carlos Martín Nieto <cmn@elego.de>:\n> > On Sat, 2012-05-12 at 20:42 +0900, Yi, EungJun wrote:\n> >> Is there any way to find remote and local branches include given commit?\n> >>\n> >> e.g.\n> >>\n> >> $ git branch --all --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f\n> >> * master\n> >>   remotes/origin/next\n> >>\n> >> As you know, it does not work and \"git branch --contains\" finds only\n> >> local branches.\n> >\n> > Works For Me. What version are you trying it with? Are you sure that\n> > remote-tracking branches do contain that commit?\n> >\n> > From a quick look through the log and release notes, it was never\n> > mentioned as a fix. The log contains 3f7701a4 from 2007 which fixes 'git\n> > describe --all --contains' which, though unlikely, might be related.\n> > This commit was however part of release 1.5.4, which makes it unlikely\n> > you'd be using something older.\n> >\n> >   cmn\n> >\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n> \n"},{"id":"191454","messageId":"CAFT+Tg9rnYAkEVC+kyf=rfXgVLvzSSa+fzqy9ocEZ+rRbA82uw@mail.gmail.com","threadId":"30520","inReplyTo":"1336826919.3002.18.camel@centaur.lab.cmartin.tk","subject":"Re: Finding all branches(remote and local) include given commit?","fromName":"Yi, EungJun","fromEmail":"semtlenori@gmail.com","sentAt":"2012-05-12T12:52:11Z","receivedAt":"2012-05-12T12:52:11Z","isPatch":false,"sender":{"key":"semtlenori@gmail.com","avatar":"https://gravatar.com/avatar/8363435d2badb3450df0dd7c4ec2113f6e1d62c44dd3cf7dfe83c5a389b8a9bf?d=mp&s=160"},"body":"> The branch command has had long-form since 1.7.8\n\nThat sounds good to me! Thanks for letting me know.\n\n2012/5/12 Carlos Martín Nieto <cmn@elego.de>:\n> On Sat, 2012-05-12 at 21:25 +0900, Yi, EungJun wrote:\n>> Wow, I should do like this:\n>>\n>> $ git branch -a --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f\n>> * master\n>>   remotes/origin/HEAD -> origin/master\n>>   remotes/origin/master\n>>   remotes/origin/next\n>>   remotes/origin/pu\n>>\n>> git-branch has '-a' but not '-all', and git-remote has '--all' but not '-a'.\n>\n> The branch command has had long-form since 1.7.8\n>\n>>\n>> This is a bit confusing for me. Why don't the two commands have the\n>> option under the same name?\n>>\n>>\n>> 2012/5/12 Carlos Martín Nieto <cmn@elego.de>:\n>> > On Sat, 2012-05-12 at 20:42 +0900, Yi, EungJun wrote:\n>> >> Is there any way to find remote and local branches include given commit?\n>> >>\n>> >> e.g.\n>> >>\n>> >> $ git branch --all --contains 499e7b31509cfbb59dcb2a046f8e2fd1a3e73d6f\n>> >> * master\n>> >>   remotes/origin/next\n>> >>\n>> >> As you know, it does not work and \"git branch --contains\" finds only\n>> >> local branches.\n>> >\n>> > Works For Me. What version are you trying it with? Are you sure that\n>> > remote-tracking branches do contain that commit?\n>> >\n>> > From a quick look through the log and release notes, it was never\n>> > mentioned as a fix. The log contains 3f7701a4 from 2007 which fixes 'git\n>> > describe --all --contains' which, though unlikely, might be related.\n>> > This commit was however part of release 1.5.4, which makes it unlikely\n>> > you'd be using something older.\n>> >\n>> >   cmn\n>> >\n>> --\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>> the body of a message to majordomo@vger.kernel.org\n>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>>\n>\n>\n>\n"}]}