News for hackers. Stuff that matters.
Re:Git 1.7.8 changes for the everyday developer by fr0sty on Tuesday December 13, 2011 @03:51PM (#3349210)
The author should try adding this to his .git/info/attributes file:

     *.py diff=python
That should make --function-context work better on python source files.
Re:Git 1.7.8 changes for the everyday developer by technomancy on Tuesday December 13, 2011 @04:19PM (#3349327)
I wonder how hard it is to teach it new languages.
Re:Git 1.7.8 changes for the everyday developer by fr0sty on Tuesday December 13, 2011 @04:43PM (#3349436)
All you need to do is write a regex to match. Currently supported languages are:

BibTeX, C/C++, html, java, ObjectiveC, Pascal, PHP, Python, Ruby, and TeX.

More details can be found in the gitattributes(5) manpage

Re:Git 1.7.8 changes for the everyday developer by a1k0n on Wednesday December 14, 2011 @11:59AM (#3352535)
Isn't it kind of odd that that isn't the default, given that diff=python is already built in?