Am Mi., 22. Sept. 2021 um 13:22 Uhr schrieb Miro HronĨok <mhroncok(a)redhat.com>:
We are presented with 3 possible actions:
How about using Git's heuristic: A file is binary if there's a null
byte '\0' found within the first 8000 bytes.
It can even be used like this [1]: "git merge-file /dev/null /dev/null
file-to-test" which will exit with 255 if it thinks the file is
binary, and 0 otherwise.
- Thomas
[1] Seen here:
https://stackoverflow.com/a/6134127/896308