Fix changes sometimes disappearing entirely

```git-check-assertions
run test/mechanicaldiff.bats
assert_success

git checkout HEAD~ bin
run test/mechanicaldiff.bats
assert_failure
assert_output --partial "not ok 9 keeps matching change with an extra removed line"
assert_output --partial "not ok 10 keeps matching change with an extra added line"
```
This commit is contained in:
Sven van Heugten 2026-03-06 17:01:00 +01:00
parent c55e0276a6
commit 057686a6b9
No known key found for this signature in database
GPG key ID: D612F88666F4F660
4 changed files with 74 additions and 4 deletions

View file

@ -7,6 +7,7 @@
python3Packages,
shellcheck-minimal,
shfmt,
patchutils_0_4_2,
}:
let
@ -42,6 +43,7 @@ stdenv.mkDerivation {
python3Packages.flake8
shellcheck-minimal
shfmt
patchutils_0_4_2
];
checkPhase = ''