rugged 0.28.4 → 0.28.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -78,24 +78,20 @@ static int read_variable_cb(
|
|
|
78
78
|
static int config_memory_open(git_config_backend *backend, git_config_level_t level, const git_repository *repo)
|
|
79
79
|
{
|
|
80
80
|
config_memory_backend *memory_backend = (config_memory_backend *) backend;
|
|
81
|
-
git_config_parser parser = GIT_PARSE_CTX_INIT;
|
|
82
81
|
config_memory_parse_data parse_data;
|
|
83
|
-
|
|
82
|
+
git_config_parser reader;
|
|
84
83
|
|
|
85
84
|
GIT_UNUSED(repo);
|
|
86
85
|
|
|
87
|
-
if (
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
if (memory_backend->cfg.size == 0)
|
|
87
|
+
return 0;
|
|
88
|
+
|
|
89
|
+
git_parse_ctx_init(&reader.ctx, memory_backend->cfg.ptr, memory_backend->cfg.size);
|
|
90
|
+
reader.file = NULL;
|
|
90
91
|
parse_data.entries = memory_backend->entries;
|
|
91
92
|
parse_data.level = level;
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
goto out;
|
|
95
|
-
|
|
96
|
-
out:
|
|
97
|
-
git_config_parser_dispose(&parser);
|
|
98
|
-
return error;
|
|
94
|
+
return git_config_parse(&reader, NULL, read_variable_cb, NULL, NULL, &parse_data);
|
|
99
95
|
}
|
|
100
96
|
|
|
101
97
|
static int config_memory_get(git_config_backend *backend, const char *key, git_config_entry **out)
|
|
@@ -170,6 +166,14 @@ static int config_memory_unlock(git_config_backend *backend, int success)
|
|
|
170
166
|
return config_error_readonly();
|
|
171
167
|
}
|
|
172
168
|
|
|
169
|
+
static int config_memory_snapshot(git_config_backend **out, git_config_backend *backend)
|
|
170
|
+
{
|
|
171
|
+
GIT_UNUSED(out);
|
|
172
|
+
GIT_UNUSED(backend);
|
|
173
|
+
git_error_set(GIT_ERROR_CONFIG, "this backend does not support snapshots");
|
|
174
|
+
return -1;
|
|
175
|
+
}
|
|
176
|
+
|
|
173
177
|
static void config_memory_free(git_config_backend *_backend)
|
|
174
178
|
{
|
|
175
179
|
config_memory_backend *backend = (config_memory_backend *)_backend;
|
|
@@ -211,7 +215,7 @@ int git_config_backend_from_string(git_config_backend **out, const char *cfg, si
|
|
|
211
215
|
backend->parent.iterator = config_memory_iterator;
|
|
212
216
|
backend->parent.lock = config_memory_lock;
|
|
213
217
|
backend->parent.unlock = config_memory_unlock;
|
|
214
|
-
backend->parent.snapshot =
|
|
218
|
+
backend->parent.snapshot = config_memory_snapshot;
|
|
215
219
|
backend->parent.free = config_memory_free;
|
|
216
220
|
|
|
217
221
|
*out = (git_config_backend *)backend;
|
|
@@ -16,14 +16,9 @@ const char *git_config_escaped = "\n\t\b\"\\";
|
|
|
16
16
|
|
|
17
17
|
static void set_parse_error(git_config_parser *reader, int col, const char *error_str)
|
|
18
18
|
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
error_str, reader->path, reader->ctx.line_num, col);
|
|
23
|
-
else
|
|
24
|
-
git_error_set(GIT_ERROR_CONFIG,
|
|
25
|
-
"failed to parse config file: %s (in %s:%"PRIuZ")",
|
|
26
|
-
error_str, reader->path, reader->ctx.line_num);
|
|
19
|
+
const char *file = reader->file ? reader->file->path : "in-memory";
|
|
20
|
+
git_error_set(GIT_ERROR_CONFIG, "failed to parse config file: %s (in %s:%"PRIuZ", column %d)",
|
|
21
|
+
error_str, file, reader->ctx.line_num, col);
|
|
27
22
|
}
|
|
28
23
|
|
|
29
24
|
|
|
@@ -64,35 +59,31 @@ static int strip_comments(char *line, int in_quotes)
|
|
|
64
59
|
}
|
|
65
60
|
|
|
66
61
|
|
|
67
|
-
static int
|
|
62
|
+
static int parse_section_header_ext(git_config_parser *reader, const char *line, const char *base_name, char **section_name)
|
|
68
63
|
{
|
|
69
64
|
int c, rpos;
|
|
70
|
-
|
|
65
|
+
char *first_quote, *last_quote;
|
|
71
66
|
const char *line_start = line;
|
|
72
67
|
git_buf buf = GIT_BUF_INIT;
|
|
73
68
|
size_t quoted_len, alloc_len, base_name_len = strlen(base_name);
|
|
74
69
|
|
|
75
|
-
/*
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
/*
|
|
71
|
+
* base_name is what came before the space. We should be at the
|
|
72
|
+
* first quotation mark, except for now, line isn't being kept in
|
|
73
|
+
* sync so we only really use it to calculate the length.
|
|
74
|
+
*/
|
|
78
75
|
|
|
79
|
-
|
|
80
|
-
if (
|
|
81
|
-
set_parse_error(reader, 0, "
|
|
76
|
+
first_quote = strchr(line, '"');
|
|
77
|
+
if (first_quote == NULL) {
|
|
78
|
+
set_parse_error(reader, 0, "Missing quotation marks in section header");
|
|
82
79
|
goto end_error;
|
|
83
80
|
}
|
|
84
81
|
|
|
85
|
-
first_quote = &line[pos];
|
|
86
82
|
last_quote = strrchr(line, '"');
|
|
87
83
|
quoted_len = last_quote - first_quote;
|
|
88
84
|
|
|
89
|
-
if ((last_quote - line) > INT_MAX) {
|
|
90
|
-
set_parse_error(reader, 0, "invalid section header, line too long");
|
|
91
|
-
goto end_error;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
85
|
if (quoted_len == 0) {
|
|
95
|
-
set_parse_error(reader, 0, "
|
|
86
|
+
set_parse_error(reader, 0, "Missing closing quotation mark in section header");
|
|
96
87
|
goto end_error;
|
|
97
88
|
}
|
|
98
89
|
|
|
@@ -116,7 +107,7 @@ static int parse_subsection_header(git_config_parser *reader, const char *line,
|
|
|
116
107
|
|
|
117
108
|
switch (c) {
|
|
118
109
|
case 0:
|
|
119
|
-
set_parse_error(reader, 0, "
|
|
110
|
+
set_parse_error(reader, 0, "Unexpected end-of-line in section header");
|
|
120
111
|
goto end_error;
|
|
121
112
|
|
|
122
113
|
case '"':
|
|
@@ -126,7 +117,7 @@ static int parse_subsection_header(git_config_parser *reader, const char *line,
|
|
|
126
117
|
c = line[++rpos];
|
|
127
118
|
|
|
128
119
|
if (c == 0) {
|
|
129
|
-
set_parse_error(reader, rpos, "
|
|
120
|
+
set_parse_error(reader, rpos, "Unexpected end-of-line in section header");
|
|
130
121
|
goto end_error;
|
|
131
122
|
}
|
|
132
123
|
|
|
@@ -143,13 +134,13 @@ end_parse:
|
|
|
143
134
|
goto end_error;
|
|
144
135
|
|
|
145
136
|
if (line[rpos] != '"' || line[rpos + 1] != ']') {
|
|
146
|
-
set_parse_error(reader, rpos, "
|
|
137
|
+
set_parse_error(reader, rpos, "Unexpected text after closing quotes");
|
|
147
138
|
git_buf_dispose(&buf);
|
|
148
139
|
return -1;
|
|
149
140
|
}
|
|
150
141
|
|
|
151
142
|
*section_name = git_buf_detach(&buf);
|
|
152
|
-
return
|
|
143
|
+
return &line[rpos + 2] - line_start; /* rpos is at the closing quote */
|
|
153
144
|
|
|
154
145
|
end_error:
|
|
155
146
|
git_buf_dispose(&buf);
|
|
@@ -174,7 +165,7 @@ static int parse_section_header(git_config_parser *reader, char **section_out)
|
|
|
174
165
|
name_end = strrchr(line, ']');
|
|
175
166
|
if (name_end == NULL) {
|
|
176
167
|
git__free(line);
|
|
177
|
-
set_parse_error(reader, 0, "
|
|
168
|
+
set_parse_error(reader, 0, "Missing ']' in section header");
|
|
178
169
|
return -1;
|
|
179
170
|
}
|
|
180
171
|
|
|
@@ -194,14 +185,14 @@ static int parse_section_header(git_config_parser *reader, char **section_out)
|
|
|
194
185
|
do {
|
|
195
186
|
if (git__isspace(c)){
|
|
196
187
|
name[name_length] = '\0';
|
|
197
|
-
result =
|
|
188
|
+
result = parse_section_header_ext(reader, line, name, section_out);
|
|
198
189
|
git__free(line);
|
|
199
190
|
git__free(name);
|
|
200
191
|
return result;
|
|
201
192
|
}
|
|
202
193
|
|
|
203
194
|
if (!config_keychar(c) && c != '.') {
|
|
204
|
-
set_parse_error(reader, pos, "
|
|
195
|
+
set_parse_error(reader, pos, "Unexpected character in header");
|
|
205
196
|
goto fail_parse;
|
|
206
197
|
}
|
|
207
198
|
|
|
@@ -210,7 +201,7 @@ static int parse_section_header(git_config_parser *reader, char **section_out)
|
|
|
210
201
|
} while ((c = line[pos++]) != ']');
|
|
211
202
|
|
|
212
203
|
if (line[pos - 1] != ']') {
|
|
213
|
-
set_parse_error(reader, pos, "
|
|
204
|
+
set_parse_error(reader, pos, "Unexpected end of file");
|
|
214
205
|
goto fail_parse;
|
|
215
206
|
}
|
|
216
207
|
|
|
@@ -395,7 +386,7 @@ static int parse_name(
|
|
|
395
386
|
name_end++;
|
|
396
387
|
|
|
397
388
|
if (line == name_end) {
|
|
398
|
-
set_parse_error(reader, 0, "
|
|
389
|
+
set_parse_error(reader, 0, "Invalid configuration key");
|
|
399
390
|
return -1;
|
|
400
391
|
}
|
|
401
392
|
|
|
@@ -407,7 +398,7 @@ static int parse_name(
|
|
|
407
398
|
if (*value_start == '=') {
|
|
408
399
|
*value = value_start + 1;
|
|
409
400
|
} else if (*value_start) {
|
|
410
|
-
set_parse_error(reader, 0, "
|
|
401
|
+
set_parse_error(reader, 0, "Invalid configuration key");
|
|
411
402
|
return -1;
|
|
412
403
|
}
|
|
413
404
|
|
|
@@ -474,24 +465,13 @@ out:
|
|
|
474
465
|
return error;
|
|
475
466
|
}
|
|
476
467
|
|
|
477
|
-
int git_config_parser_init(git_config_parser *out, const char *path, const char *data, size_t datalen)
|
|
478
|
-
{
|
|
479
|
-
out->path = path;
|
|
480
|
-
return git_parse_ctx_init(&out->ctx, data, datalen);
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
void git_config_parser_dispose(git_config_parser *parser)
|
|
484
|
-
{
|
|
485
|
-
git_parse_ctx_clear(&parser->ctx);
|
|
486
|
-
}
|
|
487
|
-
|
|
488
468
|
int git_config_parse(
|
|
489
469
|
git_config_parser *parser,
|
|
490
470
|
git_config_parser_section_cb on_section,
|
|
491
471
|
git_config_parser_variable_cb on_variable,
|
|
492
472
|
git_config_parser_comment_cb on_comment,
|
|
493
473
|
git_config_parser_eof_cb on_eof,
|
|
494
|
-
void *
|
|
474
|
+
void *data)
|
|
495
475
|
{
|
|
496
476
|
git_parse_ctx *ctx;
|
|
497
477
|
char *current_section = NULL, *var_name = NULL, *var_value = NULL;
|
|
@@ -531,7 +511,7 @@ int git_config_parse(
|
|
|
531
511
|
git_parse_advance_chars(ctx, result);
|
|
532
512
|
|
|
533
513
|
if (on_section)
|
|
534
|
-
result = on_section(parser, current_section, line_start, line_len,
|
|
514
|
+
result = on_section(parser, current_section, line_start, line_len, data);
|
|
535
515
|
/*
|
|
536
516
|
* After we've parsed the section header we may not be
|
|
537
517
|
* done with the line. If there's still data in there,
|
|
@@ -551,13 +531,13 @@ int git_config_parse(
|
|
|
551
531
|
case ';':
|
|
552
532
|
case '#':
|
|
553
533
|
if (on_comment) {
|
|
554
|
-
result = on_comment(parser, line_start, line_len,
|
|
534
|
+
result = on_comment(parser, line_start, line_len, data);
|
|
555
535
|
}
|
|
556
536
|
break;
|
|
557
537
|
|
|
558
538
|
default: /* assume variable declaration */
|
|
559
539
|
if ((result = parse_variable(parser, &var_name, &var_value)) == 0 && on_variable) {
|
|
560
|
-
result = on_variable(parser, current_section, var_name, var_value, line_start, line_len,
|
|
540
|
+
result = on_variable(parser, current_section, var_name, var_value, line_start, line_len, data);
|
|
561
541
|
git__free(var_name);
|
|
562
542
|
git__free(var_value);
|
|
563
543
|
}
|
|
@@ -570,7 +550,7 @@ int git_config_parse(
|
|
|
570
550
|
}
|
|
571
551
|
|
|
572
552
|
if (on_eof)
|
|
573
|
-
result = on_eof(parser, current_section,
|
|
553
|
+
result = on_eof(parser, current_section, data);
|
|
574
554
|
|
|
575
555
|
out:
|
|
576
556
|
git__free(current_section);
|
|
@@ -8,28 +8,30 @@
|
|
|
8
8
|
#define INCLUDE_config_parse_h__
|
|
9
9
|
|
|
10
10
|
#include "common.h"
|
|
11
|
-
|
|
12
11
|
#include "array.h"
|
|
13
|
-
#include "futils.h"
|
|
14
12
|
#include "oid.h"
|
|
15
13
|
#include "parse.h"
|
|
16
14
|
|
|
17
15
|
extern const char *git_config_escapes;
|
|
18
16
|
extern const char *git_config_escaped;
|
|
19
17
|
|
|
18
|
+
typedef struct config_file {
|
|
19
|
+
git_oid checksum;
|
|
20
|
+
char *path;
|
|
21
|
+
git_array_t(struct config_file) includes;
|
|
22
|
+
} git_config_file;
|
|
23
|
+
|
|
20
24
|
typedef struct {
|
|
21
|
-
|
|
25
|
+
struct config_file *file;
|
|
22
26
|
git_parse_ctx ctx;
|
|
23
27
|
} git_config_parser;
|
|
24
28
|
|
|
25
|
-
#define GIT_CONFIG_PARSER_INIT { NULL, GIT_PARSE_CTX_INIT }
|
|
26
|
-
|
|
27
29
|
typedef int (*git_config_parser_section_cb)(
|
|
28
30
|
git_config_parser *parser,
|
|
29
31
|
const char *current_section,
|
|
30
32
|
const char *line,
|
|
31
33
|
size_t line_len,
|
|
32
|
-
void *
|
|
34
|
+
void *data);
|
|
33
35
|
|
|
34
36
|
typedef int (*git_config_parser_variable_cb)(
|
|
35
37
|
git_config_parser *parser,
|
|
@@ -38,21 +40,18 @@ typedef int (*git_config_parser_variable_cb)(
|
|
|
38
40
|
const char *var_value,
|
|
39
41
|
const char *line,
|
|
40
42
|
size_t line_len,
|
|
41
|
-
void *
|
|
43
|
+
void *data);
|
|
42
44
|
|
|
43
45
|
typedef int (*git_config_parser_comment_cb)(
|
|
44
46
|
git_config_parser *parser,
|
|
45
47
|
const char *line,
|
|
46
48
|
size_t line_len,
|
|
47
|
-
void *
|
|
49
|
+
void *data);
|
|
48
50
|
|
|
49
51
|
typedef int (*git_config_parser_eof_cb)(
|
|
50
52
|
git_config_parser *parser,
|
|
51
53
|
const char *current_section,
|
|
52
|
-
void *
|
|
53
|
-
|
|
54
|
-
int git_config_parser_init(git_config_parser *out, const char *path, const char *data, size_t datalen);
|
|
55
|
-
void git_config_parser_dispose(git_config_parser *parser);
|
|
54
|
+
void *data);
|
|
56
55
|
|
|
57
56
|
int git_config_parse(
|
|
58
57
|
git_config_parser *parser,
|
|
@@ -60,6 +59,6 @@ int git_config_parse(
|
|
|
60
59
|
git_config_parser_variable_cb on_variable,
|
|
61
60
|
git_config_parser_comment_cb on_comment,
|
|
62
61
|
git_config_parser_eof_cb on_eof,
|
|
63
|
-
void *
|
|
62
|
+
void *data);
|
|
64
63
|
|
|
65
64
|
#endif
|
data/vendor/libgit2/src/crlf.c
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#include "git2/index.h"
|
|
13
13
|
#include "git2/sys/filter.h"
|
|
14
14
|
|
|
15
|
-
#include "
|
|
15
|
+
#include "fileops.h"
|
|
16
16
|
#include "hash.h"
|
|
17
17
|
#include "filter.h"
|
|
18
18
|
#include "buf_text.h"
|
|
@@ -44,11 +44,11 @@ struct crlf_filter {
|
|
|
44
44
|
|
|
45
45
|
static git_crlf_t check_crlf(const char *value)
|
|
46
46
|
{
|
|
47
|
-
if (
|
|
47
|
+
if (GIT_ATTR_TRUE(value))
|
|
48
48
|
return GIT_CRLF_TEXT;
|
|
49
|
-
else if (
|
|
49
|
+
else if (GIT_ATTR_FALSE(value))
|
|
50
50
|
return GIT_CRLF_BINARY;
|
|
51
|
-
else if (
|
|
51
|
+
else if (GIT_ATTR_UNSPECIFIED(value))
|
|
52
52
|
;
|
|
53
53
|
else if (strcmp(value, "input") == 0)
|
|
54
54
|
return GIT_CRLF_TEXT_INPUT;
|
|
@@ -58,9 +58,9 @@ static git_crlf_t check_crlf(const char *value)
|
|
|
58
58
|
return GIT_CRLF_UNDEFINED;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
static
|
|
61
|
+
static git_cvar_value check_eol(const char *value)
|
|
62
62
|
{
|
|
63
|
-
if (
|
|
63
|
+
if (GIT_ATTR_UNSPECIFIED(value))
|
|
64
64
|
;
|
|
65
65
|
else if (strcmp(value, "lf") == 0)
|
|
66
66
|
return GIT_EOL_LF;
|
|
@@ -78,7 +78,7 @@ static int has_cr_in_index(const git_filter_source *src)
|
|
|
78
78
|
const git_index_entry *entry;
|
|
79
79
|
git_blob *blob;
|
|
80
80
|
const void *blobcontent;
|
|
81
|
-
|
|
81
|
+
git_off_t blobsize;
|
|
82
82
|
bool found_cr;
|
|
83
83
|
|
|
84
84
|
if (!path)
|
|
@@ -127,7 +127,7 @@ static int text_eol_is_crlf(struct crlf_attrs *ca)
|
|
|
127
127
|
return 0;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
static
|
|
130
|
+
static git_cvar_value output_eol(struct crlf_attrs *ca)
|
|
131
131
|
{
|
|
132
132
|
switch (ca->crlf_action) {
|
|
133
133
|
case GIT_CRLF_BINARY:
|
|
@@ -293,12 +293,12 @@ static int convert_attrs(
|
|
|
293
293
|
|
|
294
294
|
memset(ca, 0, sizeof(struct crlf_attrs));
|
|
295
295
|
|
|
296
|
-
if ((error =
|
|
297
|
-
git_filter_source_repo(src),
|
|
298
|
-
(error =
|
|
299
|
-
git_filter_source_repo(src),
|
|
300
|
-
(error =
|
|
301
|
-
git_filter_source_repo(src),
|
|
296
|
+
if ((error = git_repository__cvar(&ca->auto_crlf,
|
|
297
|
+
git_filter_source_repo(src), GIT_CVAR_AUTO_CRLF)) < 0 ||
|
|
298
|
+
(error = git_repository__cvar(&ca->safe_crlf,
|
|
299
|
+
git_filter_source_repo(src), GIT_CVAR_SAFE_CRLF)) < 0 ||
|
|
300
|
+
(error = git_repository__cvar(&ca->core_eol,
|
|
301
|
+
git_filter_source_repo(src), GIT_CVAR_EOL)) < 0)
|
|
302
302
|
return error;
|
|
303
303
|
|
|
304
304
|
/* downgrade FAIL to WARN if ALLOW_UNSAFE option is used */
|
|
@@ -16,11 +16,10 @@
|
|
|
16
16
|
#include "commit_list.h"
|
|
17
17
|
#include "oidmap.h"
|
|
18
18
|
#include "refs.h"
|
|
19
|
-
#include "repository.h"
|
|
20
19
|
#include "revwalk.h"
|
|
21
20
|
#include "tag.h"
|
|
22
21
|
#include "vector.h"
|
|
23
|
-
#include "
|
|
22
|
+
#include "repository.h"
|
|
24
23
|
|
|
25
24
|
/* Ported from https://github.com/git/git/blob/89dde7882f71f846ccd0359756d27bebc31108de/builtin/describe.c */
|
|
26
25
|
|
|
@@ -37,7 +36,12 @@ struct commit_name {
|
|
|
37
36
|
|
|
38
37
|
static void *oidmap_value_bykey(git_oidmap *map, const git_oid *key)
|
|
39
38
|
{
|
|
40
|
-
|
|
39
|
+
size_t pos = git_oidmap_lookup_index(map, key);
|
|
40
|
+
|
|
41
|
+
if (!git_oidmap_valid_index(map, pos))
|
|
42
|
+
return NULL;
|
|
43
|
+
|
|
44
|
+
return git_oidmap_value_at(map, pos);
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
static struct commit_name *find_commit_name(
|
|
@@ -120,8 +124,13 @@ static int add_to_known_names(
|
|
|
120
124
|
e->path = git__strdup(path);
|
|
121
125
|
git_oid_cpy(&e->peeled, peeled);
|
|
122
126
|
|
|
123
|
-
if (!found
|
|
124
|
-
|
|
127
|
+
if (!found) {
|
|
128
|
+
int ret;
|
|
129
|
+
|
|
130
|
+
git_oidmap_insert(names, &e->peeled, e, &ret);
|
|
131
|
+
if (ret < 0)
|
|
132
|
+
return -1;
|
|
133
|
+
}
|
|
125
134
|
}
|
|
126
135
|
else
|
|
127
136
|
git_tag_free(tag);
|
|
@@ -215,7 +224,7 @@ static int get_name(const char *refname, void *payload)
|
|
|
215
224
|
return 0;
|
|
216
225
|
|
|
217
226
|
/* Accept only tags that match the pattern, if given */
|
|
218
|
-
if (data->opts->pattern && (!is_tag ||
|
|
227
|
+
if (data->opts->pattern && (!is_tag || p_fnmatch(data->opts->pattern,
|
|
219
228
|
refname + strlen(GIT_REFS_TAGS_DIR), 0)))
|
|
220
229
|
return 0;
|
|
221
230
|
|
|
@@ -672,8 +681,8 @@ int git_describe_commit(
|
|
|
672
681
|
"git_describe_options");
|
|
673
682
|
data.opts = &normalized;
|
|
674
683
|
|
|
675
|
-
|
|
676
|
-
|
|
684
|
+
data.names = git_oidmap_alloc();
|
|
685
|
+
GIT_ERROR_CHECK_ALLOC(data.names);
|
|
677
686
|
|
|
678
687
|
/** TODO: contains to be implemented */
|
|
679
688
|
|
|
@@ -760,7 +769,7 @@ static int normalize_format_options(
|
|
|
760
769
|
const git_describe_format_options *src)
|
|
761
770
|
{
|
|
762
771
|
if (!src) {
|
|
763
|
-
|
|
772
|
+
git_describe_init_format_options(dst, GIT_DESCRIBE_FORMAT_OPTIONS_VERSION);
|
|
764
773
|
return 0;
|
|
765
774
|
}
|
|
766
775
|
|
|
@@ -869,26 +878,16 @@ void git_describe_result_free(git_describe_result *result)
|
|
|
869
878
|
git__free(result);
|
|
870
879
|
}
|
|
871
880
|
|
|
872
|
-
int
|
|
881
|
+
int git_describe_init_options(git_describe_options *opts, unsigned int version)
|
|
873
882
|
{
|
|
874
883
|
GIT_INIT_STRUCTURE_FROM_TEMPLATE(
|
|
875
884
|
opts, version, git_describe_options, GIT_DESCRIBE_OPTIONS_INIT);
|
|
876
885
|
return 0;
|
|
877
886
|
}
|
|
878
887
|
|
|
879
|
-
int
|
|
880
|
-
{
|
|
881
|
-
return git_describe_options_init(opts, version);
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
int git_describe_format_options_init(git_describe_format_options *opts, unsigned int version)
|
|
888
|
+
int git_describe_init_format_options(git_describe_format_options *opts, unsigned int version)
|
|
885
889
|
{
|
|
886
890
|
GIT_INIT_STRUCTURE_FROM_TEMPLATE(
|
|
887
891
|
opts, version, git_describe_format_options, GIT_DESCRIBE_FORMAT_OPTIONS_INIT);
|
|
888
892
|
return 0;
|
|
889
893
|
}
|
|
890
|
-
|
|
891
|
-
int git_describe_init_format_options(git_describe_format_options *opts, unsigned int version)
|
|
892
|
-
{
|
|
893
|
-
return git_describe_format_options_init(opts, version);
|
|
894
|
-
}
|