-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(blueprint): Detect binary files during three way merges (#410)
The three way merge is text based and won't produce meaningful results when run on binary files. Use a heuristic similar to git of checking the first 3000 bytes of the input files for null bytes. If there are any null bytes, consider the file to be binary and fall back to returning the proposed file.
- Loading branch information
Showing
5 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
Binary file modified
BIN
+383 Bytes
(110%)
...ts/blueprint/src/resynthesis/merge-strategies/__snapshots__/merge-strategies.spec.ts.snap
Binary file not shown.
Binary file added
BIN
+9 Bytes
packages/blueprints/blueprint/src/resynthesis/merge-strategies/examples/binary/a.bin
Binary file not shown.
Binary file added
BIN
+9 Bytes
packages/blueprints/blueprint/src/resynthesis/merge-strategies/examples/binary/b.bin
Binary file not shown.
Binary file added
BIN
+9 Bytes
packages/blueprints/blueprint/src/resynthesis/merge-strategies/examples/binary/o.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters