rugged 0.27.10 → 0.27.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rugged/version.rb +1 -1
- data/vendor/libgit2/AUTHORS +0 -1
- data/vendor/libgit2/CMakeLists.txt +54 -98
- data/vendor/libgit2/COPYING +0 -28
- data/vendor/libgit2/cmake/Modules/AddCFlagIfSupported.cmake +1 -15
- data/vendor/libgit2/cmake/Modules/EnableWarnings.cmake +8 -9
- data/vendor/libgit2/cmake/Modules/FindCoreFoundation.cmake +2 -2
- data/vendor/libgit2/cmake/Modules/FindGSSAPI.cmake +1 -1
- data/vendor/libgit2/cmake/Modules/FindSecurity.cmake +2 -2
- data/vendor/libgit2/cmake/Modules/FindStatNsec.cmake +0 -6
- data/vendor/libgit2/deps/http-parser/CMakeLists.txt +0 -2
- data/vendor/libgit2/deps/http-parser/{COPYING → LICENSE-MIT} +0 -0
- data/vendor/libgit2/deps/http-parser/http_parser.c +6 -11
- data/vendor/libgit2/deps/regex/CMakeLists.txt +2 -0
- data/vendor/libgit2/deps/regex/config.h +7 -0
- data/vendor/libgit2/deps/regex/regcomp.c +3857 -0
- data/vendor/libgit2/deps/regex/regex.c +92 -0
- data/vendor/libgit2/deps/regex/regex.h +582 -0
- data/vendor/libgit2/deps/regex/regex_internal.c +1744 -0
- data/vendor/libgit2/deps/regex/regex_internal.h +819 -0
- data/vendor/libgit2/deps/regex/regexec.c +4369 -0
- data/vendor/libgit2/deps/zlib/CMakeLists.txt +0 -1
- data/vendor/libgit2/deps/zlib/adler32.c +7 -0
- data/vendor/libgit2/deps/zlib/crc32.c +7 -0
- data/vendor/libgit2/include/git2.h +0 -5
- data/vendor/libgit2/include/git2/annotated_commit.h +0 -9
- data/vendor/libgit2/include/git2/attr.h +20 -38
- data/vendor/libgit2/include/git2/blame.h +25 -42
- data/vendor/libgit2/include/git2/blob.h +13 -45
- data/vendor/libgit2/include/git2/branch.h +1 -1
- data/vendor/libgit2/include/git2/buffer.h +16 -22
- data/vendor/libgit2/include/git2/checkout.h +32 -65
- data/vendor/libgit2/include/git2/cherrypick.h +7 -9
- data/vendor/libgit2/include/git2/clone.h +10 -12
- data/vendor/libgit2/include/git2/commit.h +3 -53
- data/vendor/libgit2/include/git2/common.h +8 -60
- data/vendor/libgit2/include/git2/config.h +19 -30
- data/vendor/libgit2/include/git2/describe.h +9 -32
- data/vendor/libgit2/include/git2/diff.h +156 -208
- data/vendor/libgit2/include/git2/errors.h +46 -54
- data/vendor/libgit2/include/git2/filter.h +0 -8
- data/vendor/libgit2/include/git2/ignore.h +2 -2
- data/vendor/libgit2/include/git2/index.h +52 -74
- data/vendor/libgit2/include/git2/indexer.h +6 -76
- data/vendor/libgit2/include/git2/inttypes.h +309 -0
- data/vendor/libgit2/include/git2/merge.h +18 -35
- data/vendor/libgit2/include/git2/net.h +5 -0
- data/vendor/libgit2/include/git2/notes.h +1 -1
- data/vendor/libgit2/include/git2/object.h +29 -17
- data/vendor/libgit2/include/git2/odb.h +11 -12
- data/vendor/libgit2/include/git2/odb_backend.h +9 -10
- data/vendor/libgit2/include/git2/oid.h +2 -2
- data/vendor/libgit2/include/git2/pack.h +3 -14
- data/vendor/libgit2/include/git2/proxy.h +8 -14
- data/vendor/libgit2/include/git2/rebase.h +6 -53
- data/vendor/libgit2/include/git2/refs.h +15 -33
- data/vendor/libgit2/include/git2/refspec.h +0 -17
- data/vendor/libgit2/include/git2/remote.h +24 -123
- data/vendor/libgit2/include/git2/repository.h +39 -76
- data/vendor/libgit2/include/git2/revert.h +4 -6
- data/vendor/libgit2/include/git2/revwalk.h +7 -7
- data/vendor/libgit2/include/git2/signature.h +2 -2
- data/vendor/libgit2/include/git2/stash.h +12 -15
- data/vendor/libgit2/include/git2/status.h +20 -33
- data/vendor/libgit2/include/git2/submodule.h +12 -30
- data/vendor/libgit2/include/git2/sys/commit.h +1 -1
- data/vendor/libgit2/include/git2/sys/config.h +13 -13
- data/vendor/libgit2/include/git2/sys/filter.h +6 -6
- data/vendor/libgit2/include/git2/sys/index.h +0 -3
- data/vendor/libgit2/include/git2/sys/mempack.h +35 -35
- data/vendor/libgit2/include/git2/sys/merge.h +4 -9
- data/vendor/libgit2/include/git2/sys/odb_backend.h +22 -66
- data/vendor/libgit2/include/git2/sys/refdb_backend.h +40 -76
- data/vendor/libgit2/include/git2/sys/repository.h +1 -5
- data/vendor/libgit2/include/git2/sys/stream.h +12 -92
- data/vendor/libgit2/include/git2/sys/time.h +31 -0
- data/vendor/libgit2/include/git2/sys/transport.h +83 -129
- data/vendor/libgit2/include/git2/tag.h +4 -13
- data/vendor/libgit2/include/git2/trace.h +2 -2
- data/vendor/libgit2/include/git2/transaction.h +0 -1
- data/vendor/libgit2/include/git2/transport.h +311 -11
- data/vendor/libgit2/include/git2/tree.h +4 -4
- data/vendor/libgit2/include/git2/types.h +111 -33
- data/vendor/libgit2/include/git2/version.h +4 -4
- data/vendor/libgit2/include/git2/worktree.h +13 -48
- data/vendor/libgit2/libgit2.pc.in +13 -0
- data/vendor/libgit2/src/CMakeLists.txt +164 -96
- data/vendor/libgit2/src/annotated_commit.c +8 -15
- data/vendor/libgit2/src/apply.c +31 -537
- data/vendor/libgit2/src/apply.h +1 -3
- data/vendor/libgit2/src/array.h +2 -2
- data/vendor/libgit2/src/attr.c +75 -81
- data/vendor/libgit2/src/attr_file.c +121 -207
- data/vendor/libgit2/src/attr_file.h +9 -9
- data/vendor/libgit2/src/attrcache.c +53 -51
- data/vendor/libgit2/src/attrcache.h +1 -2
- data/vendor/libgit2/src/blame.c +20 -47
- data/vendor/libgit2/src/blame.h +1 -2
- data/vendor/libgit2/src/blame_git.c +20 -37
- data/vendor/libgit2/src/blob.c +42 -128
- data/vendor/libgit2/src/blob.h +2 -19
- data/vendor/libgit2/src/branch.c +43 -67
- data/vendor/libgit2/src/buf_text.c +6 -7
- data/vendor/libgit2/src/buffer.c +57 -69
- data/vendor/libgit2/src/buffer.h +1 -1
- data/vendor/libgit2/src/cache.c +45 -38
- data/vendor/libgit2/src/cache.h +3 -3
- data/vendor/libgit2/src/cc-compat.h +3 -20
- data/vendor/libgit2/src/checkout.c +90 -109
- data/vendor/libgit2/src/cherrypick.c +9 -15
- data/vendor/libgit2/src/clone.c +27 -49
- data/vendor/libgit2/src/clone.h +0 -4
- data/vendor/libgit2/src/commit.c +49 -117
- data/vendor/libgit2/src/commit.h +0 -7
- data/vendor/libgit2/src/commit_list.c +78 -30
- data/vendor/libgit2/src/commit_list.h +2 -2
- data/vendor/libgit2/src/common.h +91 -27
- data/vendor/libgit2/src/config.c +176 -194
- data/vendor/libgit2/src/config.h +20 -8
- data/vendor/libgit2/src/config_cache.c +35 -41
- data/vendor/libgit2/src/config_file.c +753 -439
- data/vendor/libgit2/src/config_file.h +73 -0
- data/vendor/libgit2/src/config_parse.c +63 -114
- data/vendor/libgit2/src/config_parse.h +16 -17
- data/vendor/libgit2/src/crlf.c +190 -219
- data/vendor/libgit2/src/delta.c +18 -25
- data/vendor/libgit2/src/describe.c +41 -42
- data/vendor/libgit2/src/diff.c +68 -53
- data/vendor/libgit2/src/diff.h +1 -2
- data/vendor/libgit2/src/diff_driver.c +49 -47
- data/vendor/libgit2/src/diff_file.c +17 -19
- data/vendor/libgit2/src/diff_file.h +1 -1
- data/vendor/libgit2/src/diff_generate.c +106 -162
- data/vendor/libgit2/src/diff_generate.h +3 -3
- data/vendor/libgit2/src/diff_parse.c +4 -4
- data/vendor/libgit2/src/diff_print.c +30 -42
- data/vendor/libgit2/src/diff_stats.c +7 -22
- data/vendor/libgit2/src/diff_tform.c +16 -16
- data/vendor/libgit2/src/diff_xdiff.c +3 -15
- data/vendor/libgit2/src/errors.c +39 -51
- data/vendor/libgit2/src/features.h.in +3 -11
- data/vendor/libgit2/src/fetch.c +5 -10
- data/vendor/libgit2/src/fetchhead.c +17 -17
- data/vendor/libgit2/src/filebuf.c +36 -32
- data/vendor/libgit2/src/filebuf.h +2 -2
- data/vendor/libgit2/src/{futils.c → fileops.c} +73 -80
- data/vendor/libgit2/src/{futils.h → fileops.h} +6 -6
- data/vendor/libgit2/src/filter.c +38 -46
- data/vendor/libgit2/src/filter.h +10 -0
- data/vendor/libgit2/src/fnmatch.c +248 -0
- data/vendor/libgit2/src/fnmatch.h +48 -0
- data/vendor/libgit2/src/global.c +63 -48
- data/vendor/libgit2/src/global.h +2 -0
- data/vendor/libgit2/src/hash.c +0 -61
- data/vendor/libgit2/src/hash.h +19 -20
- data/vendor/libgit2/src/hash/hash_collisiondetect.h +47 -0
- data/vendor/libgit2/src/hash/{sha1/common_crypto.c → hash_common_crypto.h} +17 -17
- data/vendor/libgit2/src/hash/{sha1/generic.c → hash_generic.c} +10 -22
- data/vendor/libgit2/src/hash/{sha1/generic.h → hash_generic.h} +10 -4
- data/vendor/libgit2/src/hash/hash_openssl.h +59 -0
- data/vendor/libgit2/src/hash/{sha1/win32.c → hash_win32.c} +37 -47
- data/vendor/libgit2/src/hash/{sha1/win32.h → hash_win32.h} +19 -6
- data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/sha1.c +3 -14
- data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/sha1.h +0 -0
- data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/ubc_check.c +0 -0
- data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/ubc_check.h +0 -0
- data/vendor/libgit2/src/hashsig.c +5 -5
- data/vendor/libgit2/src/idxmap.c +61 -107
- data/vendor/libgit2/src/idxmap.h +31 -153
- data/vendor/libgit2/src/ignore.c +47 -43
- data/vendor/libgit2/src/index.c +232 -337
- data/vendor/libgit2/src/index.h +1 -17
- data/vendor/libgit2/src/indexer.c +175 -346
- data/vendor/libgit2/src/integer.h +26 -71
- data/vendor/libgit2/src/iterator.c +70 -142
- data/vendor/libgit2/src/iterator.h +0 -15
- data/vendor/libgit2/src/khash.h +1 -3
- data/vendor/libgit2/src/map.h +1 -1
- data/vendor/libgit2/src/merge.c +100 -144
- data/vendor/libgit2/src/merge_driver.c +11 -11
- data/vendor/libgit2/src/merge_file.c +2 -2
- data/vendor/libgit2/src/mwindow.c +29 -24
- data/vendor/libgit2/src/mwindow.h +4 -4
- data/vendor/libgit2/src/netops.c +156 -55
- data/vendor/libgit2/src/netops.h +23 -3
- data/vendor/libgit2/src/notes.c +11 -16
- data/vendor/libgit2/src/object.c +69 -120
- data/vendor/libgit2/src/object.h +9 -22
- data/vendor/libgit2/src/object_api.c +8 -8
- data/vendor/libgit2/src/odb.c +93 -116
- data/vendor/libgit2/src/odb.h +7 -8
- data/vendor/libgit2/src/odb_loose.c +55 -62
- data/vendor/libgit2/src/odb_mempack.c +34 -21
- data/vendor/libgit2/src/odb_pack.c +14 -18
- data/vendor/libgit2/src/offmap.c +35 -53
- data/vendor/libgit2/src/offmap.h +21 -108
- data/vendor/libgit2/src/oid.c +7 -12
- data/vendor/libgit2/src/oidmap.c +47 -49
- data/vendor/libgit2/src/oidmap.h +24 -101
- data/vendor/libgit2/src/pack-objects.c +87 -88
- data/vendor/libgit2/src/pack-objects.h +8 -2
- data/vendor/libgit2/src/pack.c +101 -99
- data/vendor/libgit2/src/pack.h +19 -17
- data/vendor/libgit2/src/parse.c +0 -10
- data/vendor/libgit2/src/parse.h +3 -3
- data/vendor/libgit2/src/patch.c +4 -4
- data/vendor/libgit2/src/patch_generate.c +20 -20
- data/vendor/libgit2/src/patch_parse.c +63 -151
- data/vendor/libgit2/src/path.c +104 -117
- data/vendor/libgit2/src/path.h +71 -3
- data/vendor/libgit2/src/pathspec.c +19 -19
- data/vendor/libgit2/src/pool.c +22 -26
- data/vendor/libgit2/src/pool.h +7 -7
- data/vendor/libgit2/src/posix.c +10 -10
- data/vendor/libgit2/src/posix.h +1 -12
- data/vendor/libgit2/src/proxy.c +3 -8
- data/vendor/libgit2/src/push.c +31 -37
- data/vendor/libgit2/src/push.h +1 -2
- data/vendor/libgit2/src/rebase.c +59 -115
- data/vendor/libgit2/src/refdb.c +3 -15
- data/vendor/libgit2/src/refdb_fs.c +254 -381
- data/vendor/libgit2/src/reflog.c +15 -13
- data/vendor/libgit2/src/refs.c +88 -118
- data/vendor/libgit2/src/refs.h +3 -5
- data/vendor/libgit2/src/refspec.c +37 -56
- data/vendor/libgit2/src/refspec.h +1 -1
- data/vendor/libgit2/src/remote.c +215 -266
- data/vendor/libgit2/src/remote.h +2 -11
- data/vendor/libgit2/src/repository.c +225 -280
- data/vendor/libgit2/src/repository.h +40 -52
- data/vendor/libgit2/src/reset.c +8 -8
- data/vendor/libgit2/src/revert.c +9 -14
- data/vendor/libgit2/src/revparse.c +48 -47
- data/vendor/libgit2/src/revwalk.c +57 -120
- data/vendor/libgit2/src/revwalk.h +1 -22
- data/vendor/libgit2/src/settings.c +10 -47
- data/vendor/libgit2/src/signature.c +11 -11
- data/vendor/libgit2/src/sortedcache.c +36 -22
- data/vendor/libgit2/src/sortedcache.h +1 -1
- data/vendor/libgit2/src/stash.c +99 -125
- data/vendor/libgit2/src/status.c +22 -28
- data/vendor/libgit2/src/stream.h +2 -17
- data/vendor/libgit2/src/streams/curl.c +385 -0
- data/vendor/libgit2/src/{allocators/stdalloc.h → streams/curl.h} +5 -5
- data/vendor/libgit2/src/streams/openssl.c +114 -224
- data/vendor/libgit2/src/streams/openssl.h +108 -4
- data/vendor/libgit2/src/streams/socket.c +30 -55
- data/vendor/libgit2/src/streams/stransport.c +32 -57
- data/vendor/libgit2/src/streams/stransport.h +0 -5
- data/vendor/libgit2/src/streams/tls.c +19 -50
- data/vendor/libgit2/src/streams/tls.h +4 -12
- data/vendor/libgit2/src/strmap.c +74 -47
- data/vendor/libgit2/src/strmap.h +33 -108
- data/vendor/libgit2/src/submodule.c +216 -272
- data/vendor/libgit2/src/submodule.h +1 -1
- data/vendor/libgit2/src/sysdir.c +19 -29
- data/vendor/libgit2/src/tag.c +28 -41
- data/vendor/libgit2/src/tag.h +1 -2
- data/vendor/libgit2/src/trace.c +2 -2
- data/vendor/libgit2/src/trace.h +3 -3
- data/vendor/libgit2/src/trailer.c +38 -52
- data/vendor/libgit2/src/transaction.c +29 -30
- data/vendor/libgit2/src/transport.c +5 -5
- data/vendor/libgit2/src/transports/auth.c +11 -15
- data/vendor/libgit2/src/transports/auth.h +3 -10
- data/vendor/libgit2/src/transports/auth_negotiate.c +18 -33
- data/vendor/libgit2/src/transports/auth_negotiate.h +2 -2
- data/vendor/libgit2/src/transports/cred.c +24 -24
- data/vendor/libgit2/src/{allocators/win32_crtdbg.h → transports/cred.h} +4 -5
- data/vendor/libgit2/src/transports/git.c +31 -26
- data/vendor/libgit2/src/transports/http.c +348 -881
- data/vendor/libgit2/src/transports/http.h +0 -2
- data/vendor/libgit2/src/transports/local.c +35 -35
- data/vendor/libgit2/src/transports/smart.c +47 -70
- data/vendor/libgit2/src/transports/smart.h +4 -3
- data/vendor/libgit2/src/transports/smart_pkt.c +40 -43
- data/vendor/libgit2/src/transports/smart_protocol.c +116 -96
- data/vendor/libgit2/src/transports/ssh.c +66 -77
- data/vendor/libgit2/src/transports/winhttp.c +314 -318
- data/vendor/libgit2/src/tree-cache.c +12 -19
- data/vendor/libgit2/src/tree.c +142 -103
- data/vendor/libgit2/src/tree.h +12 -1
- data/vendor/libgit2/src/unix/map.c +3 -3
- data/vendor/libgit2/src/unix/posix.h +11 -1
- data/vendor/libgit2/src/userdiff.h +1 -3
- data/vendor/libgit2/src/util.c +56 -70
- data/vendor/libgit2/src/util.h +156 -28
- data/vendor/libgit2/src/vector.c +4 -4
- data/vendor/libgit2/src/win32/dir.c +3 -3
- data/vendor/libgit2/src/win32/findfile.c +3 -3
- data/vendor/libgit2/src/win32/map.c +11 -9
- data/vendor/libgit2/src/win32/msvc-compat.h +0 -6
- data/vendor/libgit2/src/win32/path_w32.c +9 -113
- data/vendor/libgit2/src/win32/path_w32.h +29 -18
- data/vendor/libgit2/src/win32/posix.h +4 -1
- data/vendor/libgit2/src/win32/posix_w32.c +45 -70
- data/vendor/libgit2/src/win32/precompiled.h +2 -0
- data/vendor/libgit2/src/win32/thread.c +10 -5
- data/vendor/libgit2/src/win32/w32_buffer.c +5 -9
- data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.c +2 -3
- data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.h +75 -26
- data/vendor/libgit2/src/win32/w32_stack.c +11 -6
- data/vendor/libgit2/src/win32/w32_stack.h +3 -3
- data/vendor/libgit2/src/win32/w32_util.c +64 -27
- data/vendor/libgit2/src/win32/w32_util.h +49 -5
- data/vendor/libgit2/src/worktree.c +60 -95
- data/vendor/libgit2/src/worktree.h +0 -2
- data/vendor/libgit2/src/xdiff/xdiffi.c +5 -7
- data/vendor/libgit2/src/xdiff/xhistogram.c +1 -1
- data/vendor/libgit2/src/xdiff/xmerge.c +15 -27
- data/vendor/libgit2/src/xdiff/xpatience.c +0 -3
- data/vendor/libgit2/src/zstream.c +4 -4
- metadata +33 -122
- data/vendor/libgit2/cmake/Modules/FindGSSFramework.cmake +0 -28
- data/vendor/libgit2/cmake/Modules/FindPCRE.cmake +0 -38
- data/vendor/libgit2/cmake/Modules/FindPCRE2.cmake +0 -37
- data/vendor/libgit2/cmake/Modules/FindmbedTLS.cmake +0 -93
- data/vendor/libgit2/cmake/Modules/PkgBuildConfig.cmake +0 -110
- data/vendor/libgit2/cmake/Modules/SelectGSSAPI.cmake +0 -53
- data/vendor/libgit2/cmake/Modules/SelectHTTPSBackend.cmake +0 -124
- data/vendor/libgit2/cmake/Modules/SelectHashes.cmake +0 -66
- data/vendor/libgit2/deps/ntlmclient/CMakeLists.txt +0 -21
- data/vendor/libgit2/deps/ntlmclient/compat.h +0 -33
- data/vendor/libgit2/deps/ntlmclient/crypt.h +0 -64
- data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.c +0 -120
- data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.h +0 -18
- data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.c +0 -145
- data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.h +0 -18
- data/vendor/libgit2/deps/ntlmclient/crypt_openssl.c +0 -130
- data/vendor/libgit2/deps/ntlmclient/crypt_openssl.h +0 -21
- data/vendor/libgit2/deps/ntlmclient/ntlm.c +0 -1420
- data/vendor/libgit2/deps/ntlmclient/ntlm.h +0 -174
- data/vendor/libgit2/deps/ntlmclient/ntlmclient.h +0 -320
- data/vendor/libgit2/deps/ntlmclient/unicode.h +0 -36
- data/vendor/libgit2/deps/ntlmclient/unicode_builtin.c +0 -445
- data/vendor/libgit2/deps/ntlmclient/unicode_iconv.c +0 -201
- data/vendor/libgit2/deps/ntlmclient/utf8.h +0 -1257
- data/vendor/libgit2/deps/ntlmclient/util.c +0 -21
- data/vendor/libgit2/deps/ntlmclient/util.h +0 -14
- data/vendor/libgit2/deps/pcre/CMakeLists.txt +0 -140
- data/vendor/libgit2/deps/pcre/COPYING +0 -5
- data/vendor/libgit2/deps/pcre/cmake/COPYING-CMAKE-SCRIPTS +0 -22
- data/vendor/libgit2/deps/pcre/cmake/FindEditline.cmake +0 -17
- data/vendor/libgit2/deps/pcre/cmake/FindPackageHandleStandardArgs.cmake +0 -58
- data/vendor/libgit2/deps/pcre/cmake/FindReadline.cmake +0 -29
- data/vendor/libgit2/deps/pcre/config.h.in +0 -57
- data/vendor/libgit2/deps/pcre/pcre.h +0 -641
- data/vendor/libgit2/deps/pcre/pcre_byte_order.c +0 -319
- data/vendor/libgit2/deps/pcre/pcre_chartables.c +0 -198
- data/vendor/libgit2/deps/pcre/pcre_compile.c +0 -9800
- data/vendor/libgit2/deps/pcre/pcre_config.c +0 -190
- data/vendor/libgit2/deps/pcre/pcre_dfa_exec.c +0 -3676
- data/vendor/libgit2/deps/pcre/pcre_exec.c +0 -7173
- data/vendor/libgit2/deps/pcre/pcre_fullinfo.c +0 -245
- data/vendor/libgit2/deps/pcre/pcre_get.c +0 -669
- data/vendor/libgit2/deps/pcre/pcre_globals.c +0 -86
- data/vendor/libgit2/deps/pcre/pcre_internal.h +0 -2787
- data/vendor/libgit2/deps/pcre/pcre_jit_compile.c +0 -11913
- data/vendor/libgit2/deps/pcre/pcre_maketables.c +0 -156
- data/vendor/libgit2/deps/pcre/pcre_newline.c +0 -210
- data/vendor/libgit2/deps/pcre/pcre_ord2utf8.c +0 -94
- data/vendor/libgit2/deps/pcre/pcre_printint.c +0 -834
- data/vendor/libgit2/deps/pcre/pcre_refcount.c +0 -92
- data/vendor/libgit2/deps/pcre/pcre_string_utils.c +0 -211
- data/vendor/libgit2/deps/pcre/pcre_study.c +0 -1686
- data/vendor/libgit2/deps/pcre/pcre_tables.c +0 -727
- data/vendor/libgit2/deps/pcre/pcre_ucd.c +0 -3644
- data/vendor/libgit2/deps/pcre/pcre_valid_utf8.c +0 -301
- data/vendor/libgit2/deps/pcre/pcre_version.c +0 -98
- data/vendor/libgit2/deps/pcre/pcre_xclass.c +0 -268
- data/vendor/libgit2/deps/pcre/pcreposix.c +0 -421
- data/vendor/libgit2/deps/pcre/pcreposix.h +0 -117
- data/vendor/libgit2/deps/pcre/ucp.h +0 -224
- data/vendor/libgit2/deps/winhttp/COPYING.GPL +0 -993
- data/vendor/libgit2/deps/winhttp/COPYING.LGPL +0 -502
- data/vendor/libgit2/deps/zlib/COPYING +0 -27
- data/vendor/libgit2/include/git2/apply.h +0 -149
- data/vendor/libgit2/include/git2/cert.h +0 -135
- data/vendor/libgit2/include/git2/cred.h +0 -308
- data/vendor/libgit2/include/git2/deprecated.h +0 -493
- data/vendor/libgit2/include/git2/mailmap.h +0 -115
- data/vendor/libgit2/include/git2/sys/alloc.h +0 -101
- data/vendor/libgit2/include/git2/sys/cred.h +0 -90
- data/vendor/libgit2/include/git2/sys/path.h +0 -64
- data/vendor/libgit2/src/alloc.c +0 -43
- data/vendor/libgit2/src/alloc.h +0 -40
- data/vendor/libgit2/src/allocators/stdalloc.c +0 -119
- data/vendor/libgit2/src/allocators/win32_crtdbg.c +0 -118
- data/vendor/libgit2/src/config_backend.h +0 -96
- data/vendor/libgit2/src/config_entries.c +0 -229
- data/vendor/libgit2/src/config_entries.h +0 -24
- data/vendor/libgit2/src/config_mem.c +0 -220
- data/vendor/libgit2/src/config_snapshot.c +0 -206
- data/vendor/libgit2/src/errors.h +0 -81
- data/vendor/libgit2/src/hash/sha1.h +0 -38
- data/vendor/libgit2/src/hash/sha1/collisiondetect.c +0 -48
- data/vendor/libgit2/src/hash/sha1/collisiondetect.h +0 -19
- data/vendor/libgit2/src/hash/sha1/common_crypto.h +0 -19
- data/vendor/libgit2/src/hash/sha1/mbedtls.c +0 -46
- data/vendor/libgit2/src/hash/sha1/mbedtls.h +0 -19
- data/vendor/libgit2/src/hash/sha1/openssl.c +0 -59
- data/vendor/libgit2/src/hash/sha1/openssl.h +0 -19
- data/vendor/libgit2/src/mailmap.c +0 -485
- data/vendor/libgit2/src/mailmap.h +0 -35
- data/vendor/libgit2/src/net.c +0 -184
- data/vendor/libgit2/src/net.h +0 -36
- data/vendor/libgit2/src/reader.c +0 -265
- data/vendor/libgit2/src/reader.h +0 -107
- data/vendor/libgit2/src/regexp.c +0 -221
- data/vendor/libgit2/src/regexp.h +0 -97
- data/vendor/libgit2/src/streams/mbedtls.c +0 -483
- data/vendor/libgit2/src/streams/mbedtls.h +0 -23
- data/vendor/libgit2/src/streams/registry.c +0 -118
- data/vendor/libgit2/src/streams/registry.h +0 -19
- data/vendor/libgit2/src/transports/auth_ntlm.c +0 -223
- data/vendor/libgit2/src/transports/auth_ntlm.h +0 -35
- data/vendor/libgit2/src/wildmatch.c +0 -320
- data/vendor/libgit2/src/wildmatch.h +0 -23
- data/vendor/libgit2/src/win32/w32_common.h +0 -39
@@ -21,23 +21,6 @@
|
|
21
21
|
*/
|
22
22
|
GIT_BEGIN_DECL
|
23
23
|
|
24
|
-
/**
|
25
|
-
* Parse a given refspec string
|
26
|
-
*
|
27
|
-
* @param refspec a pointer to hold the refspec handle
|
28
|
-
* @param input the refspec string
|
29
|
-
* @param is_fetch is this a refspec for a fetch
|
30
|
-
* @return 0 if the refspec string could be parsed, -1 otherwise
|
31
|
-
*/
|
32
|
-
GIT_EXTERN(int) git_refspec_parse(git_refspec **refspec, const char *input, int is_fetch);
|
33
|
-
|
34
|
-
/**
|
35
|
-
* Free a refspec object which has been created by git_refspec_parse
|
36
|
-
*
|
37
|
-
* @param refspec the refspec object
|
38
|
-
*/
|
39
|
-
GIT_EXTERN(void) git_refspec_free(git_refspec *refspec);
|
40
|
-
|
41
24
|
/**
|
42
25
|
* Get the source specifier
|
43
26
|
*
|
@@ -41,80 +41,6 @@ GIT_EXTERN(int) git_remote_create(
|
|
41
41
|
const char *name,
|
42
42
|
const char *url);
|
43
43
|
|
44
|
-
/**
|
45
|
-
* Remote creation options flags
|
46
|
-
*/
|
47
|
-
typedef enum {
|
48
|
-
/** Ignore the repository apply.insteadOf configuration */
|
49
|
-
GIT_REMOTE_CREATE_SKIP_INSTEADOF = (1 << 0),
|
50
|
-
|
51
|
-
/** Don't build a fetchspec from the name if none is set */
|
52
|
-
GIT_REMOTE_CREATE_SKIP_DEFAULT_FETCHSPEC = (1 << 1),
|
53
|
-
} git_remote_create_flags;
|
54
|
-
|
55
|
-
/**
|
56
|
-
* Remote creation options structure
|
57
|
-
*
|
58
|
-
* Initialize with `GIT_REMOTE_CREATE_OPTIONS_INIT`. Alternatively, you can
|
59
|
-
* use `git_remote_create_options_init`.
|
60
|
-
*
|
61
|
-
*/
|
62
|
-
typedef struct git_remote_create_options {
|
63
|
-
unsigned int version;
|
64
|
-
|
65
|
-
/**
|
66
|
-
* The repository that should own the remote.
|
67
|
-
* Setting this to NULL results in a detached remote.
|
68
|
-
*/
|
69
|
-
git_repository *repository;
|
70
|
-
|
71
|
-
/**
|
72
|
-
* The remote's name.
|
73
|
-
* Setting this to NULL results in an in-memory/anonymous remote.
|
74
|
-
*/
|
75
|
-
const char *name;
|
76
|
-
|
77
|
-
/** The fetchspec the remote should use. */
|
78
|
-
const char *fetchspec;
|
79
|
-
|
80
|
-
/** Additional flags for the remote. See git_remote_create_flags. */
|
81
|
-
unsigned int flags;
|
82
|
-
} git_remote_create_options;
|
83
|
-
|
84
|
-
#define GIT_REMOTE_CREATE_OPTIONS_VERSION 1
|
85
|
-
#define GIT_REMOTE_CREATE_OPTIONS_INIT {GIT_REMOTE_CREATE_OPTIONS_VERSION}
|
86
|
-
|
87
|
-
/**
|
88
|
-
* Initialize git_remote_create_options structure
|
89
|
-
*
|
90
|
-
* Initializes a `git_remote_create_options` with default values. Equivalent to
|
91
|
-
* creating an instance with `GIT_REMOTE_CREATE_OPTIONS_INIT`.
|
92
|
-
*
|
93
|
-
* @param opts The `git_remote_create_options` struct to initialize.
|
94
|
-
* @param version The struct version; pass `GIT_REMOTE_CREATE_OPTIONS_VERSION`.
|
95
|
-
* @return Zero on success; -1 on failure.
|
96
|
-
*/
|
97
|
-
GIT_EXTERN(int) git_remote_create_options_init(
|
98
|
-
git_remote_create_options *opts,
|
99
|
-
unsigned int version);
|
100
|
-
|
101
|
-
/**
|
102
|
-
* Create a remote, with options.
|
103
|
-
*
|
104
|
-
* This function allows more fine-grained control over the remote creation.
|
105
|
-
*
|
106
|
-
* Passing NULL as the opts argument will result in a detached remote.
|
107
|
-
*
|
108
|
-
* @param out the resulting remote
|
109
|
-
* @param url the remote's url
|
110
|
-
* @param opts the remote creation options
|
111
|
-
* @return 0, GIT_EINVALIDSPEC, GIT_EEXISTS or an error code
|
112
|
-
*/
|
113
|
-
GIT_EXTERN(int) git_remote_create_with_opts(
|
114
|
-
git_remote **out,
|
115
|
-
const char *url,
|
116
|
-
const git_remote_create_options *opts);
|
117
|
-
|
118
44
|
/**
|
119
45
|
* Add a remote with the provided fetch refspec (or default if NULL) to the repository's
|
120
46
|
* configuration.
|
@@ -415,19 +341,18 @@ GIT_EXTERN(int) git_remote_list(git_strarray *out, git_repository *repo);
|
|
415
341
|
* Argument to the completion callback which tells it which operation
|
416
342
|
* finished.
|
417
343
|
*/
|
418
|
-
typedef enum
|
344
|
+
typedef enum git_remote_completion_type {
|
419
345
|
GIT_REMOTE_COMPLETION_DOWNLOAD,
|
420
346
|
GIT_REMOTE_COMPLETION_INDEXING,
|
421
347
|
GIT_REMOTE_COMPLETION_ERROR,
|
422
|
-
}
|
348
|
+
} git_remote_completion_type;
|
423
349
|
|
424
350
|
/** Push network progress notification function */
|
425
|
-
typedef int
|
351
|
+
typedef int (*git_push_transfer_progress)(
|
426
352
|
unsigned int current,
|
427
353
|
unsigned int total,
|
428
354
|
size_t bytes,
|
429
355
|
void* payload);
|
430
|
-
|
431
356
|
/**
|
432
357
|
* Represents an update which will be performed on the remote during push
|
433
358
|
*/
|
@@ -458,7 +383,7 @@ typedef struct {
|
|
458
383
|
* @param len number of elements in `updates`
|
459
384
|
* @param payload Payload provided by the caller
|
460
385
|
*/
|
461
|
-
typedef int
|
386
|
+
typedef int (*git_push_negotiation)(const git_push_update **updates, size_t len, void *payload);
|
462
387
|
|
463
388
|
/**
|
464
389
|
* Callback used to inform of the update status from the remote.
|
@@ -472,21 +397,7 @@ typedef int GIT_CALLBACK(git_push_negotiation)(const git_push_update **updates,
|
|
472
397
|
* @param data data provided by the caller
|
473
398
|
* @return 0 on success, otherwise an error
|
474
399
|
*/
|
475
|
-
typedef int
|
476
|
-
|
477
|
-
/**
|
478
|
-
* Callback to resolve URLs before connecting to remote
|
479
|
-
*
|
480
|
-
* If you return GIT_PASSTHROUGH, you don't need to write anything to
|
481
|
-
* url_resolved.
|
482
|
-
*
|
483
|
-
* @param url_resolved The buffer to write the resolved URL to
|
484
|
-
* @param url The URL to resolve
|
485
|
-
* @param direction GIT_DIRECTION_FETCH or GIT_DIRECTION_PUSH
|
486
|
-
* @param payload Payload provided by the caller
|
487
|
-
* @return 0 on success, GIT_PASSTHROUGH or an error
|
488
|
-
*/
|
489
|
-
typedef int GIT_CALLBACK(git_url_resolve_cb)(git_buf *url_resolved, const char *url, int direction, void *payload);
|
400
|
+
typedef int (*git_push_update_reference_cb)(const char *refname, const char *status, void *data);
|
490
401
|
|
491
402
|
/**
|
492
403
|
* The callback settings structure
|
@@ -495,8 +406,7 @@ typedef int GIT_CALLBACK(git_url_resolve_cb)(git_buf *url_resolved, const char *
|
|
495
406
|
* about the progress of the network operations.
|
496
407
|
*/
|
497
408
|
struct git_remote_callbacks {
|
498
|
-
unsigned int version;
|
499
|
-
|
409
|
+
unsigned int version;
|
500
410
|
/**
|
501
411
|
* Textual progress from the remote. Text send over the
|
502
412
|
* progress side-band will be passed to this function (this is
|
@@ -508,7 +418,7 @@ struct git_remote_callbacks {
|
|
508
418
|
* Completion is called when different parts of the download
|
509
419
|
* process are done (currently unused).
|
510
420
|
*/
|
511
|
-
int
|
421
|
+
int (*completion)(git_remote_completion_type type, void *data);
|
512
422
|
|
513
423
|
/**
|
514
424
|
* This will be called if the remote host requires
|
@@ -522,8 +432,8 @@ struct git_remote_callbacks {
|
|
522
432
|
/**
|
523
433
|
* If cert verification fails, this will be called to let the
|
524
434
|
* user make the final decision of whether to allow the
|
525
|
-
* connection to proceed. Returns
|
526
|
-
* or a negative value to indicate an error.
|
435
|
+
* connection to proceed. Returns 1 to allow the connection, 0
|
436
|
+
* to disallow it or a negative value to indicate an error.
|
527
437
|
*/
|
528
438
|
git_transport_certificate_check_cb certificate_check;
|
529
439
|
|
@@ -532,13 +442,13 @@ struct git_remote_callbacks {
|
|
532
442
|
* called with the current count of progress done by the
|
533
443
|
* indexer.
|
534
444
|
*/
|
535
|
-
|
445
|
+
git_transfer_progress_cb transfer_progress;
|
536
446
|
|
537
447
|
/**
|
538
448
|
* Each time a reference is updated locally, this function
|
539
449
|
* will be called with information about it.
|
540
450
|
*/
|
541
|
-
int
|
451
|
+
int (*update_tips)(const char *refname, const git_oid *a, const git_oid *b, void *data);
|
542
452
|
|
543
453
|
/**
|
544
454
|
* Function to call with progress information during pack
|
@@ -553,7 +463,7 @@ struct git_remote_callbacks {
|
|
553
463
|
* inline with pack building operations, so performance may be
|
554
464
|
* affected.
|
555
465
|
*/
|
556
|
-
|
466
|
+
git_push_transfer_progress push_transfer_progress;
|
557
467
|
|
558
468
|
/**
|
559
469
|
* See documentation of git_push_update_reference_cb
|
@@ -577,12 +487,6 @@ struct git_remote_callbacks {
|
|
577
487
|
* as the last parameter.
|
578
488
|
*/
|
579
489
|
void *payload;
|
580
|
-
|
581
|
-
/**
|
582
|
-
* Resolve URL before connecting to remote.
|
583
|
-
* The returned URL will be used to connect to the remote instead.
|
584
|
-
*/
|
585
|
-
git_url_resolve_cb resolve_url;
|
586
490
|
};
|
587
491
|
|
588
492
|
#define GIT_REMOTE_CALLBACKS_VERSION 1
|
@@ -600,7 +504,6 @@ GIT_EXTERN(int) git_remote_init_callbacks(
|
|
600
504
|
git_remote_callbacks *opts,
|
601
505
|
unsigned int version);
|
602
506
|
|
603
|
-
/** Acceptable prune settings when fetching */
|
604
507
|
typedef enum {
|
605
508
|
/**
|
606
509
|
* Use the setting from the configuration
|
@@ -693,16 +596,15 @@ typedef struct {
|
|
693
596
|
GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED, GIT_PROXY_OPTIONS_INIT }
|
694
597
|
|
695
598
|
/**
|
696
|
-
* Initialize git_fetch_options structure
|
697
|
-
*
|
698
599
|
* Initializes a `git_fetch_options` with default values. Equivalent to
|
699
|
-
* creating an instance with
|
600
|
+
* creating an instance with GIT_FETCH_OPTIONS_INIT.
|
700
601
|
*
|
701
|
-
* @param opts
|
702
|
-
* @param version
|
602
|
+
* @param opts the `git_fetch_options` instance to initialize.
|
603
|
+
* @param version the version of the struct; you should pass
|
604
|
+
* `GIT_FETCH_OPTIONS_VERSION` here.
|
703
605
|
* @return Zero on success; -1 on failure.
|
704
606
|
*/
|
705
|
-
GIT_EXTERN(int)
|
607
|
+
GIT_EXTERN(int) git_fetch_init_options(
|
706
608
|
git_fetch_options *opts,
|
707
609
|
unsigned int version);
|
708
610
|
|
@@ -740,19 +642,18 @@ typedef struct {
|
|
740
642
|
} git_push_options;
|
741
643
|
|
742
644
|
#define GIT_PUSH_OPTIONS_VERSION 1
|
743
|
-
#define GIT_PUSH_OPTIONS_INIT { GIT_PUSH_OPTIONS_VERSION,
|
645
|
+
#define GIT_PUSH_OPTIONS_INIT { GIT_PUSH_OPTIONS_VERSION, 0, GIT_REMOTE_CALLBACKS_INIT, GIT_PROXY_OPTIONS_INIT }
|
744
646
|
|
745
647
|
/**
|
746
|
-
* Initialize git_push_options structure
|
747
|
-
*
|
748
648
|
* Initializes a `git_push_options` with default values. Equivalent to
|
749
|
-
* creating an instance with
|
649
|
+
* creating an instance with GIT_PUSH_OPTIONS_INIT.
|
750
650
|
*
|
751
|
-
* @param opts
|
752
|
-
* @param version
|
651
|
+
* @param opts the `git_push_options` instance to initialize.
|
652
|
+
* @param version the version of the struct; you should pass
|
653
|
+
* `GIT_PUSH_OPTIONS_VERSION` here.
|
753
654
|
* @return Zero on success; -1 on failure.
|
754
655
|
*/
|
755
|
-
GIT_EXTERN(int)
|
656
|
+
GIT_EXTERN(int) git_push_init_options(
|
756
657
|
git_push_options *opts,
|
757
658
|
unsigned int version);
|
758
659
|
|
@@ -855,7 +756,7 @@ GIT_EXTERN(int) git_remote_push(git_remote *remote,
|
|
855
756
|
/**
|
856
757
|
* Get the statistics structure that is filled in by the fetch operation.
|
857
758
|
*/
|
858
|
-
GIT_EXTERN(const
|
759
|
+
GIT_EXTERN(const git_transfer_progress *) git_remote_stats(git_remote *remote);
|
859
760
|
|
860
761
|
/**
|
861
762
|
* Retrieve the tag auto-follow setting
|
@@ -94,53 +94,40 @@ GIT_EXTERN(int) git_repository_discover(
|
|
94
94
|
|
95
95
|
/**
|
96
96
|
* Option flags for `git_repository_open_ext`.
|
97
|
+
*
|
98
|
+
* * GIT_REPOSITORY_OPEN_NO_SEARCH - Only open the repository if it can be
|
99
|
+
* immediately found in the start_path. Do not walk up from the
|
100
|
+
* start_path looking at parent directories.
|
101
|
+
* * GIT_REPOSITORY_OPEN_CROSS_FS - Unless this flag is set, open will not
|
102
|
+
* continue searching across filesystem boundaries (i.e. when `st_dev`
|
103
|
+
* changes from the `stat` system call). (E.g. Searching in a user's home
|
104
|
+
* directory "/home/user/source/" will not return "/.git/" as the found
|
105
|
+
* repo if "/" is a different filesystem than "/home".)
|
106
|
+
* * GIT_REPOSITORY_OPEN_BARE - Open repository as a bare repo regardless
|
107
|
+
* of core.bare config, and defer loading config file for faster setup.
|
108
|
+
* Unlike `git_repository_open_bare`, this can follow gitlinks.
|
109
|
+
* * GIT_REPOSITORY_OPEN_NO_DOTGIT - Do not check for a repository by
|
110
|
+
* appending /.git to the start_path; only open the repository if
|
111
|
+
* start_path itself points to the git directory.
|
112
|
+
* * GIT_REPOSITORY_OPEN_FROM_ENV - Find and open a git repository,
|
113
|
+
* respecting the environment variables used by the git command-line
|
114
|
+
* tools. If set, `git_repository_open_ext` will ignore the other
|
115
|
+
* flags and the `ceiling_dirs` argument, and will allow a NULL `path`
|
116
|
+
* to use `GIT_DIR` or search from the current directory. The search
|
117
|
+
* for a repository will respect $GIT_CEILING_DIRECTORIES and
|
118
|
+
* $GIT_DISCOVERY_ACROSS_FILESYSTEM. The opened repository will
|
119
|
+
* respect $GIT_INDEX_FILE, $GIT_NAMESPACE, $GIT_OBJECT_DIRECTORY, and
|
120
|
+
* $GIT_ALTERNATE_OBJECT_DIRECTORIES. In the future, this flag will
|
121
|
+
* also cause `git_repository_open_ext` to respect $GIT_WORK_TREE and
|
122
|
+
* $GIT_COMMON_DIR; currently, `git_repository_open_ext` with this
|
123
|
+
* flag will error out if either $GIT_WORK_TREE or $GIT_COMMON_DIR is
|
124
|
+
* set.
|
97
125
|
*/
|
98
126
|
typedef enum {
|
99
|
-
/**
|
100
|
-
* Only open the repository if it can be immediately found in the
|
101
|
-
* start_path. Do not walk up from the start_path looking at parent
|
102
|
-
* directories.
|
103
|
-
*/
|
104
127
|
GIT_REPOSITORY_OPEN_NO_SEARCH = (1 << 0),
|
105
|
-
|
106
|
-
/**
|
107
|
-
* Unless this flag is set, open will not continue searching across
|
108
|
-
* filesystem boundaries (i.e. when `st_dev` changes from the `stat`
|
109
|
-
* system call). For example, searching in a user's home directory at
|
110
|
-
* "/home/user/source/" will not return "/.git/" as the found repo if
|
111
|
-
* "/" is a different filesystem than "/home".
|
112
|
-
*/
|
113
128
|
GIT_REPOSITORY_OPEN_CROSS_FS = (1 << 1),
|
114
|
-
|
115
|
-
/**
|
116
|
-
* Open repository as a bare repo regardless of core.bare config, and
|
117
|
-
* defer loading config file for faster setup.
|
118
|
-
* Unlike `git_repository_open_bare`, this can follow gitlinks.
|
119
|
-
*/
|
120
129
|
GIT_REPOSITORY_OPEN_BARE = (1 << 2),
|
121
|
-
|
122
|
-
/**
|
123
|
-
* Do not check for a repository by appending /.git to the start_path;
|
124
|
-
* only open the repository if start_path itself points to the git
|
125
|
-
* directory.
|
126
|
-
*/
|
127
130
|
GIT_REPOSITORY_OPEN_NO_DOTGIT = (1 << 3),
|
128
|
-
|
129
|
-
/**
|
130
|
-
* Find and open a git repository, respecting the environment variables
|
131
|
-
* used by the git command-line tools.
|
132
|
-
* If set, `git_repository_open_ext` will ignore the other flags and
|
133
|
-
* the `ceiling_dirs` argument, and will allow a NULL `path` to use
|
134
|
-
* `GIT_DIR` or search from the current directory.
|
135
|
-
* The search for a repository will respect $GIT_CEILING_DIRECTORIES and
|
136
|
-
* $GIT_DISCOVERY_ACROSS_FILESYSTEM. The opened repository will
|
137
|
-
* respect $GIT_INDEX_FILE, $GIT_NAMESPACE, $GIT_OBJECT_DIRECTORY, and
|
138
|
-
* $GIT_ALTERNATE_OBJECT_DIRECTORIES.
|
139
|
-
* In the future, this flag will also cause `git_repository_open_ext`
|
140
|
-
* to respect $GIT_WORK_TREE and $GIT_COMMON_DIR; currently,
|
141
|
-
* `git_repository_open_ext` with this flag will error out if either
|
142
|
-
* $GIT_WORK_TREE or $GIT_COMMON_DIR is set.
|
143
|
-
*/
|
144
131
|
GIT_REPOSITORY_OPEN_FROM_ENV = (1 << 4),
|
145
132
|
} git_repository_open_flag_t;
|
146
133
|
|
@@ -314,16 +301,14 @@ typedef struct {
|
|
314
301
|
#define GIT_REPOSITORY_INIT_OPTIONS_INIT {GIT_REPOSITORY_INIT_OPTIONS_VERSION}
|
315
302
|
|
316
303
|
/**
|
317
|
-
*
|
318
|
-
*
|
319
|
-
* Initializes a `git_repository_init_options` with default values. Equivalent to
|
320
|
-
* creating an instance with `GIT_REPOSITORY_INIT_OPTIONS_INIT`.
|
304
|
+
* Initializes a `git_repository_init_options` with default values. Equivalent
|
305
|
+
* to creating an instance with GIT_REPOSITORY_INIT_OPTIONS_INIT.
|
321
306
|
*
|
322
|
-
* @param opts
|
323
|
-
* @param version
|
307
|
+
* @param opts the `git_repository_init_options` struct to initialize
|
308
|
+
* @param version Version of struct; pass `GIT_REPOSITORY_INIT_OPTIONS_VERSION`
|
324
309
|
* @return Zero on success; -1 on failure.
|
325
310
|
*/
|
326
|
-
GIT_EXTERN(int)
|
311
|
+
GIT_EXTERN(int) git_repository_init_init_options(
|
327
312
|
git_repository_init_options *opts,
|
328
313
|
unsigned int version);
|
329
314
|
|
@@ -383,7 +368,7 @@ GIT_EXTERN(int) git_repository_head_for_worktree(git_reference **out, git_reposi
|
|
383
368
|
*/
|
384
369
|
GIT_EXTERN(int) git_repository_head_detached(git_repository *repo);
|
385
370
|
|
386
|
-
|
371
|
+
/*
|
387
372
|
* Check if a worktree's HEAD is detached
|
388
373
|
*
|
389
374
|
* A worktree's HEAD is detached when it points directly to a
|
@@ -438,8 +423,7 @@ typedef enum {
|
|
438
423
|
GIT_REPOSITORY_ITEM_HOOKS,
|
439
424
|
GIT_REPOSITORY_ITEM_LOGS,
|
440
425
|
GIT_REPOSITORY_ITEM_MODULES,
|
441
|
-
GIT_REPOSITORY_ITEM_WORKTREES
|
442
|
-
GIT_REPOSITORY_ITEM__LAST
|
426
|
+
GIT_REPOSITORY_ITEM_WORKTREES
|
443
427
|
} git_repository_item_t;
|
444
428
|
|
445
429
|
/**
|
@@ -641,19 +625,7 @@ GIT_EXTERN(int) git_repository_message_remove(git_repository *repo);
|
|
641
625
|
*/
|
642
626
|
GIT_EXTERN(int) git_repository_state_cleanup(git_repository *repo);
|
643
627
|
|
644
|
-
|
645
|
-
* Callback used to iterate over each FETCH_HEAD entry
|
646
|
-
*
|
647
|
-
* @see git_repository_fetchhead_foreach
|
648
|
-
*
|
649
|
-
* @param ref_name The reference name
|
650
|
-
* @param remote_url The remote URL
|
651
|
-
* @param oid The reference target OID
|
652
|
-
* @param is_merge Was the reference the result of a merge
|
653
|
-
* @param payload Payload passed to git_repository_fetchhead_foreach
|
654
|
-
* @return non-zero to terminate the iteration
|
655
|
-
*/
|
656
|
-
typedef int GIT_CALLBACK(git_repository_fetchhead_foreach_cb)(const char *ref_name,
|
628
|
+
typedef int (*git_repository_fetchhead_foreach_cb)(const char *ref_name,
|
657
629
|
const char *remote_url,
|
658
630
|
const git_oid *oid,
|
659
631
|
unsigned int is_merge,
|
@@ -675,16 +647,7 @@ GIT_EXTERN(int) git_repository_fetchhead_foreach(
|
|
675
647
|
git_repository_fetchhead_foreach_cb callback,
|
676
648
|
void *payload);
|
677
649
|
|
678
|
-
|
679
|
-
* Callback used to iterate over each MERGE_HEAD entry
|
680
|
-
*
|
681
|
-
* @see git_repository_mergehead_foreach
|
682
|
-
*
|
683
|
-
* @param oid The merge OID
|
684
|
-
* @param payload Payload passed to git_repository_mergehead_foreach
|
685
|
-
* @return non-zero to terminate the iteration
|
686
|
-
*/
|
687
|
-
typedef int GIT_CALLBACK(git_repository_mergehead_foreach_cb)(const git_oid *oid,
|
650
|
+
typedef int (*git_repository_mergehead_foreach_cb)(const git_oid *oid,
|
688
651
|
void *payload);
|
689
652
|
|
690
653
|
/**
|
@@ -720,7 +683,7 @@ GIT_EXTERN(int) git_repository_mergehead_foreach(
|
|
720
683
|
* @param repo Repository pointer
|
721
684
|
* @param path Path to file on disk whose contents should be hashed. If the
|
722
685
|
* repository is not NULL, this can be a relative path.
|
723
|
-
* @param type The object type to hash as (e.g.
|
686
|
+
* @param type The object type to hash as (e.g. GIT_OBJ_BLOB)
|
724
687
|
* @param as_path The path to use to look up filtering rules. If this is
|
725
688
|
* NULL, then the `path` parameter will be used instead. If
|
726
689
|
* this is passed as the empty string, then no filters will be
|
@@ -731,7 +694,7 @@ GIT_EXTERN(int) git_repository_hashfile(
|
|
731
694
|
git_oid *out,
|
732
695
|
git_repository *repo,
|
733
696
|
const char *path,
|
734
|
-
|
697
|
+
git_otype type,
|
735
698
|
const char *as_path);
|
736
699
|
|
737
700
|
/**
|