ka-promote: auto-normalise git format-patch trailers (closes #31) #32
Reference in New Issue
Block a user
Delete Branch "noether/ka-promote-normalise-trailers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #31.
Source patches in patches// can now be in either shape (with or without git format-patch trailer); write_cumulative() strips per-input trailers and emits a single canonical separator between, but not after, concatenated patches. Removes the trailer-flip-flop tax exposed during PR #28 (commits
84734ba↔ ceec602).Changes
bin/ka-promote: addstrip_trailer()+ position-aware separator inwrite_cumulative()tests/ka-promote/run-tests.sh: new unit test for trailer normalisation + cumulative shape; FRESNEL_EXPECTED_B2SUM re-recorded (4d9d93c... → 9c21751c...)Test plan
tests/ka-promote/run-tests.sh— 6/6 passgrep -nE '^From [0-9a-f]{40}\|^-- $')not body.rstrip(b'\n').endswith(b'2.40.1'))--validate-against <clean v7.0 checkout>on ohm — manual verification deferred (no v7.0 checkout in scratch worktree)