Today I got to generate git statistics for my team. It’s more fun than it sounds! First of all, it’s always entertaining to learn just how flexible git’s reporting can get. Secondly, it’s a chance to dive back into my old sysadmin tool kit and play with awk, sed, and friends.
There were a few questions I wanted to answer about one particular developer’s input. I’m concerned that he is working too much after hours. All night crunch sessions are for amateurs, and I’m trying to break him of the habit. Here are my questions:
- What proportion of his commits were generated after hours?
- Which tickets did he work on after hours?
- Which after hours tickets were the biggest, generating the most commits?
First I had to set some standards: “after hours” is defined as “be…