From a8dc4aaf1b3b11af22dcf8d7e90c1fc8dba52863 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Mon, 7 Sep 2026 09:51:47 +0200 Subject: [PATCH] AGENTS.md addition --- AGENTS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index f38a336e0..9c3829af1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -120,6 +120,10 @@ separate, reviewable commit that the user decides when to fold in. A bare `--amend` rewrites the commit on the spot and skips that checkpoint. Don't treat "I'm only touching the tip commit" as an exception. +Always use `fixup!` or `amend!` commits, never amend changes directly, even if +you naturally would because "the branch isn't pushed yet". The user always wants +to review what you changed, so make this transparent; no exceptions. + **When the tip is the wrong place for a fixup, insert it mid-branch.** Committing a fixup at the tip of the branch only works while the code it touches still looks the same there; once later commits have rewritten that