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

feature request: consider picked commits in "branch --contains"

From
Ralf Thielow <ralf.thielow@gmail.com>
Date
Nov 29, 2013, 17:45 UTC
Message-ID
<CAN0XMOL60kX4TkPkop3wA1p5dgLMh0i7_=5mB1Gwwg620QRedA@mail.gmail.com>
Hi,

there are development workflows where a feature or fix is by definition implemented in the dev branch and perhaps picked into a stable/rc branch. A question often being asked in such a workflow is "Is this fix in this stable branch?". Usually I would call "git branch -r --contains $commit" to figure this out, but this command does not work in such workflows because it's a different commit since it was picked. git-log knows the --cherry-pick option to identify commits with identical changes. Wouldn't it be nice to say "git branch --cherry-pick --contains $commit" to see branches containing a commit even if the commit was picked?!

Ralf
Message 1 of 1 in “feature request: consider picked commits in "branch --contains"”
  1. Ralf ThielowNov 29, 2013

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.