PBGitTree: Improve binary-file decision
commit3a1b10ae8fe875a9f5bccda171c1a18f131508fb
authorJohannes Gilger <heipei@hackvalue.de>
Tue, 8 Sep 2009 13:11:17 +0000 (8 15:11 +0200)
committerPieter de Bie <pdebie@ai.rug.nl>
Tue, 8 Sep 2009 13:13:13 +0000 (8 15:13 +0200)
treed635a4b9e632b10b934e02ea34f7043ab3dc0f6c
parent3861deecfaa204cd127263dc8c8963ec974a27f4
PBGitTree: Improve binary-file decision

This uses the same mechanisms as git to determine whether a file is
binary: By simply searching the first 8000 bytes for a 0-byte. This
gets rid of the call to "file" and is a much cleaner and shorter
implementation.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
PBGitTree.m