rugged 1.0.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -0
- data/README.md +1 -1
- data/ext/rugged/rugged.c +7 -4
- data/ext/rugged/rugged_commit.c +1 -1
- data/ext/rugged/rugged_object.c +1 -1
- data/ext/rugged/rugged_repo.c +3 -3
- data/lib/rugged/commit.rb +16 -2
- data/lib/rugged/repository.rb +2 -2
- data/lib/rugged/version.rb +1 -1
- data/vendor/libgit2/CMakeLists.txt +41 -74
- data/vendor/libgit2/COPYING +109 -1
- data/vendor/libgit2/cmake/{Modules/AddCFlagIfSupported.cmake → AddCFlagIfSupported.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/EnableWarnings.cmake → EnableWarnings.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/FindCoreFoundation.cmake → FindCoreFoundation.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/FindGSSAPI.cmake → FindGSSAPI.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/FindGSSFramework.cmake → FindGSSFramework.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/FindHTTP_Parser.cmake → FindHTTP_Parser.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/FindIconv.cmake → FindIconv.cmake} +0 -0
- data/vendor/libgit2/cmake/FindLibSSH2.cmake +13 -0
- data/vendor/libgit2/cmake/{Modules/FindPCRE.cmake → FindPCRE.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/FindPCRE2.cmake → FindPCRE2.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/FindPkgLibraries.cmake → FindPkgLibraries.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/FindSecurity.cmake → FindSecurity.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/FindStatNsec.cmake → FindStatNsec.cmake} +0 -0
- data/vendor/libgit2/cmake/Findfutimens.cmake +14 -0
- data/vendor/libgit2/cmake/{Modules/FindmbedTLS.cmake → FindmbedTLS.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/IdeSplitSources.cmake → IdeSplitSources.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/PkgBuildConfig.cmake → PkgBuildConfig.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/SanitizeBool.cmake → SanitizeBool.cmake} +0 -0
- data/vendor/libgit2/cmake/{Modules/SelectGSSAPI.cmake → SelectGSSAPI.cmake} +18 -26
- data/vendor/libgit2/cmake/{Modules/SelectHTTPSBackend.cmake → SelectHTTPSBackend.cmake} +29 -32
- data/vendor/libgit2/cmake/{Modules/SelectHashes.cmake → SelectHashes.cmake} +21 -28
- data/vendor/libgit2/deps/chromium-zlib/CMakeLists.txt +101 -0
- data/vendor/libgit2/deps/http-parser/CMakeLists.txt +4 -3
- data/vendor/libgit2/deps/ntlmclient/CMakeLists.txt +24 -10
- data/vendor/libgit2/deps/ntlmclient/compat.h +0 -27
- data/vendor/libgit2/deps/ntlmclient/crypt.h +14 -9
- data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.c +20 -20
- data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.h +3 -3
- data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.c +37 -36
- data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.h +4 -3
- data/vendor/libgit2/deps/ntlmclient/crypt_openssl.c +178 -51
- data/vendor/libgit2/deps/ntlmclient/crypt_openssl.h +74 -5
- data/vendor/libgit2/deps/ntlmclient/ntlm.c +164 -135
- data/vendor/libgit2/deps/ntlmclient/ntlm.h +13 -9
- data/vendor/libgit2/deps/ntlmclient/ntlmclient.h +16 -3
- data/vendor/libgit2/deps/ntlmclient/unicode.h +10 -4
- data/vendor/libgit2/deps/ntlmclient/unicode_builtin.c +16 -27
- data/vendor/libgit2/deps/ntlmclient/unicode_builtin.h +20 -0
- data/vendor/libgit2/deps/ntlmclient/unicode_iconv.c +28 -52
- data/vendor/libgit2/deps/ntlmclient/unicode_iconv.h +22 -0
- data/vendor/libgit2/deps/ntlmclient/util.c +15 -1
- data/vendor/libgit2/deps/ntlmclient/util.h +2 -1
- data/vendor/libgit2/deps/pcre/LICENCE +93 -0
- data/vendor/libgit2/deps/pcre/pcre.h +2 -2
- data/vendor/libgit2/deps/pcre/pcre_compile.c +29 -17
- data/vendor/libgit2/deps/pcre/pcre_jit_compile.c +4 -4
- data/vendor/libgit2/deps/pcre/pcreposix.c +2 -3
- data/vendor/libgit2/deps/zlib/CMakeLists.txt +6 -5
- data/vendor/libgit2/deps/zlib/deflate.c +1 -0
- data/vendor/libgit2/include/git2/annotated_commit.h +1 -1
- data/vendor/libgit2/include/git2/apply.h +2 -0
- data/vendor/libgit2/include/git2/attr.h +95 -0
- data/vendor/libgit2/include/git2/blame.h +95 -42
- data/vendor/libgit2/include/git2/blob.h +37 -3
- data/vendor/libgit2/include/git2/branch.h +25 -0
- data/vendor/libgit2/include/git2/cert.h +42 -5
- data/vendor/libgit2/include/git2/checkout.h +28 -12
- data/vendor/libgit2/include/git2/clone.h +1 -1
- data/vendor/libgit2/include/git2/commit.h +35 -19
- data/vendor/libgit2/include/git2/common.h +51 -6
- data/vendor/libgit2/include/git2/config.h +1 -1
- data/vendor/libgit2/include/git2/deprecated.h +368 -8
- data/vendor/libgit2/include/git2/diff.h +34 -113
- data/vendor/libgit2/include/git2/email.h +127 -0
- data/vendor/libgit2/include/git2/errors.h +8 -7
- data/vendor/libgit2/include/git2/filter.h +63 -17
- data/vendor/libgit2/include/git2/graph.h +20 -2
- data/vendor/libgit2/include/git2/index.h +4 -5
- data/vendor/libgit2/include/git2/indexer.h +2 -1
- data/vendor/libgit2/include/git2/notes.h +2 -2
- data/vendor/libgit2/include/git2/odb.h +44 -20
- data/vendor/libgit2/include/git2/oidarray.h +5 -8
- data/vendor/libgit2/include/git2/pack.h +1 -1
- data/vendor/libgit2/include/git2/patch.h +8 -0
- data/vendor/libgit2/include/git2/rebase.h +25 -1
- data/vendor/libgit2/include/git2/refs.h +9 -5
- data/vendor/libgit2/include/git2/remote.h +62 -9
- data/vendor/libgit2/include/git2/repository.h +107 -62
- data/vendor/libgit2/include/git2/revparse.h +5 -5
- data/vendor/libgit2/include/git2/stash.h +1 -1
- data/vendor/libgit2/include/git2/status.h +115 -59
- data/vendor/libgit2/include/git2/stdint.h +3 -3
- data/vendor/libgit2/include/git2/strarray.h +6 -10
- data/vendor/libgit2/include/git2/submodule.h +9 -0
- data/vendor/libgit2/include/git2/sys/commit_graph.h +174 -0
- data/vendor/libgit2/include/git2/sys/email.h +45 -0
- data/vendor/libgit2/include/git2/sys/filter.h +49 -28
- data/vendor/libgit2/include/git2/sys/midx.h +74 -0
- data/vendor/libgit2/include/git2/sys/odb_backend.h +7 -0
- data/vendor/libgit2/include/git2/sys/transport.h +1 -0
- data/vendor/libgit2/include/git2/tag.h +12 -0
- data/vendor/libgit2/include/git2/transport.h +1 -1
- data/vendor/libgit2/include/git2/tree.h +2 -14
- data/vendor/libgit2/include/git2/types.h +9 -0
- data/vendor/libgit2/include/git2/version.h +4 -4
- data/vendor/libgit2/include/git2/worktree.h +1 -0
- data/vendor/libgit2/include/git2.h +1 -0
- data/vendor/libgit2/src/CMakeLists.txt +84 -44
- data/vendor/libgit2/src/alloc.c +21 -8
- data/vendor/libgit2/src/allocators/failalloc.c +92 -0
- data/vendor/libgit2/src/allocators/failalloc.h +23 -0
- data/vendor/libgit2/src/allocators/stdalloc.c +41 -10
- data/vendor/libgit2/src/allocators/win32_leakcheck.c +118 -0
- data/vendor/libgit2/src/allocators/{win32_crtdbg.h → win32_leakcheck.h} +3 -3
- data/vendor/libgit2/src/annotated_commit.c +21 -9
- data/vendor/libgit2/src/apply.c +21 -8
- data/vendor/libgit2/src/array.h +11 -11
- data/vendor/libgit2/src/assert_safe.h +58 -0
- data/vendor/libgit2/src/attr.c +192 -70
- data/vendor/libgit2/src/attr_file.c +99 -41
- data/vendor/libgit2/src/attr_file.h +32 -11
- data/vendor/libgit2/src/attrcache.c +44 -40
- data/vendor/libgit2/src/attrcache.h +4 -5
- data/vendor/libgit2/src/blame.c +32 -19
- data/vendor/libgit2/src/blame_git.c +7 -4
- data/vendor/libgit2/src/blob.c +60 -32
- data/vendor/libgit2/src/branch.c +87 -37
- data/vendor/libgit2/src/buffer.c +349 -29
- data/vendor/libgit2/src/buffer.h +154 -2
- data/vendor/libgit2/src/cache.c +3 -24
- data/vendor/libgit2/src/cache.h +7 -7
- data/vendor/libgit2/src/cc-compat.h +10 -8
- data/vendor/libgit2/src/checkout.c +103 -105
- data/vendor/libgit2/src/cherrypick.c +8 -2
- data/vendor/libgit2/src/clone.c +105 -30
- data/vendor/libgit2/src/commit.c +41 -28
- data/vendor/libgit2/src/commit_graph.c +1209 -0
- data/vendor/libgit2/src/commit_graph.h +162 -0
- data/vendor/libgit2/src/commit_list.c +46 -0
- data/vendor/libgit2/src/commit_list.h +2 -0
- data/vendor/libgit2/src/common.h +26 -2
- data/vendor/libgit2/src/config.c +41 -23
- data/vendor/libgit2/src/config_cache.c +9 -4
- data/vendor/libgit2/src/config_entries.c +35 -27
- data/vendor/libgit2/src/config_file.c +17 -9
- data/vendor/libgit2/src/config_parse.c +6 -8
- data/vendor/libgit2/src/config_snapshot.c +2 -1
- data/vendor/libgit2/src/crlf.c +16 -6
- data/vendor/libgit2/src/date.c +4 -3
- data/vendor/libgit2/src/delta.c +1 -1
- data/vendor/libgit2/src/describe.c +12 -5
- data/vendor/libgit2/src/diff.c +55 -183
- data/vendor/libgit2/src/diff_driver.c +21 -17
- data/vendor/libgit2/src/diff_file.c +5 -7
- data/vendor/libgit2/src/diff_generate.c +56 -28
- data/vendor/libgit2/src/diff_parse.c +2 -3
- data/vendor/libgit2/src/diff_print.c +81 -65
- data/vendor/libgit2/src/diff_stats.c +19 -16
- data/vendor/libgit2/src/diff_tform.c +13 -13
- data/vendor/libgit2/src/diff_xdiff.c +4 -2
- data/vendor/libgit2/src/diff_xdiff.h +1 -1
- data/vendor/libgit2/src/email.c +299 -0
- data/vendor/libgit2/src/email.h +25 -0
- data/vendor/libgit2/src/errors.c +26 -19
- data/vendor/libgit2/src/features.h.in +5 -1
- data/vendor/libgit2/src/fetch.c +7 -2
- data/vendor/libgit2/src/fetchhead.c +8 -4
- data/vendor/libgit2/src/filebuf.c +9 -7
- data/vendor/libgit2/src/filter.c +215 -113
- data/vendor/libgit2/src/filter.h +24 -5
- data/vendor/libgit2/src/futils.c +8 -8
- data/vendor/libgit2/src/futils.h +4 -4
- data/vendor/libgit2/src/graph.c +64 -9
- data/vendor/libgit2/src/hash/sha1/collisiondetect.c +3 -3
- data/vendor/libgit2/src/hash/sha1/common_crypto.c +3 -3
- data/vendor/libgit2/src/hash/sha1/generic.h +1 -1
- data/vendor/libgit2/src/hash/sha1/mbedtls.c +12 -12
- data/vendor/libgit2/src/hash/sha1/openssl.c +3 -3
- data/vendor/libgit2/src/hash/sha1/sha1dc/sha1.c +8 -10
- data/vendor/libgit2/src/hash/sha1/win32.c +15 -11
- data/vendor/libgit2/src/hash.c +16 -13
- data/vendor/libgit2/src/hash.h +1 -1
- data/vendor/libgit2/src/hashsig.c +23 -10
- data/vendor/libgit2/src/ident.c +13 -3
- data/vendor/libgit2/src/idxmap.c +0 -22
- data/vendor/libgit2/src/ignore.c +33 -17
- data/vendor/libgit2/src/index.c +124 -82
- data/vendor/libgit2/src/index.h +1 -1
- data/vendor/libgit2/src/indexer.c +95 -37
- data/vendor/libgit2/src/integer.h +79 -2
- data/vendor/libgit2/src/iterator.c +40 -28
- data/vendor/libgit2/src/iterator.h +1 -1
- data/vendor/libgit2/src/khash.h +2 -11
- data/vendor/libgit2/src/{settings.c → libgit2.c} +148 -49
- data/vendor/libgit2/src/libgit2.h +15 -0
- data/vendor/libgit2/src/mailmap.c +23 -10
- data/vendor/libgit2/src/map.h +3 -3
- data/vendor/libgit2/src/merge.c +95 -43
- data/vendor/libgit2/src/merge.h +2 -1
- data/vendor/libgit2/src/merge_driver.c +19 -13
- data/vendor/libgit2/src/merge_file.c +15 -9
- data/vendor/libgit2/src/message.c +3 -1
- data/vendor/libgit2/src/midx.c +879 -0
- data/vendor/libgit2/src/midx.h +110 -0
- data/vendor/libgit2/src/mwindow.c +214 -95
- data/vendor/libgit2/src/mwindow.h +3 -3
- data/vendor/libgit2/src/net.c +133 -4
- data/vendor/libgit2/src/net.h +16 -2
- data/vendor/libgit2/src/netops.c +6 -4
- data/vendor/libgit2/src/netops.h +2 -2
- data/vendor/libgit2/src/notes.c +40 -40
- data/vendor/libgit2/src/object.c +24 -15
- data/vendor/libgit2/src/odb.c +298 -57
- data/vendor/libgit2/src/odb.h +16 -2
- data/vendor/libgit2/src/odb_loose.c +31 -21
- data/vendor/libgit2/src/odb_mempack.c +3 -1
- data/vendor/libgit2/src/odb_pack.c +391 -114
- data/vendor/libgit2/src/oid.c +7 -4
- data/vendor/libgit2/src/oidarray.c +10 -1
- data/vendor/libgit2/src/pack-objects.c +83 -69
- data/vendor/libgit2/src/pack.c +383 -150
- data/vendor/libgit2/src/pack.h +44 -9
- data/vendor/libgit2/src/patch.c +14 -7
- data/vendor/libgit2/src/patch_generate.c +3 -5
- data/vendor/libgit2/src/patch_parse.c +6 -3
- data/vendor/libgit2/src/path.c +103 -58
- data/vendor/libgit2/src/path.h +80 -7
- data/vendor/libgit2/src/pathspec.c +12 -11
- data/vendor/libgit2/src/pool.c +34 -22
- data/vendor/libgit2/src/pool.h +9 -1
- data/vendor/libgit2/src/posix.c +43 -12
- data/vendor/libgit2/src/posix.h +9 -0
- data/vendor/libgit2/src/proxy.c +2 -0
- data/vendor/libgit2/src/push.c +2 -0
- data/vendor/libgit2/src/reader.c +10 -6
- data/vendor/libgit2/src/rebase.c +95 -49
- data/vendor/libgit2/src/refdb.c +165 -13
- data/vendor/libgit2/src/refdb.h +69 -0
- data/vendor/libgit2/src/refdb_fs.c +145 -153
- data/vendor/libgit2/src/reflog.c +21 -20
- data/vendor/libgit2/src/refs.c +153 -233
- data/vendor/libgit2/src/refs.h +2 -20
- data/vendor/libgit2/src/refspec.c +81 -45
- data/vendor/libgit2/src/regexp.c +2 -2
- data/vendor/libgit2/src/remote.c +320 -122
- data/vendor/libgit2/src/remote.h +2 -1
- data/vendor/libgit2/src/repository.c +476 -203
- data/vendor/libgit2/src/repository.h +27 -29
- data/vendor/libgit2/src/reset.c +8 -7
- data/vendor/libgit2/src/revert.c +8 -2
- data/vendor/libgit2/src/revparse.c +23 -17
- data/vendor/libgit2/src/revwalk.c +35 -20
- data/vendor/libgit2/src/runtime.c +162 -0
- data/vendor/libgit2/src/runtime.h +62 -0
- data/vendor/libgit2/src/{refdb_fs.h → settings.h} +3 -11
- data/vendor/libgit2/src/signature.c +6 -5
- data/vendor/libgit2/src/sortedcache.c +2 -3
- data/vendor/libgit2/src/sortedcache.h +10 -8
- data/vendor/libgit2/src/stash.c +6 -2
- data/vendor/libgit2/src/status.c +9 -4
- data/vendor/libgit2/src/strarray.c +64 -0
- data/vendor/libgit2/src/streams/mbedtls.c +14 -17
- data/vendor/libgit2/src/streams/mbedtls.h +1 -1
- data/vendor/libgit2/src/streams/openssl.c +113 -207
- data/vendor/libgit2/src/streams/openssl.h +9 -1
- data/vendor/libgit2/src/streams/openssl_dynamic.c +309 -0
- data/vendor/libgit2/src/streams/openssl_dynamic.h +348 -0
- data/vendor/libgit2/src/streams/openssl_legacy.c +203 -0
- data/vendor/libgit2/src/streams/openssl_legacy.h +63 -0
- data/vendor/libgit2/src/streams/registry.c +10 -9
- data/vendor/libgit2/src/streams/socket.c +6 -2
- data/vendor/libgit2/src/streams/stransport.c +6 -3
- data/vendor/libgit2/src/streams/tls.c +5 -3
- data/vendor/libgit2/src/submodule.c +134 -66
- data/vendor/libgit2/src/submodule.h +9 -9
- data/vendor/libgit2/src/sysdir.c +8 -26
- data/vendor/libgit2/src/sysdir.h +0 -11
- data/vendor/libgit2/src/tag.c +49 -11
- data/vendor/libgit2/src/thread.c +140 -0
- data/vendor/libgit2/src/thread.h +479 -0
- data/vendor/libgit2/src/threadstate.c +84 -0
- data/vendor/libgit2/src/threadstate.h +24 -0
- data/vendor/libgit2/src/trace.c +2 -2
- data/vendor/libgit2/src/trace.h +17 -13
- data/vendor/libgit2/src/trailer.c +1 -1
- data/vendor/libgit2/src/transaction.c +21 -9
- data/vendor/libgit2/src/transport.c +3 -3
- data/vendor/libgit2/src/transports/auth.c +1 -1
- data/vendor/libgit2/src/transports/auth_negotiate.c +11 -4
- data/vendor/libgit2/src/transports/auth_ntlm.c +10 -6
- data/vendor/libgit2/src/transports/credential.c +17 -7
- data/vendor/libgit2/src/transports/credential_helpers.c +2 -0
- data/vendor/libgit2/src/transports/git.c +1 -3
- data/vendor/libgit2/src/transports/http.c +19 -17
- data/vendor/libgit2/src/transports/http.h +1 -0
- data/vendor/libgit2/src/transports/httpclient.c +68 -38
- data/vendor/libgit2/src/transports/httpclient.h +1 -1
- data/vendor/libgit2/src/transports/local.c +5 -5
- data/vendor/libgit2/src/transports/smart.c +14 -9
- data/vendor/libgit2/src/transports/smart.h +1 -1
- data/vendor/libgit2/src/transports/smart_protocol.c +11 -5
- data/vendor/libgit2/src/transports/ssh.c +55 -21
- data/vendor/libgit2/src/transports/winhttp.c +157 -89
- data/vendor/libgit2/src/tree.c +100 -77
- data/vendor/libgit2/src/tree.h +1 -0
- data/vendor/libgit2/src/tsort.c +0 -2
- data/vendor/libgit2/src/unix/map.c +3 -1
- data/vendor/libgit2/src/unix/posix.h +16 -1
- data/vendor/libgit2/src/unix/pthread.h +2 -1
- data/vendor/libgit2/src/utf8.c +150 -0
- data/vendor/libgit2/src/utf8.h +52 -0
- data/vendor/libgit2/src/util.c +75 -184
- data/vendor/libgit2/src/util.h +34 -40
- data/vendor/libgit2/src/vector.c +23 -19
- data/vendor/libgit2/src/vector.h +4 -2
- data/vendor/libgit2/src/win32/findfile.c +5 -3
- data/vendor/libgit2/src/win32/git2.rc +18 -3
- data/vendor/libgit2/src/win32/map.c +1 -1
- data/vendor/libgit2/src/win32/msvc-compat.h +9 -1
- data/vendor/libgit2/src/win32/path_w32.c +23 -25
- data/vendor/libgit2/src/win32/path_w32.h +0 -1
- data/vendor/libgit2/src/win32/posix.h +6 -6
- data/vendor/libgit2/src/win32/posix_w32.c +86 -7
- data/vendor/libgit2/src/win32/precompiled.h +0 -1
- data/vendor/libgit2/src/win32/reparse.h +4 -4
- data/vendor/libgit2/src/win32/thread.c +24 -15
- data/vendor/libgit2/src/win32/thread.h +1 -1
- data/vendor/libgit2/src/win32/w32_buffer.c +3 -3
- data/vendor/libgit2/src/win32/w32_common.h +18 -9
- data/vendor/libgit2/src/win32/{w32_crtdbg_stacktrace.c → w32_leakcheck.c} +269 -33
- data/vendor/libgit2/src/win32/w32_leakcheck.h +222 -0
- data/vendor/libgit2/src/win32/w32_util.h +6 -6
- data/vendor/libgit2/src/worktree.c +36 -14
- data/vendor/libgit2/src/zstream.c +1 -1
- metadata +65 -42
- data/vendor/libgit2/cmake/Modules/CheckPrototypeDefinition.c.in +0 -29
- data/vendor/libgit2/cmake/Modules/CheckPrototypeDefinition.cmake +0 -96
- data/vendor/libgit2/src/allocators/win32_crtdbg.c +0 -118
- data/vendor/libgit2/src/buf_text.c +0 -316
- data/vendor/libgit2/src/buf_text.h +0 -122
- data/vendor/libgit2/src/global.c +0 -361
- data/vendor/libgit2/src/global.h +0 -41
- data/vendor/libgit2/src/thread-utils.c +0 -58
- data/vendor/libgit2/src/thread-utils.h +0 -246
- data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.h +0 -127
- data/vendor/libgit2/src/win32/w32_stack.c +0 -188
- data/vendor/libgit2/src/win32/w32_stack.h +0 -140
@@ -37,12 +37,13 @@ int git_worktree_list(git_strarray *wts, git_repository *repo)
|
|
37
37
|
size_t i, len;
|
38
38
|
int error;
|
39
39
|
|
40
|
-
|
40
|
+
GIT_ASSERT_ARG(wts);
|
41
|
+
GIT_ASSERT_ARG(repo);
|
41
42
|
|
42
43
|
wts->count = 0;
|
43
44
|
wts->strings = NULL;
|
44
45
|
|
45
|
-
if ((error =
|
46
|
+
if ((error = git_buf_joinpath(&path, repo->commondir, "worktrees/")) < 0)
|
46
47
|
goto exit;
|
47
48
|
if (!git_path_exists(path.ptr) || git_path_is_empty_dir(path.ptr))
|
48
49
|
goto exit;
|
@@ -73,7 +74,8 @@ char *git_worktree__read_link(const char *base, const char *file)
|
|
73
74
|
{
|
74
75
|
git_buf path = GIT_BUF_INIT, buf = GIT_BUF_INIT;
|
75
76
|
|
76
|
-
|
77
|
+
GIT_ASSERT_ARG_WITH_RETVAL(base, NULL);
|
78
|
+
GIT_ASSERT_ARG_WITH_RETVAL(file, NULL);
|
77
79
|
|
78
80
|
if (git_buf_joinpath(&path, base, file) < 0)
|
79
81
|
goto err;
|
@@ -106,7 +108,9 @@ static int write_wtfile(const char *base, const char *file, const git_buf *buf)
|
|
106
108
|
git_buf path = GIT_BUF_INIT;
|
107
109
|
int err;
|
108
110
|
|
109
|
-
|
111
|
+
GIT_ASSERT_ARG(base);
|
112
|
+
GIT_ASSERT_ARG(file);
|
113
|
+
GIT_ASSERT_ARG(buf);
|
110
114
|
|
111
115
|
if ((err = git_buf_joinpath(&path, base, file)) < 0)
|
112
116
|
goto out;
|
@@ -131,6 +135,9 @@ static int open_worktree_dir(git_worktree **out, const char *parent, const char
|
|
131
135
|
goto out;
|
132
136
|
}
|
133
137
|
|
138
|
+
if ((error = git_path_validate_workdir(NULL, dir)) < 0)
|
139
|
+
goto out;
|
140
|
+
|
134
141
|
if ((wt = git__calloc(1, sizeof(*wt))) == NULL) {
|
135
142
|
error = -1;
|
136
143
|
goto out;
|
@@ -170,11 +177,12 @@ int git_worktree_lookup(git_worktree **out, git_repository *repo, const char *na
|
|
170
177
|
git_worktree *wt = NULL;
|
171
178
|
int error;
|
172
179
|
|
173
|
-
|
180
|
+
GIT_ASSERT_ARG(repo);
|
181
|
+
GIT_ASSERT_ARG(name);
|
174
182
|
|
175
183
|
*out = NULL;
|
176
184
|
|
177
|
-
if ((error =
|
185
|
+
if ((error = git_buf_join3(&path, '/', repo->commondir, "worktrees", name)) < 0)
|
178
186
|
goto out;
|
179
187
|
|
180
188
|
if ((error = (open_worktree_dir(out, git_repository_workdir(repo), path.ptr, name))) < 0)
|
@@ -237,7 +245,7 @@ void git_worktree_free(git_worktree *wt)
|
|
237
245
|
|
238
246
|
int git_worktree_validate(const git_worktree *wt)
|
239
247
|
{
|
240
|
-
|
248
|
+
GIT_ASSERT_ARG(wt);
|
241
249
|
|
242
250
|
if (!is_worktree_dir(wt->gitdir_path)) {
|
243
251
|
git_error_set(GIT_ERROR_WORKTREE,
|
@@ -260,6 +268,13 @@ int git_worktree_validate(const git_worktree *wt)
|
|
260
268
|
return GIT_ERROR;
|
261
269
|
}
|
262
270
|
|
271
|
+
if (!git_path_exists(wt->worktree_path)) {
|
272
|
+
git_error_set(GIT_ERROR_WORKTREE,
|
273
|
+
"worktree directory '%s' does not exist",
|
274
|
+
wt->worktree_path);
|
275
|
+
return GIT_ERROR;
|
276
|
+
}
|
277
|
+
|
263
278
|
return 0;
|
264
279
|
}
|
265
280
|
|
@@ -271,11 +286,13 @@ int git_worktree_add_options_init(git_worktree_add_options *opts,
|
|
271
286
|
return 0;
|
272
287
|
}
|
273
288
|
|
289
|
+
#ifndef GIT_DEPRECATE_HARD
|
274
290
|
int git_worktree_add_init_options(git_worktree_add_options *opts,
|
275
291
|
unsigned int version)
|
276
292
|
{
|
277
293
|
return git_worktree_add_options_init(opts, version);
|
278
294
|
}
|
295
|
+
#endif
|
279
296
|
|
280
297
|
int git_worktree_add(git_worktree **out, git_repository *repo,
|
281
298
|
const char *name, const char *worktree,
|
@@ -295,7 +312,10 @@ int git_worktree_add(git_worktree **out, git_repository *repo,
|
|
295
312
|
if (opts)
|
296
313
|
memcpy(&wtopts, opts, sizeof(wtopts));
|
297
314
|
|
298
|
-
|
315
|
+
GIT_ASSERT_ARG(out);
|
316
|
+
GIT_ASSERT_ARG(repo);
|
317
|
+
GIT_ASSERT_ARG(name);
|
318
|
+
GIT_ASSERT_ARG(worktree);
|
299
319
|
|
300
320
|
*out = NULL;
|
301
321
|
|
@@ -408,7 +428,7 @@ int git_worktree_lock(git_worktree *wt, const char *reason)
|
|
408
428
|
git_buf buf = GIT_BUF_INIT, path = GIT_BUF_INIT;
|
409
429
|
int error;
|
410
430
|
|
411
|
-
|
431
|
+
GIT_ASSERT_ARG(wt);
|
412
432
|
|
413
433
|
if ((error = git_worktree_is_locked(NULL, wt)) < 0)
|
414
434
|
goto out;
|
@@ -439,7 +459,7 @@ int git_worktree_unlock(git_worktree *wt)
|
|
439
459
|
git_buf path = GIT_BUF_INIT;
|
440
460
|
int error;
|
441
461
|
|
442
|
-
|
462
|
+
GIT_ASSERT_ARG(wt);
|
443
463
|
|
444
464
|
if ((error = git_worktree_is_locked(NULL, wt)) < 0)
|
445
465
|
return error;
|
@@ -466,7 +486,7 @@ int git_worktree_is_locked(git_buf *reason, const git_worktree *wt)
|
|
466
486
|
git_buf path = GIT_BUF_INIT;
|
467
487
|
int error, locked;
|
468
488
|
|
469
|
-
|
489
|
+
GIT_ASSERT_ARG(wt);
|
470
490
|
|
471
491
|
if (reason)
|
472
492
|
git_buf_clear(reason);
|
@@ -487,13 +507,13 @@ out:
|
|
487
507
|
|
488
508
|
const char *git_worktree_name(const git_worktree *wt)
|
489
509
|
{
|
490
|
-
|
510
|
+
GIT_ASSERT_ARG_WITH_RETVAL(wt, NULL);
|
491
511
|
return wt->name;
|
492
512
|
}
|
493
513
|
|
494
514
|
const char *git_worktree_path(const git_worktree *wt)
|
495
515
|
{
|
496
|
-
|
516
|
+
GIT_ASSERT_ARG_WITH_RETVAL(wt, NULL);
|
497
517
|
return wt->worktree_path;
|
498
518
|
}
|
499
519
|
|
@@ -506,11 +526,13 @@ int git_worktree_prune_options_init(
|
|
506
526
|
return 0;
|
507
527
|
}
|
508
528
|
|
529
|
+
#ifndef GIT_DEPRECATE_HARD
|
509
530
|
int git_worktree_prune_init_options(git_worktree_prune_options *opts,
|
510
531
|
unsigned int version)
|
511
532
|
{
|
512
533
|
return git_worktree_prune_options_init(opts, version);
|
513
534
|
}
|
535
|
+
#endif
|
514
536
|
|
515
537
|
int git_worktree_is_prunable(git_worktree *wt,
|
516
538
|
git_worktree_prune_options *opts)
|
@@ -570,7 +592,7 @@ int git_worktree_prune(git_worktree *wt,
|
|
570
592
|
}
|
571
593
|
|
572
594
|
/* Delete gitdir in parent repository */
|
573
|
-
if ((err =
|
595
|
+
if ((err = git_buf_join3(&path, '/', wt->commondir_path, "worktrees", wt->name)) < 0)
|
574
596
|
goto out;
|
575
597
|
if (!git_path_exists(path.ptr))
|
576
598
|
{
|
@@ -156,7 +156,7 @@ int git_zstream_get_output(void *out, size_t *out_len, git_zstream *zstream)
|
|
156
156
|
}
|
157
157
|
|
158
158
|
/* either we finished the input or we did not flush the data */
|
159
|
-
|
159
|
+
GIT_ASSERT(zstream->in_len > 0 || zstream->flush == Z_FINISH);
|
160
160
|
|
161
161
|
/* set out_size to number of bytes actually written to output */
|
162
162
|
*out_len = *out_len - out_remain;
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rugged
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon
|
8
8
|
- Vicent Marti
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-12-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
@@ -123,27 +123,28 @@ files:
|
|
123
123
|
- vendor/libgit2/AUTHORS
|
124
124
|
- vendor/libgit2/CMakeLists.txt
|
125
125
|
- vendor/libgit2/COPYING
|
126
|
-
- vendor/libgit2/cmake/
|
127
|
-
- vendor/libgit2/cmake/
|
128
|
-
- vendor/libgit2/cmake/
|
129
|
-
- vendor/libgit2/cmake/
|
130
|
-
- vendor/libgit2/cmake/
|
131
|
-
- vendor/libgit2/cmake/
|
132
|
-
- vendor/libgit2/cmake/
|
133
|
-
- vendor/libgit2/cmake/
|
134
|
-
- vendor/libgit2/cmake/
|
135
|
-
- vendor/libgit2/cmake/
|
136
|
-
- vendor/libgit2/cmake/
|
137
|
-
- vendor/libgit2/cmake/
|
138
|
-
- vendor/libgit2/cmake/
|
139
|
-
- vendor/libgit2/cmake/
|
140
|
-
- vendor/libgit2/cmake/
|
141
|
-
- vendor/libgit2/cmake/
|
142
|
-
- vendor/libgit2/cmake/
|
143
|
-
- vendor/libgit2/cmake/
|
144
|
-
- vendor/libgit2/cmake/
|
145
|
-
- vendor/libgit2/cmake/
|
146
|
-
- vendor/libgit2/cmake/
|
126
|
+
- vendor/libgit2/cmake/AddCFlagIfSupported.cmake
|
127
|
+
- vendor/libgit2/cmake/EnableWarnings.cmake
|
128
|
+
- vendor/libgit2/cmake/FindCoreFoundation.cmake
|
129
|
+
- vendor/libgit2/cmake/FindGSSAPI.cmake
|
130
|
+
- vendor/libgit2/cmake/FindGSSFramework.cmake
|
131
|
+
- vendor/libgit2/cmake/FindHTTP_Parser.cmake
|
132
|
+
- vendor/libgit2/cmake/FindIconv.cmake
|
133
|
+
- vendor/libgit2/cmake/FindLibSSH2.cmake
|
134
|
+
- vendor/libgit2/cmake/FindPCRE.cmake
|
135
|
+
- vendor/libgit2/cmake/FindPCRE2.cmake
|
136
|
+
- vendor/libgit2/cmake/FindPkgLibraries.cmake
|
137
|
+
- vendor/libgit2/cmake/FindSecurity.cmake
|
138
|
+
- vendor/libgit2/cmake/FindStatNsec.cmake
|
139
|
+
- vendor/libgit2/cmake/Findfutimens.cmake
|
140
|
+
- vendor/libgit2/cmake/FindmbedTLS.cmake
|
141
|
+
- vendor/libgit2/cmake/IdeSplitSources.cmake
|
142
|
+
- vendor/libgit2/cmake/PkgBuildConfig.cmake
|
143
|
+
- vendor/libgit2/cmake/SanitizeBool.cmake
|
144
|
+
- vendor/libgit2/cmake/SelectGSSAPI.cmake
|
145
|
+
- vendor/libgit2/cmake/SelectHTTPSBackend.cmake
|
146
|
+
- vendor/libgit2/cmake/SelectHashes.cmake
|
147
|
+
- vendor/libgit2/deps/chromium-zlib/CMakeLists.txt
|
147
148
|
- vendor/libgit2/deps/http-parser/CMakeLists.txt
|
148
149
|
- vendor/libgit2/deps/http-parser/COPYING
|
149
150
|
- vendor/libgit2/deps/http-parser/http_parser.c
|
@@ -162,12 +163,15 @@ files:
|
|
162
163
|
- vendor/libgit2/deps/ntlmclient/ntlmclient.h
|
163
164
|
- vendor/libgit2/deps/ntlmclient/unicode.h
|
164
165
|
- vendor/libgit2/deps/ntlmclient/unicode_builtin.c
|
166
|
+
- vendor/libgit2/deps/ntlmclient/unicode_builtin.h
|
165
167
|
- vendor/libgit2/deps/ntlmclient/unicode_iconv.c
|
168
|
+
- vendor/libgit2/deps/ntlmclient/unicode_iconv.h
|
166
169
|
- vendor/libgit2/deps/ntlmclient/utf8.h
|
167
170
|
- vendor/libgit2/deps/ntlmclient/util.c
|
168
171
|
- vendor/libgit2/deps/ntlmclient/util.h
|
169
172
|
- vendor/libgit2/deps/pcre/CMakeLists.txt
|
170
173
|
- vendor/libgit2/deps/pcre/COPYING
|
174
|
+
- vendor/libgit2/deps/pcre/LICENCE
|
171
175
|
- vendor/libgit2/deps/pcre/cmake/COPYING-CMAKE-SCRIPTS
|
172
176
|
- vendor/libgit2/deps/pcre/cmake/FindEditline.cmake
|
173
177
|
- vendor/libgit2/deps/pcre/cmake/FindPackageHandleStandardArgs.cmake
|
@@ -250,6 +254,7 @@ files:
|
|
250
254
|
- vendor/libgit2/include/git2/deprecated.h
|
251
255
|
- vendor/libgit2/include/git2/describe.h
|
252
256
|
- vendor/libgit2/include/git2/diff.h
|
257
|
+
- vendor/libgit2/include/git2/email.h
|
253
258
|
- vendor/libgit2/include/git2/errors.h
|
254
259
|
- vendor/libgit2/include/git2/filter.h
|
255
260
|
- vendor/libgit2/include/git2/global.h
|
@@ -290,15 +295,18 @@ files:
|
|
290
295
|
- vendor/libgit2/include/git2/submodule.h
|
291
296
|
- vendor/libgit2/include/git2/sys/alloc.h
|
292
297
|
- vendor/libgit2/include/git2/sys/commit.h
|
298
|
+
- vendor/libgit2/include/git2/sys/commit_graph.h
|
293
299
|
- vendor/libgit2/include/git2/sys/config.h
|
294
300
|
- vendor/libgit2/include/git2/sys/cred.h
|
295
301
|
- vendor/libgit2/include/git2/sys/credential.h
|
296
302
|
- vendor/libgit2/include/git2/sys/diff.h
|
303
|
+
- vendor/libgit2/include/git2/sys/email.h
|
297
304
|
- vendor/libgit2/include/git2/sys/filter.h
|
298
305
|
- vendor/libgit2/include/git2/sys/hashsig.h
|
299
306
|
- vendor/libgit2/include/git2/sys/index.h
|
300
307
|
- vendor/libgit2/include/git2/sys/mempack.h
|
301
308
|
- vendor/libgit2/include/git2/sys/merge.h
|
309
|
+
- vendor/libgit2/include/git2/sys/midx.h
|
302
310
|
- vendor/libgit2/include/git2/sys/odb_backend.h
|
303
311
|
- vendor/libgit2/include/git2/sys/openssl.h
|
304
312
|
- vendor/libgit2/include/git2/sys/path.h
|
@@ -319,15 +327,18 @@ files:
|
|
319
327
|
- vendor/libgit2/src/CMakeLists.txt
|
320
328
|
- vendor/libgit2/src/alloc.c
|
321
329
|
- vendor/libgit2/src/alloc.h
|
330
|
+
- vendor/libgit2/src/allocators/failalloc.c
|
331
|
+
- vendor/libgit2/src/allocators/failalloc.h
|
322
332
|
- vendor/libgit2/src/allocators/stdalloc.c
|
323
333
|
- vendor/libgit2/src/allocators/stdalloc.h
|
324
|
-
- vendor/libgit2/src/allocators/
|
325
|
-
- vendor/libgit2/src/allocators/
|
334
|
+
- vendor/libgit2/src/allocators/win32_leakcheck.c
|
335
|
+
- vendor/libgit2/src/allocators/win32_leakcheck.h
|
326
336
|
- vendor/libgit2/src/annotated_commit.c
|
327
337
|
- vendor/libgit2/src/annotated_commit.h
|
328
338
|
- vendor/libgit2/src/apply.c
|
329
339
|
- vendor/libgit2/src/apply.h
|
330
340
|
- vendor/libgit2/src/array.h
|
341
|
+
- vendor/libgit2/src/assert_safe.h
|
331
342
|
- vendor/libgit2/src/attr.c
|
332
343
|
- vendor/libgit2/src/attr.h
|
333
344
|
- vendor/libgit2/src/attr_file.c
|
@@ -343,8 +354,6 @@ files:
|
|
343
354
|
- vendor/libgit2/src/blob.h
|
344
355
|
- vendor/libgit2/src/branch.c
|
345
356
|
- vendor/libgit2/src/branch.h
|
346
|
-
- vendor/libgit2/src/buf_text.c
|
347
|
-
- vendor/libgit2/src/buf_text.h
|
348
357
|
- vendor/libgit2/src/buffer.c
|
349
358
|
- vendor/libgit2/src/buffer.h
|
350
359
|
- vendor/libgit2/src/cache.c
|
@@ -357,6 +366,8 @@ files:
|
|
357
366
|
- vendor/libgit2/src/clone.h
|
358
367
|
- vendor/libgit2/src/commit.c
|
359
368
|
- vendor/libgit2/src/commit.h
|
369
|
+
- vendor/libgit2/src/commit_graph.c
|
370
|
+
- vendor/libgit2/src/commit_graph.h
|
360
371
|
- vendor/libgit2/src/commit_list.c
|
361
372
|
- vendor/libgit2/src/commit_list.h
|
362
373
|
- vendor/libgit2/src/common.h
|
@@ -392,6 +403,8 @@ files:
|
|
392
403
|
- vendor/libgit2/src/diff_tform.h
|
393
404
|
- vendor/libgit2/src/diff_xdiff.c
|
394
405
|
- vendor/libgit2/src/diff_xdiff.h
|
406
|
+
- vendor/libgit2/src/email.c
|
407
|
+
- vendor/libgit2/src/email.h
|
395
408
|
- vendor/libgit2/src/errors.c
|
396
409
|
- vendor/libgit2/src/errors.h
|
397
410
|
- vendor/libgit2/src/features.h.in
|
@@ -405,8 +418,6 @@ files:
|
|
405
418
|
- vendor/libgit2/src/filter.h
|
406
419
|
- vendor/libgit2/src/futils.c
|
407
420
|
- vendor/libgit2/src/futils.h
|
408
|
-
- vendor/libgit2/src/global.c
|
409
|
-
- vendor/libgit2/src/global.h
|
410
421
|
- vendor/libgit2/src/graph.c
|
411
422
|
- vendor/libgit2/src/hash.c
|
412
423
|
- vendor/libgit2/src/hash.h
|
@@ -441,6 +452,8 @@ files:
|
|
441
452
|
- vendor/libgit2/src/iterator.c
|
442
453
|
- vendor/libgit2/src/iterator.h
|
443
454
|
- vendor/libgit2/src/khash.h
|
455
|
+
- vendor/libgit2/src/libgit2.c
|
456
|
+
- vendor/libgit2/src/libgit2.h
|
444
457
|
- vendor/libgit2/src/mailmap.c
|
445
458
|
- vendor/libgit2/src/mailmap.h
|
446
459
|
- vendor/libgit2/src/map.h
|
@@ -451,6 +464,8 @@ files:
|
|
451
464
|
- vendor/libgit2/src/merge_file.c
|
452
465
|
- vendor/libgit2/src/message.c
|
453
466
|
- vendor/libgit2/src/message.h
|
467
|
+
- vendor/libgit2/src/midx.c
|
468
|
+
- vendor/libgit2/src/midx.h
|
454
469
|
- vendor/libgit2/src/mwindow.c
|
455
470
|
- vendor/libgit2/src/mwindow.h
|
456
471
|
- vendor/libgit2/src/net.c
|
@@ -507,7 +522,6 @@ files:
|
|
507
522
|
- vendor/libgit2/src/refdb.c
|
508
523
|
- vendor/libgit2/src/refdb.h
|
509
524
|
- vendor/libgit2/src/refdb_fs.c
|
510
|
-
- vendor/libgit2/src/refdb_fs.h
|
511
525
|
- vendor/libgit2/src/reflog.c
|
512
526
|
- vendor/libgit2/src/reflog.h
|
513
527
|
- vendor/libgit2/src/refs.c
|
@@ -526,7 +540,9 @@ files:
|
|
526
540
|
- vendor/libgit2/src/revparse.c
|
527
541
|
- vendor/libgit2/src/revwalk.c
|
528
542
|
- vendor/libgit2/src/revwalk.h
|
529
|
-
- vendor/libgit2/src/
|
543
|
+
- vendor/libgit2/src/runtime.c
|
544
|
+
- vendor/libgit2/src/runtime.h
|
545
|
+
- vendor/libgit2/src/settings.h
|
530
546
|
- vendor/libgit2/src/signature.c
|
531
547
|
- vendor/libgit2/src/signature.h
|
532
548
|
- vendor/libgit2/src/sortedcache.c
|
@@ -534,11 +550,16 @@ files:
|
|
534
550
|
- vendor/libgit2/src/stash.c
|
535
551
|
- vendor/libgit2/src/status.c
|
536
552
|
- vendor/libgit2/src/status.h
|
553
|
+
- vendor/libgit2/src/strarray.c
|
537
554
|
- vendor/libgit2/src/stream.h
|
538
555
|
- vendor/libgit2/src/streams/mbedtls.c
|
539
556
|
- vendor/libgit2/src/streams/mbedtls.h
|
540
557
|
- vendor/libgit2/src/streams/openssl.c
|
541
558
|
- vendor/libgit2/src/streams/openssl.h
|
559
|
+
- vendor/libgit2/src/streams/openssl_dynamic.c
|
560
|
+
- vendor/libgit2/src/streams/openssl_dynamic.h
|
561
|
+
- vendor/libgit2/src/streams/openssl_legacy.c
|
562
|
+
- vendor/libgit2/src/streams/openssl_legacy.h
|
542
563
|
- vendor/libgit2/src/streams/registry.c
|
543
564
|
- vendor/libgit2/src/streams/registry.h
|
544
565
|
- vendor/libgit2/src/streams/socket.c
|
@@ -556,8 +577,10 @@ files:
|
|
556
577
|
- vendor/libgit2/src/sysdir.h
|
557
578
|
- vendor/libgit2/src/tag.c
|
558
579
|
- vendor/libgit2/src/tag.h
|
559
|
-
- vendor/libgit2/src/thread
|
560
|
-
- vendor/libgit2/src/thread
|
580
|
+
- vendor/libgit2/src/thread.c
|
581
|
+
- vendor/libgit2/src/thread.h
|
582
|
+
- vendor/libgit2/src/threadstate.c
|
583
|
+
- vendor/libgit2/src/threadstate.h
|
561
584
|
- vendor/libgit2/src/trace.c
|
562
585
|
- vendor/libgit2/src/trace.h
|
563
586
|
- vendor/libgit2/src/trailer.c
|
@@ -595,6 +618,8 @@ files:
|
|
595
618
|
- vendor/libgit2/src/unix/pthread.h
|
596
619
|
- vendor/libgit2/src/unix/realpath.c
|
597
620
|
- vendor/libgit2/src/userdiff.h
|
621
|
+
- vendor/libgit2/src/utf8.c
|
622
|
+
- vendor/libgit2/src/utf8.h
|
598
623
|
- vendor/libgit2/src/util.c
|
599
624
|
- vendor/libgit2/src/util.h
|
600
625
|
- vendor/libgit2/src/varint.c
|
@@ -628,10 +653,8 @@ files:
|
|
628
653
|
- vendor/libgit2/src/win32/w32_buffer.c
|
629
654
|
- vendor/libgit2/src/win32/w32_buffer.h
|
630
655
|
- vendor/libgit2/src/win32/w32_common.h
|
631
|
-
- vendor/libgit2/src/win32/
|
632
|
-
- vendor/libgit2/src/win32/
|
633
|
-
- vendor/libgit2/src/win32/w32_stack.c
|
634
|
-
- vendor/libgit2/src/win32/w32_stack.h
|
656
|
+
- vendor/libgit2/src/win32/w32_leakcheck.c
|
657
|
+
- vendor/libgit2/src/win32/w32_leakcheck.h
|
635
658
|
- vendor/libgit2/src/win32/w32_util.c
|
636
659
|
- vendor/libgit2/src/win32/w32_util.h
|
637
660
|
- vendor/libgit2/src/win32/win32-compat.h
|
@@ -658,8 +681,8 @@ homepage: https://github.com/libgit2/rugged
|
|
658
681
|
licenses:
|
659
682
|
- MIT
|
660
683
|
metadata:
|
661
|
-
msys2_mingw_dependencies: libssh2
|
662
|
-
post_install_message:
|
684
|
+
msys2_mingw_dependencies: libssh2 cmake
|
685
|
+
post_install_message:
|
663
686
|
rdoc_options: []
|
664
687
|
require_paths:
|
665
688
|
- lib
|
@@ -674,8 +697,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
674
697
|
- !ruby/object:Gem::Version
|
675
698
|
version: '0'
|
676
699
|
requirements: []
|
677
|
-
rubygems_version: 3.
|
678
|
-
signing_key:
|
700
|
+
rubygems_version: 3.2.3
|
701
|
+
signing_key:
|
679
702
|
specification_version: 4
|
680
703
|
summary: Rugged is a Ruby binding to the libgit2 linkable library
|
681
704
|
test_files: []
|
@@ -1,29 +0,0 @@
|
|
1
|
-
@CHECK_PROTOTYPE_DEFINITION_HEADER@
|
2
|
-
|
3
|
-
static void cmakeRequireSymbol(int dummy, ...) {
|
4
|
-
(void) dummy;
|
5
|
-
}
|
6
|
-
|
7
|
-
static void checkSymbol(void) {
|
8
|
-
#ifndef @CHECK_PROTOTYPE_DEFINITION_SYMBOL@
|
9
|
-
cmakeRequireSymbol(0, &@CHECK_PROTOTYPE_DEFINITION_SYMBOL@);
|
10
|
-
#endif
|
11
|
-
}
|
12
|
-
|
13
|
-
@CHECK_PROTOTYPE_DEFINITION_PROTO@ {
|
14
|
-
return @CHECK_PROTOTYPE_DEFINITION_RETURN@;
|
15
|
-
}
|
16
|
-
|
17
|
-
#ifdef __CLASSIC_C__
|
18
|
-
int main() {
|
19
|
-
int ac;
|
20
|
-
char*av[];
|
21
|
-
#else
|
22
|
-
int main(int ac, char *av[]) {
|
23
|
-
#endif
|
24
|
-
checkSymbol();
|
25
|
-
if (ac > 1000) {
|
26
|
-
return *av[0];
|
27
|
-
}
|
28
|
-
return 0;
|
29
|
-
}
|
@@ -1,96 +0,0 @@
|
|
1
|
-
# - Check if the protoype we expect is correct.
|
2
|
-
# check_prototype_definition(FUNCTION PROTOTYPE RETURN HEADER VARIABLE)
|
3
|
-
# FUNCTION - The name of the function (used to check if prototype exists)
|
4
|
-
# PROTOTYPE- The prototype to check.
|
5
|
-
# RETURN - The return value of the function.
|
6
|
-
# HEADER - The header files required.
|
7
|
-
# VARIABLE - The variable to store the result.
|
8
|
-
# Example:
|
9
|
-
# check_prototype_definition(getpwent_r
|
10
|
-
# "struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)"
|
11
|
-
# "NULL"
|
12
|
-
# "unistd.h;pwd.h"
|
13
|
-
# SOLARIS_GETPWENT_R)
|
14
|
-
# The following variables may be set before calling this macro to
|
15
|
-
# modify the way the check is run:
|
16
|
-
#
|
17
|
-
# CMAKE_REQUIRED_FLAGS = string of compile command line flags
|
18
|
-
# CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
|
19
|
-
# CMAKE_REQUIRED_INCLUDES = list of include directories
|
20
|
-
# CMAKE_REQUIRED_LIBRARIES = list of libraries to link
|
21
|
-
|
22
|
-
#=============================================================================
|
23
|
-
# Copyright 2005-2009 Kitware, Inc.
|
24
|
-
# Copyright 2010-2011 Andreas Schneider <asn@cryptomilk.org>
|
25
|
-
#
|
26
|
-
# Distributed under the OSI-approved BSD License (the "License");
|
27
|
-
# see accompanying file Copyright.txt for details.
|
28
|
-
#
|
29
|
-
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
30
|
-
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
31
|
-
# See the License for more information.
|
32
|
-
#=============================================================================
|
33
|
-
# (To distribute this file outside of CMake, substitute the full
|
34
|
-
# License text for the above reference.)
|
35
|
-
#
|
36
|
-
|
37
|
-
get_filename_component(__check_proto_def_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
38
|
-
|
39
|
-
function(CHECK_PROTOTYPE_DEFINITION _FUNCTION _PROTOTYPE _RETURN _HEADER _VARIABLE)
|
40
|
-
|
41
|
-
if ("${_VARIABLE}" MATCHES "^${_VARIABLE}$")
|
42
|
-
set(CHECK_PROTOTYPE_DEFINITION_CONTENT "/* */\n")
|
43
|
-
|
44
|
-
set(CHECK_PROTOTYPE_DEFINITION_FLAGS ${CMAKE_REQUIRED_FLAGS})
|
45
|
-
if (CMAKE_REQUIRED_LIBRARIES)
|
46
|
-
set(CHECK_PROTOTYPE_DEFINITION_LIBS
|
47
|
-
"-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
|
48
|
-
else(CMAKE_REQUIRED_LIBRARIES)
|
49
|
-
set(CHECK_PROTOTYPE_DEFINITION_LIBS)
|
50
|
-
endif(CMAKE_REQUIRED_LIBRARIES)
|
51
|
-
if (CMAKE_REQUIRED_INCLUDES)
|
52
|
-
set(CMAKE_SYMBOL_EXISTS_INCLUDES
|
53
|
-
"-DINCLUDE_DIRECTORIES:STRING=${CMAKE_REQUIRED_INCLUDES}")
|
54
|
-
else(CMAKE_REQUIRED_INCLUDES)
|
55
|
-
set(CMAKE_SYMBOL_EXISTS_INCLUDES)
|
56
|
-
endif(CMAKE_REQUIRED_INCLUDES)
|
57
|
-
|
58
|
-
foreach(_FILE ${_HEADER})
|
59
|
-
set(CHECK_PROTOTYPE_DEFINITION_HEADER
|
60
|
-
"${CHECK_PROTOTYPE_DEFINITION_HEADER}#include <${_FILE}>\n")
|
61
|
-
endforeach(_FILE)
|
62
|
-
|
63
|
-
set(CHECK_PROTOTYPE_DEFINITION_SYMBOL ${_FUNCTION})
|
64
|
-
set(CHECK_PROTOTYPE_DEFINITION_PROTO ${_PROTOTYPE})
|
65
|
-
set(CHECK_PROTOTYPE_DEFINITION_RETURN ${_RETURN})
|
66
|
-
|
67
|
-
configure_file("${__check_proto_def_dir}/CheckPrototypeDefinition.c.in"
|
68
|
-
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckPrototypeDefinition.c" @ONLY)
|
69
|
-
|
70
|
-
file(READ ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckPrototypeDefinition.c _SOURCE)
|
71
|
-
|
72
|
-
try_compile(${_VARIABLE}
|
73
|
-
${CMAKE_BINARY_DIR}
|
74
|
-
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckPrototypeDefinition.c
|
75
|
-
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
76
|
-
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${CHECK_PROTOTYPE_DEFINITION_FLAGS}
|
77
|
-
"${CHECK_PROTOTYPE_DEFINITION_LIBS}"
|
78
|
-
"${CMAKE_SYMBOL_EXISTS_INCLUDES}"
|
79
|
-
OUTPUT_VARIABLE OUTPUT)
|
80
|
-
|
81
|
-
if (${_VARIABLE})
|
82
|
-
set(${_VARIABLE} 1 CACHE INTERNAL "Have correct prototype for ${_FUNCTION}")
|
83
|
-
message(STATUS "Checking prototype ${_FUNCTION} for ${_VARIABLE} - True")
|
84
|
-
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
85
|
-
"Determining if the prototype ${_FUNCTION} exists for ${_VARIABLE} passed with the following output:\n"
|
86
|
-
"${OUTPUT}\n\n")
|
87
|
-
else (${_VARIABLE})
|
88
|
-
message(STATUS "Checking prototype ${_FUNCTION} for ${_VARIABLE} - False")
|
89
|
-
set(${_VARIABLE} 0 CACHE INTERNAL "Have correct prototype for ${_FUNCTION}")
|
90
|
-
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
91
|
-
"Determining if the prototype ${_FUNCTION} exists for ${_VARIABLE} failed with the following output:\n"
|
92
|
-
"${OUTPUT}\n\n${_SOURCE}\n\n")
|
93
|
-
endif (${_VARIABLE})
|
94
|
-
endif("${_VARIABLE}" MATCHES "^${_VARIABLE}$")
|
95
|
-
|
96
|
-
endfunction(CHECK_PROTOTYPE_DEFINITION)
|