123 points · by johnkary · 14y ago · 15 comments
*.py diff=python
That should make --function-context work better on python source files.BibTeX, C/C++, html, java, ObjectiveC, Pascal, PHP, Python, Ruby, and TeX.
More details can be found in the gitattributes(5) manpage