diff options
author | Jeff Schumacher <jeffschu@google.com> | 2010-06-29 16:04:08 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-06-29 17:23:00 -0700 |
commit | 9f2249bd26199f6b79b72bff8328e18a0935191b (patch) | |
tree | cef1bdcd51e68578dd8b17b08273098423b56d29 /.gitattributes | |
parent | 730b708dae88a79cb3d926fc96ada377516c583c (diff) | |
download | jgit-9f2249bd26199f6b79b72bff8328e18a0935191b.tar.gz jgit-9f2249bd26199f6b79b72bff8328e18a0935191b.zip |
Added check for binary files while diffing
Added a check in Diff to ensure that files that are most likely
not text are not line-by-line diffed. Files are determined to be
binary by checking the first 8000 bytes for a null character. This
is a similar heuristic to what C Git uses.
Change-Id: I2b6f05674c88d89b3f549a5db483f850f7f46c26
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions