rugged 1.1.1 → 1.4.3
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/extconf.rb +2 -2
- data/ext/rugged/rugged.c +7 -4
- data/ext/rugged/rugged_config.c +7 -2
- data/ext/rugged/rugged_object.c +1 -1
- data/ext/rugged/rugged_remote.c +17 -0
- data/ext/rugged/rugged_repo.c +3 -3
- data/lib/rugged/repository.rb +2 -2
- data/lib/rugged/version.rb +1 -1
- data/vendor/libgit2/CMakeLists.txt +103 -271
- data/vendor/libgit2/COPYING +149 -24
- data/vendor/libgit2/cmake/AddCFlagIfSupported.cmake +21 -21
- data/vendor/libgit2/cmake/DefaultCFlags.cmake +154 -0
- data/vendor/libgit2/cmake/EnableWarnings.cmake +13 -13
- data/vendor/libgit2/cmake/FindCoreFoundation.cmake +13 -13
- data/vendor/libgit2/cmake/FindGSSAPI.cmake +171 -287
- data/vendor/libgit2/cmake/FindGSSFramework.cmake +13 -13
- data/vendor/libgit2/cmake/{FindHTTP_Parser.cmake → FindHTTPParser.cmake} +17 -17
- data/vendor/libgit2/cmake/FindIconv.cmake +27 -27
- data/vendor/libgit2/cmake/FindLibSSH2.cmake +13 -0
- data/vendor/libgit2/cmake/FindPCRE.cmake +13 -13
- data/vendor/libgit2/cmake/FindPCRE2.cmake +12 -12
- data/vendor/libgit2/cmake/FindPkgLibraries.cmake +19 -19
- data/vendor/libgit2/cmake/FindSecurity.cmake +14 -14
- data/vendor/libgit2/cmake/FindStatNsec.cmake +12 -18
- data/vendor/libgit2/cmake/Findfutimens.cmake +14 -0
- data/vendor/libgit2/cmake/FindmbedTLS.cmake +63 -70
- data/vendor/libgit2/cmake/IdeSplitSources.cmake +18 -18
- data/vendor/libgit2/cmake/PkgBuildConfig.cmake +60 -60
- data/vendor/libgit2/cmake/SanitizeBool.cmake +20 -20
- data/vendor/libgit2/cmake/SelectGSSAPI.cmake +37 -37
- data/vendor/libgit2/cmake/SelectHTTPParser.cmake +19 -0
- data/vendor/libgit2/cmake/SelectHTTPSBackend.cmake +100 -96
- data/vendor/libgit2/cmake/SelectHashes.cmake +39 -48
- data/vendor/libgit2/cmake/SelectRegex.cmake +51 -0
- data/vendor/libgit2/cmake/SelectSSH.cmake +41 -0
- data/vendor/libgit2/cmake/SelectWinHTTP.cmake +17 -0
- data/vendor/libgit2/cmake/SelectZlib.cmake +34 -0
- data/vendor/libgit2/deps/chromium-zlib/CMakeLists.txt +101 -0
- data/vendor/libgit2/deps/ntlmclient/CMakeLists.txt +32 -20
- 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 +154 -122
- data/vendor/libgit2/deps/ntlmclient/ntlm.h +17 -13
- data/vendor/libgit2/deps/ntlmclient/ntlmclient.h +17 -4
- 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/pcre/CMakeLists.txt +88 -88
- data/vendor/libgit2/deps/winhttp/CMakeLists.txt +14 -16
- data/vendor/libgit2/include/git2/apply.h +16 -2
- data/vendor/libgit2/include/git2/attr.h +106 -2
- data/vendor/libgit2/include/git2/blame.h +97 -43
- data/vendor/libgit2/include/git2/blob.h +33 -2
- data/vendor/libgit2/include/git2/branch.h +27 -0
- data/vendor/libgit2/include/git2/buffer.h +18 -78
- data/vendor/libgit2/include/git2/cert.h +43 -6
- data/vendor/libgit2/include/git2/checkout.h +32 -13
- data/vendor/libgit2/include/git2/clone.h +4 -4
- data/vendor/libgit2/include/git2/commit.h +37 -19
- data/vendor/libgit2/include/git2/common.h +46 -5
- data/vendor/libgit2/include/git2/config.h +19 -3
- data/vendor/libgit2/include/git2/credential.h +2 -1
- data/vendor/libgit2/include/git2/credential_helpers.h +1 -0
- data/vendor/libgit2/include/git2/deprecated.h +326 -6
- data/vendor/libgit2/include/git2/describe.h +7 -2
- data/vendor/libgit2/include/git2/diff.h +50 -121
- data/vendor/libgit2/include/git2/email.h +127 -0
- data/vendor/libgit2/include/git2/errors.h +7 -6
- data/vendor/libgit2/include/git2/filter.h +69 -18
- data/vendor/libgit2/include/git2/graph.h +21 -2
- data/vendor/libgit2/include/git2/ignore.h +1 -1
- data/vendor/libgit2/include/git2/index.h +13 -7
- data/vendor/libgit2/include/git2/indexer.h +19 -0
- data/vendor/libgit2/include/git2/merge.h +23 -3
- data/vendor/libgit2/include/git2/message.h +2 -0
- data/vendor/libgit2/include/git2/notes.h +2 -2
- data/vendor/libgit2/include/git2/object.h +23 -0
- data/vendor/libgit2/include/git2/odb.h +65 -6
- data/vendor/libgit2/include/git2/odb_backend.h +1 -1
- data/vendor/libgit2/include/git2/oidarray.h +5 -8
- data/vendor/libgit2/include/git2/pack.h +24 -8
- data/vendor/libgit2/include/git2/patch.h +16 -0
- data/vendor/libgit2/include/git2/pathspec.h +1 -1
- data/vendor/libgit2/include/git2/proxy.h +1 -1
- data/vendor/libgit2/include/git2/rebase.h +34 -2
- data/vendor/libgit2/include/git2/refdb.h +3 -0
- data/vendor/libgit2/include/git2/reflog.h +1 -1
- data/vendor/libgit2/include/git2/refs.h +8 -4
- data/vendor/libgit2/include/git2/remote.h +246 -46
- data/vendor/libgit2/include/git2/repository.h +25 -18
- data/vendor/libgit2/include/git2/reset.h +2 -2
- data/vendor/libgit2/include/git2/revparse.h +5 -5
- data/vendor/libgit2/include/git2/revwalk.h +4 -1
- data/vendor/libgit2/include/git2/signature.h +1 -1
- data/vendor/libgit2/include/git2/stash.h +4 -4
- data/vendor/libgit2/include/git2/status.h +124 -62
- data/vendor/libgit2/include/git2/stdint.h +3 -3
- data/vendor/libgit2/include/git2/submodule.h +16 -2
- 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 +9 -5
- data/vendor/libgit2/include/git2/sys/remote.h +31 -0
- data/vendor/libgit2/include/git2/sys/stream.h +1 -1
- data/vendor/libgit2/include/git2/sys/transport.h +26 -34
- data/vendor/libgit2/include/git2/tag.h +13 -0
- data/vendor/libgit2/include/git2/tree.h +4 -17
- data/vendor/libgit2/include/git2/types.h +16 -7
- data/vendor/libgit2/include/git2/version.h +4 -4
- data/vendor/libgit2/include/git2/worktree.h +13 -2
- data/vendor/libgit2/include/git2.h +1 -0
- data/vendor/libgit2/src/CMakeLists.txt +192 -290
- 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/annotated_commit.h +1 -1
- data/vendor/libgit2/src/apply.c +34 -25
- data/vendor/libgit2/src/apply.h +2 -2
- data/vendor/libgit2/src/array.h +11 -11
- data/vendor/libgit2/src/attr.c +204 -82
- data/vendor/libgit2/src/attr_file.c +105 -52
- data/vendor/libgit2/src/attr_file.h +36 -15
- data/vendor/libgit2/src/attrcache.c +55 -45
- data/vendor/libgit2/src/attrcache.h +4 -5
- data/vendor/libgit2/src/blame.c +15 -9
- data/vendor/libgit2/src/blame_git.c +2 -2
- data/vendor/libgit2/src/blob.c +76 -52
- data/vendor/libgit2/src/blob.h +1 -1
- data/vendor/libgit2/src/branch.c +203 -110
- data/vendor/libgit2/src/branch.h +15 -3
- data/vendor/libgit2/src/buf.c +126 -0
- data/vendor/libgit2/src/buf.h +50 -0
- data/vendor/libgit2/src/cache.c +2 -2
- data/vendor/libgit2/src/cache.h +7 -7
- data/vendor/libgit2/src/cc-compat.h +11 -9
- data/vendor/libgit2/src/checkout.c +118 -91
- data/vendor/libgit2/src/cherrypick.c +16 -12
- data/vendor/libgit2/src/clone.c +97 -103
- data/vendor/libgit2/src/commit.c +167 -84
- data/vendor/libgit2/src/commit.h +24 -1
- data/vendor/libgit2/src/commit_graph.c +1224 -0
- data/vendor/libgit2/src/commit_graph.h +169 -0
- data/vendor/libgit2/src/commit_list.c +48 -3
- data/vendor/libgit2/src/commit_list.h +2 -0
- data/vendor/libgit2/src/common.h +35 -5
- data/vendor/libgit2/src/config.c +119 -64
- data/vendor/libgit2/src/config.h +15 -2
- data/vendor/libgit2/src/config_cache.c +5 -3
- data/vendor/libgit2/src/config_file.c +120 -100
- data/vendor/libgit2/src/config_mem.c +9 -9
- data/vendor/libgit2/src/config_parse.c +29 -27
- data/vendor/libgit2/src/crlf.c +36 -23
- data/vendor/libgit2/src/date.c +13 -19
- data/vendor/libgit2/src/date.h +33 -0
- data/vendor/libgit2/src/delta.c +1 -1
- data/vendor/libgit2/src/describe.c +32 -21
- data/vendor/libgit2/src/diff.c +71 -183
- data/vendor/libgit2/src/diff.h +2 -4
- data/vendor/libgit2/src/diff_driver.c +53 -51
- data/vendor/libgit2/src/diff_driver.h +3 -3
- data/vendor/libgit2/src/diff_file.c +31 -26
- data/vendor/libgit2/src/diff_generate.c +76 -23
- data/vendor/libgit2/src/diff_generate.h +5 -3
- data/vendor/libgit2/src/diff_print.c +120 -95
- data/vendor/libgit2/src/diff_stats.c +47 -34
- data/vendor/libgit2/src/{message.h → diff_stats.h} +7 -6
- data/vendor/libgit2/src/diff_tform.c +18 -16
- data/vendor/libgit2/src/diff_xdiff.c +7 -10
- data/vendor/libgit2/src/diff_xdiff.h +1 -1
- data/vendor/libgit2/src/email.c +315 -0
- data/vendor/libgit2/src/email.h +25 -0
- data/vendor/libgit2/src/errors.c +37 -32
- data/vendor/libgit2/src/features.h.in +11 -2
- data/vendor/libgit2/src/fetch.c +77 -26
- data/vendor/libgit2/src/fetch.h +1 -1
- data/vendor/libgit2/src/fetchhead.c +27 -23
- data/vendor/libgit2/src/filebuf.c +36 -34
- data/vendor/libgit2/src/filebuf.h +1 -1
- data/vendor/libgit2/src/filter.c +278 -132
- data/vendor/libgit2/src/filter.h +46 -6
- data/vendor/libgit2/src/fs_path.c +2071 -0
- data/vendor/libgit2/src/fs_path.h +772 -0
- data/vendor/libgit2/src/futils.c +96 -90
- data/vendor/libgit2/src/futils.h +27 -15
- data/vendor/libgit2/src/graph.c +64 -9
- data/vendor/libgit2/src/hash/sha1/collisiondetect.c +5 -5
- data/vendor/libgit2/src/hash/sha1/common_crypto.c +5 -5
- data/vendor/libgit2/src/hash/sha1/generic.c +2 -2
- data/vendor/libgit2/src/hash/sha1/generic.h +1 -1
- data/vendor/libgit2/src/hash/sha1/mbedtls.c +13 -13
- data/vendor/libgit2/src/hash/sha1/openssl.c +5 -5
- data/vendor/libgit2/src/hash/sha1/sha1dc/sha1.c +9 -11
- data/vendor/libgit2/src/hash/sha1/win32.c +21 -17
- data/vendor/libgit2/src/hash/sha1.h +3 -1
- data/vendor/libgit2/src/hash.c +71 -36
- data/vendor/libgit2/src/hash.h +13 -13
- data/vendor/libgit2/src/hashsig.c +23 -10
- data/vendor/libgit2/src/ident.c +30 -20
- data/vendor/libgit2/src/ignore.c +63 -46
- data/vendor/libgit2/src/ignore.h +2 -2
- data/vendor/libgit2/src/index.c +184 -149
- data/vendor/libgit2/src/index.h +7 -4
- data/vendor/libgit2/src/indexer.c +143 -89
- data/vendor/libgit2/src/integer.h +64 -2
- data/vendor/libgit2/src/iterator.c +93 -73
- data/vendor/libgit2/src/iterator.h +6 -6
- data/vendor/libgit2/src/khash.h +3 -12
- data/vendor/libgit2/src/{settings.c → libgit2.c} +165 -56
- data/vendor/libgit2/src/libgit2.h +15 -0
- data/vendor/libgit2/src/mailmap.c +60 -45
- data/vendor/libgit2/src/map.h +3 -3
- data/vendor/libgit2/src/merge.c +104 -61
- data/vendor/libgit2/src/merge.h +3 -15
- data/vendor/libgit2/src/merge_driver.c +21 -15
- data/vendor/libgit2/src/merge_file.c +24 -6
- data/vendor/libgit2/src/message.c +21 -8
- data/vendor/libgit2/src/midx.c +501 -18
- data/vendor/libgit2/src/midx.h +29 -2
- data/vendor/libgit2/src/mwindow.c +103 -59
- data/vendor/libgit2/src/mwindow.h +3 -3
- data/vendor/libgit2/src/net.c +405 -71
- data/vendor/libgit2/src/net.h +26 -5
- data/vendor/libgit2/src/netops.c +7 -5
- data/vendor/libgit2/src/netops.h +3 -3
- data/vendor/libgit2/src/notes.c +40 -49
- data/vendor/libgit2/src/object.c +68 -20
- data/vendor/libgit2/src/object.h +1 -1
- data/vendor/libgit2/src/odb.c +320 -80
- data/vendor/libgit2/src/odb.h +17 -3
- data/vendor/libgit2/src/odb_loose.c +96 -86
- data/vendor/libgit2/src/odb_mempack.c +19 -6
- data/vendor/libgit2/src/odb_pack.c +402 -125
- data/vendor/libgit2/src/oid.c +16 -8
- data/vendor/libgit2/src/oid.h +15 -0
- data/vendor/libgit2/src/oidarray.c +10 -1
- data/vendor/libgit2/src/pack-objects.c +90 -69
- data/vendor/libgit2/src/pack-objects.h +11 -6
- data/vendor/libgit2/src/pack.c +337 -127
- data/vendor/libgit2/src/pack.h +25 -7
- data/vendor/libgit2/src/patch.c +17 -10
- data/vendor/libgit2/src/patch.h +1 -0
- data/vendor/libgit2/src/patch_generate.c +29 -13
- data/vendor/libgit2/src/patch_generate.h +5 -5
- data/vendor/libgit2/src/patch_parse.c +26 -25
- data/vendor/libgit2/src/path.c +86 -1768
- data/vendor/libgit2/src/path.h +39 -635
- data/vendor/libgit2/src/pathspec.c +12 -12
- data/vendor/libgit2/src/pathspec.h +2 -2
- data/vendor/libgit2/src/pool.c +13 -7
- data/vendor/libgit2/src/posix.c +14 -6
- data/vendor/libgit2/src/posix.h +1 -0
- data/vendor/libgit2/src/pqueue.h +1 -1
- data/vendor/libgit2/src/proxy.c +4 -1
- data/vendor/libgit2/src/proxy.h +1 -1
- data/vendor/libgit2/src/push.c +30 -35
- data/vendor/libgit2/src/push.h +4 -16
- data/vendor/libgit2/src/rand.c +226 -0
- data/vendor/libgit2/src/rand.h +37 -0
- data/vendor/libgit2/src/reader.c +18 -14
- data/vendor/libgit2/src/reader.h +2 -2
- data/vendor/libgit2/src/rebase.c +177 -132
- data/vendor/libgit2/src/refdb.c +30 -13
- data/vendor/libgit2/src/refdb_fs.c +548 -222
- data/vendor/libgit2/src/reflog.c +19 -14
- data/vendor/libgit2/src/refs.c +107 -72
- data/vendor/libgit2/src/refs.h +2 -2
- data/vendor/libgit2/src/refspec.c +53 -38
- data/vendor/libgit2/src/refspec.h +5 -2
- data/vendor/libgit2/src/regexp.c +1 -1
- data/vendor/libgit2/src/remote.c +960 -486
- data/vendor/libgit2/src/remote.h +16 -10
- data/vendor/libgit2/src/repository.c +702 -422
- data/vendor/libgit2/src/repository.h +26 -8
- data/vendor/libgit2/src/reset.c +16 -12
- data/vendor/libgit2/src/revert.c +16 -12
- data/vendor/libgit2/src/revparse.c +66 -48
- data/vendor/libgit2/src/revwalk.c +39 -22
- data/vendor/libgit2/src/runtime.c +162 -0
- data/vendor/libgit2/src/runtime.h +62 -0
- data/vendor/libgit2/src/settings.h +11 -0
- data/vendor/libgit2/src/signature.c +18 -11
- data/vendor/libgit2/src/signature.h +1 -1
- data/vendor/libgit2/src/sortedcache.c +1 -1
- data/vendor/libgit2/src/sortedcache.h +10 -8
- data/vendor/libgit2/src/stash.c +39 -38
- data/vendor/libgit2/src/status.c +11 -5
- data/vendor/libgit2/src/{buffer.c → str.c} +459 -136
- data/vendor/libgit2/src/str.h +357 -0
- data/vendor/libgit2/src/strarray.c +2 -1
- data/vendor/libgit2/src/streams/mbedtls.c +22 -23
- data/vendor/libgit2/src/streams/mbedtls.h +1 -1
- data/vendor/libgit2/src/streams/openssl.c +101 -201
- 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 +5 -6
- 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 +290 -212
- data/vendor/libgit2/src/submodule.h +10 -10
- data/vendor/libgit2/src/sysdir.c +70 -56
- data/vendor/libgit2/src/sysdir.h +15 -10
- data/vendor/libgit2/src/tag.c +72 -34
- 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 +3 -16
- data/vendor/libgit2/src/trace.h +17 -30
- data/vendor/libgit2/src/trailer.c +2 -2
- data/vendor/libgit2/src/transaction.c +20 -9
- data/vendor/libgit2/src/transport.c +13 -13
- data/vendor/libgit2/src/transports/auth.c +8 -10
- data/vendor/libgit2/src/transports/auth.h +2 -3
- data/vendor/libgit2/src/transports/auth_negotiate.c +23 -17
- data/vendor/libgit2/src/transports/auth_ntlm.c +20 -16
- data/vendor/libgit2/src/transports/auth_ntlm.h +0 -1
- data/vendor/libgit2/src/transports/credential.c +15 -7
- data/vendor/libgit2/src/transports/git.c +10 -14
- data/vendor/libgit2/src/transports/http.c +56 -34
- data/vendor/libgit2/src/transports/http.h +3 -3
- data/vendor/libgit2/src/transports/httpclient.c +106 -79
- data/vendor/libgit2/src/transports/httpclient.h +1 -1
- data/vendor/libgit2/src/transports/local.c +127 -119
- data/vendor/libgit2/src/transports/smart.c +61 -144
- data/vendor/libgit2/src/transports/smart.h +26 -32
- data/vendor/libgit2/src/transports/smart_pkt.c +33 -33
- data/vendor/libgit2/src/transports/smart_protocol.c +68 -44
- data/vendor/libgit2/src/transports/ssh.c +100 -131
- data/vendor/libgit2/src/transports/winhttp.c +86 -82
- data/vendor/libgit2/src/tree-cache.c +5 -5
- data/vendor/libgit2/src/tree-cache.h +2 -2
- data/vendor/libgit2/src/tree.c +150 -116
- data/vendor/libgit2/src/tree.h +1 -0
- data/vendor/libgit2/src/tsort.c +0 -2
- data/vendor/libgit2/src/unix/map.c +3 -3
- data/vendor/libgit2/src/unix/posix.h +1 -4
- data/vendor/libgit2/src/unix/pthread.h +2 -1
- data/vendor/libgit2/src/unix/realpath.c +0 -2
- data/vendor/libgit2/src/utf8.c +150 -0
- data/vendor/libgit2/src/utf8.h +52 -0
- data/vendor/libgit2/src/util.c +68 -144
- data/vendor/libgit2/src/util.h +36 -68
- data/vendor/libgit2/src/vector.c +23 -19
- data/vendor/libgit2/src/vector.h +5 -3
- data/vendor/libgit2/src/win32/findfile.c +172 -114
- data/vendor/libgit2/src/win32/findfile.h +7 -4
- 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 +162 -33
- data/vendor/libgit2/src/win32/path_w32.h +2 -1
- data/vendor/libgit2/src/win32/posix.h +6 -7
- data/vendor/libgit2/src/win32/posix_w32.c +26 -33
- 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 +5 -6
- data/vendor/libgit2/src/win32/w32_buffer.h +2 -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 +138 -105
- data/vendor/libgit2/src/worktree.h +1 -1
- data/vendor/libgit2/src/xdiff/git-xdiff.h +53 -0
- data/vendor/libgit2/src/xdiff/xdiff.h +15 -15
- data/vendor/libgit2/src/xdiff/xdiffi.c +134 -108
- data/vendor/libgit2/src/xdiff/xemit.c +23 -7
- data/vendor/libgit2/src/xdiff/xhistogram.c +87 -78
- data/vendor/libgit2/src/xdiff/xinclude.h +1 -12
- data/vendor/libgit2/src/xdiff/xmerge.c +104 -117
- data/vendor/libgit2/src/xdiff/xpatience.c +6 -17
- data/vendor/libgit2/src/xdiff/xprepare.c +15 -20
- data/vendor/libgit2/src/xdiff/xutils.c +18 -7
- data/vendor/libgit2/src/zstream.c +6 -6
- data/vendor/libgit2/src/zstream.h +4 -4
- metadata +60 -24
- 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/buffer.h +0 -222
- data/vendor/libgit2/src/global.c +0 -363
- 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 -369
- 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
@@ -18,6 +18,7 @@
|
|
18
18
|
#include "describe.h"
|
19
19
|
#include "diff.h"
|
20
20
|
#include "errors.h"
|
21
|
+
#include "filter.h"
|
21
22
|
#include "index.h"
|
22
23
|
#include "indexer.h"
|
23
24
|
#include "merge.h"
|
@@ -29,6 +30,7 @@
|
|
29
30
|
#include "trace.h"
|
30
31
|
#include "repository.h"
|
31
32
|
#include "revert.h"
|
33
|
+
#include "revparse.h"
|
32
34
|
#include "stash.h"
|
33
35
|
#include "status.h"
|
34
36
|
#include "submodule.h"
|
@@ -80,16 +82,19 @@ typedef git_attr_value_t git_attr_t;
|
|
80
82
|
|
81
83
|
/**@}*/
|
82
84
|
|
83
|
-
/** @name Deprecated Blob Functions
|
85
|
+
/** @name Deprecated Blob Functions and Constants
|
84
86
|
*
|
85
|
-
* These functions are retained for backward
|
86
|
-
* versions of these functions
|
87
|
+
* These functions and enumeration values are retained for backward
|
88
|
+
* compatibility. The newer versions of these functions and values
|
89
|
+
* should be preferred in all new code.
|
87
90
|
*
|
88
91
|
* There is no plan to remove these backward compatibility values at
|
89
92
|
* this time.
|
90
93
|
*/
|
91
94
|
/**@{*/
|
92
95
|
|
96
|
+
#define GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD
|
97
|
+
|
93
98
|
GIT_EXTERN(int) git_blob_create_fromworkdir(git_oid *id, git_repository *repo, const char *relative_path);
|
94
99
|
GIT_EXTERN(int) git_blob_create_fromdisk(git_oid *id, git_repository *repo, const char *path);
|
95
100
|
GIT_EXTERN(int) git_blob_create_fromstream(
|
@@ -115,6 +120,66 @@ GIT_EXTERN(int) git_blob_filtered_content(
|
|
115
120
|
|
116
121
|
/**@}*/
|
117
122
|
|
123
|
+
/** @name Deprecated Filter Functions
|
124
|
+
*
|
125
|
+
* These functions are retained for backward compatibility. The
|
126
|
+
* newer versions of these functions should be preferred in all
|
127
|
+
* new code.
|
128
|
+
*
|
129
|
+
* There is no plan to remove these backward compatibility values at
|
130
|
+
* this time.
|
131
|
+
*/
|
132
|
+
/**@{*/
|
133
|
+
|
134
|
+
/** Deprecated in favor of `git_filter_list_stream_buffer`.
|
135
|
+
*
|
136
|
+
* @deprecated Use git_filter_list_stream_buffer
|
137
|
+
* @see Use git_filter_list_stream_buffer
|
138
|
+
*/
|
139
|
+
GIT_EXTERN(int) git_filter_list_stream_data(
|
140
|
+
git_filter_list *filters,
|
141
|
+
git_buf *data,
|
142
|
+
git_writestream *target);
|
143
|
+
|
144
|
+
/** Deprecated in favor of `git_filter_list_apply_to_buffer`.
|
145
|
+
*
|
146
|
+
* @deprecated Use git_filter_list_apply_to_buffer
|
147
|
+
* @see Use git_filter_list_apply_to_buffer
|
148
|
+
*/
|
149
|
+
GIT_EXTERN(int) git_filter_list_apply_to_data(
|
150
|
+
git_buf *out,
|
151
|
+
git_filter_list *filters,
|
152
|
+
git_buf *in);
|
153
|
+
|
154
|
+
/**@}*/
|
155
|
+
|
156
|
+
/** @name Deprecated Tree Functions
|
157
|
+
*
|
158
|
+
* These functions are retained for backward compatibility. The
|
159
|
+
* newer versions of these functions and values should be preferred
|
160
|
+
* in all new code.
|
161
|
+
*
|
162
|
+
* There is no plan to remove these backward compatibility values at
|
163
|
+
* this time.
|
164
|
+
*/
|
165
|
+
/**@{*/
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Write the contents of the tree builder as a tree object.
|
169
|
+
* This is an alias of `git_treebuilder_write` and is preserved
|
170
|
+
* for backward compatibility.
|
171
|
+
*
|
172
|
+
* This function is deprecated, but there is no plan to remove this
|
173
|
+
* function at this time.
|
174
|
+
*
|
175
|
+
* @deprecated Use git_treebuilder_write
|
176
|
+
* @see git_treebuilder_write
|
177
|
+
*/
|
178
|
+
GIT_EXTERN(int) git_treebuilder_write_with_buffer(
|
179
|
+
git_oid *oid, git_treebuilder *bld, git_buf *tree);
|
180
|
+
|
181
|
+
/**@}*/
|
182
|
+
|
118
183
|
/** @name Deprecated Buffer Functions
|
119
184
|
*
|
120
185
|
* These functions and enumeration values are retained for backward
|
@@ -126,6 +191,61 @@ GIT_EXTERN(int) git_blob_filtered_content(
|
|
126
191
|
*/
|
127
192
|
/**@{*/
|
128
193
|
|
194
|
+
/**
|
195
|
+
* Static initializer for git_buf from static buffer
|
196
|
+
*/
|
197
|
+
#define GIT_BUF_INIT_CONST(STR,LEN) { (char *)(STR), 0, (size_t)(LEN) }
|
198
|
+
|
199
|
+
/**
|
200
|
+
* Resize the buffer allocation to make more space.
|
201
|
+
*
|
202
|
+
* This will attempt to grow the buffer to accommodate the target size.
|
203
|
+
*
|
204
|
+
* If the buffer refers to memory that was not allocated by libgit2 (i.e.
|
205
|
+
* the `asize` field is zero), then `ptr` will be replaced with a newly
|
206
|
+
* allocated block of data. Be careful so that memory allocated by the
|
207
|
+
* caller is not lost. As a special variant, if you pass `target_size` as
|
208
|
+
* 0 and the memory is not allocated by libgit2, this will allocate a new
|
209
|
+
* buffer of size `size` and copy the external data into it.
|
210
|
+
*
|
211
|
+
* Currently, this will never shrink a buffer, only expand it.
|
212
|
+
*
|
213
|
+
* If the allocation fails, this will return an error and the buffer will be
|
214
|
+
* marked as invalid for future operations, invaliding the contents.
|
215
|
+
*
|
216
|
+
* @param buffer The buffer to be resized; may or may not be allocated yet
|
217
|
+
* @param target_size The desired available size
|
218
|
+
* @return 0 on success, -1 on allocation failure
|
219
|
+
*/
|
220
|
+
GIT_EXTERN(int) git_buf_grow(git_buf *buffer, size_t target_size);
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Set buffer to a copy of some raw data.
|
224
|
+
*
|
225
|
+
* @param buffer The buffer to set
|
226
|
+
* @param data The data to copy into the buffer
|
227
|
+
* @param datalen The length of the data to copy into the buffer
|
228
|
+
* @return 0 on success, -1 on allocation failure
|
229
|
+
*/
|
230
|
+
GIT_EXTERN(int) git_buf_set(
|
231
|
+
git_buf *buffer, const void *data, size_t datalen);
|
232
|
+
|
233
|
+
/**
|
234
|
+
* Check quickly if buffer looks like it contains binary data
|
235
|
+
*
|
236
|
+
* @param buf Buffer to check
|
237
|
+
* @return 1 if buffer looks like non-text data
|
238
|
+
*/
|
239
|
+
GIT_EXTERN(int) git_buf_is_binary(const git_buf *buf);
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Check quickly if buffer contains a NUL byte
|
243
|
+
*
|
244
|
+
* @param buf Buffer to check
|
245
|
+
* @return 1 if buffer contains a NUL byte
|
246
|
+
*/
|
247
|
+
GIT_EXTERN(int) git_buf_contains_nul(const git_buf *buf);
|
248
|
+
|
129
249
|
/**
|
130
250
|
* Free the memory referred to by the git_buf. This is an alias of
|
131
251
|
* `git_buf_dispose` and is preserved for backward compatibility.
|
@@ -140,6 +260,27 @@ GIT_EXTERN(void) git_buf_free(git_buf *buffer);
|
|
140
260
|
|
141
261
|
/**@}*/
|
142
262
|
|
263
|
+
/** @name Deprecated Commit Definitions
|
264
|
+
*/
|
265
|
+
/**@{*/
|
266
|
+
|
267
|
+
/**
|
268
|
+
* Provide a commit signature during commit creation.
|
269
|
+
*
|
270
|
+
* Callers should instead define a `git_commit_create_cb` that
|
271
|
+
* generates a commit buffer using `git_commit_create_buffer`, sign
|
272
|
+
* that buffer and call `git_commit_create_with_signature`.
|
273
|
+
*
|
274
|
+
* @deprecated use a `git_commit_create_cb` instead
|
275
|
+
*/
|
276
|
+
typedef int (*git_commit_signing_cb)(
|
277
|
+
git_buf *signature,
|
278
|
+
git_buf *signature_field,
|
279
|
+
const char *commit_content,
|
280
|
+
void *payload);
|
281
|
+
|
282
|
+
/**@}*/
|
283
|
+
|
143
284
|
/** @name Deprecated Config Functions and Constants
|
144
285
|
*/
|
145
286
|
/**@{*/
|
@@ -153,6 +294,102 @@ typedef git_configmap git_cvar_map;
|
|
153
294
|
|
154
295
|
/**@}*/
|
155
296
|
|
297
|
+
/** @name Deprecated Diff Functions and Constants
|
298
|
+
*
|
299
|
+
* These functions and enumeration values are retained for backward
|
300
|
+
* compatibility. The newer versions of these functions and values
|
301
|
+
* should be preferred in all new code.
|
302
|
+
*
|
303
|
+
* There is no plan to remove these backward compatibility values at
|
304
|
+
* this time.
|
305
|
+
*/
|
306
|
+
/**@{*/
|
307
|
+
|
308
|
+
/**
|
309
|
+
* Formatting options for diff e-mail generation
|
310
|
+
*/
|
311
|
+
typedef enum {
|
312
|
+
/** Normal patch, the default */
|
313
|
+
GIT_DIFF_FORMAT_EMAIL_NONE = 0,
|
314
|
+
|
315
|
+
/** Don't insert "[PATCH]" in the subject header*/
|
316
|
+
GIT_DIFF_FORMAT_EMAIL_EXCLUDE_SUBJECT_PATCH_MARKER = (1 << 0)
|
317
|
+
|
318
|
+
} git_diff_format_email_flags_t;
|
319
|
+
|
320
|
+
/**
|
321
|
+
* Options for controlling the formatting of the generated e-mail.
|
322
|
+
*/
|
323
|
+
typedef struct {
|
324
|
+
unsigned int version;
|
325
|
+
|
326
|
+
/** see `git_diff_format_email_flags_t` above */
|
327
|
+
uint32_t flags;
|
328
|
+
|
329
|
+
/** This patch number */
|
330
|
+
size_t patch_no;
|
331
|
+
|
332
|
+
/** Total number of patches in this series */
|
333
|
+
size_t total_patches;
|
334
|
+
|
335
|
+
/** id to use for the commit */
|
336
|
+
const git_oid *id;
|
337
|
+
|
338
|
+
/** Summary of the change */
|
339
|
+
const char *summary;
|
340
|
+
|
341
|
+
/** Commit message's body */
|
342
|
+
const char *body;
|
343
|
+
|
344
|
+
/** Author of the change */
|
345
|
+
const git_signature *author;
|
346
|
+
} git_diff_format_email_options;
|
347
|
+
|
348
|
+
#define GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION 1
|
349
|
+
#define GIT_DIFF_FORMAT_EMAIL_OPTIONS_INIT {GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION, 0, 1, 1, NULL, NULL, NULL, NULL}
|
350
|
+
|
351
|
+
/**
|
352
|
+
* Create an e-mail ready patch from a diff.
|
353
|
+
*
|
354
|
+
* @deprecated git_email_create_from_diff
|
355
|
+
* @see git_email_create_from_diff
|
356
|
+
*/
|
357
|
+
GIT_EXTERN(int) git_diff_format_email(
|
358
|
+
git_buf *out,
|
359
|
+
git_diff *diff,
|
360
|
+
const git_diff_format_email_options *opts);
|
361
|
+
|
362
|
+
/**
|
363
|
+
* Create an e-mail ready patch for a commit.
|
364
|
+
*
|
365
|
+
* @deprecated git_email_create_from_commit
|
366
|
+
* @see git_email_create_from_commit
|
367
|
+
*/
|
368
|
+
GIT_EXTERN(int) git_diff_commit_as_email(
|
369
|
+
git_buf *out,
|
370
|
+
git_repository *repo,
|
371
|
+
git_commit *commit,
|
372
|
+
size_t patch_no,
|
373
|
+
size_t total_patches,
|
374
|
+
uint32_t flags,
|
375
|
+
const git_diff_options *diff_opts);
|
376
|
+
|
377
|
+
/**
|
378
|
+
* Initialize git_diff_format_email_options structure
|
379
|
+
*
|
380
|
+
* Initializes a `git_diff_format_email_options` with default values. Equivalent
|
381
|
+
* to creating an instance with GIT_DIFF_FORMAT_EMAIL_OPTIONS_INIT.
|
382
|
+
*
|
383
|
+
* @param opts The `git_blame_options` struct to initialize.
|
384
|
+
* @param version The struct version; pass `GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION`.
|
385
|
+
* @return Zero on success; -1 on failure.
|
386
|
+
*/
|
387
|
+
GIT_EXTERN(int) git_diff_format_email_options_init(
|
388
|
+
git_diff_format_email_options *opts,
|
389
|
+
unsigned int version);
|
390
|
+
|
391
|
+
/**@}*/
|
392
|
+
|
156
393
|
/** @name Deprecated Error Functions and Constants
|
157
394
|
*
|
158
395
|
* These functions and enumeration values are retained for backward
|
@@ -340,10 +577,32 @@ GIT_EXTERN(size_t) git_object__size(git_object_t type);
|
|
340
577
|
|
341
578
|
/**@}*/
|
342
579
|
|
343
|
-
/** @name Deprecated
|
580
|
+
/** @name Deprecated Remote Functions
|
344
581
|
*
|
345
|
-
* These
|
346
|
-
*
|
582
|
+
* These functions are retained for backward compatibility. The newer
|
583
|
+
* versions of these functions should be preferred in all new code.
|
584
|
+
*
|
585
|
+
* There is no plan to remove these backward compatibility functions at
|
586
|
+
* this time.
|
587
|
+
*/
|
588
|
+
/**@{*/
|
589
|
+
|
590
|
+
/**
|
591
|
+
* Ensure the remote name is well-formed.
|
592
|
+
*
|
593
|
+
* @deprecated Use git_remote_name_is_valid
|
594
|
+
* @param remote_name name to be checked.
|
595
|
+
* @return 1 if the reference name is acceptable; 0 if it isn't
|
596
|
+
*/
|
597
|
+
GIT_EXTERN(int) git_remote_is_valid_name(const char *remote_name);
|
598
|
+
|
599
|
+
/**@}*/
|
600
|
+
|
601
|
+
/** @name Deprecated Reference Functions and Constants
|
602
|
+
*
|
603
|
+
* These functions and enumeration values are retained for backward
|
604
|
+
* compatibility. The newer versions of these values should be
|
605
|
+
* preferred in all new code.
|
347
606
|
*
|
348
607
|
* There is no plan to remove these backward compatibility values at
|
349
608
|
* this time.
|
@@ -364,6 +623,23 @@ GIT_EXTERN(size_t) git_object__size(git_object_t type);
|
|
364
623
|
#define GIT_REF_FORMAT_REFSPEC_PATTERN GIT_REFERENCE_FORMAT_REFSPEC_PATTERN
|
365
624
|
#define GIT_REF_FORMAT_REFSPEC_SHORTHAND GIT_REFERENCE_FORMAT_REFSPEC_SHORTHAND
|
366
625
|
|
626
|
+
/**
|
627
|
+
* Ensure the reference name is well-formed.
|
628
|
+
*
|
629
|
+
* Valid reference names must follow one of two patterns:
|
630
|
+
*
|
631
|
+
* 1. Top-level names must contain only capital letters and underscores,
|
632
|
+
* and must begin and end with a letter. (e.g. "HEAD", "ORIG_HEAD").
|
633
|
+
* 2. Names prefixed with "refs/" can be almost anything. You must avoid
|
634
|
+
* the characters '~', '^', ':', '\\', '?', '[', and '*', and the
|
635
|
+
* sequences ".." and "@{" which have special meaning to revparse.
|
636
|
+
*
|
637
|
+
* @deprecated Use git_reference_name_is_valid
|
638
|
+
* @param refname name to be checked.
|
639
|
+
* @return 1 if the reference name is acceptable; 0 if it isn't
|
640
|
+
*/
|
641
|
+
GIT_EXTERN(int) git_reference_is_valid_name(const char *refname);
|
642
|
+
|
367
643
|
GIT_EXTERN(int) git_tag_create_frombuffer(
|
368
644
|
git_oid *oid,
|
369
645
|
git_repository *repo,
|
@@ -372,6 +648,25 @@ GIT_EXTERN(int) git_tag_create_frombuffer(
|
|
372
648
|
|
373
649
|
/**@}*/
|
374
650
|
|
651
|
+
/** @name Deprecated Revspec Constants
|
652
|
+
*
|
653
|
+
* These enumeration values are retained for backward compatibility.
|
654
|
+
* The newer versions of these values should be preferred in all new
|
655
|
+
* code.
|
656
|
+
*
|
657
|
+
* There is no plan to remove these backward compatibility values at
|
658
|
+
* this time.
|
659
|
+
*/
|
660
|
+
/**@{*/
|
661
|
+
|
662
|
+
typedef git_revspec_t git_revparse_mode_t;
|
663
|
+
|
664
|
+
#define GIT_REVPARSE_SINGLE GIT_REVSPEC_SINGLE
|
665
|
+
#define GIT_REVPARSE_RANGE GIT_REVSPEC_RANGE
|
666
|
+
#define GIT_REVPARSE_MERGE_BASE GIT_REVSPEC_MERGE_BASE
|
667
|
+
|
668
|
+
/**@}*/
|
669
|
+
|
375
670
|
/** @name Deprecated Credential Types
|
376
671
|
*
|
377
672
|
* These types are retained for backward compatibility. The newer
|
@@ -380,6 +675,7 @@ GIT_EXTERN(int) git_tag_create_frombuffer(
|
|
380
675
|
* There is no plan to remove these backward compatibility values at
|
381
676
|
* this time.
|
382
677
|
*/
|
678
|
+
/**@{*/
|
383
679
|
|
384
680
|
typedef git_credential git_cred;
|
385
681
|
typedef git_credential_userpass_plaintext git_cred_userpass_plaintext;
|
@@ -483,6 +779,30 @@ GIT_EXTERN(int) git_oid_iszero(const git_oid *id);
|
|
483
779
|
|
484
780
|
/**@}*/
|
485
781
|
|
782
|
+
/** @name Deprecated OID Array Functions
|
783
|
+
*
|
784
|
+
* These types are retained for backward compatibility. The newer
|
785
|
+
* versions of these values should be preferred in all new code.
|
786
|
+
*
|
787
|
+
* There is no plan to remove these backward compatibility values at
|
788
|
+
* this time.
|
789
|
+
*/
|
790
|
+
/**@{*/
|
791
|
+
|
792
|
+
/**
|
793
|
+
* Free the memory referred to by the git_oidarray. This is an alias of
|
794
|
+
* `git_oidarray_dispose` and is preserved for backward compatibility.
|
795
|
+
*
|
796
|
+
* This function is deprecated, but there is no plan to remove this
|
797
|
+
* function at this time.
|
798
|
+
*
|
799
|
+
* @deprecated Use git_oidarray_dispose
|
800
|
+
* @see git_oidarray_dispose
|
801
|
+
*/
|
802
|
+
GIT_EXTERN(void) git_oidarray_free(git_oidarray *array);
|
803
|
+
|
804
|
+
/**@}*/
|
805
|
+
|
486
806
|
/** @name Deprecated Transfer Progress Types
|
487
807
|
*
|
488
808
|
* These types are retained for backward compatibility. The newer
|
@@ -30,7 +30,7 @@ GIT_BEGIN_DECL
|
|
30
30
|
typedef enum {
|
31
31
|
GIT_DESCRIBE_DEFAULT,
|
32
32
|
GIT_DESCRIBE_TAGS,
|
33
|
-
GIT_DESCRIBE_ALL
|
33
|
+
GIT_DESCRIBE_ALL
|
34
34
|
} git_describe_strategy_t;
|
35
35
|
|
36
36
|
/**
|
@@ -142,6 +142,7 @@ typedef struct git_describe_result git_describe_result;
|
|
142
142
|
* you're done with it.
|
143
143
|
* @param committish a committish to describe
|
144
144
|
* @param opts the lookup options (or NULL for defaults)
|
145
|
+
* @return 0 or an error code.
|
145
146
|
*/
|
146
147
|
GIT_EXTERN(int) git_describe_commit(
|
147
148
|
git_describe_result **result,
|
@@ -152,13 +153,14 @@ GIT_EXTERN(int) git_describe_commit(
|
|
152
153
|
* Describe a commit
|
153
154
|
*
|
154
155
|
* Perform the describe operation on the current commit and the
|
155
|
-
* worktree. After
|
156
|
+
* worktree. After performing describe on HEAD, a status is run and the
|
156
157
|
* description is considered to be dirty if there are.
|
157
158
|
*
|
158
159
|
* @param out pointer to store the result. You must free this once
|
159
160
|
* you're done with it.
|
160
161
|
* @param repo the repository in which to perform the describe
|
161
162
|
* @param opts the lookup options (or NULL for defaults)
|
163
|
+
* @return 0 or an error code.
|
162
164
|
*/
|
163
165
|
GIT_EXTERN(int) git_describe_workdir(
|
164
166
|
git_describe_result **out,
|
@@ -172,6 +174,7 @@ GIT_EXTERN(int) git_describe_workdir(
|
|
172
174
|
* @param result the result from `git_describe_commit()` or
|
173
175
|
* `git_describe_workdir()`.
|
174
176
|
* @param opts the formatting options (or NULL for defaults)
|
177
|
+
* @return 0 or an error code.
|
175
178
|
*/
|
176
179
|
GIT_EXTERN(int) git_describe_format(
|
177
180
|
git_buf *out,
|
@@ -180,6 +183,8 @@ GIT_EXTERN(int) git_describe_format(
|
|
180
183
|
|
181
184
|
/**
|
182
185
|
* Free the describe result.
|
186
|
+
*
|
187
|
+
* @param result The result to free.
|
183
188
|
*/
|
184
189
|
GIT_EXTERN(void) git_describe_result_free(git_describe_result *result);
|
185
190
|
|