git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Next: Ævar Arnfjörð Bjarmason
Message 1 of 4 in “[RFE] option for find branches in a remote repo which contain a certain commit”
  1. ryenusJun 22, 2012
  2. Ævar Arnfjörð BjarmasonJun 22, 2012
  3. Junio C HamanoJun 22, 2012
  4. Neal KreitzingerJun 22, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.