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?
Re:Git 1.7.8 changes for the everyday developer by callahad on Tuesday December 13, 2011 @06:02PM (#3349770)
The "[command] learned [option]" construct is a really interesting way to phrase directed development effort. I'm not quite sure what the implications are, but it definitely changed the way I parsed and understood the post. "Git is getting smarter" versus "New features have been added to git."
Re:Git 1.7.8 changes for the everyday developer by alexchamberlain on Wednesday December 14, 2011 @02:17AM (#3350998)
We all know that Git will, one day, take over the world.
Re:Git 1.7.8 changes for the everyday developer by numeromancer on Tuesday December 13, 2011 @02:56PM (#3348946)
Whatever happened to generation numbers?
Re:Git 1.7.8 changes for the everyday developer by jacknagel on Tuesday December 13, 2011 @04:05PM (#3349273)
IIRC (I read the git mailing list) there was a lot of arguing about whether generation numbers should be in the commit headers or stored in separate cache, and then a different fix went in to speed up "tag --contains" and the discussion was pretty much abandoned.
Re:Git 1.7.8 changes for the everyday developer by g3orge on Tuesday December 13, 2011 @02:39PM (#3348872)
wow. I didn't even know about git grep. Very useful
Re:Git 1.7.8 changes for the everyday developer by pjscott on Tuesday December 13, 2011 @03:04PM (#3348982)
It's probably my most commonly-used git command, to the point where I have it aliased to "g g".
Re:Git 1.7.8 changes for the everyday developer by piotrSikora on Tuesday December 13, 2011 @04:56PM (#3349499)
You guys should really look into http://betterthangrep.com/ :)
Re:Git 1.7.8 changes for the everyday developer by jpitz on Tuesday December 13, 2011 @09:18PM (#3350294)
As amazing as ack is, it would take some effort to teach it how to grep through git history.
Re:Git 1.7.8 changes for the everyday developer by obtu on Wednesday December 14, 2011 @09:49AM (#3351993)
Way slower, because it includes vendored files I don't care about.
Re:Git 1.7.8 changes for the everyday developer by pokeylope on Tuesday December 13, 2011 @08:50PM (#3350236)
Agreed, ack is a really nice tool.
Re:Git 1.7.8 changes for the everyday developer by stock_toaster on Tuesday December 13, 2011 @02:34PM (#3348845)
Nice summary. Thanks!