summaryrefslogtreecommitdiff
path: root/test/tools/patch
AgeCommit message (Collapse)Author
2024-02-18test tools patch: disable when perl is missingJohannes Altmanninger
This failed on freebsd_gcc task in Cirrus because Perl is not installed, see https://github.com/mawww/kakoune/pull/5101/checks?check_run_id=21604156722
2024-01-26rc tools patch: skip patch message signature, fixing diff applicationJohannes Altmanninger
Patches as produced by "git format-patch" have a trailing signature that is separated from the body by a line with "-- " on it. By default it contains the Git version. We erroneously include this signature in the diff we pipe to patch, which fails to apply as a result. Add a targeted fix to suppress these signatures.
2024-01-22rc tools patch: skip spurious diff header for files with no changesJohannes Altmanninger
Since :patch transforms its inputs into context-only lines, we can easily get into a state where a file diff has only context lines. git apply does not accept a "diff" without any hunk, so let's skip that.