title: How do I get the list of branches not merged into master, ordered by most recent commit?
body: <p>For our buildbot, I want to display the most recently-updated active (non-released) branches.  Let's say I have a <code>master</code> branch, as well as the following, from oldest to newest commit:</p>
  
  <ul>
  <li><code>branch1</code> (not merged into <code>master</code>)</li>
  <li><code>branch2</code> (merged)</li>
  <li><code>branch3</code> (not merged)</li>
  </ul>
  
  <p>I am able to get each of these lists separately... e.g. to get all the branches not merged into <code>master</code>:</p>
  
  <pre><code>$ git branch -r --no-merged origin/master
  origin/branch1
  origin/branch3
  </code></pre>
  
  <p>Or to get the top fifteen branches, ordered by most recent commit (via <a href="https://coderwall.com/p/ndinba">https://coderwall.com/p/ndinba</a>):</p>
  
  <pre><code>$ git for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short)' --count=15 refs/remotes/origin/
  2013-03-22 origin/branch3
  2013-03-22 origin/branch2
  2013-03-22 origin/master
  2013-03-22 origin/branch1
  </code></pre>
  
  <p>So I basically want that second list, minus <code>branch2</code> (with or without <code>master</code>).  Hope that makes sense?</p>