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