libgit2/libgit2 — pull request #1801 by ethomson (2013-08-19 23:50:04+00:00)
Title: Skip UTF-8 BOM in binary detection

When a `git_buf` contains a UTF-8 BOM, the three bytes comprising
that BOM are treated as unprintable characters. For a small `git_buf`,
the three BOM characters overwhelm the printable characters. This
is problematic when trying to check out a small file as the CR/LF
filtering will not apply.