rugged 0.28.4 → 0.28.4.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 +16 -36
- data/vendor/libgit2/COPYING +0 -28
- data/vendor/libgit2/cmake/Modules/EnableWarnings.cmake +1 -5
- 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/http_parser.c +6 -11
- data/vendor/libgit2/deps/regex/CMakeLists.txt +2 -0
- data/vendor/libgit2/deps/regex/COPYING +502 -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/adler32.c +7 -0
- data/vendor/libgit2/deps/zlib/crc32.c +7 -0
- data/vendor/libgit2/include/git2.h +0 -2
- data/vendor/libgit2/include/git2/apply.h +2 -22
- data/vendor/libgit2/include/git2/attr.h +12 -19
- data/vendor/libgit2/include/git2/blame.h +2 -2
- data/vendor/libgit2/include/git2/blob.h +12 -44
- data/vendor/libgit2/include/git2/buffer.h +14 -20
- data/vendor/libgit2/include/git2/checkout.h +14 -46
- data/vendor/libgit2/include/git2/cherrypick.h +3 -3
- data/vendor/libgit2/include/git2/clone.h +2 -2
- data/vendor/libgit2/include/git2/commit.h +1 -23
- data/vendor/libgit2/include/git2/common.h +5 -7
- data/vendor/libgit2/include/git2/config.h +12 -12
- data/vendor/libgit2/include/git2/deprecated.h +3 -243
- data/vendor/libgit2/include/git2/describe.h +4 -4
- data/vendor/libgit2/include/git2/diff.h +14 -16
- data/vendor/libgit2/include/git2/filter.h +0 -8
- data/vendor/libgit2/include/git2/index.h +1 -2
- data/vendor/libgit2/include/git2/indexer.h +4 -48
- data/vendor/libgit2/include/git2/inttypes.h +309 -0
- data/vendor/libgit2/include/git2/merge.h +10 -6
- data/vendor/libgit2/include/git2/net.h +5 -0
- data/vendor/libgit2/include/git2/object.h +14 -2
- data/vendor/libgit2/include/git2/odb.h +2 -3
- data/vendor/libgit2/include/git2/odb_backend.h +4 -5
- data/vendor/libgit2/include/git2/oid.h +1 -1
- data/vendor/libgit2/include/git2/pack.h +1 -12
- data/vendor/libgit2/include/git2/proxy.h +3 -5
- data/vendor/libgit2/include/git2/rebase.h +2 -46
- data/vendor/libgit2/include/git2/refs.h +0 -19
- data/vendor/libgit2/include/git2/remote.h +12 -35
- data/vendor/libgit2/include/git2/repository.h +2 -24
- data/vendor/libgit2/include/git2/revert.h +1 -1
- data/vendor/libgit2/include/git2/stash.h +3 -3
- data/vendor/libgit2/include/git2/status.h +16 -25
- data/vendor/libgit2/include/git2/submodule.h +3 -20
- data/vendor/libgit2/include/git2/sys/alloc.h +9 -9
- data/vendor/libgit2/include/git2/sys/odb_backend.h +4 -48
- data/vendor/libgit2/include/git2/sys/refdb_backend.h +21 -57
- data/vendor/libgit2/include/git2/sys/repository.h +1 -5
- data/vendor/libgit2/include/git2/sys/time.h +31 -0
- data/vendor/libgit2/include/git2/sys/transport.h +2 -2
- data/vendor/libgit2/include/git2/tag.h +2 -11
- data/vendor/libgit2/include/git2/trace.h +2 -2
- data/vendor/libgit2/include/git2/transport.h +340 -11
- data/vendor/libgit2/include/git2/tree.h +1 -1
- data/vendor/libgit2/include/git2/types.h +89 -4
- data/vendor/libgit2/include/git2/version.h +2 -2
- data/vendor/libgit2/include/git2/worktree.h +5 -5
- data/vendor/libgit2/libgit2.pc.in +13 -0
- data/vendor/libgit2/src/CMakeLists.txt +222 -88
- data/vendor/libgit2/src/alloc.c +14 -2
- data/vendor/libgit2/src/apply.c +30 -60
- data/vendor/libgit2/src/attr.c +64 -70
- data/vendor/libgit2/src/attr_file.c +96 -189
- data/vendor/libgit2/src/attr_file.h +9 -9
- data/vendor/libgit2/src/attrcache.c +46 -44
- data/vendor/libgit2/src/attrcache.h +1 -2
- data/vendor/libgit2/src/blame.c +5 -17
- data/vendor/libgit2/src/blame.h +1 -1
- data/vendor/libgit2/src/blame_git.c +7 -21
- data/vendor/libgit2/src/blob.c +17 -81
- data/vendor/libgit2/src/blob.h +2 -2
- data/vendor/libgit2/src/branch.c +5 -29
- data/vendor/libgit2/src/buffer.c +7 -14
- data/vendor/libgit2/src/cache.c +33 -26
- data/vendor/libgit2/src/cache.h +1 -1
- data/vendor/libgit2/src/cc-compat.h +0 -5
- data/vendor/libgit2/src/checkout.c +16 -26
- data/vendor/libgit2/src/cherrypick.c +3 -9
- data/vendor/libgit2/src/clone.c +7 -29
- data/vendor/libgit2/src/clone.h +0 -4
- data/vendor/libgit2/src/commit.c +21 -69
- data/vendor/libgit2/src/commit.h +0 -6
- data/vendor/libgit2/src/commit_list.c +76 -28
- data/vendor/libgit2/src/commit_list.h +2 -2
- data/vendor/libgit2/src/common.h +75 -3
- data/vendor/libgit2/src/config.c +40 -31
- data/vendor/libgit2/src/config.h +6 -7
- data/vendor/libgit2/src/config_backend.h +0 -12
- data/vendor/libgit2/src/config_cache.c +39 -39
- data/vendor/libgit2/src/config_entries.c +99 -69
- data/vendor/libgit2/src/config_entries.h +0 -1
- data/vendor/libgit2/src/config_file.c +380 -337
- data/vendor/libgit2/src/config_mem.c +16 -12
- data/vendor/libgit2/src/config_parse.c +29 -49
- data/vendor/libgit2/src/config_parse.h +12 -13
- data/vendor/libgit2/src/crlf.c +14 -14
- data/vendor/libgit2/src/describe.c +20 -21
- data/vendor/libgit2/src/diff.c +58 -43
- data/vendor/libgit2/src/diff.h +1 -2
- data/vendor/libgit2/src/diff_driver.c +38 -37
- data/vendor/libgit2/src/diff_file.c +7 -9
- data/vendor/libgit2/src/diff_file.h +1 -1
- data/vendor/libgit2/src/diff_generate.c +85 -135
- data/vendor/libgit2/src/diff_generate.h +2 -2
- data/vendor/libgit2/src/diff_parse.c +1 -1
- data/vendor/libgit2/src/diff_print.c +13 -25
- data/vendor/libgit2/src/diff_stats.c +1 -1
- data/vendor/libgit2/src/diff_tform.c +4 -4
- data/vendor/libgit2/src/errors.c +22 -12
- data/vendor/libgit2/src/features.h.in +2 -9
- data/vendor/libgit2/src/fetch.c +2 -7
- data/vendor/libgit2/src/fetchhead.c +1 -1
- data/vendor/libgit2/src/filebuf.c +10 -6
- data/vendor/libgit2/src/filebuf.h +2 -2
- data/vendor/libgit2/src/{futils.c → fileops.c} +17 -21
- data/vendor/libgit2/src/{futils.h → fileops.h} +5 -5
- data/vendor/libgit2/src/filter.c +8 -16
- data/vendor/libgit2/src/fnmatch.c +248 -0
- data/vendor/libgit2/src/fnmatch.h +48 -0
- data/vendor/libgit2/src/global.c +40 -12
- data/vendor/libgit2/src/global.h +2 -0
- data/vendor/libgit2/src/hash.c +0 -61
- data/vendor/libgit2/src/hash.h +21 -19
- data/vendor/libgit2/src/hash/{sha1/collisiondetect.c → hash_collisiondetect.h} +17 -14
- data/vendor/libgit2/src/hash/{sha1/common_crypto.c → hash_common_crypto.h} +19 -15
- data/vendor/libgit2/src/hash/{sha1/generic.c → hash_generic.c} +10 -22
- data/vendor/libgit2/src/hash/{sha1/generic.h → hash_generic.h} +14 -4
- data/vendor/libgit2/src/hash/{sha1/mbedtls.c → hash_mbedtls.c} +7 -15
- data/vendor/libgit2/src/hash/{sha1/mbedtls.h → hash_mbedtls.h} +11 -6
- data/vendor/libgit2/src/hash/{sha1/openssl.c → hash_openssl.h} +18 -14
- data/vendor/libgit2/src/hash/{sha1/win32.c → hash_win32.c} +24 -34
- 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 +1 -1
- data/vendor/libgit2/src/idxmap.c +65 -91
- data/vendor/libgit2/src/idxmap.h +15 -151
- data/vendor/libgit2/src/ignore.c +38 -32
- data/vendor/libgit2/src/index.c +43 -66
- data/vendor/libgit2/src/index.h +1 -1
- data/vendor/libgit2/src/indexer.c +70 -69
- data/vendor/libgit2/src/integer.h +4 -39
- data/vendor/libgit2/src/iterator.c +22 -27
- data/vendor/libgit2/src/map.h +1 -1
- data/vendor/libgit2/src/merge.c +44 -58
- data/vendor/libgit2/src/merge_driver.c +4 -4
- data/vendor/libgit2/src/merge_file.c +1 -1
- data/vendor/libgit2/src/mwindow.c +23 -18
- data/vendor/libgit2/src/mwindow.h +4 -4
- data/vendor/libgit2/src/netops.c +165 -55
- data/vendor/libgit2/src/netops.h +25 -3
- data/vendor/libgit2/src/notes.c +2 -2
- data/vendor/libgit2/src/object.c +2 -2
- data/vendor/libgit2/src/object.h +0 -2
- data/vendor/libgit2/src/odb.c +23 -41
- data/vendor/libgit2/src/odb.h +2 -3
- data/vendor/libgit2/src/odb_loose.c +10 -17
- data/vendor/libgit2/src/odb_mempack.c +23 -10
- data/vendor/libgit2/src/odb_pack.c +4 -4
- data/vendor/libgit2/src/offmap.c +55 -43
- data/vendor/libgit2/src/offmap.h +24 -102
- data/vendor/libgit2/src/oid.c +1 -6
- data/vendor/libgit2/src/oidmap.c +57 -39
- data/vendor/libgit2/src/oidmap.h +19 -99
- data/vendor/libgit2/src/pack-objects.c +32 -25
- data/vendor/libgit2/src/pack-objects.h +1 -1
- data/vendor/libgit2/src/pack.c +47 -45
- data/vendor/libgit2/src/pack.h +14 -12
- data/vendor/libgit2/src/parse.c +0 -10
- data/vendor/libgit2/src/parse.h +3 -3
- data/vendor/libgit2/src/patch.c +1 -1
- data/vendor/libgit2/src/patch_generate.c +2 -2
- data/vendor/libgit2/src/patch_parse.c +31 -124
- data/vendor/libgit2/src/path.c +6 -43
- data/vendor/libgit2/src/path.h +0 -2
- data/vendor/libgit2/src/pathspec.c +13 -13
- data/vendor/libgit2/src/pool.c +22 -26
- data/vendor/libgit2/src/pool.h +7 -7
- data/vendor/libgit2/src/posix.c +7 -7
- data/vendor/libgit2/src/posix.h +1 -12
- data/vendor/libgit2/src/proxy.c +2 -7
- data/vendor/libgit2/src/push.c +5 -10
- data/vendor/libgit2/src/reader.c +2 -2
- data/vendor/libgit2/src/rebase.c +7 -66
- data/vendor/libgit2/src/refdb.c +0 -12
- data/vendor/libgit2/src/refdb_fs.c +165 -214
- data/vendor/libgit2/src/reflog.c +13 -11
- data/vendor/libgit2/src/refs.c +18 -24
- data/vendor/libgit2/src/refspec.c +16 -9
- data/vendor/libgit2/src/remote.c +52 -50
- data/vendor/libgit2/src/remote.h +2 -2
- data/vendor/libgit2/src/repository.c +100 -115
- data/vendor/libgit2/src/repository.h +40 -49
- data/vendor/libgit2/src/revert.c +3 -8
- data/vendor/libgit2/src/revparse.c +19 -18
- data/vendor/libgit2/src/revwalk.c +30 -63
- data/vendor/libgit2/src/revwalk.h +0 -20
- data/vendor/libgit2/src/settings.c +0 -5
- data/vendor/libgit2/src/sortedcache.c +26 -12
- data/vendor/libgit2/src/sortedcache.h +1 -1
- data/vendor/libgit2/src/stash.c +65 -45
- data/vendor/libgit2/src/status.c +9 -15
- data/vendor/libgit2/src/{allocators/stdalloc.c → stdalloc.c} +4 -3
- data/vendor/libgit2/src/{allocators/stdalloc.h → stdalloc.h} +4 -4
- data/vendor/libgit2/src/streams/openssl.c +0 -20
- data/vendor/libgit2/src/streams/socket.c +2 -2
- data/vendor/libgit2/src/strmap.c +84 -37
- data/vendor/libgit2/src/strmap.h +33 -105
- data/vendor/libgit2/src/submodule.c +70 -102
- data/vendor/libgit2/src/submodule.h +1 -1
- data/vendor/libgit2/src/sysdir.c +1 -11
- data/vendor/libgit2/src/tag.c +2 -10
- data/vendor/libgit2/src/trace.c +1 -1
- data/vendor/libgit2/src/trace.h +2 -2
- data/vendor/libgit2/src/trailer.c +32 -46
- data/vendor/libgit2/src/transaction.c +9 -10
- data/vendor/libgit2/src/transports/auth.c +9 -10
- data/vendor/libgit2/src/transports/auth.h +4 -11
- data/vendor/libgit2/src/transports/auth_negotiate.c +9 -23
- data/vendor/libgit2/src/transports/auth_negotiate.h +2 -2
- data/vendor/libgit2/src/transports/cred.c +6 -6
- data/vendor/libgit2/src/{allocators/win32_crtdbg.h → transports/cred.h} +4 -5
- data/vendor/libgit2/src/transports/git.c +16 -11
- data/vendor/libgit2/src/transports/http.c +276 -419
- data/vendor/libgit2/src/transports/http.h +1 -1
- data/vendor/libgit2/src/transports/local.c +9 -9
- data/vendor/libgit2/src/transports/smart.c +17 -17
- data/vendor/libgit2/src/transports/smart.h +2 -2
- data/vendor/libgit2/src/transports/smart_protocol.c +60 -36
- data/vendor/libgit2/src/transports/ssh.c +36 -46
- data/vendor/libgit2/src/transports/winhttp.c +207 -231
- data/vendor/libgit2/src/tree-cache.c +7 -14
- data/vendor/libgit2/src/tree.c +24 -10
- data/vendor/libgit2/src/unix/map.c +1 -1
- data/vendor/libgit2/src/unix/posix.h +11 -1
- data/vendor/libgit2/src/userdiff.h +1 -3
- data/vendor/libgit2/src/util.c +53 -51
- data/vendor/libgit2/src/util.h +21 -16
- data/vendor/libgit2/src/win32/map.c +5 -3
- data/vendor/libgit2/src/win32/path_w32.c +2 -12
- data/vendor/libgit2/src/win32/path_w32.h +29 -0
- data/vendor/libgit2/src/win32/posix.h +4 -1
- data/vendor/libgit2/src/win32/posix_w32.c +5 -40
- 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 +3 -7
- data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.c +93 -0
- data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.h +2 -0
- data/vendor/libgit2/src/win32/w32_stack.c +9 -4
- data/vendor/libgit2/src/win32/w32_stack.h +3 -3
- data/vendor/libgit2/src/win32/w32_util.c +0 -31
- data/vendor/libgit2/src/win32/w32_util.h +32 -6
- data/vendor/libgit2/src/worktree.c +22 -36
- data/vendor/libgit2/src/xdiff/xdiffi.c +1 -1
- data/vendor/libgit2/src/xdiff/xmerge.c +0 -12
- data/vendor/libgit2/src/xdiff/xpatience.c +0 -3
- metadata +34 -98
- 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/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/include/git2/cert.h +0 -135
- data/vendor/libgit2/include/git2/cred.h +0 -308
- data/vendor/libgit2/include/git2/sys/cred.h +0 -90
- data/vendor/libgit2/src/allocators/win32_crtdbg.c +0 -118
- 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.h +0 -19
- data/vendor/libgit2/src/hash/sha1/common_crypto.h +0 -19
- data/vendor/libgit2/src/hash/sha1/openssl.h +0 -19
- data/vendor/libgit2/src/net.c +0 -184
- data/vendor/libgit2/src/net.h +0 -36
- data/vendor/libgit2/src/regexp.c +0 -221
- data/vendor/libgit2/src/regexp.h +0 -97
- 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
@@ -57,7 +57,7 @@ typedef struct {
|
|
57
57
|
* `GIT_MERGE_FILE_INPUT_VERSION` here.
|
58
58
|
* @return Zero on success; -1 on failure.
|
59
59
|
*/
|
60
|
-
GIT_EXTERN(int)
|
60
|
+
GIT_EXTERN(int) git_merge_file_init_input(
|
61
61
|
git_merge_file_input *opts,
|
62
62
|
unsigned int version);
|
63
63
|
|
@@ -192,7 +192,7 @@ typedef struct {
|
|
192
192
|
git_merge_file_favor_t favor;
|
193
193
|
|
194
194
|
/** see `git_merge_file_flag_t` above */
|
195
|
-
|
195
|
+
git_merge_file_flag_t flags;
|
196
196
|
|
197
197
|
/** The size of conflict markers (eg, "<<<<<<<"). Default is
|
198
198
|
* GIT_MERGE_CONFLICT_MARKER_SIZE. */
|
@@ -212,7 +212,9 @@ typedef struct {
|
|
212
212
|
* @param version The struct version; pass `GIT_MERGE_FILE_OPTIONS_VERSION`.
|
213
213
|
* @return Zero on success; -1 on failure.
|
214
214
|
*/
|
215
|
-
GIT_EXTERN(int)
|
215
|
+
GIT_EXTERN(int) git_merge_file_init_options(
|
216
|
+
git_merge_file_options *opts,
|
217
|
+
unsigned int version);
|
216
218
|
|
217
219
|
/**
|
218
220
|
* Information about file-level merging
|
@@ -247,7 +249,7 @@ typedef struct {
|
|
247
249
|
unsigned int version;
|
248
250
|
|
249
251
|
/** See `git_merge_flag_t` above */
|
250
|
-
|
252
|
+
git_merge_flag_t flags;
|
251
253
|
|
252
254
|
/**
|
253
255
|
* Similarity to consider a file renamed (default 50). If
|
@@ -291,7 +293,7 @@ typedef struct {
|
|
291
293
|
git_merge_file_favor_t file_favor;
|
292
294
|
|
293
295
|
/** see `git_merge_file_flag_t` above */
|
294
|
-
|
296
|
+
git_merge_file_flag_t file_flags;
|
295
297
|
} git_merge_options;
|
296
298
|
|
297
299
|
#define GIT_MERGE_OPTIONS_VERSION 1
|
@@ -308,7 +310,9 @@ typedef struct {
|
|
308
310
|
* @param version The struct version; pass `GIT_MERGE_OPTIONS_VERSION`.
|
309
311
|
* @return Zero on success; -1 on failure.
|
310
312
|
*/
|
311
|
-
GIT_EXTERN(int)
|
313
|
+
GIT_EXTERN(int) git_merge_init_options(
|
314
|
+
git_merge_options *opts,
|
315
|
+
unsigned int version);
|
312
316
|
|
313
317
|
/**
|
314
318
|
* The results of `git_merge_analysis` indicate the merge opportunities.
|
@@ -21,8 +21,6 @@
|
|
21
21
|
*/
|
22
22
|
GIT_BEGIN_DECL
|
23
23
|
|
24
|
-
#define GIT_OBJECT_SIZE_MAX UINT64_MAX
|
25
|
-
|
26
24
|
/**
|
27
25
|
* Lookup a reference to one of the objects in a repository.
|
28
26
|
*
|
@@ -187,6 +185,20 @@ GIT_EXTERN(git_object_t) git_object_string2type(const char *str);
|
|
187
185
|
*/
|
188
186
|
GIT_EXTERN(int) git_object_typeisloose(git_object_t type);
|
189
187
|
|
188
|
+
/**
|
189
|
+
* Get the size in bytes for the structure which
|
190
|
+
* acts as an in-memory representation of any given
|
191
|
+
* object type.
|
192
|
+
*
|
193
|
+
* For all the core types, this would the equivalent
|
194
|
+
* of calling `sizeof(git_commit)` if the core types
|
195
|
+
* were not opaque on the external API.
|
196
|
+
*
|
197
|
+
* @param type object type to get its size
|
198
|
+
* @return size in bytes of the object
|
199
|
+
*/
|
200
|
+
GIT_EXTERN(size_t) git_object__size(git_object_t type);
|
201
|
+
|
190
202
|
/**
|
191
203
|
* Recursively peel an object until an object of the specified type is met.
|
192
204
|
*
|
@@ -11,7 +11,6 @@
|
|
11
11
|
#include "types.h"
|
12
12
|
#include "oid.h"
|
13
13
|
#include "oidarray.h"
|
14
|
-
#include "indexer.h"
|
15
14
|
|
16
15
|
/**
|
17
16
|
* @file git2/odb.h
|
@@ -294,7 +293,7 @@ GIT_EXTERN(int) git_odb_write(git_oid *out, git_odb *odb, const void *data, size
|
|
294
293
|
* @param type type of the object that will be written
|
295
294
|
* @return 0 if the stream was created; error code otherwise
|
296
295
|
*/
|
297
|
-
GIT_EXTERN(int) git_odb_open_wstream(git_odb_stream **out, git_odb *db,
|
296
|
+
GIT_EXTERN(int) git_odb_open_wstream(git_odb_stream **out, git_odb *db, git_off_t size, git_object_t type);
|
298
297
|
|
299
298
|
/**
|
300
299
|
* Write to an odb stream
|
@@ -392,7 +391,7 @@ GIT_EXTERN(int) git_odb_open_rstream(
|
|
392
391
|
GIT_EXTERN(int) git_odb_write_pack(
|
393
392
|
git_odb_writepack **out,
|
394
393
|
git_odb *db,
|
395
|
-
|
394
|
+
git_transfer_progress_cb progress_cb,
|
396
395
|
void *progress_payload);
|
397
396
|
|
398
397
|
/**
|
@@ -9,7 +9,6 @@
|
|
9
9
|
|
10
10
|
#include "common.h"
|
11
11
|
#include "types.h"
|
12
|
-
#include "indexer.h"
|
13
12
|
|
14
13
|
/**
|
15
14
|
* @file git2/backend.h
|
@@ -87,8 +86,8 @@ struct git_odb_stream {
|
|
87
86
|
unsigned int mode;
|
88
87
|
void *hash_ctx;
|
89
88
|
|
90
|
-
|
91
|
-
|
89
|
+
git_off_t declared_size;
|
90
|
+
git_off_t received_bytes;
|
92
91
|
|
93
92
|
/**
|
94
93
|
* Write at most `len` bytes into `buffer` and advance the stream.
|
@@ -125,8 +124,8 @@ struct git_odb_stream {
|
|
125
124
|
struct git_odb_writepack {
|
126
125
|
git_odb_backend *backend;
|
127
126
|
|
128
|
-
int GIT_CALLBACK(append)(git_odb_writepack *writepack, const void *data, size_t size,
|
129
|
-
int GIT_CALLBACK(commit)(git_odb_writepack *writepack,
|
127
|
+
int GIT_CALLBACK(append)(git_odb_writepack *writepack, const void *data, size_t size, git_transfer_progress *stats);
|
128
|
+
int GIT_CALLBACK(commit)(git_odb_writepack *writepack, git_transfer_progress *stats);
|
130
129
|
void GIT_CALLBACK(free)(git_odb_writepack *writepack);
|
131
130
|
};
|
132
131
|
|
@@ -207,7 +207,7 @@ GIT_EXTERN(int) git_oid_strcmp(const git_oid *id, const char *str);
|
|
207
207
|
*
|
208
208
|
* @return 1 if all zeros, 0 otherwise.
|
209
209
|
*/
|
210
|
-
GIT_EXTERN(int)
|
210
|
+
GIT_EXTERN(int) git_oid_iszero(const git_oid *id);
|
211
211
|
|
212
212
|
/**
|
213
213
|
* OID Shortener object
|
@@ -9,7 +9,6 @@
|
|
9
9
|
|
10
10
|
#include "common.h"
|
11
11
|
#include "oid.h"
|
12
|
-
#include "indexer.h"
|
13
12
|
|
14
13
|
/**
|
15
14
|
* @file git2/pack.h
|
@@ -166,7 +165,7 @@ GIT_EXTERN(int) git_packbuilder_write(
|
|
166
165
|
git_packbuilder *pb,
|
167
166
|
const char *path,
|
168
167
|
unsigned int mode,
|
169
|
-
|
168
|
+
git_transfer_progress_cb progress_cb,
|
170
169
|
void *progress_cb_payload);
|
171
170
|
|
172
171
|
/**
|
@@ -179,16 +178,6 @@ GIT_EXTERN(int) git_packbuilder_write(
|
|
179
178
|
*/
|
180
179
|
GIT_EXTERN(const git_oid *) git_packbuilder_hash(git_packbuilder *pb);
|
181
180
|
|
182
|
-
/**
|
183
|
-
* Callback used to iterate over packed objects
|
184
|
-
*
|
185
|
-
* @see git_packbuilder_foreach
|
186
|
-
*
|
187
|
-
* @param buf A pointer to the object's data
|
188
|
-
* @param size The size of the underlying object
|
189
|
-
* @param payload Payload passed to git_packbuilder_foreach
|
190
|
-
* @return non-zero to terminate the iteration
|
191
|
-
*/
|
192
181
|
typedef int GIT_CALLBACK(git_packbuilder_foreach_cb)(void *buf, size_t size, void *payload);
|
193
182
|
|
194
183
|
/**
|
@@ -8,9 +8,7 @@
|
|
8
8
|
#define INCLUDE_git_proxy_h__
|
9
9
|
|
10
10
|
#include "common.h"
|
11
|
-
|
12
|
-
#include "cert.h"
|
13
|
-
#include "cred.h"
|
11
|
+
#include "transport.h"
|
14
12
|
|
15
13
|
GIT_BEGIN_DECL
|
16
14
|
|
@@ -69,7 +67,7 @@ typedef struct {
|
|
69
67
|
* connection to proceed. Returns 0 to allow the connection
|
70
68
|
* or a negative value to indicate an error.
|
71
69
|
*/
|
72
|
-
|
70
|
+
git_transport_certificate_check_cb certificate_check;
|
73
71
|
|
74
72
|
/**
|
75
73
|
* Payload to be provided to the credentials and certificate
|
@@ -91,7 +89,7 @@ typedef struct {
|
|
91
89
|
* @param version The struct version; pass `GIT_PROXY_OPTIONS_VERSION`.
|
92
90
|
* @return Zero on success; -1 on failure.
|
93
91
|
*/
|
94
|
-
GIT_EXTERN(int)
|
92
|
+
GIT_EXTERN(int) git_proxy_init_options(git_proxy_options *opts, unsigned int version);
|
95
93
|
|
96
94
|
GIT_END_DECL
|
97
95
|
|
@@ -13,7 +13,6 @@
|
|
13
13
|
#include "annotated_commit.h"
|
14
14
|
#include "merge.h"
|
15
15
|
#include "checkout.h"
|
16
|
-
#include "commit.h"
|
17
16
|
|
18
17
|
/**
|
19
18
|
* @file git2/rebase.h
|
@@ -73,21 +72,6 @@ typedef struct {
|
|
73
72
|
* `abort` to match git semantics.
|
74
73
|
*/
|
75
74
|
git_checkout_options checkout_options;
|
76
|
-
|
77
|
-
/**
|
78
|
-
* If provided, this will be called with the commit content, allowing
|
79
|
-
* a signature to be added to the rebase commit. Can be skipped with
|
80
|
-
* GIT_PASSTHROUGH. If GIT_PASSTHROUGH is returned, a commit will be made
|
81
|
-
* without a signature.
|
82
|
-
* This field is only used when performing git_rebase_commit.
|
83
|
-
*/
|
84
|
-
git_commit_signing_cb signing_cb;
|
85
|
-
|
86
|
-
/**
|
87
|
-
* This will be passed to each of the callbacks in this struct
|
88
|
-
* as the last parameter.
|
89
|
-
*/
|
90
|
-
void *payload;
|
91
75
|
} git_rebase_options;
|
92
76
|
|
93
77
|
/**
|
@@ -134,7 +118,7 @@ typedef enum {
|
|
134
118
|
#define GIT_REBASE_OPTIONS_VERSION 1
|
135
119
|
#define GIT_REBASE_OPTIONS_INIT \
|
136
120
|
{ GIT_REBASE_OPTIONS_VERSION, 0, 0, NULL, GIT_MERGE_OPTIONS_INIT, \
|
137
|
-
GIT_CHECKOUT_OPTIONS_INIT
|
121
|
+
GIT_CHECKOUT_OPTIONS_INIT}
|
138
122
|
|
139
123
|
/** Indicates that a rebase operation is not (yet) in progress. */
|
140
124
|
#define GIT_REBASE_NO_OPERATION SIZE_MAX
|
@@ -172,7 +156,7 @@ typedef struct {
|
|
172
156
|
* @param version The struct version; pass `GIT_REBASE_OPTIONS_VERSION`.
|
173
157
|
* @return Zero on success; -1 on failure.
|
174
158
|
*/
|
175
|
-
GIT_EXTERN(int)
|
159
|
+
GIT_EXTERN(int) git_rebase_init_options(
|
176
160
|
git_rebase_options *opts,
|
177
161
|
unsigned int version);
|
178
162
|
|
@@ -215,34 +199,6 @@ GIT_EXTERN(int) git_rebase_open(
|
|
215
199
|
git_repository *repo,
|
216
200
|
const git_rebase_options *opts);
|
217
201
|
|
218
|
-
/**
|
219
|
-
* Gets the original `HEAD` ref name for merge rebases.
|
220
|
-
*
|
221
|
-
* @return The original `HEAD` ref name
|
222
|
-
*/
|
223
|
-
GIT_EXTERN(const char *) git_rebase_orig_head_name(git_rebase *rebase);
|
224
|
-
|
225
|
-
/**
|
226
|
-
* Gets the original `HEAD` id for merge rebases.
|
227
|
-
*
|
228
|
-
* @return The original `HEAD` id
|
229
|
-
*/
|
230
|
-
GIT_EXTERN(const git_oid *) git_rebase_orig_head_id(git_rebase *rebase);
|
231
|
-
|
232
|
-
/**
|
233
|
-
* Gets the `onto` ref name for merge rebases.
|
234
|
-
*
|
235
|
-
* @return The `onto` ref name
|
236
|
-
*/
|
237
|
-
GIT_EXTERN(const char *) git_rebase_onto_name(git_rebase *rebase);
|
238
|
-
|
239
|
-
/**
|
240
|
-
* Gets the `onto` id for merge rebases.
|
241
|
-
*
|
242
|
-
* @return The `onto` id
|
243
|
-
*/
|
244
|
-
GIT_EXTERN(const git_oid *) git_rebase_onto_id(git_rebase *rebase);
|
245
|
-
|
246
202
|
/**
|
247
203
|
* Gets the count of rebase operations that are to be applied.
|
248
204
|
*
|
@@ -422,26 +422,7 @@ GIT_EXTERN(int) git_reference_remove(git_repository *repo, const char *name);
|
|
422
422
|
*/
|
423
423
|
GIT_EXTERN(int) git_reference_list(git_strarray *array, git_repository *repo);
|
424
424
|
|
425
|
-
/**
|
426
|
-
* Callback used to iterate over references
|
427
|
-
*
|
428
|
-
* @see git_reference_foreach
|
429
|
-
*
|
430
|
-
* @param reference The reference object
|
431
|
-
* @param payload Payload passed to git_reference_foreach
|
432
|
-
* @return non-zero to terminate the iteration
|
433
|
-
*/
|
434
425
|
typedef int GIT_CALLBACK(git_reference_foreach_cb)(git_reference *reference, void *payload);
|
435
|
-
|
436
|
-
/**
|
437
|
-
* Callback used to iterate over reference names
|
438
|
-
*
|
439
|
-
* @see git_reference_foreach_name
|
440
|
-
*
|
441
|
-
* @param name The reference name
|
442
|
-
* @param payload Payload passed to git_reference_foreach_name
|
443
|
-
* @return non-zero to terminate the iteration
|
444
|
-
*/
|
445
426
|
typedef int GIT_CALLBACK(git_reference_foreach_name_cb)(const char *name, void *payload);
|
446
427
|
|
447
428
|
/**
|
@@ -56,7 +56,7 @@ typedef enum {
|
|
56
56
|
* Remote creation options structure
|
57
57
|
*
|
58
58
|
* Initialize with `GIT_REMOTE_CREATE_OPTIONS_INIT`. Alternatively, you can
|
59
|
-
* use `
|
59
|
+
* use `git_remote_create_init_options`.
|
60
60
|
*
|
61
61
|
*/
|
62
62
|
typedef struct git_remote_create_options {
|
@@ -94,7 +94,7 @@ typedef struct git_remote_create_options {
|
|
94
94
|
* @param version The struct version; pass `GIT_REMOTE_CREATE_OPTIONS_VERSION`.
|
95
95
|
* @return Zero on success; -1 on failure.
|
96
96
|
*/
|
97
|
-
GIT_EXTERN(int)
|
97
|
+
GIT_EXTERN(int) git_remote_create_init_options(
|
98
98
|
git_remote_create_options *opts,
|
99
99
|
unsigned int version);
|
100
100
|
|
@@ -415,19 +415,18 @@ GIT_EXTERN(int) git_remote_list(git_strarray *out, git_repository *repo);
|
|
415
415
|
* Argument to the completion callback which tells it which operation
|
416
416
|
* finished.
|
417
417
|
*/
|
418
|
-
typedef enum
|
418
|
+
typedef enum git_remote_completion_type {
|
419
419
|
GIT_REMOTE_COMPLETION_DOWNLOAD,
|
420
420
|
GIT_REMOTE_COMPLETION_INDEXING,
|
421
421
|
GIT_REMOTE_COMPLETION_ERROR,
|
422
|
-
}
|
422
|
+
} git_remote_completion_type;
|
423
423
|
|
424
424
|
/** Push network progress notification function */
|
425
|
-
typedef int GIT_CALLBACK(
|
425
|
+
typedef int GIT_CALLBACK(git_push_transfer_progress)(
|
426
426
|
unsigned int current,
|
427
427
|
unsigned int total,
|
428
428
|
size_t bytes,
|
429
429
|
void* payload);
|
430
|
-
|
431
430
|
/**
|
432
431
|
* Represents an update which will be performed on the remote during push
|
433
432
|
*/
|
@@ -474,20 +473,6 @@ typedef int GIT_CALLBACK(git_push_negotiation)(const git_push_update **updates,
|
|
474
473
|
*/
|
475
474
|
typedef int GIT_CALLBACK(git_push_update_reference_cb)(const char *refname, const char *status, void *data);
|
476
475
|
|
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);
|
490
|
-
|
491
476
|
/**
|
492
477
|
* The callback settings structure
|
493
478
|
*
|
@@ -495,8 +480,7 @@ typedef int GIT_CALLBACK(git_url_resolve_cb)(git_buf *url_resolved, const char *
|
|
495
480
|
* about the progress of the network operations.
|
496
481
|
*/
|
497
482
|
struct git_remote_callbacks {
|
498
|
-
unsigned int version;
|
499
|
-
|
483
|
+
unsigned int version;
|
500
484
|
/**
|
501
485
|
* Textual progress from the remote. Text send over the
|
502
486
|
* progress side-band will be passed to this function (this is
|
@@ -508,7 +492,7 @@ struct git_remote_callbacks {
|
|
508
492
|
* Completion is called when different parts of the download
|
509
493
|
* process are done (currently unused).
|
510
494
|
*/
|
511
|
-
int GIT_CALLBACK(completion)(
|
495
|
+
int GIT_CALLBACK(completion)(git_remote_completion_type type, void *data);
|
512
496
|
|
513
497
|
/**
|
514
498
|
* This will be called if the remote host requires
|
@@ -532,7 +516,7 @@ struct git_remote_callbacks {
|
|
532
516
|
* called with the current count of progress done by the
|
533
517
|
* indexer.
|
534
518
|
*/
|
535
|
-
|
519
|
+
git_transfer_progress_cb transfer_progress;
|
536
520
|
|
537
521
|
/**
|
538
522
|
* Each time a reference is updated locally, this function
|
@@ -553,7 +537,7 @@ struct git_remote_callbacks {
|
|
553
537
|
* inline with pack building operations, so performance may be
|
554
538
|
* affected.
|
555
539
|
*/
|
556
|
-
|
540
|
+
git_push_transfer_progress push_transfer_progress;
|
557
541
|
|
558
542
|
/**
|
559
543
|
* See documentation of git_push_update_reference_cb
|
@@ -577,12 +561,6 @@ struct git_remote_callbacks {
|
|
577
561
|
* as the last parameter.
|
578
562
|
*/
|
579
563
|
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
564
|
};
|
587
565
|
|
588
566
|
#define GIT_REMOTE_CALLBACKS_VERSION 1
|
@@ -600,7 +578,6 @@ GIT_EXTERN(int) git_remote_init_callbacks(
|
|
600
578
|
git_remote_callbacks *opts,
|
601
579
|
unsigned int version);
|
602
580
|
|
603
|
-
/** Acceptable prune settings when fetching */
|
604
581
|
typedef enum {
|
605
582
|
/**
|
606
583
|
* Use the setting from the configuration
|
@@ -702,7 +679,7 @@ typedef struct {
|
|
702
679
|
* @param version The struct version; pass `GIT_FETCH_OPTIONS_VERSION`.
|
703
680
|
* @return Zero on success; -1 on failure.
|
704
681
|
*/
|
705
|
-
GIT_EXTERN(int)
|
682
|
+
GIT_EXTERN(int) git_fetch_init_options(
|
706
683
|
git_fetch_options *opts,
|
707
684
|
unsigned int version);
|
708
685
|
|
@@ -752,7 +729,7 @@ typedef struct {
|
|
752
729
|
* @param version The struct version; pass `GIT_PUSH_OPTIONS_VERSION`.
|
753
730
|
* @return Zero on success; -1 on failure.
|
754
731
|
*/
|
755
|
-
GIT_EXTERN(int)
|
732
|
+
GIT_EXTERN(int) git_push_init_options(
|
756
733
|
git_push_options *opts,
|
757
734
|
unsigned int version);
|
758
735
|
|
@@ -855,7 +832,7 @@ GIT_EXTERN(int) git_remote_push(git_remote *remote,
|
|
855
832
|
/**
|
856
833
|
* Get the statistics structure that is filled in by the fetch operation.
|
857
834
|
*/
|
858
|
-
GIT_EXTERN(const
|
835
|
+
GIT_EXTERN(const git_transfer_progress *) git_remote_stats(git_remote *remote);
|
859
836
|
|
860
837
|
/**
|
861
838
|
* Retrieve the tag auto-follow setting
|