Starting from version 1.7.8, git-branch <http://git-scm.com/docs/git-branch/1.7.8> can take a pattern argument right after the commit to filter the output branches.
$ git branch --contains deadbeef master > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.