News for hackers. Stuff that matters.
Re:Git-Stats – A local GitHub-like contributions calendar by colomon on Monday February 16, 2015 @08:04AM (#9056706)
I'm only half-awake, so maybe I'm missing something obvious. Why is the README talking about a git commit hook? Why not just take the data from the log?
Re:Git-Stats – A local GitHub-like contributions calendar by michaelmior on Monday February 16, 2015 @08:11AM (#9056724)
It seems like for performance reasons, git-stats wants to update the calendar on commit instead of generating it on the fly. git-cal[0] just does this on the fly and works reasonably fast for me. The UI looks very comparable.

[0] https://github.com/k4rthik/git-cal

Re:Git-Stats – A local GitHub-like contributions calendar by colomon on Monday February 16, 2015 @09:14AM (#9056958)
Hmm, just installed git-cal and it certainly is adequately fast on my main work repo. But it seems to just be for the current branch? (That seems sensible enough, but also makes it somewhat less useful.)
Re:Git-Stats – A local GitHub-like contributions calendar by k4rthik on Monday February 16, 2015 @12:24PM (#9057952)
Added an option to view stats from all branches ( git-cal --all ), but that'll be slower for large repositories
Re:Git-Stats – A local GitHub-like contributions calendar by colomon on Monday February 16, 2015 @01:51PM (#9058463)
Brill, it's still quite fast on my work repo, and much more useful to me. :)
Re:Git-Stats – A local GitHub-like contributions calendar by drtse4 on Monday February 16, 2015 @08:17AM (#9056743)
Looks like that he parses the log with the hook and then stores the json output in ~/.git-stats (git-stats --record), my guess is that he then generates the calendar only from that data so that he doesn't have to parse the whole history all over again. I'm a bit worried about the size of that file though...
Re:Git-Stats – A local GitHub-like contributions calendar by rplnt on Monday February 16, 2015 @09:30AM (#9057016)
If you were fully awake you'd notice it also talks about executing a remote file that you have no control over on every git commit you run.