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
@@ -27,8 +27,7 @@ typedef enum {
|
|
27
27
|
GIT_EAMBIGUOUS = -5, /**< More than one object matches */
|
28
28
|
GIT_EBUFS = -6, /**< Output buffer too short to hold data */
|
29
29
|
|
30
|
-
|
31
|
-
* GIT_EUSER is a special error that is never generated by libgit2
|
30
|
+
/* GIT_EUSER is a special error that is never generated by libgit2
|
32
31
|
* code. You can return it from a callback (e.g to stop an iteration)
|
33
32
|
* to know that it was generated by the callback and not by libgit2.
|
34
33
|
*/
|
@@ -52,12 +51,10 @@ typedef enum {
|
|
52
51
|
GIT_EDIRECTORY = -23, /**< The operation is not valid for a directory */
|
53
52
|
GIT_EMERGECONFLICT = -24, /**< A merge conflict exists and cannot continue */
|
54
53
|
|
55
|
-
GIT_PASSTHROUGH = -30, /**<
|
54
|
+
GIT_PASSTHROUGH = -30, /**< Internal only */
|
56
55
|
GIT_ITEROVER = -31, /**< Signals end of iteration with iterator */
|
57
56
|
GIT_RETRY = -32, /**< Internal only */
|
58
57
|
GIT_EMISMATCH = -33, /**< Hashsum mismatch in object */
|
59
|
-
GIT_EINDEXDIRTY = -34, /**< Unsaved changes in the index would be overwritten */
|
60
|
-
GIT_EAPPLYFAIL = -35, /**< Patch application failed */
|
61
58
|
} git_error_code;
|
62
59
|
|
63
60
|
/**
|
@@ -73,59 +70,54 @@ typedef struct {
|
|
73
70
|
|
74
71
|
/** Error classes */
|
75
72
|
typedef enum {
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
73
|
+
GITERR_NONE = 0,
|
74
|
+
GITERR_NOMEMORY,
|
75
|
+
GITERR_OS,
|
76
|
+
GITERR_INVALID,
|
77
|
+
GITERR_REFERENCE,
|
78
|
+
GITERR_ZLIB,
|
79
|
+
GITERR_REPOSITORY,
|
80
|
+
GITERR_CONFIG,
|
81
|
+
GITERR_REGEX,
|
82
|
+
GITERR_ODB,
|
83
|
+
GITERR_INDEX,
|
84
|
+
GITERR_OBJECT,
|
85
|
+
GITERR_NET,
|
86
|
+
GITERR_TAG,
|
87
|
+
GITERR_TREE,
|
88
|
+
GITERR_INDEXER,
|
89
|
+
GITERR_SSL,
|
90
|
+
GITERR_SUBMODULE,
|
91
|
+
GITERR_THREAD,
|
92
|
+
GITERR_STASH,
|
93
|
+
GITERR_CHECKOUT,
|
94
|
+
GITERR_FETCHHEAD,
|
95
|
+
GITERR_MERGE,
|
96
|
+
GITERR_SSH,
|
97
|
+
GITERR_FILTER,
|
98
|
+
GITERR_REVERT,
|
99
|
+
GITERR_CALLBACK,
|
100
|
+
GITERR_CHERRYPICK,
|
101
|
+
GITERR_DESCRIBE,
|
102
|
+
GITERR_REBASE,
|
103
|
+
GITERR_FILESYSTEM,
|
104
|
+
GITERR_PATCH,
|
105
|
+
GITERR_WORKTREE,
|
106
|
+
GITERR_SHA1
|
110
107
|
} git_error_t;
|
111
108
|
|
112
109
|
/**
|
113
110
|
* Return the last `git_error` object that was generated for the
|
114
|
-
* current thread.
|
115
|
-
*
|
116
|
-
* The default behaviour of this function is to return NULL if no previous error has occurred.
|
117
|
-
* However, libgit2's error strings are not cleared aggressively, so a prior
|
118
|
-
* (unrelated) error may be returned. This can be avoided by only calling
|
119
|
-
* this function if the prior call to a libgit2 API returned an error.
|
111
|
+
* current thread or NULL if no error has occurred.
|
120
112
|
*
|
121
113
|
* @return A git_error object.
|
122
114
|
*/
|
123
|
-
GIT_EXTERN(const git_error *)
|
115
|
+
GIT_EXTERN(const git_error *) giterr_last(void);
|
124
116
|
|
125
117
|
/**
|
126
118
|
* Clear the last library error that occurred for this thread.
|
127
119
|
*/
|
128
|
-
GIT_EXTERN(void)
|
120
|
+
GIT_EXTERN(void) giterr_clear(void);
|
129
121
|
|
130
122
|
/**
|
131
123
|
* Set the error message string for this thread.
|
@@ -143,18 +135,18 @@ GIT_EXTERN(void) git_error_clear(void);
|
|
143
135
|
* general subsystem that is responsible for the error.
|
144
136
|
* @param string The formatted error message to keep
|
145
137
|
*/
|
146
|
-
GIT_EXTERN(void)
|
138
|
+
GIT_EXTERN(void) giterr_set_str(int error_class, const char *string);
|
147
139
|
|
148
140
|
/**
|
149
141
|
* Set the error message to a special value for memory allocation failure.
|
150
142
|
*
|
151
|
-
* The normal `
|
152
|
-
*
|
153
|
-
*
|
154
|
-
*
|
155
|
-
*
|
143
|
+
* The normal `giterr_set_str()` function attempts to `strdup()` the string
|
144
|
+
* that is passed in. This is not a good idea when the error in question
|
145
|
+
* is a memory allocation failure. That circumstance has a special setter
|
146
|
+
* function that sets the error string to a known and statically allocated
|
147
|
+
* internal value.
|
156
148
|
*/
|
157
|
-
GIT_EXTERN(void)
|
149
|
+
GIT_EXTERN(void) giterr_set_oom(void);
|
158
150
|
|
159
151
|
/** @} */
|
160
152
|
GIT_END_DECL
|
@@ -40,15 +40,7 @@ typedef enum {
|
|
40
40
|
*/
|
41
41
|
typedef enum {
|
42
42
|
GIT_FILTER_DEFAULT = 0u,
|
43
|
-
|
44
|
-
/** Don't error for `safecrlf` violations, allow them to continue. */
|
45
43
|
GIT_FILTER_ALLOW_UNSAFE = (1u << 0),
|
46
|
-
|
47
|
-
/** Don't load `/etc/gitattributes` (or the system equivalent) */
|
48
|
-
GIT_FILTER_NO_SYSTEM_ATTRIBUTES = (1u << 1),
|
49
|
-
|
50
|
-
/** Load attributes from `.gitattributes` in the root of HEAD */
|
51
|
-
GIT_FILTER_ATTRIBUTES_FROM_HEAD = (1u << 2),
|
52
44
|
} git_filter_flag_t;
|
53
45
|
|
54
46
|
/**
|
@@ -59,8 +59,8 @@ GIT_EXTERN(int) git_ignore_clear_internal_rules(
|
|
59
59
|
* given file. This indicates if the file would be ignored regardless of
|
60
60
|
* whether the file is already in the index or committed to the repository.
|
61
61
|
*
|
62
|
-
* One way to think of this is if you were to do "git
|
63
|
-
*
|
62
|
+
* One way to think of this is if you were to do "git add ." on the
|
63
|
+
* directory containing the file, would it be added or not?
|
64
64
|
*
|
65
65
|
* @param ignored boolean returning 0 if the file is not ignored, 1 if it is
|
66
66
|
* @param repo a repository object
|
@@ -37,11 +37,11 @@ typedef struct {
|
|
37
37
|
* "Documentation/technical/index-format.txt").
|
38
38
|
*
|
39
39
|
* The `flags` field consists of a number of bit fields which can be
|
40
|
-
* accessed via the first set of `
|
41
|
-
*
|
40
|
+
* accessed via the first set of `GIT_IDXENTRY_...` bitmasks below. These
|
41
|
+
* flags are all read from and persisted to disk.
|
42
42
|
*
|
43
43
|
* The `flags_extended` field also has a number of bit fields which can be
|
44
|
-
* accessed via the later `
|
44
|
+
* accessed via the later `GIT_IDXENTRY_...` bitmasks below. Some of
|
45
45
|
* these flags are read from and written to disk, but some are set aside
|
46
46
|
* for in-memory only reference.
|
47
47
|
*
|
@@ -76,25 +76,24 @@ typedef struct git_index_entry {
|
|
76
76
|
* value both in memory and on disk. You can use them to interpret the
|
77
77
|
* data in the `flags`.
|
78
78
|
*/
|
79
|
-
|
80
|
-
#define
|
81
|
-
#define
|
82
|
-
#define GIT_INDEX_ENTRY_STAGESHIFT 12
|
79
|
+
#define GIT_IDXENTRY_NAMEMASK (0x0fff)
|
80
|
+
#define GIT_IDXENTRY_STAGEMASK (0x3000)
|
81
|
+
#define GIT_IDXENTRY_STAGESHIFT 12
|
83
82
|
|
84
83
|
/**
|
85
84
|
* Flags for index entries
|
86
85
|
*/
|
87
86
|
typedef enum {
|
88
|
-
|
89
|
-
|
90
|
-
}
|
87
|
+
GIT_IDXENTRY_EXTENDED = (0x4000),
|
88
|
+
GIT_IDXENTRY_VALID = (0x8000),
|
89
|
+
} git_indxentry_flag_t;
|
91
90
|
|
92
|
-
#define
|
93
|
-
(((E)->flags &
|
91
|
+
#define GIT_IDXENTRY_STAGE(E) \
|
92
|
+
(((E)->flags & GIT_IDXENTRY_STAGEMASK) >> GIT_IDXENTRY_STAGESHIFT)
|
94
93
|
|
95
|
-
#define
|
96
|
-
(E)->flags = ((E)->flags & ~
|
97
|
-
(((S) & 0x03) <<
|
94
|
+
#define GIT_IDXENTRY_STAGE_SET(E,S) do { \
|
95
|
+
(E)->flags = ((E)->flags & ~GIT_IDXENTRY_STAGEMASK) | \
|
96
|
+
(((S) & 0x03) << GIT_IDXENTRY_STAGESHIFT); } while (0)
|
98
97
|
|
99
98
|
/**
|
100
99
|
* Bitmasks for on-disk fields of `git_index_entry`'s `flags_extended`
|
@@ -102,7 +101,7 @@ typedef enum {
|
|
102
101
|
* In memory, the `flags_extended` fields are divided into two parts: the
|
103
102
|
* fields that are read from and written to disk, and other fields that
|
104
103
|
* in-memory only and used by libgit2. Only the flags in
|
105
|
-
* `
|
104
|
+
* `GIT_IDXENTRY_EXTENDED_FLAGS` will get saved on-disk.
|
106
105
|
*
|
107
106
|
* Thee first three bitmasks match the three fields in the
|
108
107
|
* `git_index_entry` `flags_extended` value that belong on disk. You
|
@@ -114,25 +113,37 @@ typedef enum {
|
|
114
113
|
*
|
115
114
|
*/
|
116
115
|
typedef enum {
|
117
|
-
GIT_INDEX_ENTRY_INTENT_TO_ADD = (1 << 13),
|
118
|
-
GIT_INDEX_ENTRY_SKIP_WORKTREE = (1 << 14),
|
119
116
|
|
120
|
-
|
117
|
+
GIT_IDXENTRY_INTENT_TO_ADD = (1 << 13),
|
118
|
+
GIT_IDXENTRY_SKIP_WORKTREE = (1 << 14),
|
119
|
+
/** Reserved for future extension */
|
120
|
+
GIT_IDXENTRY_EXTENDED2 = (1 << 15),
|
121
|
+
|
122
|
+
GIT_IDXENTRY_EXTENDED_FLAGS = (GIT_IDXENTRY_INTENT_TO_ADD | GIT_IDXENTRY_SKIP_WORKTREE),
|
123
|
+
GIT_IDXENTRY_UPDATE = (1 << 0),
|
124
|
+
GIT_IDXENTRY_REMOVE = (1 << 1),
|
125
|
+
GIT_IDXENTRY_UPTODATE = (1 << 2),
|
126
|
+
GIT_IDXENTRY_ADDED = (1 << 3),
|
121
127
|
|
122
|
-
|
123
|
-
|
128
|
+
GIT_IDXENTRY_HASHED = (1 << 4),
|
129
|
+
GIT_IDXENTRY_UNHASHED = (1 << 5),
|
130
|
+
GIT_IDXENTRY_WT_REMOVE = (1 << 6), /**< remove in work directory */
|
131
|
+
GIT_IDXENTRY_CONFLICTED = (1 << 7),
|
132
|
+
|
133
|
+
GIT_IDXENTRY_UNPACKED = (1 << 8),
|
134
|
+
GIT_IDXENTRY_NEW_SKIP_WORKTREE = (1 << 9),
|
135
|
+
} git_idxentry_extended_flag_t;
|
124
136
|
|
125
137
|
/** Capabilities of system that affect index actions. */
|
126
138
|
typedef enum {
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
}
|
132
|
-
|
139
|
+
GIT_INDEXCAP_IGNORE_CASE = 1,
|
140
|
+
GIT_INDEXCAP_NO_FILEMODE = 2,
|
141
|
+
GIT_INDEXCAP_NO_SYMLINKS = 4,
|
142
|
+
GIT_INDEXCAP_FROM_OWNER = -1,
|
143
|
+
} git_indexcap_t;
|
133
144
|
|
134
145
|
/** Callback for APIs that add/remove/update files matching pathspec */
|
135
|
-
typedef int
|
146
|
+
typedef int (*git_index_matched_path_cb)(
|
136
147
|
const char *path, const char *matched_pathspec, void *payload);
|
137
148
|
|
138
149
|
/** Flags for APIs that add files matching pathspec */
|
@@ -143,7 +154,6 @@ typedef enum {
|
|
143
154
|
GIT_INDEX_ADD_CHECK_PATHSPEC = (1u << 2),
|
144
155
|
} git_index_add_option_t;
|
145
156
|
|
146
|
-
/** Git index stage states */
|
147
157
|
typedef enum {
|
148
158
|
/**
|
149
159
|
* Match any index stage.
|
@@ -166,6 +176,12 @@ typedef enum {
|
|
166
176
|
GIT_INDEX_STAGE_THEIRS = 3,
|
167
177
|
} git_index_stage_t;
|
168
178
|
|
179
|
+
/** @name Index File Functions
|
180
|
+
*
|
181
|
+
* These functions work on the index file itself.
|
182
|
+
*/
|
183
|
+
/**@{*/
|
184
|
+
|
169
185
|
/**
|
170
186
|
* Create a new bare Git index object as a memory representation
|
171
187
|
* of the Git index file in 'index_path', without a repository
|
@@ -218,19 +234,19 @@ GIT_EXTERN(git_repository *) git_index_owner(const git_index *index);
|
|
218
234
|
* Read index capabilities flags.
|
219
235
|
*
|
220
236
|
* @param index An existing index object
|
221
|
-
* @return A combination of
|
237
|
+
* @return A combination of GIT_INDEXCAP values
|
222
238
|
*/
|
223
239
|
GIT_EXTERN(int) git_index_caps(const git_index *index);
|
224
240
|
|
225
241
|
/**
|
226
242
|
* Set index capabilities flags.
|
227
243
|
*
|
228
|
-
* If you pass `
|
244
|
+
* If you pass `GIT_INDEXCAP_FROM_OWNER` for the caps, then the
|
229
245
|
* capabilities will be read from the config of the owner object,
|
230
246
|
* looking at `core.ignorecase`, `core.filemode`, `core.symlinks`.
|
231
247
|
*
|
232
248
|
* @param index An existing index object
|
233
|
-
* @param caps A combination of
|
249
|
+
* @param caps A combination of GIT_INDEXCAP values
|
234
250
|
* @return 0 on success, -1 on failure
|
235
251
|
*/
|
236
252
|
GIT_EXTERN(int) git_index_set_caps(git_index *index, int caps);
|
@@ -458,7 +474,7 @@ GIT_EXTERN(int) git_index_add(git_index *index, const git_index_entry *source_en
|
|
458
474
|
*
|
459
475
|
* This entry is calculated from the entry's flag attribute like this:
|
460
476
|
*
|
461
|
-
* (entry->flags &
|
477
|
+
* (entry->flags & GIT_IDXENTRY_STAGEMASK) >> GIT_IDXENTRY_STAGESHIFT
|
462
478
|
*
|
463
479
|
* @param entry The entry
|
464
480
|
* @return the stage number
|
@@ -476,46 +492,6 @@ GIT_EXTERN(int) git_index_entry_is_conflict(const git_index_entry *entry);
|
|
476
492
|
|
477
493
|
/**@}*/
|
478
494
|
|
479
|
-
/** @name Index Entry Iteration Functions
|
480
|
-
*
|
481
|
-
* These functions provide an iterator for index entries.
|
482
|
-
*/
|
483
|
-
/**@{*/
|
484
|
-
|
485
|
-
/**
|
486
|
-
* Create an iterator that will return every entry contained in the
|
487
|
-
* index at the time of creation. Entries are returned in order,
|
488
|
-
* sorted by path. This iterator is backed by a snapshot that allows
|
489
|
-
* callers to modify the index while iterating without affecting the
|
490
|
-
* iterator.
|
491
|
-
*
|
492
|
-
* @param iterator_out The newly created iterator
|
493
|
-
* @param index The index to iterate
|
494
|
-
*/
|
495
|
-
GIT_EXTERN(int) git_index_iterator_new(
|
496
|
-
git_index_iterator **iterator_out,
|
497
|
-
git_index *index);
|
498
|
-
|
499
|
-
/**
|
500
|
-
* Return the next index entry in-order from the iterator.
|
501
|
-
*
|
502
|
-
* @param out Pointer to store the index entry in
|
503
|
-
* @param iterator The iterator
|
504
|
-
* @return 0, GIT_ITEROVER on iteration completion or an error code
|
505
|
-
*/
|
506
|
-
GIT_EXTERN(int) git_index_iterator_next(
|
507
|
-
const git_index_entry **out,
|
508
|
-
git_index_iterator *iterator);
|
509
|
-
|
510
|
-
/**
|
511
|
-
* Free the index iterator
|
512
|
-
*
|
513
|
-
* @param iterator The iterator to free
|
514
|
-
*/
|
515
|
-
GIT_EXTERN(void) git_index_iterator_free(git_index_iterator *iterator);
|
516
|
-
|
517
|
-
/**@}*/
|
518
|
-
|
519
495
|
/** @name Workdir Index Entry Functions
|
520
496
|
*
|
521
497
|
* These functions work on index entries specifically in the working
|
@@ -572,7 +548,7 @@ GIT_EXTERN(int) git_index_add_bypath(git_index *index, const char *path);
|
|
572
548
|
* @param len length of the data
|
573
549
|
* @return 0 or an error code
|
574
550
|
*/
|
575
|
-
GIT_EXTERN(int)
|
551
|
+
GIT_EXTERN(int) git_index_add_frombuffer(
|
576
552
|
git_index *index,
|
577
553
|
const git_index_entry *entry,
|
578
554
|
const void *buffer, size_t len);
|
@@ -829,6 +805,8 @@ GIT_EXTERN(int) git_index_conflict_next(
|
|
829
805
|
GIT_EXTERN(void) git_index_conflict_iterator_free(
|
830
806
|
git_index_conflict_iterator *iterator);
|
831
807
|
|
808
|
+
/**@}*/
|
809
|
+
|
832
810
|
/** @} */
|
833
811
|
GIT_END_DECL
|
834
812
|
#endif
|
@@ -13,79 +13,8 @@
|
|
13
13
|
|
14
14
|
GIT_BEGIN_DECL
|
15
15
|
|
16
|
-
/** A git indexer object */
|
17
16
|
typedef struct git_indexer git_indexer;
|
18
17
|
|
19
|
-
/**
|
20
|
-
* This structure is used to provide callers information about the
|
21
|
-
* progress of indexing a packfile, either directly or part of a
|
22
|
-
* fetch or clone that downloads a packfile.
|
23
|
-
*/
|
24
|
-
typedef struct git_indexer_progress {
|
25
|
-
/** number of objects in the packfile being indexed */
|
26
|
-
unsigned int total_objects;
|
27
|
-
|
28
|
-
/** received objects that have been hashed */
|
29
|
-
unsigned int indexed_objects;
|
30
|
-
|
31
|
-
/** received_objects: objects which have been downloaded */
|
32
|
-
unsigned int received_objects;
|
33
|
-
|
34
|
-
/**
|
35
|
-
* locally-available objects that have been injected in order
|
36
|
-
* to fix a thin pack
|
37
|
-
*/
|
38
|
-
unsigned int local_objects;
|
39
|
-
|
40
|
-
/** number of deltas in the packfile being indexed */
|
41
|
-
unsigned int total_deltas;
|
42
|
-
|
43
|
-
/** received deltas that have been indexed */
|
44
|
-
unsigned int indexed_deltas;
|
45
|
-
|
46
|
-
/** size of the packfile received up to now */
|
47
|
-
size_t received_bytes;
|
48
|
-
} git_indexer_progress;
|
49
|
-
|
50
|
-
/**
|
51
|
-
* Type for progress callbacks during indexing. Return a value less
|
52
|
-
* than zero to cancel the indexing or download.
|
53
|
-
*
|
54
|
-
* @param stats Structure containing information about the state of the tran sfer
|
55
|
-
* @param payload Payload provided by caller
|
56
|
-
*/
|
57
|
-
typedef int GIT_CALLBACK(git_indexer_progress_cb)(const git_indexer_progress *stats, void *payload);
|
58
|
-
|
59
|
-
/**
|
60
|
-
* Options for indexer configuration
|
61
|
-
*/
|
62
|
-
typedef struct git_indexer_options {
|
63
|
-
unsigned int version;
|
64
|
-
|
65
|
-
/** progress_cb function to call with progress information */
|
66
|
-
git_indexer_progress_cb progress_cb;
|
67
|
-
/** progress_cb_payload payload for the progress callback */
|
68
|
-
void *progress_cb_payload;
|
69
|
-
|
70
|
-
/** Do connectivity checks for the received pack */
|
71
|
-
unsigned char verify;
|
72
|
-
} git_indexer_options;
|
73
|
-
|
74
|
-
#define GIT_INDEXER_OPTIONS_VERSION 1
|
75
|
-
#define GIT_INDEXER_OPTIONS_INIT { GIT_INDEXER_OPTIONS_VERSION }
|
76
|
-
|
77
|
-
/**
|
78
|
-
* Initializes a `git_indexer_options` with default values. Equivalent to
|
79
|
-
* creating an instance with GIT_INDEXER_OPTIONS_INIT.
|
80
|
-
*
|
81
|
-
* @param opts the `git_indexer_options` struct to initialize.
|
82
|
-
* @param version Version of struct; pass `GIT_INDEXER_OPTIONS_VERSION`
|
83
|
-
* @return Zero on success; -1 on failure.
|
84
|
-
*/
|
85
|
-
GIT_EXTERN(int) git_indexer_options_init(
|
86
|
-
git_indexer_options *opts,
|
87
|
-
unsigned int version);
|
88
|
-
|
89
18
|
/**
|
90
19
|
* Create a new indexer instance
|
91
20
|
*
|
@@ -95,15 +24,16 @@ GIT_EXTERN(int) git_indexer_options_init(
|
|
95
24
|
* @param odb object database from which to read base objects when
|
96
25
|
* fixing thin packs. Pass NULL if no thin pack is expected (an error
|
97
26
|
* will be returned if there are bases missing)
|
98
|
-
* @param
|
99
|
-
*
|
27
|
+
* @param progress_cb function to call with progress information
|
28
|
+
* @param progress_cb_payload payload for the progress callback
|
100
29
|
*/
|
101
30
|
GIT_EXTERN(int) git_indexer_new(
|
102
31
|
git_indexer **out,
|
103
32
|
const char *path,
|
104
33
|
unsigned int mode,
|
105
34
|
git_odb *odb,
|
106
|
-
|
35
|
+
git_transfer_progress_cb progress_cb,
|
36
|
+
void *progress_cb_payload);
|
107
37
|
|
108
38
|
/**
|
109
39
|
* Add data to the indexer
|
@@ -113,7 +43,7 @@ GIT_EXTERN(int) git_indexer_new(
|
|
113
43
|
* @param size the size of the data in bytes
|
114
44
|
* @param stats stat storage
|
115
45
|
*/
|
116
|
-
GIT_EXTERN(int) git_indexer_append(git_indexer *idx, const void *data, size_t size,
|
46
|
+
GIT_EXTERN(int) git_indexer_append(git_indexer *idx, const void *data, size_t size, git_transfer_progress *stats);
|
117
47
|
|
118
48
|
/**
|
119
49
|
* Finalize the pack and index
|
@@ -122,7 +52,7 @@ GIT_EXTERN(int) git_indexer_append(git_indexer *idx, const void *data, size_t si
|
|
122
52
|
*
|
123
53
|
* @param idx the indexer
|
124
54
|
*/
|
125
|
-
GIT_EXTERN(int) git_indexer_commit(git_indexer *idx,
|
55
|
+
GIT_EXTERN(int) git_indexer_commit(git_indexer *idx, git_transfer_progress *stats);
|
126
56
|
|
127
57
|
/**
|
128
58
|
* Get the packfile's hash
|