git: repair the merge driver and add textconv, config, and union rules
c46cf8e91571ffc3852a4a4c675e259146a52406
Oliver Jan Krylow <oliver@bugabinga.net> ·
SSH signature · not checked
- Parent 1: 553f4e66a334
The mergiraf driver was configured on every host but installed on none of the Termux ones, and a merge driver that exits non-zero means "conflict": merges of mapped files were left untouched, without markers, losing even git's own three-way merge. The driver now falls back to `git merge-file` when mergiraf is missing, so every host degrades to stock git instead of to manual work. Termux gets mergiraf itself from the Codeberg musl build. core.whitespace = error was a no-op: `error` is an action for `git apply`, not a token for core.whitespace, so patches with whitespace damage applied with a warning. Moved to [apply] whitespace = error, which refuses them. Also: - textconv for .class, .jar, .war, .apk, .docx, .odt, so opaque formats diff as javap output, archive listings, or markdown; - hunk headers for TOML sections and YAML top-level keys, which git ships no drivers for; - union merge for CHANGELOG.md and .gitignore, which are append-only.