threads / discuss / 35436

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

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

## tl;dr

One message between Nov 29, 2013 and Nov 29, 2013.

replies: 0people: 1as markdown or json

Ralf Thielow· Nov 29, 2013, 17:45 UTC · lore
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

← back to recent threads