rugged 0.21.2 → 0.21.4
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/include/git2/sys/refs.h +11 -0
- data/vendor/libgit2/include/git2/version.h +2 -2
- data/vendor/libgit2/src/attr_file.c +26 -0
- data/vendor/libgit2/src/attr_file.h +2 -0
- data/vendor/libgit2/src/checkout.c +27 -1
- data/vendor/libgit2/src/config_cache.c +2 -0
- data/vendor/libgit2/src/global.c +7 -0
- data/vendor/libgit2/src/ignore.c +86 -3
- data/vendor/libgit2/src/index.c +48 -25
- data/vendor/libgit2/src/indexer.c +5 -0
- data/vendor/libgit2/src/path.c +256 -0
- data/vendor/libgit2/src/path.h +44 -0
- data/vendor/libgit2/src/refdb_fs.c +11 -1
- data/vendor/libgit2/src/repository.c +25 -0
- data/vendor/libgit2/src/repository.h +25 -1
- data/vendor/libgit2/src/transports/smart_protocol.c +3 -1
- data/vendor/libgit2/src/tree.c +1 -1
- data/vendor/libgit2/src/unix/map.c +2 -4
- data/vendor/libgit2/src/util.c +91 -0
- data/vendor/libgit2/src/util.h +12 -0
- data/vendor/libgit2/src/win32/findfile.c +1 -0
- data/vendor/libgit2/src/win32/path_w32.c +305 -0
- data/vendor/libgit2/src/win32/path_w32.h +82 -0
- data/vendor/libgit2/src/win32/posix.h +1 -0
- data/vendor/libgit2/src/win32/posix_w32.c +25 -42
- data/vendor/libgit2/src/win32/utf-conv.c +36 -6
- data/vendor/libgit2/src/win32/utf-conv.h +0 -39
- data/vendor/libgit2/src/win32/w32_util.h +1 -0
- metadata +4 -2
|
@@ -10,21 +10,6 @@
|
|
|
10
10
|
#include <wchar.h>
|
|
11
11
|
#include "common.h"
|
|
12
12
|
|
|
13
|
-
/* Equal to the Win32 MAX_PATH constant. The maximum path length is 259
|
|
14
|
-
* characters plus a NULL terminator. */
|
|
15
|
-
#define GIT_WIN_PATH_UTF16 260
|
|
16
|
-
|
|
17
|
-
/* Maximum size of a UTF-8 Win32 path. UTF-8 does have 4-byte sequences,
|
|
18
|
-
* but they are encoded in UTF-16 using surrogate pairs, which takes up
|
|
19
|
-
* the space of two characters. Two characters in the range U+0800 ->
|
|
20
|
-
* U+FFFF take up more space in UTF-8 (6 bytes) than one surrogate pair
|
|
21
|
-
* (4 bytes). */
|
|
22
|
-
#define GIT_WIN_PATH_UTF8 (259 * 3 + 1)
|
|
23
|
-
|
|
24
|
-
/* Win32 path types */
|
|
25
|
-
typedef wchar_t git_win32_path[GIT_WIN_PATH_UTF16];
|
|
26
|
-
typedef char git_win32_utf8_path[GIT_WIN_PATH_UTF8];
|
|
27
|
-
|
|
28
13
|
/**
|
|
29
14
|
* Converts a UTF-8 string to wide characters.
|
|
30
15
|
*
|
|
@@ -67,28 +52,4 @@ int git__utf8_to_16_alloc(wchar_t **dest, const char *src);
|
|
|
67
52
|
*/
|
|
68
53
|
int git__utf16_to_8_alloc(char **dest, const wchar_t *src);
|
|
69
54
|
|
|
70
|
-
/**
|
|
71
|
-
* Converts a UTF-8 Win32 path to wide characters.
|
|
72
|
-
*
|
|
73
|
-
* @param dest The buffer to receive the wide string.
|
|
74
|
-
* @param src The UTF-8 string to convert.
|
|
75
|
-
* @return The length of the wide string, in characters (not counting the NULL terminator), or < 0 for failure
|
|
76
|
-
*/
|
|
77
|
-
GIT_INLINE(int) git_win32_path_from_utf8(git_win32_path dest, const char *src)
|
|
78
|
-
{
|
|
79
|
-
return git__utf8_to_16(dest, GIT_WIN_PATH_UTF16, src);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Converts a wide Win32 path to UTF-8.
|
|
84
|
-
*
|
|
85
|
-
* @param dest The buffer to receive the UTF-8 string.
|
|
86
|
-
* @param src The wide string to convert.
|
|
87
|
-
* @return The length of the UTF-8 string, in bytes (not counting the NULL terminator), or < 0 for failure
|
|
88
|
-
*/
|
|
89
|
-
GIT_INLINE(int) git_win32_path_to_utf8(git_win32_utf8_path dest, const wchar_t *src)
|
|
90
|
-
{
|
|
91
|
-
return git__utf16_to_8(dest, GIT_WIN_PATH_UTF8, src);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
55
|
#endif
|
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.21.
|
|
4
|
+
version: 0.21.4
|
|
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: 2015-01-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake-compiler
|
|
@@ -427,6 +427,8 @@ files:
|
|
|
427
427
|
- vendor/libgit2/src/win32/map.c
|
|
428
428
|
- vendor/libgit2/src/win32/mingw-compat.h
|
|
429
429
|
- vendor/libgit2/src/win32/msvc-compat.h
|
|
430
|
+
- vendor/libgit2/src/win32/path_w32.c
|
|
431
|
+
- vendor/libgit2/src/win32/path_w32.h
|
|
430
432
|
- vendor/libgit2/src/win32/posix.h
|
|
431
433
|
- vendor/libgit2/src/win32/posix_w32.c
|
|
432
434
|
- vendor/libgit2/src/win32/precompiled.c
|