Dev.to WebDev 🛠 Dev 👁 2 📖 4 min read

39 of our 90 commits touch one file, and the 106 public pages are the part of the repository that almost never changes

Earlier I counted the commits in Nakodo's repository and what a generated folder does to the line counts. That was about size. This one is about movement: which files get edited again and again, which get written once an

Earlier I counted the commits in Nakodo's repository and what a generated folder does to the line counts. That was about size. This one is about movement: which files get edited again and again, which get written once and left, and what the git history says about the shape of the work that the code itself does not.

Everything below comes from git log over 61 calendar days, 1 October to 30 November 2026. 90 commits, on 22 distinct days. I left out the lockfile, the migrations folder, the video project and the model benchmark data, because those are generated and would swamp everything.

One file is in 39 of 90 commits

git log --format= --name-only | grep -v '^$' \
  | grep -v -e pnpm-lock -e '^drizzle/' -e reels/out -e '^benchmark' \
  | sort | uniq -c | sort -rn | head

The top of the list:

commits file
39 src/db/schema.ts
33 the campaign outreach page
32 the campaign server actions file
25 src/lib/queries.ts
25 the results view
22 src/lib/outreach/send.ts
22 src/lib/outreach/reply.ts
21 the creator detail page
21 README.md
20 src/lib/plans.ts

The schema file is in 43 per cent of all commits. That is not a measure of how messy it is. It is a measure of how the project was built: nearly every feature starts by asking what it needs to remember. A new feature gives the schema a column, the actions file a function that writes it, a page a place to show it. Which brings me to the second table.

What changes together

For every pair of files, I counted how many commits contain both (skipping commits that touch more than 40 files, since a sweeping rename makes everything co-occur):

together pair
13 campaign actions + schema.ts
13 outreach page + campaign actions
11 outreach page + schema.ts
9 results view + queries.ts
8 schema.ts + queries.ts
8 schema.ts + pipeline/launch.ts

It reads like a stack. schema.ts changes, the action that writes it changes, the page that reads it changes. That is what a vertical slice looks like in a git log. The thing I would not have guessed is that the pair results-view + queries (9) is almost as strong as anything involving the schema. The results screen and the SQL behind it were edited as one thing nine times, which is a good argument for treating them as one unit and not as two layers.

Of 710 files ever committed, outside the generated ones, 238 were touched once

A third of the files the repository has ever contained were written in one commit and never edited again. The median commit touches 11 files. One commit touches 283 files and adds 32,866 lines: the first big feature, on 2 October.

The public pages barely move

src/content holds 108 files: the registry, the helpers and one TypeScript object per page. Counting commits per file:

commits that touched it files
exactly 1 41
exactly 2 29
3 or more 38

The most edited content file is method.ts (12 commits), then markdown.ts (8), one audience page (8) and registry.ts (7). The long tail is the 106 pages themselves. Of the 108 files, only four commits ever added any (2 October, 3 October twice, and 26 November). Everything you can read at /guides, /alternatives, /templates and /tools was added in four commits and then edited, at most, a handful of times.

The contrast is stark. The app behind the login has files that change in a third of all commits. The public site has 41 that changed once. It also explains something I measured elsewhere: the sitemap used to say every page was modified on 3 October, and that was nearly true.

The rhythm

Of 61 days, 22 have a commit. The distribution of commits per active day:

commits that day days
1 6
2 5
3 4
4 2
5 1
8, 9, 10 1 each
22 1

The 22 is 3 October. All 22 commits are timestamped that day, the last three between midnight and ten past. The longest gap is 17 days (9 to 26 November), and nothing was committed on any day in between.

By weekday: Saturday 27, Monday 17, Friday 17, Wednesday 12, Thursday 8, Sunday 5, Tuesday 4. Saturday is the most committed-to day of the week, and Tuesday the least.

By hour as committed: a flat plateau from 11:00 to 20:00 and a small spike at midnight (7 commits), six of them from 3 October.

What the messages look like

The first word of 28 of the 90 subjects is "Add". Next are "Show" (6) and "Remove" (4). The median subject is 54 characters and the longest is 83. 19 commits have a body.

The git log is not documentation, and I should not pretend it is. What it is, once you total it, is a record of which parts of a codebase were still being decided and which were already finished. By that reading, this project has a small unfinished core (the data model and what it asks users for) and a large finished perimeter (the public site). That is the right way round for it to be, and I would not have known by looking at the code.

What I would do with this

  • Put schema.ts's edit history to use: it is already 1,266 lines, so split it along the seams the co-change table shows (campaign, outreach, billing), so a change to one stops showing up as a change to all.
  • Keep the content-file count honest. A test already fails if a page is missing from the registry. A second one could fail if a file in src/content is not in the registry at all.
  • Commit on fewer Saturdays. I am not going to, but I want it written down.

The earlier count of the same repository is the one about its 88 commits. Most of the public side of the product is one how it works page away.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.