3 ms·
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 fil
by fr0sty 15y ago
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.
- technomancy 15y agoI wonder how hard it is to teach it new languages.
- fr0sty 15y agoAll 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
- a1k0n 15y agoIsn't it kind of odd that that isn't the default, given that diff=python is already built in?