Squashed 'deps/libgit2/' changes from 530594c..df19219

df19219 Merge pull request #2408 from phkelley/win32_test_fixes
daf2a64 Win32: Fix diff::workdir::submodules test #2361
6d1b043 Win32: Fix failing clone_mirror test
716e20b Merge pull request #2404 from libgit2/cmn/remote-rename-fixes
c073184 Merge pull request #2405 from arthurschreiber/patch-4
05554d8 Update AUTHORS
a52ab4b remote: tighten up reference renaming
fe3b9d0 remote: failing test for rename
90befde Merge pull request #2399 from libgit2/cmn/path-to-path
dfcba09 Merge pull request #2395 from libgit2/cmn/ref-iter-concurrent
18d7896 clone: re-use the local transport's path resolution
bccb36e Merge pull request #2389 from arthurschreiber/arthur/set-error-when-no-remote-found
eb27d29 Merge pull request #2396 from libgit2/cmn/docstuff
69a1a69 Plug a leak in the tests
dedfc73 index: split GIT_IDXENTRY into two flag enums
11e2665 Formatting fixes for the docs
2d945f8 refs: copy the packed refs on iteration
4ee2543 refs: failing test for concurrent ref access
2f6f6eb Merge pull request #2392 from libgit2/cmn/remote-delete
8a9419a remote: build up the list of refs to remove
9bc2813 Merge pull request #2391 from libgit2/rb/clean-up-diff-binary-print
bc81220 minor cleanups
947a58c Clean up the handling of large binary diffs
d723dbe Remote: Set an error when a remote cannot be found.
4cf8268 Merge pull request #2388 from ethomson/safecrlf_ignore_warn
49837fd Ignore core.safecrlf=warn until we have a warn infrastructure
58eea5e Merge pull request #2358 from arthurschreiber/arthur/normalize-ref-names-on-creation
9d6c3d2 Refs: Extend unicode test for branch creation.
1a90b1e Refs: Add a unicode test for git_branch_move.
824f755 Refs: Introduce `git_refname_t`.
68f9d6b Refs: Fix some issue when core.precomposeunicode = true.
5f0527a config: initialize the error
19d77ce Merge pull request #2381 from ecoffey/example_log_author_filter
31c5515 Merge pull request #2011 from libgit2/cmn/clone-local
bc9f67f clone: more explicit local tests
065a00e Merge pull request #2386 from Therzok/patch-2
fda73bc [Blob] Update documentation for is_binary.
33bf1b1 examples/log.c: invert filtering impl and conditional
2614819 clone: allow for linking in local clone
94f742b fileops: allow linking files when copying directory structures
c1dbfcb clone: add flag not to link
121b267 clone: add flags to override whether to perform a local clone
a0b5f78 clone: store the realpath when given a relative one
4386d80 clone: perform a "local clone" when given a local path
5d91bea Merge pull request #2380 from libgit2/cmn/index-add-modes
a470a5c Merge pull request #2377 from libgit2/cmn/dual-os
07c0eac Merge pull request #2359 from e45lee/chmod-fix
ab882e2 Merge pull request #2385 from karipe/development
63e8c3f Merge pull request #2337 from ethomson/merge_ff
eff531e Modify GIT_MERGE_CONFIG -> GIT_MERGE_PREFERENCE
de3f851 Staticify `merge_config`
22ab888 Use a config snapshot
a3622ba Move GIT_MERGE_CONFIG_* to its own enum
d362093 Introduce GIT_MERGE_CONFIG_* for merge.ff settings
3ac1ff4 Fix compile error on Visual Studio
433ba61 Merge pull request #2382 from mikeando/doc_fixes
517341c Address style concerns in setting mkdir/copy flags.
87493bc Remove simple --author, --committer, and --grep from PROJECTS
26cce32 Add support for --grep
161e6dc Add --committer option, and break out helper function
31b0cb5 Fixed miscellaneous documentation errors.
97fc71a Add support for --author flag in example log implementation
052a2ff index: check for valid filemodes on add
7230330 travis: build on osx too
bafaf79 Fixed permissions on template directories.

git-subtree-dir: deps/libgit2
git-subtree-split: df192198d3ac2a2bd3d7960477e48602f648ec08
Merge commit 'e51a69233fd302b8f516bb87c3a35ea2285d34e1' into jacquesg/update-libgit2
Repository.xs: git_merge_analysis() signature change
Changes: update