rugged 0.27.7 → 0.27.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rugged/version.rb +1 -1
- data/vendor/libgit2/CMakeLists.txt +6 -2
- data/vendor/libgit2/cmake/Modules/CheckPrototypeDefinition.c.in +29 -0
- data/vendor/libgit2/cmake/Modules/CheckPrototypeDefinition.cmake +96 -0
- data/vendor/libgit2/cmake/Modules/FindIconv.cmake +11 -6
- data/vendor/libgit2/deps/http-parser/CMakeLists.txt +0 -2
- data/vendor/libgit2/include/git2.h +0 -1
- data/vendor/libgit2/include/git2/attr.h +7 -18
- data/vendor/libgit2/include/git2/blame.h +22 -39
- data/vendor/libgit2/include/git2/blob.h +1 -1
- data/vendor/libgit2/include/git2/branch.h +1 -1
- data/vendor/libgit2/include/git2/buffer.h +2 -14
- data/vendor/libgit2/include/git2/checkout.h +12 -13
- data/vendor/libgit2/include/git2/cherrypick.h +4 -6
- data/vendor/libgit2/include/git2/clone.h +6 -8
- data/vendor/libgit2/include/git2/commit.h +0 -28
- data/vendor/libgit2/include/git2/common.h +0 -27
- data/vendor/libgit2/include/git2/config.h +0 -1
- data/vendor/libgit2/include/git2/describe.h +7 -30
- data/vendor/libgit2/include/git2/diff.h +22 -32
- data/vendor/libgit2/include/git2/errors.h +0 -1
- data/vendor/libgit2/include/git2/ignore.h +2 -2
- data/vendor/libgit2/include/git2/merge.h +8 -10
- data/vendor/libgit2/include/git2/proxy.h +5 -9
- data/vendor/libgit2/include/git2/rebase.h +4 -7
- data/vendor/libgit2/include/git2/refs.h +1 -1
- data/vendor/libgit2/include/git2/refspec.h +0 -17
- data/vendor/libgit2/include/git2/remote.h +10 -12
- data/vendor/libgit2/include/git2/repository.h +5 -7
- data/vendor/libgit2/include/git2/revert.h +3 -5
- data/vendor/libgit2/include/git2/stash.h +8 -11
- data/vendor/libgit2/include/git2/status.h +3 -7
- data/vendor/libgit2/include/git2/submodule.h +7 -8
- data/vendor/libgit2/include/git2/sys/index.h +0 -3
- data/vendor/libgit2/include/git2/sys/mempack.h +35 -35
- data/vendor/libgit2/include/git2/sys/merge.h +1 -6
- data/vendor/libgit2/include/git2/transaction.h +0 -1
- data/vendor/libgit2/include/git2/types.h +5 -8
- data/vendor/libgit2/include/git2/version.h +2 -2
- data/vendor/libgit2/include/git2/worktree.h +11 -46
- data/vendor/libgit2/src/CMakeLists.txt +28 -91
- data/vendor/libgit2/src/annotated_commit.c +4 -4
- data/vendor/libgit2/src/apply.c +6 -5
- data/vendor/libgit2/src/attr.c +4 -4
- data/vendor/libgit2/src/attr_file.c +5 -5
- data/vendor/libgit2/src/attrcache.c +2 -2
- data/vendor/libgit2/src/blame.c +4 -11
- data/vendor/libgit2/src/blame.h +0 -1
- data/vendor/libgit2/src/blame_git.c +5 -8
- data/vendor/libgit2/src/blob.c +5 -5
- data/vendor/libgit2/src/branch.c +20 -20
- data/vendor/libgit2/src/buffer.c +4 -9
- data/vendor/libgit2/src/buffer.h +1 -1
- data/vendor/libgit2/src/checkout.c +24 -33
- data/vendor/libgit2/src/cherrypick.c +3 -3
- data/vendor/libgit2/src/clone.c +13 -13
- data/vendor/libgit2/src/commit.c +5 -18
- data/vendor/libgit2/src/commit_list.c +9 -3
- data/vendor/libgit2/src/common.h +1 -3
- data/vendor/libgit2/src/config.c +15 -6
- data/vendor/libgit2/src/config_file.c +249 -193
- data/vendor/libgit2/src/config_parse.c +66 -89
- data/vendor/libgit2/src/config_parse.h +2 -2
- data/vendor/libgit2/src/crlf.c +3 -9
- data/vendor/libgit2/src/diff.c +2 -2
- data/vendor/libgit2/src/diff_driver.c +3 -3
- data/vendor/libgit2/src/diff_file.c +3 -3
- data/vendor/libgit2/src/diff_generate.c +3 -4
- data/vendor/libgit2/src/diff_print.c +8 -8
- data/vendor/libgit2/src/diff_tform.c +4 -2
- data/vendor/libgit2/src/diff_xdiff.c +0 -12
- data/vendor/libgit2/src/features.h.in +0 -2
- data/vendor/libgit2/src/fetch.c +2 -2
- data/vendor/libgit2/src/fetchhead.c +5 -5
- data/vendor/libgit2/src/filebuf.c +4 -4
- data/vendor/libgit2/src/fileops.c +10 -10
- data/vendor/libgit2/src/filter.c +9 -3
- data/vendor/libgit2/src/global.c +12 -17
- data/vendor/libgit2/src/hash.h +0 -2
- data/vendor/libgit2/src/ignore.c +5 -5
- data/vendor/libgit2/src/index.c +40 -80
- data/vendor/libgit2/src/index.h +0 -10
- data/vendor/libgit2/src/indexer.c +9 -9
- data/vendor/libgit2/src/iterator.c +8 -8
- data/vendor/libgit2/src/khash.h +1 -3
- data/vendor/libgit2/src/merge.c +7 -7
- data/vendor/libgit2/src/netops.c +5 -5
- data/vendor/libgit2/src/notes.c +2 -2
- data/vendor/libgit2/src/odb.c +9 -9
- data/vendor/libgit2/src/odb_loose.c +22 -18
- data/vendor/libgit2/src/odb_pack.c +3 -3
- data/vendor/libgit2/src/pack-objects.c +3 -3
- data/vendor/libgit2/src/pack.c +5 -5
- data/vendor/libgit2/src/pack.h +1 -1
- data/vendor/libgit2/src/parse.c +7 -4
- data/vendor/libgit2/src/patch.c +1 -1
- data/vendor/libgit2/src/patch_generate.c +2 -2
- data/vendor/libgit2/src/patch_parse.c +4 -24
- data/vendor/libgit2/src/path.c +140 -39
- data/vendor/libgit2/src/path.h +84 -2
- data/vendor/libgit2/src/pathspec.c +1 -1
- data/vendor/libgit2/src/push.c +2 -2
- data/vendor/libgit2/src/rebase.c +23 -20
- data/vendor/libgit2/src/refdb_fs.c +34 -65
- data/vendor/libgit2/src/refs.c +16 -13
- data/vendor/libgit2/src/refspec.c +5 -30
- data/vendor/libgit2/src/refspec.h +1 -1
- data/vendor/libgit2/src/remote.c +43 -43
- data/vendor/libgit2/src/repository.c +56 -56
- data/vendor/libgit2/src/reset.c +1 -1
- data/vendor/libgit2/src/revert.c +3 -3
- data/vendor/libgit2/src/revparse.c +7 -6
- data/vendor/libgit2/src/revwalk.c +20 -48
- data/vendor/libgit2/src/revwalk.h +1 -2
- data/vendor/libgit2/src/settings.c +1 -25
- data/vendor/libgit2/src/signature.c +4 -2
- data/vendor/libgit2/src/stash.c +34 -80
- data/vendor/libgit2/src/status.c +1 -1
- data/vendor/libgit2/src/streams/curl.c +1 -1
- data/vendor/libgit2/src/streams/openssl.c +34 -132
- data/vendor/libgit2/src/streams/openssl.h +107 -0
- data/vendor/libgit2/src/streams/tls.c +0 -3
- data/vendor/libgit2/src/submodule.c +83 -118
- data/vendor/libgit2/src/sysdir.c +4 -4
- data/vendor/libgit2/src/tag.c +12 -12
- data/vendor/libgit2/src/trace.h +1 -1
- data/vendor/libgit2/src/trailer.c +6 -6
- data/vendor/libgit2/src/transport.c +2 -2
- data/vendor/libgit2/src/transports/auth.c +1 -1
- data/vendor/libgit2/src/transports/auth_negotiate.c +2 -2
- data/vendor/libgit2/src/transports/git.c +1 -1
- data/vendor/libgit2/src/transports/http.c +15 -12
- data/vendor/libgit2/src/transports/local.c +7 -7
- data/vendor/libgit2/src/transports/smart.c +15 -20
- data/vendor/libgit2/src/transports/smart.h +5 -5
- data/vendor/libgit2/src/transports/smart_pkt.c +131 -123
- data/vendor/libgit2/src/transports/smart_protocol.c +38 -48
- data/vendor/libgit2/src/transports/ssh.c +1 -1
- data/vendor/libgit2/src/transports/winhttp.c +26 -21
- data/vendor/libgit2/src/tree-cache.c +2 -2
- data/vendor/libgit2/src/tree.c +69 -23
- data/vendor/libgit2/src/tree.h +12 -0
- data/vendor/libgit2/src/util.c +99 -52
- data/vendor/libgit2/src/util.h +138 -14
- data/vendor/libgit2/src/vector.c +13 -8
- data/vendor/libgit2/src/win32/findfile.c +2 -2
- data/vendor/libgit2/src/win32/posix_w32.c +1 -1
- data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.c +0 -94
- data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.h +75 -28
- data/vendor/libgit2/src/worktree.c +44 -65
- data/vendor/libgit2/src/worktree.h +0 -2
- data/vendor/libgit2/src/xdiff/xdiffi.c +1 -3
- metadata +5 -17
- data/vendor/libgit2/cmake/Modules/FindmbedTLS.cmake +0 -93
- data/vendor/libgit2/include/git2/mailmap.h +0 -115
- data/vendor/libgit2/include/git2/sys/alloc.h +0 -101
- data/vendor/libgit2/include/git2/sys/path.h +0 -55
- data/vendor/libgit2/src/alloc.c +0 -47
- data/vendor/libgit2/src/alloc.h +0 -40
- data/vendor/libgit2/src/hash/hash_mbedtls.c +0 -38
- data/vendor/libgit2/src/hash/hash_mbedtls.h +0 -20
- data/vendor/libgit2/src/mailmap.c +0 -485
- data/vendor/libgit2/src/mailmap.h +0 -35
- data/vendor/libgit2/src/stdalloc.c +0 -120
- data/vendor/libgit2/src/stdalloc.h +0 -17
- data/vendor/libgit2/src/streams/mbedtls.c +0 -463
- data/vendor/libgit2/src/streams/mbedtls.h +0 -20
@@ -18,8 +18,6 @@ struct git_worktree {
|
|
18
18
|
* directory. */
|
19
19
|
char *name;
|
20
20
|
|
21
|
-
/* Path to the where the worktree lives in the filesystem */
|
22
|
-
char *worktree_path;
|
23
21
|
/* Path to the .git file in the working tree's repository */
|
24
22
|
char *gitlink_path;
|
25
23
|
/* Path to the .git directory inside the parent's
|
@@ -33,10 +33,8 @@
|
|
33
33
|
/** Declare a function as always inlined. */
|
34
34
|
#if defined(_MSC_VER)
|
35
35
|
# define XDL_INLINE(type) static __inline type
|
36
|
-
#elif defined(__GNUC__)
|
37
|
-
# define XDL_INLINE(type) static __inline__ type
|
38
36
|
#else
|
39
|
-
#define
|
37
|
+
# define XDL_INLINE(type) static inline type
|
40
38
|
#endif
|
41
39
|
|
42
40
|
typedef struct s_xdpsplit {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rugged
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
@@ -123,6 +123,8 @@ files:
|
|
123
123
|
- vendor/libgit2/CMakeLists.txt
|
124
124
|
- vendor/libgit2/COPYING
|
125
125
|
- vendor/libgit2/cmake/Modules/AddCFlagIfSupported.cmake
|
126
|
+
- vendor/libgit2/cmake/Modules/CheckPrototypeDefinition.c.in
|
127
|
+
- vendor/libgit2/cmake/Modules/CheckPrototypeDefinition.cmake
|
126
128
|
- vendor/libgit2/cmake/Modules/EnableWarnings.cmake
|
127
129
|
- vendor/libgit2/cmake/Modules/FindCoreFoundation.cmake
|
128
130
|
- vendor/libgit2/cmake/Modules/FindGSSAPI.cmake
|
@@ -131,7 +133,6 @@ files:
|
|
131
133
|
- vendor/libgit2/cmake/Modules/FindPkgLibraries.cmake
|
132
134
|
- vendor/libgit2/cmake/Modules/FindSecurity.cmake
|
133
135
|
- vendor/libgit2/cmake/Modules/FindStatNsec.cmake
|
134
|
-
- vendor/libgit2/cmake/Modules/FindmbedTLS.cmake
|
135
136
|
- vendor/libgit2/cmake/Modules/IdeSplitSources.cmake
|
136
137
|
- vendor/libgit2/deps/http-parser/CMakeLists.txt
|
137
138
|
- vendor/libgit2/deps/http-parser/LICENSE-MIT
|
@@ -195,7 +196,6 @@ files:
|
|
195
196
|
- vendor/libgit2/include/git2/index.h
|
196
197
|
- vendor/libgit2/include/git2/indexer.h
|
197
198
|
- vendor/libgit2/include/git2/inttypes.h
|
198
|
-
- vendor/libgit2/include/git2/mailmap.h
|
199
199
|
- vendor/libgit2/include/git2/merge.h
|
200
200
|
- vendor/libgit2/include/git2/message.h
|
201
201
|
- vendor/libgit2/include/git2/net.h
|
@@ -226,7 +226,6 @@ files:
|
|
226
226
|
- vendor/libgit2/include/git2/stdint.h
|
227
227
|
- vendor/libgit2/include/git2/strarray.h
|
228
228
|
- vendor/libgit2/include/git2/submodule.h
|
229
|
-
- vendor/libgit2/include/git2/sys/alloc.h
|
230
229
|
- vendor/libgit2/include/git2/sys/commit.h
|
231
230
|
- vendor/libgit2/include/git2/sys/config.h
|
232
231
|
- vendor/libgit2/include/git2/sys/diff.h
|
@@ -237,7 +236,6 @@ files:
|
|
237
236
|
- vendor/libgit2/include/git2/sys/merge.h
|
238
237
|
- vendor/libgit2/include/git2/sys/odb_backend.h
|
239
238
|
- vendor/libgit2/include/git2/sys/openssl.h
|
240
|
-
- vendor/libgit2/include/git2/sys/path.h
|
241
239
|
- vendor/libgit2/include/git2/sys/refdb_backend.h
|
242
240
|
- vendor/libgit2/include/git2/sys/reflog.h
|
243
241
|
- vendor/libgit2/include/git2/sys/refs.h
|
@@ -255,8 +253,6 @@ files:
|
|
255
253
|
- vendor/libgit2/include/git2/worktree.h
|
256
254
|
- vendor/libgit2/libgit2.pc.in
|
257
255
|
- vendor/libgit2/src/CMakeLists.txt
|
258
|
-
- vendor/libgit2/src/alloc.c
|
259
|
-
- vendor/libgit2/src/alloc.h
|
260
256
|
- vendor/libgit2/src/annotated_commit.c
|
261
257
|
- vendor/libgit2/src/annotated_commit.h
|
262
258
|
- vendor/libgit2/src/apply.c
|
@@ -345,8 +341,6 @@ files:
|
|
345
341
|
- vendor/libgit2/src/hash/hash_common_crypto.h
|
346
342
|
- vendor/libgit2/src/hash/hash_generic.c
|
347
343
|
- vendor/libgit2/src/hash/hash_generic.h
|
348
|
-
- vendor/libgit2/src/hash/hash_mbedtls.c
|
349
|
-
- vendor/libgit2/src/hash/hash_mbedtls.h
|
350
344
|
- vendor/libgit2/src/hash/hash_openssl.h
|
351
345
|
- vendor/libgit2/src/hash/hash_win32.c
|
352
346
|
- vendor/libgit2/src/hash/hash_win32.h
|
@@ -368,8 +362,6 @@ files:
|
|
368
362
|
- vendor/libgit2/src/iterator.c
|
369
363
|
- vendor/libgit2/src/iterator.h
|
370
364
|
- vendor/libgit2/src/khash.h
|
371
|
-
- vendor/libgit2/src/mailmap.c
|
372
|
-
- vendor/libgit2/src/mailmap.h
|
373
365
|
- vendor/libgit2/src/map.h
|
374
366
|
- vendor/libgit2/src/merge.c
|
375
367
|
- vendor/libgit2/src/merge.h
|
@@ -457,13 +449,9 @@ files:
|
|
457
449
|
- vendor/libgit2/src/stash.c
|
458
450
|
- vendor/libgit2/src/status.c
|
459
451
|
- vendor/libgit2/src/status.h
|
460
|
-
- vendor/libgit2/src/stdalloc.c
|
461
|
-
- vendor/libgit2/src/stdalloc.h
|
462
452
|
- vendor/libgit2/src/stream.h
|
463
453
|
- vendor/libgit2/src/streams/curl.c
|
464
454
|
- vendor/libgit2/src/streams/curl.h
|
465
|
-
- vendor/libgit2/src/streams/mbedtls.c
|
466
|
-
- vendor/libgit2/src/streams/mbedtls.h
|
467
455
|
- vendor/libgit2/src/streams/openssl.c
|
468
456
|
- vendor/libgit2/src/streams/openssl.h
|
469
457
|
- vendor/libgit2/src/streams/socket.c
|
@@ -593,7 +581,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
593
581
|
version: '0'
|
594
582
|
requirements: []
|
595
583
|
rubyforge_project:
|
596
|
-
rubygems_version: 2.7.6
|
584
|
+
rubygems_version: 2.7.6.2
|
597
585
|
signing_key:
|
598
586
|
specification_version: 4
|
599
587
|
summary: Rugged is a Ruby binding to the libgit2 linkable library
|
@@ -1,93 +0,0 @@
|
|
1
|
-
# - Try to find mbedTLS
|
2
|
-
# Once done this will define
|
3
|
-
#
|
4
|
-
# Read-Only variables
|
5
|
-
# MBEDTLS_FOUND - system has mbedTLS
|
6
|
-
# MBEDTLS_INCLUDE_DIR - the mbedTLS include directory
|
7
|
-
# MBEDTLS_LIBRARY_DIR - the mbedTLS library directory
|
8
|
-
# MBEDTLS_LIBRARIES - Link these to use mbedTLS
|
9
|
-
# MBEDTLS_LIBRARY - path to mbedTLS library
|
10
|
-
# MBEDX509_LIBRARY - path to mbedTLS X.509 library
|
11
|
-
# MBEDCRYPTO_LIBRARY - path to mbedTLS Crypto library
|
12
|
-
#
|
13
|
-
# Hint
|
14
|
-
# MBEDTLS_ROOT_DIR can be pointed to a local mbedTLS installation.
|
15
|
-
|
16
|
-
SET(_MBEDTLS_ROOT_HINTS
|
17
|
-
${MBEDTLS_ROOT_DIR}
|
18
|
-
ENV MBEDTLS_ROOT_DIR
|
19
|
-
)
|
20
|
-
|
21
|
-
SET(_MBEDTLS_ROOT_HINTS_AND_PATHS
|
22
|
-
HINTS ${_MBEDTLS_ROOT_HINTS}
|
23
|
-
PATHS ${_MBEDTLS_ROOT_PATHS}
|
24
|
-
)
|
25
|
-
|
26
|
-
FIND_PATH(MBEDTLS_INCLUDE_DIR
|
27
|
-
NAMES mbedtls/version.h
|
28
|
-
${_MBEDTLS_ROOT_HINTS_AND_PATHS}
|
29
|
-
PATH_SUFFIXES include
|
30
|
-
)
|
31
|
-
|
32
|
-
IF(MBEDTLS_INCLUDE_DIR AND MBEDTLS_LIBRARIES)
|
33
|
-
# Already in cache, be silent
|
34
|
-
SET(MBEDTLS_FIND_QUIETLY TRUE)
|
35
|
-
ENDIF()
|
36
|
-
|
37
|
-
FIND_LIBRARY(MBEDTLS_LIBRARY
|
38
|
-
NAMES mbedtls libmbedtls
|
39
|
-
${_MBEDTLS_ROOT_HINTS_AND_PATHS}
|
40
|
-
PATH_SUFFIXES library
|
41
|
-
)
|
42
|
-
FIND_LIBRARY(MBEDX509_LIBRARY
|
43
|
-
NAMES mbedx509 libmbedx509
|
44
|
-
${_MBEDTLS_ROOT_HINTS_AND_PATHS}
|
45
|
-
PATH_SUFFIXES library
|
46
|
-
)
|
47
|
-
FIND_LIBRARY(MBEDCRYPTO_LIBRARY
|
48
|
-
NAMES mbedcrypto libmbedcrypto
|
49
|
-
${_MBEDTLS_ROOT_HINTS_AND_PATHS}
|
50
|
-
PATH_SUFFIXES library
|
51
|
-
)
|
52
|
-
|
53
|
-
IF(MBEDTLS_INCLUDE_DIR AND MBEDTLS_LIBRARY AND MBEDX509_LIBRARY AND MBEDCRYPTO_LIBRARY)
|
54
|
-
SET(MBEDTLS_FOUND TRUE)
|
55
|
-
ENDIF()
|
56
|
-
|
57
|
-
IF(MBEDTLS_FOUND)
|
58
|
-
# split mbedTLS into -L and -l linker options, so we can set them for pkg-config
|
59
|
-
GET_FILENAME_COMPONENT(MBEDTLS_LIBRARY_DIR ${MBEDTLS_LIBRARY} PATH)
|
60
|
-
GET_FILENAME_COMPONENT(MBEDTLS_LIBRARY_FILE ${MBEDTLS_LIBRARY} NAME_WE)
|
61
|
-
GET_FILENAME_COMPONENT(MBEDX509_LIBRARY_FILE ${MBEDX509_LIBRARY} NAME_WE)
|
62
|
-
GET_FILENAME_COMPONENT(MBEDCRYPTO_LIBRARY_FILE ${MBEDCRYPTO_LIBRARY} NAME_WE)
|
63
|
-
STRING(REGEX REPLACE "^lib" "" MBEDTLS_LIBRARY_FILE ${MBEDTLS_LIBRARY_FILE})
|
64
|
-
STRING(REGEX REPLACE "^lib" "" MBEDX509_LIBRARY_FILE ${MBEDX509_LIBRARY_FILE})
|
65
|
-
STRING(REGEX REPLACE "^lib" "" MBEDCRYPTO_LIBRARY_FILE ${MBEDCRYPTO_LIBRARY_FILE})
|
66
|
-
SET(MBEDTLS_LIBRARIES "-L${MBEDTLS_LIBRARY_DIR} -l${MBEDTLS_LIBRARY_FILE} -l${MBEDX509_LIBRARY_FILE} -l${MBEDCRYPTO_LIBRARY_FILE}")
|
67
|
-
|
68
|
-
IF(NOT MBEDTLS_FIND_QUIETLY)
|
69
|
-
MESSAGE(STATUS "Found mbedTLS:")
|
70
|
-
FILE(READ ${MBEDTLS_INCLUDE_DIR}/mbedtls/version.h MBEDTLSCONTENT)
|
71
|
-
STRING(REGEX MATCH "MBEDTLS_VERSION_STRING +\"[0-9|.]+\"" MBEDTLSMATCH ${MBEDTLSCONTENT})
|
72
|
-
IF (MBEDTLSMATCH)
|
73
|
-
STRING(REGEX REPLACE "MBEDTLS_VERSION_STRING +\"([0-9|.]+)\"" "\\1" MBEDTLS_VERSION ${MBEDTLSMATCH})
|
74
|
-
MESSAGE(STATUS " version ${MBEDTLS_VERSION}")
|
75
|
-
ENDIF(MBEDTLSMATCH)
|
76
|
-
MESSAGE(STATUS " TLS: ${MBEDTLS_LIBRARY}")
|
77
|
-
MESSAGE(STATUS " X509: ${MBEDX509_LIBRARY}")
|
78
|
-
MESSAGE(STATUS " Crypto: ${MBEDCRYPTO_LIBRARY}")
|
79
|
-
ENDIF(NOT MBEDTLS_FIND_QUIETLY)
|
80
|
-
ELSE(MBEDTLS_FOUND)
|
81
|
-
IF(MBEDTLS_FIND_REQUIRED)
|
82
|
-
MESSAGE(FATAL_ERROR "Could not find mbedTLS")
|
83
|
-
ENDIF(MBEDTLS_FIND_REQUIRED)
|
84
|
-
ENDIF(MBEDTLS_FOUND)
|
85
|
-
|
86
|
-
MARK_AS_ADVANCED(
|
87
|
-
MBEDTLS_INCLUDE_DIR
|
88
|
-
MBEDTLS_LIBRARY_DIR
|
89
|
-
MBEDTLS_LIBRARIES
|
90
|
-
MBEDTLS_LIBRARY
|
91
|
-
MBEDX509_LIBRARY
|
92
|
-
MBEDCRYPTO_LIBRARY
|
93
|
-
)
|
@@ -1,115 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (C) the libgit2 contributors. All rights reserved.
|
3
|
-
*
|
4
|
-
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
5
|
-
* a Linking Exception. For full terms see the included COPYING file.
|
6
|
-
*/
|
7
|
-
#ifndef INCLUDE_git_mailmap_h__
|
8
|
-
#define INCLUDE_git_mailmap_h__
|
9
|
-
|
10
|
-
#include "common.h"
|
11
|
-
#include "types.h"
|
12
|
-
#include "buffer.h"
|
13
|
-
|
14
|
-
/**
|
15
|
-
* @file git2/mailmap.h
|
16
|
-
* @brief Mailmap parsing routines
|
17
|
-
* @defgroup git_mailmap Git mailmap routines
|
18
|
-
* @ingroup Git
|
19
|
-
* @{
|
20
|
-
*/
|
21
|
-
GIT_BEGIN_DECL
|
22
|
-
|
23
|
-
/**
|
24
|
-
* Allocate a new mailmap object.
|
25
|
-
*
|
26
|
-
* This object is empty, so you'll have to add a mailmap file before you can do
|
27
|
-
* anything with it. The mailmap must be freed with 'git_mailmap_free'.
|
28
|
-
*
|
29
|
-
* @param out pointer to store the new mailmap
|
30
|
-
* @return 0 on success, or an error code
|
31
|
-
*/
|
32
|
-
GIT_EXTERN(int) git_mailmap_new(git_mailmap **out);
|
33
|
-
|
34
|
-
/**
|
35
|
-
* Free the mailmap and its associated memory.
|
36
|
-
*
|
37
|
-
* @param mm the mailmap to free
|
38
|
-
*/
|
39
|
-
GIT_EXTERN(void) git_mailmap_free(git_mailmap *mm);
|
40
|
-
|
41
|
-
/**
|
42
|
-
* Add a single entry to the given mailmap object. If the entry already exists,
|
43
|
-
* it will be replaced with the new entry.
|
44
|
-
*
|
45
|
-
* @param mm mailmap to add the entry to
|
46
|
-
* @param real_name the real name to use, or NULL
|
47
|
-
* @param real_email the real email to use, or NULL
|
48
|
-
* @param replace_name the name to replace, or NULL
|
49
|
-
* @param replace_email the email to replace
|
50
|
-
* @return 0 on success, or an error code
|
51
|
-
*/
|
52
|
-
GIT_EXTERN(int) git_mailmap_add_entry(
|
53
|
-
git_mailmap *mm, const char *real_name, const char *real_email,
|
54
|
-
const char *replace_name, const char *replace_email);
|
55
|
-
|
56
|
-
/**
|
57
|
-
* Create a new mailmap instance containing a single mailmap file
|
58
|
-
*
|
59
|
-
* @param out pointer to store the new mailmap
|
60
|
-
* @param buf buffer to parse the mailmap from
|
61
|
-
* @param len the length of the input buffer
|
62
|
-
* @return 0 on success, or an error code
|
63
|
-
*/
|
64
|
-
GIT_EXTERN(int) git_mailmap_from_buffer(
|
65
|
-
git_mailmap **out, const char *buf, size_t len);
|
66
|
-
|
67
|
-
/**
|
68
|
-
* Create a new mailmap instance from a repository, loading mailmap files based
|
69
|
-
* on the repository's configuration.
|
70
|
-
*
|
71
|
-
* Mailmaps are loaded in the following order:
|
72
|
-
* 1. '.mailmap' in the root of the repository's working directory, if present.
|
73
|
-
* 2. The blob object identified by the 'mailmap.blob' config entry, if set.
|
74
|
-
* [NOTE: 'mailmap.blob' defaults to 'HEAD:.mailmap' in bare repositories]
|
75
|
-
* 3. The path in the 'mailmap.file' config entry, if set.
|
76
|
-
*
|
77
|
-
* @param out pointer to store the new mailmap
|
78
|
-
* @param repo repository to load mailmap information from
|
79
|
-
* @return 0 on success, or an error code
|
80
|
-
*/
|
81
|
-
GIT_EXTERN(int) git_mailmap_from_repository(
|
82
|
-
git_mailmap **out, git_repository *repo);
|
83
|
-
|
84
|
-
/**
|
85
|
-
* Resolve a name and email to the corresponding real name and email.
|
86
|
-
*
|
87
|
-
* The lifetime of the strings are tied to `mm`, `name`, and `email` parameters.
|
88
|
-
*
|
89
|
-
* @param real_name pointer to store the real name
|
90
|
-
* @param real_email pointer to store the real email
|
91
|
-
* @param mm the mailmap to perform a lookup with (may be NULL)
|
92
|
-
* @param name the name to look up
|
93
|
-
* @param email the email to look up
|
94
|
-
* @return 0 on success, or an error code
|
95
|
-
*/
|
96
|
-
GIT_EXTERN(int) git_mailmap_resolve(
|
97
|
-
const char **real_name, const char **real_email,
|
98
|
-
const git_mailmap *mm, const char *name, const char *email);
|
99
|
-
|
100
|
-
/**
|
101
|
-
* Resolve a signature to use real names and emails with a mailmap.
|
102
|
-
*
|
103
|
-
* Call `git_signature_free()` to free the data.
|
104
|
-
*
|
105
|
-
* @param out new signature
|
106
|
-
* @param mm mailmap to resolve with
|
107
|
-
* @param sig signature to resolve
|
108
|
-
* @return 0 or an error code
|
109
|
-
*/
|
110
|
-
GIT_EXTERN(int) git_mailmap_resolve_signature(
|
111
|
-
git_signature **out, const git_mailmap *mm, const git_signature *sig);
|
112
|
-
|
113
|
-
/** @} */
|
114
|
-
GIT_END_DECL
|
115
|
-
#endif
|
@@ -1,101 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (C) the libgit2 contributors. All rights reserved.
|
3
|
-
*
|
4
|
-
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
5
|
-
* a Linking Exception. For full terms see the included COPYING file.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#ifndef INCLUDE_sys_git_alloc_h__
|
9
|
-
#define INCLUDE_sys_git_alloc_h__
|
10
|
-
|
11
|
-
#include "git2/common.h"
|
12
|
-
|
13
|
-
GIT_BEGIN_DECL
|
14
|
-
|
15
|
-
/**
|
16
|
-
* An instance for a custom memory allocator
|
17
|
-
*
|
18
|
-
* Setting the pointers of this structure allows the developer to implement
|
19
|
-
* custom memory allocators. The global memory allocator can be set by using
|
20
|
-
* "GIT_OPT_SET_ALLOCATOR" with the `git_libgit2_opts` function. Keep in mind
|
21
|
-
* that all fields need to be set to a proper function.
|
22
|
-
*/
|
23
|
-
typedef struct {
|
24
|
-
/* Allocate `n` bytes of memory */
|
25
|
-
void *(*gmalloc)(size_t n, const char *file, int line);
|
26
|
-
|
27
|
-
/*
|
28
|
-
* Allocate memory for an array of `nelem` elements, where each element
|
29
|
-
* has a size of `elsize`. Returned memory shall be initialized to
|
30
|
-
* all-zeroes
|
31
|
-
*/
|
32
|
-
void *(*gcalloc)(size_t nelem, size_t elsize, const char *file, int line);
|
33
|
-
|
34
|
-
/* Allocate memory for the string `str` and duplicate its contents. */
|
35
|
-
char *(*gstrdup)(const char *str, const char *file, int line);
|
36
|
-
|
37
|
-
/*
|
38
|
-
* Equivalent to the `gstrdup` function, but only duplicating at most
|
39
|
-
* `n + 1` bytes
|
40
|
-
*/
|
41
|
-
char *(*gstrndup)(const char *str, size_t n, const char *file, int line);
|
42
|
-
|
43
|
-
/*
|
44
|
-
* Equivalent to `gstrndup`, but will always duplicate exactly `n` bytes
|
45
|
-
* of `str`. Thus, out of bounds reads at `str` may happen.
|
46
|
-
*/
|
47
|
-
char *(*gsubstrdup)(const char *str, size_t n, const char *file, int line);
|
48
|
-
|
49
|
-
/*
|
50
|
-
* This function shall deallocate the old object `ptr` and return a
|
51
|
-
* pointer to a new object that has the size specified by `size`. In
|
52
|
-
* case `ptr` is `NULL`, a new array shall be allocated.
|
53
|
-
*/
|
54
|
-
void *(*grealloc)(void *ptr, size_t size, const char *file, int line);
|
55
|
-
|
56
|
-
/*
|
57
|
-
* This function shall be equivalent to `grealloc`, but allocating
|
58
|
-
* `neleme * elsize` bytes.
|
59
|
-
*/
|
60
|
-
void *(*greallocarray)(void *ptr, size_t nelem, size_t elsize, const char *file, int line);
|
61
|
-
|
62
|
-
/*
|
63
|
-
* This function shall allocate a new array of `nelem` elements, where
|
64
|
-
* each element has a size of `elsize` bytes.
|
65
|
-
*/
|
66
|
-
void *(*gmallocarray)(size_t nelem, size_t elsize, const char *file, int line);
|
67
|
-
|
68
|
-
/*
|
69
|
-
* This function shall free the memory pointed to by `ptr`. In case
|
70
|
-
* `ptr` is `NULL`, this shall be a no-op.
|
71
|
-
*/
|
72
|
-
void (*gfree)(void *ptr);
|
73
|
-
} git_allocator;
|
74
|
-
|
75
|
-
/**
|
76
|
-
* Initialize the allocator structure to use the `stdalloc` pointer.
|
77
|
-
*
|
78
|
-
* Set up the structure so that all of its members are using the standard
|
79
|
-
* "stdalloc" allocator functions. The structure can then be used with
|
80
|
-
* `git_allocator_setup`.
|
81
|
-
*
|
82
|
-
* @param allocator The allocator that is to be initialized.
|
83
|
-
* @return An error code or 0.
|
84
|
-
*/
|
85
|
-
int git_stdalloc_init_allocator(git_allocator *allocator);
|
86
|
-
|
87
|
-
/**
|
88
|
-
* Initialize the allocator structure to use the `crtdbg` pointer.
|
89
|
-
*
|
90
|
-
* Set up the structure so that all of its members are using the "crtdbg"
|
91
|
-
* allocator functions. Note that this allocator is only available on Windows
|
92
|
-
* platforms and only if libgit2 is being compiled with "-DMSVC_CRTDBG".
|
93
|
-
*
|
94
|
-
* @param allocator The allocator that is to be initialized.
|
95
|
-
* @return An error code or 0.
|
96
|
-
*/
|
97
|
-
int git_win32_crtdbg_init_allocator(git_allocator *allocator);
|
98
|
-
|
99
|
-
GIT_END_DECL
|
100
|
-
|
101
|
-
#endif
|
@@ -1,55 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (C) the libgit2 contributors. All rights reserved.
|
3
|
-
*
|
4
|
-
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
5
|
-
* a Linking Exception. For full terms see the included COPYING file.
|
6
|
-
*/
|
7
|
-
|
8
|
-
#ifndef INCLUDE_sys_git_path_h__
|
9
|
-
#define INCLUDE_sys_git_path_h__
|
10
|
-
|
11
|
-
#include "git2/common.h"
|
12
|
-
|
13
|
-
GIT_BEGIN_DECL
|
14
|
-
|
15
|
-
/*
|
16
|
-
* The order needs to stay the same to not break the `gitfiles`
|
17
|
-
* array in path.c
|
18
|
-
*/
|
19
|
-
typedef enum {
|
20
|
-
GIT_PATH_GITFILE_GITIGNORE,
|
21
|
-
GIT_PATH_GITFILE_GITMODULES,
|
22
|
-
GIT_PATH_GITFILE_GITATTRIBUTES
|
23
|
-
} git_path_gitfile;
|
24
|
-
|
25
|
-
typedef enum {
|
26
|
-
/* Do both NTFS- and HFS-specific checks */
|
27
|
-
GIT_PATH_FS_GENERIC,
|
28
|
-
/* Do NTFS-specific checks only */
|
29
|
-
GIT_PATH_FS_NTFS,
|
30
|
-
/* Do HFS-specific checks only */
|
31
|
-
GIT_PATH_FS_HFS
|
32
|
-
} git_path_fs;
|
33
|
-
|
34
|
-
/**
|
35
|
-
* Check whether a path component corresponds to a .git$SUFFIX
|
36
|
-
* file.
|
37
|
-
*
|
38
|
-
* As some filesystems do special things to filenames when
|
39
|
-
* writing files to disk, you cannot always do a plain string
|
40
|
-
* comparison to verify whether a file name matches an expected
|
41
|
-
* path or not. This function can do the comparison for you,
|
42
|
-
* depending on the filesystem you're on.
|
43
|
-
*
|
44
|
-
* @param path the path component to check
|
45
|
-
* @param pathlen the length of `path` that is to be checked
|
46
|
-
* @param gitfile which file to check against
|
47
|
-
* @param fs which filesystem-specific checks to use
|
48
|
-
* @return 0 in case the file does not match, a positive value if
|
49
|
-
* it does; -1 in case of an error
|
50
|
-
*/
|
51
|
-
extern int git_path_is_gitfile(const char *path, size_t pathlen, git_path_gitfile gitfile, git_path_fs fs);
|
52
|
-
|
53
|
-
GIT_END_DECL
|
54
|
-
|
55
|
-
#endif /* INCLUDE_sys_git_path */
|