commit | 9f2249bd26199f6b79b72bff8328e18a0935191b | [log] [tgz] |
---|---|---|
author | Jeff Schumacher <jeffschu@google.com> | Tue Jun 29 16:04:08 2010 -0700 |
committer | Shawn O. Pearce <spearce@spearce.org> | Tue Jun 29 17:23:00 2010 -0700 |
tree | cef1bdcd51e68578dd8b17b08273098423b56d29 | |
parent | 730b708dae88a79cb3d926fc96ada377516c583c [diff] |
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