rugged 1.6.5 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/rugged/rugged_allocator.c +0 -54
- data/lib/rugged/version.rb +1 -1
- data/vendor/libgit2/CMakeLists.txt +3 -8
- data/vendor/libgit2/cmake/CheckPrototypeDefinitionSafe.cmake +16 -0
- data/vendor/libgit2/cmake/SelectGSSAPI.cmake +3 -3
- data/vendor/libgit2/cmake/SelectHTTPSBackend.cmake +21 -2
- data/vendor/libgit2/cmake/SelectHashes.cmake +4 -0
- data/vendor/libgit2/cmake/SelectXdiff.cmake +9 -0
- data/vendor/libgit2/deps/pcre/LICENCE +5 -5
- data/vendor/libgit2/deps/pcre/pcre.h +2 -2
- data/vendor/libgit2/deps/pcre/pcre_compile.c +6 -3
- data/vendor/libgit2/deps/pcre/pcre_exec.c +2 -2
- data/vendor/libgit2/deps/xdiff/CMakeLists.txt +28 -0
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/git-xdiff.h +4 -1
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xdiffi.c +19 -18
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xdiffi.h +2 -4
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xemit.c +3 -3
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xhistogram.c +7 -18
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xmacros.h +18 -1
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xmerge.c +24 -22
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xpatience.c +21 -30
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xprepare.c +13 -30
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xutils.c +18 -1
- data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xutils.h +2 -1
- data/vendor/libgit2/include/git2/common.h +26 -1
- data/vendor/libgit2/include/git2/diff.h +41 -3
- data/vendor/libgit2/include/git2/errors.h +4 -2
- data/vendor/libgit2/include/git2/index.h +9 -0
- data/vendor/libgit2/include/git2/oid.h +1 -1
- data/vendor/libgit2/include/git2/remote.h +18 -0
- data/vendor/libgit2/include/git2/repository.h +12 -2
- data/vendor/libgit2/include/git2/sys/alloc.h +0 -34
- data/vendor/libgit2/include/git2/sys/commit_graph.h +12 -2
- data/vendor/libgit2/include/git2/sys/midx.h +5 -1
- data/vendor/libgit2/include/git2/sys/stream.h +16 -2
- data/vendor/libgit2/include/git2/sys/transport.h +20 -2
- data/vendor/libgit2/include/git2/version.h +4 -4
- data/vendor/libgit2/include/git2/worktree.h +3 -1
- data/vendor/libgit2/src/CMakeLists.txt +34 -11
- data/vendor/libgit2/src/cli/cmd_clone.c +22 -6
- data/vendor/libgit2/src/cli/progress.c +9 -8
- data/vendor/libgit2/src/cli/progress.h +4 -4
- data/vendor/libgit2/src/libgit2/CMakeLists.txt +1 -19
- data/vendor/libgit2/src/libgit2/annotated_commit.c +2 -2
- data/vendor/libgit2/src/libgit2/annotated_commit.h +1 -1
- data/vendor/libgit2/src/libgit2/apply.c +4 -3
- data/vendor/libgit2/src/libgit2/blame.c +23 -16
- data/vendor/libgit2/src/libgit2/blame_git.c +0 -1
- data/vendor/libgit2/src/libgit2/branch.c +2 -2
- data/vendor/libgit2/src/libgit2/cherrypick.c +3 -3
- data/vendor/libgit2/src/libgit2/clone.c +3 -1
- data/vendor/libgit2/src/libgit2/commit.c +31 -9
- data/vendor/libgit2/src/libgit2/commit_graph.c +110 -43
- data/vendor/libgit2/src/libgit2/commit_graph.h +20 -4
- data/vendor/libgit2/src/libgit2/commit_list.c +12 -5
- data/vendor/libgit2/src/libgit2/commit_list.h +1 -0
- data/vendor/libgit2/src/libgit2/config_file.c +14 -8
- data/vendor/libgit2/src/libgit2/describe.c +10 -7
- data/vendor/libgit2/src/libgit2/diff.c +16 -7
- data/vendor/libgit2/src/libgit2/diff.h +6 -6
- data/vendor/libgit2/src/libgit2/diff_file.c +7 -7
- data/vendor/libgit2/src/libgit2/diff_generate.c +36 -15
- data/vendor/libgit2/src/libgit2/diff_parse.c +20 -4
- data/vendor/libgit2/src/libgit2/diff_print.c +26 -7
- data/vendor/libgit2/src/libgit2/diff_tform.c +4 -4
- data/vendor/libgit2/src/libgit2/diff_xdiff.h +1 -1
- data/vendor/libgit2/src/libgit2/email.c +4 -3
- data/vendor/libgit2/src/libgit2/errors.c +73 -18
- data/vendor/libgit2/src/libgit2/fetch.c +37 -9
- data/vendor/libgit2/src/libgit2/fetch.h +0 -2
- data/vendor/libgit2/src/libgit2/fetchhead.c +11 -9
- data/vendor/libgit2/src/libgit2/grafts.c +272 -0
- data/vendor/libgit2/src/libgit2/grafts.h +36 -0
- data/vendor/libgit2/src/libgit2/ident.c +3 -3
- data/vendor/libgit2/src/libgit2/index.c +325 -125
- data/vendor/libgit2/src/libgit2/index.h +14 -1
- data/vendor/libgit2/src/libgit2/indexer.c +10 -3
- data/vendor/libgit2/src/libgit2/iterator.c +20 -5
- data/vendor/libgit2/src/libgit2/iterator.h +3 -0
- data/vendor/libgit2/src/libgit2/libgit2.c +39 -0
- data/vendor/libgit2/src/libgit2/merge.c +14 -9
- data/vendor/libgit2/src/libgit2/merge_file.c +0 -2
- data/vendor/libgit2/src/libgit2/midx.c +66 -37
- data/vendor/libgit2/src/libgit2/midx.h +13 -3
- data/vendor/libgit2/src/libgit2/notes.c +9 -8
- data/vendor/libgit2/src/libgit2/object.c +40 -15
- data/vendor/libgit2/src/libgit2/object.h +6 -0
- data/vendor/libgit2/src/libgit2/odb.c +11 -5
- data/vendor/libgit2/src/libgit2/odb_pack.c +16 -3
- data/vendor/libgit2/src/libgit2/oid.c +7 -1
- data/vendor/libgit2/src/libgit2/oidarray.c +49 -3
- data/vendor/libgit2/src/libgit2/oidarray.h +5 -1
- data/vendor/libgit2/src/libgit2/pack-objects.c +19 -12
- data/vendor/libgit2/src/libgit2/pack-objects.h +5 -2
- data/vendor/libgit2/src/libgit2/pack.c +3 -3
- data/vendor/libgit2/src/libgit2/parse.c +7 -4
- data/vendor/libgit2/src/libgit2/parse.h +1 -1
- data/vendor/libgit2/src/libgit2/patch.h +7 -1
- data/vendor/libgit2/src/libgit2/patch_generate.c +24 -5
- data/vendor/libgit2/src/libgit2/patch_parse.c +16 -8
- data/vendor/libgit2/src/libgit2/push.c +2 -2
- data/vendor/libgit2/src/libgit2/reader.c +1 -1
- data/vendor/libgit2/src/libgit2/rebase.c +72 -84
- data/vendor/libgit2/src/libgit2/refdb_fs.c +22 -13
- data/vendor/libgit2/src/libgit2/refs.c +8 -1
- data/vendor/libgit2/src/libgit2/remote.c +15 -6
- data/vendor/libgit2/src/libgit2/remote.h +1 -0
- data/vendor/libgit2/src/libgit2/repository.c +580 -301
- data/vendor/libgit2/src/libgit2/repository.h +17 -2
- data/vendor/libgit2/src/libgit2/reset.c +2 -2
- data/vendor/libgit2/src/libgit2/revert.c +8 -11
- data/vendor/libgit2/src/libgit2/revparse.c +1 -4
- data/vendor/libgit2/src/libgit2/revwalk.c +26 -4
- data/vendor/libgit2/src/libgit2/stash.c +9 -8
- data/vendor/libgit2/src/libgit2/streams/mbedtls.c +0 -1
- data/vendor/libgit2/src/libgit2/streams/openssl.c +8 -16
- data/vendor/libgit2/src/libgit2/streams/schannel.c +715 -0
- data/vendor/libgit2/src/libgit2/streams/schannel.h +28 -0
- data/vendor/libgit2/src/libgit2/streams/socket.c +237 -51
- data/vendor/libgit2/src/libgit2/streams/socket.h +3 -1
- data/vendor/libgit2/src/libgit2/streams/stransport.c +40 -12
- data/vendor/libgit2/src/libgit2/streams/tls.c +5 -0
- data/vendor/libgit2/src/libgit2/submodule.h +3 -3
- data/vendor/libgit2/src/libgit2/threadstate.c +15 -2
- data/vendor/libgit2/src/libgit2/threadstate.h +1 -3
- data/vendor/libgit2/src/libgit2/transports/auth.h +1 -2
- data/vendor/libgit2/src/libgit2/transports/{auth_negotiate.c → auth_gssapi.c} +32 -32
- data/vendor/libgit2/src/libgit2/transports/auth_negotiate.h +1 -1
- data/vendor/libgit2/src/libgit2/transports/auth_ntlm.h +1 -1
- data/vendor/libgit2/src/libgit2/transports/{auth_ntlm.c → auth_ntlmclient.c} +12 -12
- data/vendor/libgit2/src/libgit2/transports/auth_sspi.c +341 -0
- data/vendor/libgit2/src/libgit2/transports/git.c +7 -8
- data/vendor/libgit2/src/libgit2/transports/http.c +7 -2
- data/vendor/libgit2/src/libgit2/transports/httpclient.c +5 -0
- data/vendor/libgit2/src/libgit2/transports/local.c +13 -4
- data/vendor/libgit2/src/libgit2/transports/smart.c +33 -27
- data/vendor/libgit2/src/libgit2/transports/smart.h +23 -8
- data/vendor/libgit2/src/libgit2/transports/smart_pkt.c +136 -17
- data/vendor/libgit2/src/libgit2/transports/smart_protocol.c +154 -47
- data/vendor/libgit2/src/libgit2/transports/ssh.c +3 -3
- data/vendor/libgit2/src/libgit2/transports/winhttp.c +14 -15
- data/vendor/libgit2/src/libgit2/tree-cache.c +26 -16
- data/vendor/libgit2/src/libgit2/tree-cache.h +5 -3
- data/vendor/libgit2/src/libgit2/tree.c +1 -1
- data/vendor/libgit2/src/libgit2/worktree.c +25 -10
- data/vendor/libgit2/src/util/alloc.c +65 -6
- data/vendor/libgit2/src/util/alloc.h +34 -9
- data/vendor/libgit2/src/util/allocators/failalloc.c +0 -60
- data/vendor/libgit2/src/util/allocators/failalloc.h +0 -6
- data/vendor/libgit2/src/util/allocators/stdalloc.c +2 -105
- data/vendor/libgit2/src/util/allocators/win32_leakcheck.c +0 -68
- data/vendor/libgit2/src/util/array.h +6 -1
- data/vendor/libgit2/src/util/cc-compat.h +2 -0
- data/vendor/libgit2/src/util/filebuf.c +6 -1
- data/vendor/libgit2/src/util/filebuf.h +19 -6
- data/vendor/libgit2/src/util/fs_path.c +1 -1
- data/vendor/libgit2/src/util/futils.c +8 -5
- data/vendor/libgit2/src/util/git2_features.h.in +9 -3
- data/vendor/libgit2/src/util/net.c +308 -157
- data/vendor/libgit2/src/util/net.h +25 -0
- data/vendor/libgit2/src/util/posix.c +54 -0
- data/vendor/libgit2/src/util/posix.h +22 -0
- data/vendor/libgit2/src/util/rand.c +6 -4
- data/vendor/libgit2/src/util/staticstr.h +66 -0
- data/vendor/libgit2/src/util/util.c +15 -10
- data/vendor/libgit2/src/util/util.h +24 -16
- data/vendor/libgit2/src/util/win32/error.c +1 -1
- data/vendor/libgit2/src/util/win32/path_w32.c +8 -8
- data/vendor/libgit2/src/util/win32/posix_w32.c +1 -1
- data/vendor/libgit2/src/util/win32/utf-conv.c +73 -75
- data/vendor/libgit2/src/util/win32/utf-conv.h +81 -14
- data/vendor/libgit2/src/util/win32/w32_util.c +1 -1
- metadata +29 -23
- data/vendor/libgit2/cmake/SelectWinHTTP.cmake +0 -17
- data/vendor/libgit2/src/libgit2/netops.c +0 -124
- data/vendor/libgit2/src/libgit2/netops.h +0 -68
- /data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xdiff.h +0 -0
- /data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xemit.h +0 -0
- /data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xinclude.h +0 -0
- /data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xprepare.h +0 -0
- /data/vendor/libgit2/{src/libgit2 → deps}/xdiff/xtypes.h +0 -0
@@ -15,15 +15,46 @@
|
|
15
15
|
# define WC_ERR_INVALID_CHARS 0x80
|
16
16
|
#endif
|
17
17
|
|
18
|
+
/**
|
19
|
+
* Converts a NUL-terminated UTF-8 string to wide characters. This is a
|
20
|
+
* convenience function for `git_utf8_to_16_with_len`.
|
21
|
+
*
|
22
|
+
* @param dest The buffer to receive the wide string.
|
23
|
+
* @param dest_size The size of the buffer, in characters.
|
24
|
+
* @param src The UTF-8 string to convert.
|
25
|
+
* @return The length of the wide string, in characters
|
26
|
+
* (not counting the NULL terminator), or < 0 for failure
|
27
|
+
*/
|
28
|
+
int git_utf8_to_16(wchar_t *dest, size_t dest_size, const char *src);
|
29
|
+
|
18
30
|
/**
|
19
31
|
* Converts a UTF-8 string to wide characters.
|
20
32
|
*
|
21
33
|
* @param dest The buffer to receive the wide string.
|
22
34
|
* @param dest_size The size of the buffer, in characters.
|
23
35
|
* @param src The UTF-8 string to convert.
|
24
|
-
* @
|
36
|
+
* @param src_len The length of the string to convert.
|
37
|
+
* @return The length of the wide string, in characters
|
38
|
+
* (not counting the NULL terminator), or < 0 for failure
|
39
|
+
*/
|
40
|
+
int git_utf8_to_16_with_len(
|
41
|
+
wchar_t *dest,
|
42
|
+
size_t dest_size,
|
43
|
+
const char *src,
|
44
|
+
int src_len);
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Converts a NUL-terminated wide string to UTF-8. This is a convenience
|
48
|
+
* function for `git_utf8_from_16_with_len`.
|
49
|
+
*
|
50
|
+
* @param dest The buffer to receive the UTF-8 string.
|
51
|
+
* @param dest_size The size of the buffer, in bytes.
|
52
|
+
* @param src The wide string to convert.
|
53
|
+
* @param src_len The length of the string to convert.
|
54
|
+
* @return The length of the UTF-8 string, in bytes
|
55
|
+
* (not counting the NULL terminator), or < 0 for failure
|
25
56
|
*/
|
26
|
-
int
|
57
|
+
int git_utf8_from_16(char *dest, size_t dest_size, const wchar_t *src);
|
27
58
|
|
28
59
|
/**
|
29
60
|
* Converts a wide string to UTF-8.
|
@@ -31,30 +62,66 @@ int git__utf8_to_16(wchar_t *dest, size_t dest_size, const char *src);
|
|
31
62
|
* @param dest The buffer to receive the UTF-8 string.
|
32
63
|
* @param dest_size The size of the buffer, in bytes.
|
33
64
|
* @param src The wide string to convert.
|
34
|
-
* @
|
65
|
+
* @param src_len The length of the string to convert.
|
66
|
+
* @return The length of the UTF-8 string, in bytes
|
67
|
+
* (not counting the NULL terminator), or < 0 for failure
|
35
68
|
*/
|
36
|
-
int
|
69
|
+
int git_utf8_from_16_with_len(char *dest, size_t dest_size, const wchar_t *src, int src_len);
|
37
70
|
|
38
71
|
/**
|
39
|
-
* Converts a UTF-8 string to wide characters.
|
40
|
-
*
|
41
|
-
*
|
72
|
+
* Converts a UTF-8 string to wide characters. Memory is allocated to hold
|
73
|
+
* the converted string. The caller is responsible for freeing the string
|
74
|
+
* with git__free.
|
42
75
|
*
|
43
76
|
* @param dest Receives a pointer to the wide string.
|
44
77
|
* @param src The UTF-8 string to convert.
|
45
|
-
* @return The length of the wide string, in characters
|
78
|
+
* @return The length of the wide string, in characters
|
79
|
+
* (not counting the NULL terminator), or < 0 for failure
|
46
80
|
*/
|
47
|
-
int
|
81
|
+
int git_utf8_to_16_alloc(wchar_t **dest, const char *src);
|
48
82
|
|
49
83
|
/**
|
50
|
-
* Converts a
|
51
|
-
*
|
52
|
-
*
|
84
|
+
* Converts a UTF-8 string to wide characters. Memory is allocated to hold
|
85
|
+
* the converted string. The caller is responsible for freeing the string
|
86
|
+
* with git__free.
|
87
|
+
*
|
88
|
+
* @param dest Receives a pointer to the wide string.
|
89
|
+
* @param src The UTF-8 string to convert.
|
90
|
+
* @param src_len The length of the string.
|
91
|
+
* @return The length of the wide string, in characters
|
92
|
+
* (not counting the NULL terminator), or < 0 for failure
|
93
|
+
*/
|
94
|
+
int git_utf8_to_16_alloc_with_len(
|
95
|
+
wchar_t **dest,
|
96
|
+
const char *src,
|
97
|
+
int src_len);
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Converts a wide string to UTF-8. Memory is allocated to hold the
|
101
|
+
* converted string. The caller is responsible for freeing the string
|
102
|
+
* with git__free.
|
103
|
+
*
|
104
|
+
* @param dest Receives a pointer to the UTF-8 string.
|
105
|
+
* @param src The wide string to convert.
|
106
|
+
* @return The length of the UTF-8 string, in bytes
|
107
|
+
* (not counting the NULL terminator), or < 0 for failure
|
108
|
+
*/
|
109
|
+
int git_utf8_from_16_alloc(char **dest, const wchar_t *src);
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Converts a wide string to UTF-8. Memory is allocated to hold the
|
113
|
+
* converted string. The caller is responsible for freeing the string
|
114
|
+
* with git__free.
|
53
115
|
*
|
54
116
|
* @param dest Receives a pointer to the UTF-8 string.
|
55
117
|
* @param src The wide string to convert.
|
56
|
-
* @
|
118
|
+
* @param src_len The length of the wide string.
|
119
|
+
* @return The length of the UTF-8 string, in bytes
|
120
|
+
* (not counting the NULL terminator), or < 0 for failure
|
57
121
|
*/
|
58
|
-
int
|
122
|
+
int git_utf8_from_16_alloc_with_len(
|
123
|
+
char **dest,
|
124
|
+
const wchar_t *src,
|
125
|
+
int src_len);
|
59
126
|
|
60
127
|
#endif
|
@@ -115,7 +115,7 @@ int git_win32__file_attribute_to_stat(
|
|
115
115
|
|
116
116
|
/* st_size gets the UTF-8 length of the target name, in bytes,
|
117
117
|
* not counting the NULL terminator */
|
118
|
-
if ((st->st_size =
|
118
|
+
if ((st->st_size = git_utf8_from_16(NULL, 0, target)) < 0) {
|
119
119
|
git_error_set(GIT_ERROR_OS, "could not convert reparse point name for '%ls'", path);
|
120
120
|
return -1;
|
121
121
|
}
|
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: 1.
|
4
|
+
version: 1.7.1
|
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: 2023-09-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- vendor/libgit2/COPYING
|
126
126
|
- vendor/libgit2/cmake/AddCFlagIfSupported.cmake
|
127
127
|
- vendor/libgit2/cmake/AddClarTest.cmake
|
128
|
+
- vendor/libgit2/cmake/CheckPrototypeDefinitionSafe.cmake
|
128
129
|
- vendor/libgit2/cmake/DefaultCFlags.cmake
|
129
130
|
- vendor/libgit2/cmake/EnableWarnings.cmake
|
130
131
|
- vendor/libgit2/cmake/ExperimentalFeatures.cmake
|
@@ -150,7 +151,7 @@ files:
|
|
150
151
|
- vendor/libgit2/cmake/SelectHashes.cmake
|
151
152
|
- vendor/libgit2/cmake/SelectRegex.cmake
|
152
153
|
- vendor/libgit2/cmake/SelectSSH.cmake
|
153
|
-
- vendor/libgit2/cmake/
|
154
|
+
- vendor/libgit2/cmake/SelectXdiff.cmake
|
154
155
|
- vendor/libgit2/cmake/SelectZlib.cmake
|
155
156
|
- vendor/libgit2/deps/chromium-zlib/CMakeLists.txt
|
156
157
|
- vendor/libgit2/deps/http-parser/CMakeLists.txt
|
@@ -219,6 +220,23 @@ files:
|
|
219
220
|
- vendor/libgit2/deps/winhttp/winhttp.def
|
220
221
|
- vendor/libgit2/deps/winhttp/winhttp.h
|
221
222
|
- vendor/libgit2/deps/winhttp/winhttp64.def
|
223
|
+
- vendor/libgit2/deps/xdiff/CMakeLists.txt
|
224
|
+
- vendor/libgit2/deps/xdiff/git-xdiff.h
|
225
|
+
- vendor/libgit2/deps/xdiff/xdiff.h
|
226
|
+
- vendor/libgit2/deps/xdiff/xdiffi.c
|
227
|
+
- vendor/libgit2/deps/xdiff/xdiffi.h
|
228
|
+
- vendor/libgit2/deps/xdiff/xemit.c
|
229
|
+
- vendor/libgit2/deps/xdiff/xemit.h
|
230
|
+
- vendor/libgit2/deps/xdiff/xhistogram.c
|
231
|
+
- vendor/libgit2/deps/xdiff/xinclude.h
|
232
|
+
- vendor/libgit2/deps/xdiff/xmacros.h
|
233
|
+
- vendor/libgit2/deps/xdiff/xmerge.c
|
234
|
+
- vendor/libgit2/deps/xdiff/xpatience.c
|
235
|
+
- vendor/libgit2/deps/xdiff/xprepare.c
|
236
|
+
- vendor/libgit2/deps/xdiff/xprepare.h
|
237
|
+
- vendor/libgit2/deps/xdiff/xtypes.h
|
238
|
+
- vendor/libgit2/deps/xdiff/xutils.c
|
239
|
+
- vendor/libgit2/deps/xdiff/xutils.h
|
222
240
|
- vendor/libgit2/deps/zlib/CMakeLists.txt
|
223
241
|
- vendor/libgit2/deps/zlib/COPYING
|
224
242
|
- vendor/libgit2/deps/zlib/adler32.c
|
@@ -437,6 +455,8 @@ files:
|
|
437
455
|
- vendor/libgit2/src/libgit2/filter.c
|
438
456
|
- vendor/libgit2/src/libgit2/filter.h
|
439
457
|
- vendor/libgit2/src/libgit2/git2.rc
|
458
|
+
- vendor/libgit2/src/libgit2/grafts.c
|
459
|
+
- vendor/libgit2/src/libgit2/grafts.h
|
440
460
|
- vendor/libgit2/src/libgit2/graph.c
|
441
461
|
- vendor/libgit2/src/libgit2/hashsig.c
|
442
462
|
- vendor/libgit2/src/libgit2/ident.c
|
@@ -464,8 +484,6 @@ files:
|
|
464
484
|
- vendor/libgit2/src/libgit2/midx.h
|
465
485
|
- vendor/libgit2/src/libgit2/mwindow.c
|
466
486
|
- vendor/libgit2/src/libgit2/mwindow.h
|
467
|
-
- vendor/libgit2/src/libgit2/netops.c
|
468
|
-
- vendor/libgit2/src/libgit2/netops.h
|
469
487
|
- vendor/libgit2/src/libgit2/notes.c
|
470
488
|
- vendor/libgit2/src/libgit2/notes.h
|
471
489
|
- vendor/libgit2/src/libgit2/object.c
|
@@ -545,6 +563,8 @@ files:
|
|
545
563
|
- vendor/libgit2/src/libgit2/streams/openssl_legacy.h
|
546
564
|
- vendor/libgit2/src/libgit2/streams/registry.c
|
547
565
|
- vendor/libgit2/src/libgit2/streams/registry.h
|
566
|
+
- vendor/libgit2/src/libgit2/streams/schannel.c
|
567
|
+
- vendor/libgit2/src/libgit2/streams/schannel.h
|
548
568
|
- vendor/libgit2/src/libgit2/streams/socket.c
|
549
569
|
- vendor/libgit2/src/libgit2/streams/socket.h
|
550
570
|
- vendor/libgit2/src/libgit2/streams/stransport.c
|
@@ -567,10 +587,11 @@ files:
|
|
567
587
|
- vendor/libgit2/src/libgit2/transport.c
|
568
588
|
- vendor/libgit2/src/libgit2/transports/auth.c
|
569
589
|
- vendor/libgit2/src/libgit2/transports/auth.h
|
570
|
-
- vendor/libgit2/src/libgit2/transports/
|
590
|
+
- vendor/libgit2/src/libgit2/transports/auth_gssapi.c
|
571
591
|
- vendor/libgit2/src/libgit2/transports/auth_negotiate.h
|
572
|
-
- vendor/libgit2/src/libgit2/transports/auth_ntlm.c
|
573
592
|
- vendor/libgit2/src/libgit2/transports/auth_ntlm.h
|
593
|
+
- vendor/libgit2/src/libgit2/transports/auth_ntlmclient.c
|
594
|
+
- vendor/libgit2/src/libgit2/transports/auth_sspi.c
|
574
595
|
- vendor/libgit2/src/libgit2/transports/credential.c
|
575
596
|
- vendor/libgit2/src/libgit2/transports/credential_helpers.c
|
576
597
|
- vendor/libgit2/src/libgit2/transports/git.c
|
@@ -593,22 +614,6 @@ files:
|
|
593
614
|
- vendor/libgit2/src/libgit2/userdiff.h
|
594
615
|
- vendor/libgit2/src/libgit2/worktree.c
|
595
616
|
- vendor/libgit2/src/libgit2/worktree.h
|
596
|
-
- vendor/libgit2/src/libgit2/xdiff/git-xdiff.h
|
597
|
-
- vendor/libgit2/src/libgit2/xdiff/xdiff.h
|
598
|
-
- vendor/libgit2/src/libgit2/xdiff/xdiffi.c
|
599
|
-
- vendor/libgit2/src/libgit2/xdiff/xdiffi.h
|
600
|
-
- vendor/libgit2/src/libgit2/xdiff/xemit.c
|
601
|
-
- vendor/libgit2/src/libgit2/xdiff/xemit.h
|
602
|
-
- vendor/libgit2/src/libgit2/xdiff/xhistogram.c
|
603
|
-
- vendor/libgit2/src/libgit2/xdiff/xinclude.h
|
604
|
-
- vendor/libgit2/src/libgit2/xdiff/xmacros.h
|
605
|
-
- vendor/libgit2/src/libgit2/xdiff/xmerge.c
|
606
|
-
- vendor/libgit2/src/libgit2/xdiff/xpatience.c
|
607
|
-
- vendor/libgit2/src/libgit2/xdiff/xprepare.c
|
608
|
-
- vendor/libgit2/src/libgit2/xdiff/xprepare.h
|
609
|
-
- vendor/libgit2/src/libgit2/xdiff/xtypes.h
|
610
|
-
- vendor/libgit2/src/libgit2/xdiff/xutils.c
|
611
|
-
- vendor/libgit2/src/libgit2/xdiff/xutils.h
|
612
617
|
- vendor/libgit2/src/util/CMakeLists.txt
|
613
618
|
- vendor/libgit2/src/util/alloc.c
|
614
619
|
- vendor/libgit2/src/util/alloc.h
|
@@ -672,6 +677,7 @@ files:
|
|
672
677
|
- vendor/libgit2/src/util/runtime.h
|
673
678
|
- vendor/libgit2/src/util/sortedcache.c
|
674
679
|
- vendor/libgit2/src/util/sortedcache.h
|
680
|
+
- vendor/libgit2/src/util/staticstr.h
|
675
681
|
- vendor/libgit2/src/util/str.c
|
676
682
|
- vendor/libgit2/src/util/str.h
|
677
683
|
- vendor/libgit2/src/util/strmap.c
|
@@ -1,17 +0,0 @@
|
|
1
|
-
if(WIN32 AND USE_WINHTTP)
|
2
|
-
set(GIT_WINHTTP 1)
|
3
|
-
|
4
|
-
# Since MinGW does not come with headers or an import library for winhttp,
|
5
|
-
# we have to include a private header and generate our own import library
|
6
|
-
if(MINGW)
|
7
|
-
add_subdirectory("${PROJECT_SOURCE_DIR}/deps/winhttp" "${PROJECT_BINARY_DIR}/deps/winhttp")
|
8
|
-
list(APPEND LIBGIT2_SYSTEM_LIBS winhttp)
|
9
|
-
list(APPEND LIBGIT2_DEPENDENCY_INCLUDES "${PROJECT_SOURCE_DIR}/deps/winhttp")
|
10
|
-
else()
|
11
|
-
list(APPEND LIBGIT2_SYSTEM_LIBS "winhttp")
|
12
|
-
list(APPEND LIBGIT2_PC_LIBS "-lwinhttp")
|
13
|
-
endif()
|
14
|
-
|
15
|
-
list(APPEND LIBGIT2_SYSTEM_LIBS "rpcrt4" "crypt32" "ole32")
|
16
|
-
list(APPEND LIBGIT2_PC_LIBS "-lrpcrt4" "-lcrypt32" "-lole32")
|
17
|
-
endif()
|
@@ -1,124 +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
|
-
#include "netops.h"
|
9
|
-
|
10
|
-
#include <ctype.h>
|
11
|
-
#include "git2/errors.h"
|
12
|
-
|
13
|
-
#include "posix.h"
|
14
|
-
#include "str.h"
|
15
|
-
#include "runtime.h"
|
16
|
-
|
17
|
-
int gitno_recv(gitno_buffer *buf)
|
18
|
-
{
|
19
|
-
return buf->recv(buf);
|
20
|
-
}
|
21
|
-
|
22
|
-
void gitno_buffer_setup_callback(
|
23
|
-
gitno_buffer *buf,
|
24
|
-
char *data,
|
25
|
-
size_t len,
|
26
|
-
int (*recv)(gitno_buffer *buf), void *cb_data)
|
27
|
-
{
|
28
|
-
memset(data, 0x0, len);
|
29
|
-
buf->data = data;
|
30
|
-
buf->len = len;
|
31
|
-
buf->offset = 0;
|
32
|
-
buf->recv = recv;
|
33
|
-
buf->cb_data = cb_data;
|
34
|
-
}
|
35
|
-
|
36
|
-
static int recv_stream(gitno_buffer *buf)
|
37
|
-
{
|
38
|
-
git_stream *io = (git_stream *) buf->cb_data;
|
39
|
-
size_t readlen = buf->len - buf->offset;
|
40
|
-
ssize_t ret;
|
41
|
-
|
42
|
-
readlen = min(readlen, INT_MAX);
|
43
|
-
|
44
|
-
ret = git_stream_read(io, buf->data + buf->offset, (int)readlen);
|
45
|
-
if (ret < 0)
|
46
|
-
return -1;
|
47
|
-
|
48
|
-
buf->offset += ret;
|
49
|
-
return (int)ret;
|
50
|
-
}
|
51
|
-
|
52
|
-
void gitno_buffer_setup_fromstream(git_stream *st, gitno_buffer *buf, char *data, size_t len)
|
53
|
-
{
|
54
|
-
memset(data, 0x0, len);
|
55
|
-
buf->data = data;
|
56
|
-
buf->len = len;
|
57
|
-
buf->offset = 0;
|
58
|
-
buf->recv = recv_stream;
|
59
|
-
buf->cb_data = st;
|
60
|
-
}
|
61
|
-
|
62
|
-
/* Consume up to ptr and move the rest of the buffer to the beginning */
|
63
|
-
int gitno_consume(gitno_buffer *buf, const char *ptr)
|
64
|
-
{
|
65
|
-
size_t consumed;
|
66
|
-
|
67
|
-
GIT_ASSERT(ptr - buf->data >= 0);
|
68
|
-
GIT_ASSERT(ptr - buf->data <= (int) buf->len);
|
69
|
-
|
70
|
-
consumed = ptr - buf->data;
|
71
|
-
|
72
|
-
memmove(buf->data, ptr, buf->offset - consumed);
|
73
|
-
memset(buf->data + buf->offset, 0x0, buf->len - buf->offset);
|
74
|
-
buf->offset -= consumed;
|
75
|
-
|
76
|
-
return 0;
|
77
|
-
}
|
78
|
-
|
79
|
-
/* Consume const bytes and move the rest of the buffer to the beginning */
|
80
|
-
void gitno_consume_n(gitno_buffer *buf, size_t cons)
|
81
|
-
{
|
82
|
-
memmove(buf->data, buf->data + cons, buf->len - buf->offset);
|
83
|
-
memset(buf->data + cons, 0x0, buf->len - buf->offset);
|
84
|
-
buf->offset -= cons;
|
85
|
-
}
|
86
|
-
|
87
|
-
/* Match host names according to RFC 2818 rules */
|
88
|
-
int gitno__match_host(const char *pattern, const char *host)
|
89
|
-
{
|
90
|
-
for (;;) {
|
91
|
-
char c = git__tolower(*pattern++);
|
92
|
-
|
93
|
-
if (c == '\0')
|
94
|
-
return *host ? -1 : 0;
|
95
|
-
|
96
|
-
if (c == '*') {
|
97
|
-
c = *pattern;
|
98
|
-
/* '*' at the end matches everything left */
|
99
|
-
if (c == '\0')
|
100
|
-
return 0;
|
101
|
-
|
102
|
-
/*
|
103
|
-
* We've found a pattern, so move towards the next matching
|
104
|
-
* char. The '.' is handled specially because wildcards aren't
|
105
|
-
* allowed to cross subdomains.
|
106
|
-
*/
|
107
|
-
|
108
|
-
while(*host) {
|
109
|
-
char h = git__tolower(*host);
|
110
|
-
if (c == h)
|
111
|
-
return gitno__match_host(pattern, host++);
|
112
|
-
if (h == '.')
|
113
|
-
return gitno__match_host(pattern, host);
|
114
|
-
host++;
|
115
|
-
}
|
116
|
-
return -1;
|
117
|
-
}
|
118
|
-
|
119
|
-
if (c != git__tolower(*host++))
|
120
|
-
return -1;
|
121
|
-
}
|
122
|
-
|
123
|
-
return -1;
|
124
|
-
}
|
@@ -1,68 +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_netops_h__
|
8
|
-
#define INCLUDE_netops_h__
|
9
|
-
|
10
|
-
#include "common.h"
|
11
|
-
|
12
|
-
#include "posix.h"
|
13
|
-
#include "stream.h"
|
14
|
-
#include "net.h"
|
15
|
-
|
16
|
-
#ifdef GIT_OPENSSL
|
17
|
-
# include "streams/openssl.h"
|
18
|
-
#endif
|
19
|
-
|
20
|
-
typedef struct gitno_ssl {
|
21
|
-
#ifdef GIT_OPENSSL
|
22
|
-
SSL *ssl;
|
23
|
-
#else
|
24
|
-
size_t dummy;
|
25
|
-
#endif
|
26
|
-
} gitno_ssl;
|
27
|
-
|
28
|
-
/* Represents a socket that may or may not be using SSL */
|
29
|
-
typedef struct gitno_socket {
|
30
|
-
GIT_SOCKET socket;
|
31
|
-
gitno_ssl ssl;
|
32
|
-
} gitno_socket;
|
33
|
-
|
34
|
-
typedef struct gitno_buffer {
|
35
|
-
char *data;
|
36
|
-
size_t len;
|
37
|
-
size_t offset;
|
38
|
-
int (*recv)(struct gitno_buffer *buffer);
|
39
|
-
void *cb_data;
|
40
|
-
} gitno_buffer;
|
41
|
-
|
42
|
-
/* Flags to gitno_connect */
|
43
|
-
enum {
|
44
|
-
/* Attempt to create an SSL connection. */
|
45
|
-
GITNO_CONNECT_SSL = 1
|
46
|
-
};
|
47
|
-
|
48
|
-
/**
|
49
|
-
* Check if the name in a cert matches the wanted hostname
|
50
|
-
*
|
51
|
-
* Check if a pattern from a certificate matches the hostname we
|
52
|
-
* wanted to connect to according to RFC2818 rules (which specifies
|
53
|
-
* HTTP over TLS). Mainly, an asterisk matches anything, but is
|
54
|
-
* limited to a single url component.
|
55
|
-
*
|
56
|
-
* Note that this does not set an error message. It expects the user
|
57
|
-
* to provide the message for the user.
|
58
|
-
*/
|
59
|
-
int gitno__match_host(const char *pattern, const char *host);
|
60
|
-
|
61
|
-
void gitno_buffer_setup_fromstream(git_stream *st, gitno_buffer *buf, char *data, size_t len);
|
62
|
-
void gitno_buffer_setup_callback(gitno_buffer *buf, char *data, size_t len, int (*recv)(gitno_buffer *buf), void *cb_data);
|
63
|
-
int gitno_recv(gitno_buffer *buf);
|
64
|
-
|
65
|
-
int gitno_consume(gitno_buffer *buf, const char *ptr);
|
66
|
-
void gitno_consume_n(gitno_buffer *buf, size_t cons);
|
67
|
-
|
68
|
-
#endif
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|