From: Linus Torvalds <torvalds@linux-foundation.org>
To: Git Mailing List <git@vger.kernel.org>
Subject: More 'shortlog' statistics models?
Date: Tue, 14 Jul 2009 19:07:16 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.2.01.0907141852400.13838@localhost.localdomain> (raw)
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
next reply other threads:[~2009-07-15 2:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-15 2:07 Linus Torvalds [this message]
2009-07-15 8:24 ` More 'shortlog' statistics models? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.01.0907141852400.13838@localhost.localdomain \
--to=torvalds@linux-foundation.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).