title: How to set difftool/mergetool for a specific file extension in Git?
body: <p>Is it possible to set a custom tool for merging files with a specific extension in Git?</p>
  
  <p>Thanks for any pointers!</p>
  
  <p><strong>Update</strong></p>
  
  <p>I wasn't able to come up with any better solution than defining a custom difftool and calling it by hand as @jarodeells suggested:</p>
  
  <pre><code>[diff]
      tool = mydiff
  [difftool "mydiff"]
      cmd="script.sh \"$LOCAL\" \"$REMOTE\""
  </code></pre>
  
  <p>Then calling it explicitly:</p>
  
  <pre><code>$ git difftool -t mydiff someFileWith.ext
  </code></pre>