A deck arrived with 9 names, 9 photos and the word dedicated printed under each face. Six weeks later I had read access to the repository those 9 names were supposed to be working on, and a question that had nothing to do with catching anyone lying: how many of them could explain this code to me next quarter?

Git does not store attention. It stores author identities, timestamps and diffs. Every number below is a floor, never the truth, and I will say where each one breaks. A floor you understand beats a staffing dashboard you were handed.

I looked for a method before writing one. The arguments I found are old and all preference: a thread on hiring in house instead of outsourcing with something around 7,200 views, another on the worst false economies in software development with 27 answers. Plenty of positions, no procedure. There is also an ad for agency services that has been running for close to 19 months on one line, a company one hundred percent focused on your project. A sentence is not checkable. Four weeks of weekdays with commits on them is.

Window for everything here: 2026-10-06 to 2026-11-14, a Node service with a Postgres database behind a payment flow. 183 commits, merges excluded. Names replaced, because the repo is not mine to expose.

Identities first, or every number after it is wrong

git shortlog -sne --since="2026-10-06" --until="2026-11-14" | wc -l # 11 

Eleven identities for a team of nine. Two people committed from a personal address at night and a company address during the day, one laptop had been set up with root@ip-10-0-2-41, and the CI account signed its own commits. I collapsed them by hand into a .mailmap before running anything else:

Committer One <one@vendor.example> <one.dev@mail.example> Committer One <one@vendor.example> <root@ip-10-0-2-41> Committer Two <two@vendor.example> <t2@mail.example> Build Bot <ci@vendor.example> 

After the mailmap: 6 human identities and 1 bot. Already a gap of three names against the deck, and I had not measured anything yet.

Number one: active days, not commits

Commit count rewards whoever rebases loudest. Active days, meaning distinct calendar days with at least one commit, is closer to the thing I actually wanted to know.

git log --no-merges --use-mailmap \ --since="2026-10-06" --until="2026-11-14" \ --pretty='%ad|%aN' --date=format:'%Y-%m-%d' \ | sort -u | cut -d'|' -f2 | sort | uniq -c | sort -rn 
 27 Committer One 19 Committer Two 9 Committer Three 3 Committer Four 1 Committer Five 1 Committer Six 

Thirty weekdays in the window. One person shows up on 27 of them and wrote 112 of the 183 commits, about 61 percent. Two more are plausibly part time. The last three exist in the history the way a cameo exists in a film.

What this misses: pairing, review, design work, the person who writes code for two weeks and only pushes at the end. If your team squashes everything into one commit per feature, this measure lies to you, and I hit exactly that, further down.

Number two: how long the day actually was

For each author and each day, I took the span between the first and the last commit. It is a crude floor, and it is the only hour signal a repo gives you for free.

git log --no-merges --use-mailmap \ --since="2026-10-06" --until="2026-11-14" \ --pretty='%aN|%ad' --date=format:'%Y-%m-%d|%H|%M' \ | awk -F'|' ' { k=$1"@"$2; m=$3*60+$4 if (!(k in lo) || m<lo[k]) lo[k]=m if (!(k in hi) || m>hi[k]) hi[k]=m } END { for (k in lo) { split(k,p,"@"); printf "%s %s %d\n", p[1], p[2], hi[k]-lo[k] } }' \ | sort -k1,1 -k2,2 

Medians of the daily spans, computed off that output:

Committer One 5h51m (27 days) Committer Two 2h44m (19 days) Committer Three 0h31m ( 9 days) 

Thirty one minutes is the signature of a person who opens the project, lands a small fix, and leaves. It does not prove how many other repos they are in that afternoon. It does kill the sentence that the three of them are on your project full time, because two commits at 09:12 and 09:43 are not a day of work, in any workflow I have ever seen.

Number three: 02:14

The part of the staffing story that nobody checks is the night. The deck had an on call rotation with four names, weekly. The repo had an opinion about that:

git log --no-merges --use-mailmap \ --since="2026-10-06" --until="2026-11-14" \ --pretty='%aN|%ad' --date=format:'%H' \ | awk -F'|' '($2+0)>=23 || ($2+0)<5 {c[$1]++} END {for (a in c) print c[a], a}' \ | sort -rn 
 21 Committer One 2 Committer Two 

Twenty three commits between 23:00 and 05:00, twenty one of them from one person. I cross checked against the alerting export for the same window: 22 acknowledged alerts, 19 acknowledged by the same name, the longest ack at 02:14 on a Saturday followed by a hotfix commit eleven minutes later. A four name rotation on paper, one name in the data. If that person takes a holiday, the rotation is a document, not a capability.

Three measures I threw out

  • Commit count on its own. 14 of the 38 merged pull requests were squashed, and the squash attributes everything to whoever clicked merge. Only 2 carried a Co-authored-by trailer, so four people disappeared into one account. Where squash is mandatory, the commit history cannot answer this question at all and you have to ask for review timestamps instead.
  • Lines changed. One commit regenerated a lockfile, plus 18,400 minus 17,900, and a formatter pass touched 311 files in one go. Whoever runs those two commands wins any volume ranking forever.
  • Review counts as a proxy for involvement. One approval landed at 00:03 on a pull request with 41 files and no comments. I can count that it happened. I cannot count that anyone read it.

What I do with the three numbers

I stopped asking vendors and internal leads how many people are on something. The answer is always a number of names. I ask for read access and I run the three commands above, which take under a minute, and then the conversation starts from the same page: three humans, one of them carrying 61 percent of the commits and the whole night, and a plan for the quarter that has to be sized for that and not for the deck.

The uncomfortable part is that the same script works on my own repos, and the first time I ran it on one of mine the night column had a single name too.

How do you measure sustained attention on a repository you do not own? Active days is the best cheap signal I have found, and it falls apart under squash only workflows. If you have something better for that case, especially one that survives a team that rebases everything into one commit, I would like to steal it.

Originally published on the Revin blog.