Skip to content

Commit 27e98e2

Browse files
authored
Treat .bin files as binary in git. (nod-ai#224)
I think this will help if the file contents change, preventing git from trying to merge files as text. I _hoped_ this would also show the files as binary, but that isn't working: * Correctly binary: https://github.com/nod-ai/SHARK-TestSuite/blob/main/iree_tests/onnx/node/generated/test_abs/output_0.npy * Incorrectly text: https://github.com/nod-ai/SHARK-TestSuite/blob/main/iree_tests/onnx/node/generated/test_abs/output_0.bin We're already saving those files as binary, so something in the file extensions might be special cased ¯\\\_(ツ)\_/¯
1 parent f338566 commit 27e98e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

iree_tests/.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
*.irpa filter=lfs diff=lfs merge=lfs -text
22
*.mlirbc filter=lfs diff=lfs merge=lfs -text
3+
4+
# Ignore diffs and treat as binary in Git and on GitHub.
5+
*.bin -diff
6+
*.bin binary linguist-generated

0 commit comments

Comments
 (0)