Git 1.7.8 changes for the everyday developer
johnkary.net
johnkary.net
*.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