[RFE] option for find branches in a remote repo which contain a certain commit
- From
ryenus <ryenus@gmail.com>
- Date
- Jun 22, 2012, 14:58 UTC
- Message-ID
- <CAKkAvazRfb0kTphLKoRQxSEBZwHfVZeaM0xEbcxEw7Mt5RMg8A@mail.gmail.com>
- In-Reply-To
- <CAKkAvazNqZWk=QRmSFsFL33M6z+nZZ_yyxxbxwAh=fQk5DVt-Q@mail.gmail.com>
Given a certain commit, I want there's a command/option for git to make it search the remote repo (e.g. origin) and tell me the branches there which contain that commit.
So that I can pick the wanted branch and fetch it afterward.
The reason I need this is that there are hundreds of (could be more) branches, but I just need a few of them, and don't want to fetch all other branches.
I guess this could be an option for git-remote, so that with a given remote and commit, it returns a list of branches (or even tags). The list size might default to a number and should be customizable.
Thanks