title: Check which branches contain a specific git commit sha using Python dulwich?
body: <p>I would like to do the following command from Python script using dulwich:</p>
  
  <p><code>$ git branch --contains &lt;myCommitSha&gt; | wc -l</code></p>
  
  <p>What I intend is to check if a particular commit (sha) is placed in more than one branches.</p>
  
  <p>Of course I thought that I can execute the above command from Python and parse the output (parse the number of branches), but that's the last resort solution.</p>
  
  <p>Any other ideas/comments? Thanks in advance.</p>