lessons: a commit's stat names only the files its change touched (76ceff87c)

76ceff87c, built on an older base, took out 7c37424fc and d6b5f24db with
their tests (restored in 8097860ab); 85e6ec540 did the same on 11-11.
Seen 2x, kept as its own lesson. Docs only; nothing run.
This commit is contained in:
yetone
2026-11-13 01:08:07 +08:00
parent 0f0f391e67
commit b4821050a8
+16
View File
@@ -929,6 +929,22 @@ is read back before the push.**
pushing.
- Seen 2× (2026-10-15, 2026-11-12).
**A commit's `--stat` names only the files its change touched; any other
file is a stale tree taking out someone's work.**
- 85e6ec540 (11-11, the Paseo agent) was committed on a stale index and
took out the six commits before it; b52c71114 restored them.
- 76ceff87c (11-12, Usage's hours back) was built on an older base. Its
tree dropped 7c37424fc (Linux without backdrop blur) and d6b5f24db
(Codex seats of one name) with their two GUI tests, the
history_tallies test and the gui-shell doc line: 156 lines out under a
usage subject. 8097860ab put them back from d6b5f24db. Its body ran
usage-hours "at the rebased head", which the dropped tests weren't in.
- Before pushing, `git show --stat HEAD` against the subject: a file the
change never meant to touch, or a test file going out, is a stop.
Rebase or cherry-pick onto origin/main; never commit a tree copied
from an older checkout.
- Seen 2× (2026-11-11, 2026-11-12).
**A community PR that changes how a page looks is not merged on review
alone.**
- #1354 (Nxir) rearranged the Routing page with no issue asking for it. It