Skip to content

heatmap-weekhour: commit week hour heatmap#31

Closed
bagder wants to merge 3 commits intomasterfrom
bagder/heatmap-weekhour
Closed

heatmap-weekhour: commit week hour heatmap#31
bagder wants to merge 3 commits intomasterfrom
bagder/heatmap-weekhour

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Mar 30, 2026

Below P10 shows as nothing, the other limits are P20. P40, P60 and P80 making 5 shades of green.

Preview:

image

@bagder
Copy link
Copy Markdown
Member Author

bagder commented Mar 30, 2026

I wonder if I can make git output the day + hour itself so I can avoid doing 40K date invokes...

makes it *MUCH* faster

Thanks to Jyrki @nilsding@pounced-on.me
@soliton-
Copy link
Copy Markdown

I wonder if I can make git output the day + hour itself so I can avoid doing 40K date invokes...

You could use: git log --no-color --date='format:%s %u %H'

@bagder
Copy link
Copy Markdown
Member Author

bagder commented Mar 30, 2026

You could use: git log --no-color --date='format:%s %u %H'

I want them in UTC, so I ended up with:

TZ=UTC git log --oneline --date='format-local:%w %H' --decorate --format='format:%ad'

@bagder
Copy link
Copy Markdown
Member Author

bagder commented Mar 30, 2026

This actually uses the time when the commit was authored, not committed. I should probably clarify that somehow in the name...

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “commit week hour” (UTC weekday × hour) heatmap graph to the stats dashboard, including CSV generation and build wiring so it can be produced alongside existing graphs.

Changes:

  • Introduces heatmap-weekhour.pl to compute weekday/hour buckets and emit a leveled CSV.
  • Introduces heatmap-weekhour.plot to render the CSV as a GitHub-style green heatmap.
  • Wires the new SVG into the build (Makefile) and dashboard listing (all.txt).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
heatmap-weekhour.plot New gnuplot script to render the weekday/hour heatmap SVG.
heatmap-weekhour.pl New Perl generator that buckets commits by UTC weekday/hour and computes percentile-based levels.
all.txt Adds the new heatmap to the dashboard list; adjusts ordering around the release heatmap entry.
Makefile Adds build targets for the new heatmap SVG/CSV; switches releasedays CSV dependency to the existing .pl generator.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bagder
Copy link
Copy Markdown
Member Author

bagder commented Mar 30, 2026

commits authored at this UTC week hour

@bagder bagder closed this in aa950b0 Mar 30, 2026
@bagder bagder deleted the bagder/heatmap-weekhour branch March 30, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants