title: What's the simplest way to list conflicted files in Git?
body: <p>I just need a plain list of <em>conflicted</em> files.</p>
  
  <p>Is there anything simpler than:</p>
  
  <pre><code>git ls-files -u  | cut -f 2 | sort -u
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>git ls-files -u  | awk '{print $4}' | sort | uniq
  </code></pre>
  
  <p>I guess I could set up a handy <code>alias</code> for that, however was wondering how pros do it. I'd use it to write shell loops e.g. to auto-resolve conflict, etc. Maybe replace that loop by plugging into <code>mergetool.cmd</code>?</p>