git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* More 'shortlog' statistics models?
@ 2009-07-15  2:07 Linus Torvalds
  2009-07-15  8:24 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Linus Torvalds @ 2009-07-15  2:07 UTC (permalink / raw)
  To: Git Mailing List


So I was just thinking about one of the things I've wondered about for a 
while: when do I (and others) make most of my commits?

I mean literally queries about time-of-day or day-of-week issues. I know 
we have the information, and I can write silly scripts to get it, but I'm 
wondering if somebody would actually be willing to make our current 
'shortlog' statistics gatherer do it automatically.

Right now shortlog groups by name, and I'd like to group by other things.

Here's an example of what I just played around with:

	git log --since=6.months --pretty=format:%cD --author=torvalds |
		cut -d, -f1 |
		sort |
		uniq -c |
		sort -n

gives you the weekdays on which I've done most of my commits in the last 
six months. And I think it's kind of interesting. I really do calm down a 
bit on weekends, and do only about half as many commits on Saturday and 
Sunday as I do during the week.

The same is true across the board, btw. Except while _I_ tend to do most 
of my commits on Mondays, while on average, Linux kernel people seem to do 
most of them on Fridays.

But what about time zones? Change the 'cut' to use "-d' ' -f6" instead, 
and it's clear that -0700 is the top time zone (US West coast), but +0100 
and +0200 (much of Europe) are pretty active.

How about time? "cut -d' ' -f5 | cut -d: -f1": The least productive time 
hour is 05:xxAM (not a big surprise, perhaps), while the most productive 
time is apparently early afternoon. But there I'm odd: most of my commits 
by far are in the morning (ie 8AM to noon).

Anyway, I can do all this with sorting, but it's fun enough that I wonder 
if we should make it easier?

		Linus

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-07-15 17:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15  2:07 More 'shortlog' statistics models? Linus Torvalds
2009-07-15  8:24 ` Junio C Hamano
2009-07-15 11:16   ` [PATCH 1/2] shortlog: refactor insert_one_record() Johannes Schindelin
2009-07-15 11:17   ` [PATCH 2/2] shortlog: add '--sort-key' and '--sort-key-regexp' options Johannes Schindelin
2009-07-15 15:11     ` Linus Torvalds
2009-07-15 15:37     ` Michał Kiedrowicz
2009-07-15 13:38   ` More 'shortlog' statistics models? Jakub Narebski
2009-07-15 17:56     ` Sverre Rabbelier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).