Raw.xs: mingw may also have ERROR, PASSTHROUGH and CALLBACK defined
Merge commit '8ef5a7bcd1d1d02fc045d5b96ceed39dd7165885' into jacquesg/update-libgit2
Squashed 'deps/libgit2/' changes from 013924c..d147900

d147900 Merge pull request #2759 from libgit2/cmn/openssl-sys
25a03d4 Merge pull request #2760 from libgit2/cmn/init-readme
c7d9839 Merge pull request #2763 from libgit2/cmn/local-proto-progress
0de26b7 Merge pull request #2767 from linquize/winpath
6afc0bf Merge pull request #2768 from dprofeta/fix/c++-refs
6987a58 Add more Windows reserved filenames
6fd0026 COM0 is a valid path, although Windows Explorer does not allow to create this
ceb651c Fix public header on sys/refs.h
629417b Fix ming32 compilation
ddf9d7d Merge branch 'hf/master_patch'
247b3f4 Merge remote-tracking branch 'origin/master_patch'
2842831 index tests: test capitalization before mkdir
c90ed5b Plug leaks
c679bf4 Create miscapitialised dirs for case-sensitive filesystems
dce7b1a treebuilder: take a repository for path validation
ec74b40 Introduce core.protectHFS and core.protectNTFS
8e35527 path: Use UTF8 iteration for HFS chars
11d67b7 checkout: disallow bad paths on HFS
ee5da72 reference_create: validate loose names
a64119e checkout: disallow bad paths on win32
0d388ad index: Check for valid paths before creating an index entry
6215525 tree: Check for `.git` with case insensitivy
cceae9a win32: use NT-prefixed "\\?\" paths
4fd2bda local: send 'counting objects' output
3ded7f2 local: add failing test for sideband information
ed09e04 Mention the init function in the README
5192bcc Add the OpenSSL  changes to the CHANGELOG
263b1d6 Make the OpenSSL locking function warnings more severe
09debe1 clar: wide character comparisons
3410084 tests: use p_ instead of posix func directly
4eb97ef Merge pull request #2756 from libgit2/cmn/push-error-concerns
85a6d5f push: reword comment on finish()
d524b2d push: fold unpack_ok() into finish()
cd305c2 Merge pull request #2678 from libgit2/cmn/io-stream
a2fd56a Fix a couple of compiler warnings
49ae22b stream: constify the write buffer
3b6a566 Merge pull request #2755 from libgit2/ntk/readme_appveyor_build
a7e06cb readme: Add AppVeyor build status badge/link
037b2a8 readme: Make Travis build status badge reflect the state of master
775d831 readme: Trim trailing lines
1b75c29 gitno: remove code which is no longer needed
4fd4341 ssh: use socket_stream to perform the connection
b6f5464 Port HTTP(S) to the new stream API
02b4c1e Port the TCP transport to the new stream API
0fae039 Merge pull request #2753 from ethomson/win32_leaks
468d7b1 Add an OpenSSL IO stream
dd4ff2c Introduce stackable IO streams
ad2bf40 winhttp: plug some leaks
6b11eb5 core::link test: clean up junction point name
80b01c8 win32: remember to free wide env name/value
c251f3b win32: remember to cleanup our hash_ctx
d508768 Merge pull request #2750 from linquize/generate.py
99cfe9b Merge pull request #2751 from linquize/broken-test-win
8e0aa2e Fix broken merge tests due to autocrlf was not false
d226fbf Fix broken test suite on Windows
3a1eb9e Update clar to e3985dd
19ae843 Merge pull request #2746 from libgit2/cmn/neg-ignore-dir
f2e09b8 Merge pull request #2748 from libgit2/cmn/doc-all
a295bd2 doc: add documentation to all the public structs and enums
e05b2ff ignore: match git's rule negation rules
e0a9741 ignore: adjust test for negating inside a dir

git-subtree-dir: deps/libgit2
git-subtree-split: d147900ea4756975effa6cb568f932a4e3eb698f
Push.xs: Removed unpack_ok()
Tree/Builder.xs: Moved repository argument
Changes: update
Merge branch 'jacquesg/update-libgit2'
Squashed 'deps/libgit2/' changes from d147900..4ceb388

4ceb388 Merge pull request #2784 from jacquesg/undef-stat
a1daec3 Undef stat first
ddf9532 Merge pull request #2783 from libgit2/cmn/treebuilder-new
61cf382 Merge pull request #2777 from sba1/amigaos-get-timer
7cf86f9 Added AmigaOS-specific implementation of git__timer().
208a2c8 treebuilder: rename _create() to _new()
aad27e6 Add a few missing CHANGELOG entries
5692dcf Merge pull request #2772 from ethomson/case_changing_rename
171c2ff Merge pull request #2778 from ethomson/whitespace_85
d6398d3 Merge pull request #2779 from ethomson/openssl_export
73f0278 global: include sys/openssl.h for GIT_EXPORT of fn
fe5f772 don't treat 0x85 as whitespace
40d7915 Always checkout with case sensitive iterator
61ee5b0 Introduce test for checkout case-changing rename
e8cd432 Merge pull request #2775 from ethomson/index_entrycounts
2fe8157 index: reuc and name entrycounts should be size_t
0bb237e Merge pull request #2773 from ethomson/findpkgconfig
6e1205e cmake: include FindPkgConfig for windows
62d66a4 Merge pull request #2745 from libgit2/cmn/pkg-config-ssh
4f91bfa Find libssh2 via pkg-config

git-subtree-dir: deps/libgit2
git-subtree-split: 4ceb388b13da61539f3b9df561c6050a0c5b6c31
Merge commit '337b0513ca932b4340d81f379bf8bf36aca457c0' into jacquesg/update-libgit2
Tree/Builder.xs: git_treebuilder_create() renamed to git_treebuilder_new()
Changes: update
WIP: AppVeyor