silverwind
b08f5fad30
fix(activity): count pulse code stats from the branch's net diff ( #40573 )
...
The activity page summed per-commit `git log --numstat`, so a renamed
file counted as an extra `old => new` path and changes that landed
through merge commits were missed. Like GitHub's Pulse, the changed
files, additions and deletions now come from the default branch's net
diff over the period, so git detects renames and changes reverted within
the period no longer count.
`GetCodeActivityStats` on an M3 Max, median of 6 runs:
| Repo | Period | Before | After |
|---|---|---|---|
| gitea | week | 40 ms | 40 ms |
| gitea | year | 2.06 s | 0.51 s |
| golang/go | week | 524 ms | 155 ms |
| golang/go | year | 4.54 s | 0.75 s |
Refs:
https://github.com/go-gitea/gitea/pull/40569#issuecomment-7231088642
Assisted-by: Claude Code:claude-opus-5-5
2026-11-28 19:10:44 +00:00
..
2026-11-26 10:50:01 +00:00
2026-02-01 10:35:51 +00:00
2026-11-06 20:45:17 +00:00
2026-11-06 07:21:19 +00:00
2026-10-24 13:48:19 +00:00
2026-05-26 15:49:31 -07:00
2026-10-17 10:58:33 +00:00
2026-10-02 18:16:34 +02:00
2026-10-31 17:32:03 +01:00
2026-11-09 03:42:30 +00:00
2026-10-04 23:50:46 +00:00
2026-11-19 11:28:12 +00:00
2026-10-06 08:22:36 +00:00
2026-07-24 02:05:38 +00:00
2026-11-07 11:56:56 +00:00
2026-11-05 18:30:31 +00:00
2026-10-06 14:36:06 +08:00
2026-09-24 20:23:15 +00:00
2026-11-20 02:58:39 +00:00
2026-06-08 18:18:58 +00:00
2026-11-28 19:10:44 +00:00
2026-11-27 06:35:30 +00:00
2026-10-26 11:22:44 +00:00
2026-11-22 10:05:40 +00:00
2026-10-01 10:01:45 +00:00
2026-05-26 15:49:31 -07:00
2026-11-18 08:20:24 +00:00
2026-11-27 12:50:14 +00:00
2026-11-09 03:42:30 +00:00
2026-10-24 13:48:19 +00:00
2026-11-11 17:07:57 +00:00
2026-10-02 22:21:41 +08:00
2026-11-22 10:18:51 +00:00
2026-10-24 13:48:19 +00:00
2026-11-04 05:28:49 +00:00
2026-11-22 10:18:51 +00:00
2026-05-29 01:12:11 +00:00
2026-11-24 06:13:13 +00:00
2026-09-16 20:41:57 +02:00
2026-10-24 13:48:19 +00:00
2026-11-27 12:50:14 +00:00
2026-07-21 13:41:54 +00:00
2026-05-26 15:49:31 -07:00
2026-11-06 11:59:49 +00:00
2026-10-24 13:48:19 +00:00
2026-11-04 01:42:41 +00:00
2026-05-26 15:49:31 -07:00
2026-11-27 05:16:24 +00:00
2026-11-27 04:40:28 +00:00
2026-07-17 22:28:59 +08:00
2026-11-26 10:50:01 +00:00
2026-11-06 11:59:49 +00:00
2026-09-29 14:43:36 +02:00
2026-05-26 15:49:31 -07:00
2026-11-08 15:24:46 +00:00
2026-11-07 22:26:53 +00:00
2026-05-26 15:49:31 -07:00
2026-11-22 10:06:24 +00:00
2026-10-22 01:27:02 +00:00
2026-11-26 10:50:01 +00:00
2026-08-26 19:32:44 +00:00
2025-02-21 00:05:40 +08:00
2026-10-02 21:08:14 +02:00
2026-11-28 07:22:03 +00:00
2026-10-24 13:48:19 +00:00
2026-11-26 01:57:38 +00:00
2026-11-24 06:13:13 +00:00
2026-11-26 10:50:01 +00:00
2026-08-09 10:25:06 +00:00
2026-11-13 17:32:29 +00:00
2025-01-21 18:57:07 +00:00
2026-07-23 14:31:29 +00:00
2026-11-24 16:19:41 +00:00
2026-11-24 06:13:13 +00:00
2026-05-26 15:49:31 -07:00
2026-09-22 22:49:36 +08:00
2026-08-19 12:50:06 +00:00
2026-08-09 10:25:06 +00:00
2026-11-08 15:24:46 +00:00
2026-11-22 10:18:51 +00:00
2026-07-12 17:14:09 +00:00
2026-10-06 08:22:36 +00:00
2026-11-12 06:19:10 +00:00
2026-10-24 13:48:19 +00:00
2026-11-27 06:15:41 +00:00
2026-11-26 10:50:01 +00:00
2026-10-24 13:48:19 +00:00