Win32: Supply _O_NOINHERIT when calling _wopen
Merge pull request #2360 from phkelley/noinherit

Win32: Supply _O_NOINHERIT when calling _wopen
Increase binary detection len to 8k
Git binary check compat tests

A variety of data patterns for diffs verified to match the
behavior of binary detection with Git on the command line.
indexer: use mmap for writing

Some OSs cannot keep their ideas about file content straight when mixing
standard IO with file mapping. As we use mmap for reading from the
packfile, let's make writing to the pack file use mmap.
indexer: mmap fixes for Windows

Windows has its own ftruncate() called _chsize_s().

p_mkstemp() is changed to use p_open() so we can make sure we open for
writing; the addition of exclusive create is a good thing to do
regardless, as we want a temporary path for ourselves.

Lastly, MSVC doesn't quite know how to add two numbers if one of them is a
void pointer, so let's alias it to unsigned char.C
Merge pull request #2362 from libgit2/rb/update-4k-to-8k

Test and fix Git diff binary detection compatibility
Merge remote-tracking branch 'upstream/cmn/indexer-mmap' into development
print_binary_hunk: Treat types with respect
Fix printf format string from previous commit
Fix a bug in the pack::packbuilder suite