title: Is it possible to have all "git diff" commands use the "Python diff", in all git projects?
body: <p>When including the line</p>
  
  <pre><code>*.py diff=python
  </code></pre>
  
  <p>in a local .gitattributes file, <code>git diff</code> produces nice labels for the different diff hunks of Python files (with the name of the function where the changes are, etc.).</p>
  
  <p>Is is possible to ask git to use this diff mode for <em>all</em> Python files across <em>all</em> git projects?  I tried to set a global ~/.gitattributes, but it is not used by local git repositories.  Is there a more convenient method than initializing each new git project with a <code>ln -s ~/.gitattributes</code>?</p>