rugged 0.17.0.b6 → 0.17.0.b7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/Rakefile +3 -1
- data/ext/rugged/rugged.c +30 -0
- data/ext/rugged/rugged.h +9 -0
- data/ext/rugged/rugged_branch.c +306 -0
- data/ext/rugged/rugged_config.c +16 -13
- data/ext/rugged/rugged_index.c +25 -0
- data/ext/rugged/rugged_object.c +6 -2
- data/ext/rugged/rugged_reference.c +11 -18
- data/ext/rugged/rugged_revwalk.c +1 -1
- data/lib/rugged.rb +1 -0
- data/lib/rugged/branch.rb +28 -0
- data/lib/rugged/commit.rb +5 -5
- data/lib/rugged/repository.rb +32 -7
- data/lib/rugged/tag.rb +5 -1
- data/lib/rugged/version.rb +1 -1
- data/test/branch_test.rb +227 -0
- data/test/config_test.rb +1 -1
- data/test/fixtures/testrepo.git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 +0 -0
- data/test/fixtures/testrepo.git/objects/a3/e05719b428a2d0ed7a55c4ce53dcc5768c6d5e +0 -0
- data/test/index_test.rb +31 -0
- data/test/index_test.rb~ +218 -0
- data/test/lib_test.rb +22 -0
- data/test/reference_test.rb +5 -3
- data/vendor/libgit2/Makefile.embed +1 -1
- data/vendor/libgit2/include/git2.h +1 -0
- data/vendor/libgit2/include/git2/branch.h +17 -13
- data/vendor/libgit2/include/git2/checkout.h +83 -22
- data/vendor/libgit2/include/git2/clone.h +6 -3
- data/vendor/libgit2/include/git2/common.h +1 -8
- data/vendor/libgit2/include/git2/config.h +185 -26
- data/vendor/libgit2/include/git2/diff.h +229 -17
- data/vendor/libgit2/include/git2/errors.h +39 -1
- data/vendor/libgit2/include/git2/ignore.h +6 -3
- data/vendor/libgit2/include/git2/indexer.h +1 -0
- data/vendor/libgit2/include/git2/merge.h +1 -1
- data/vendor/libgit2/include/git2/object.h +7 -4
- data/vendor/libgit2/include/git2/odb.h +4 -2
- data/vendor/libgit2/include/git2/odb_backend.h +6 -0
- data/vendor/libgit2/include/git2/oid.h +2 -0
- data/vendor/libgit2/include/git2/pack.h +89 -0
- data/vendor/libgit2/include/git2/refs.h +88 -0
- data/vendor/libgit2/include/git2/refspec.h +0 -8
- data/vendor/libgit2/include/git2/remote.h +34 -1
- data/vendor/libgit2/include/git2/repository.h +238 -6
- data/vendor/libgit2/include/git2/reset.h +4 -1
- data/vendor/libgit2/include/git2/revwalk.h +1 -1
- data/vendor/libgit2/include/git2/status.h +19 -14
- data/vendor/libgit2/include/git2/strarray.h +54 -0
- data/vendor/libgit2/include/git2/submodule.h +451 -45
- data/vendor/libgit2/include/git2/tag.h +16 -0
- data/vendor/libgit2/include/git2/tree.h +2 -2
- data/vendor/libgit2/include/git2/types.h +4 -0
- data/vendor/libgit2/src/amiga/map.c +4 -7
- data/vendor/libgit2/src/attr.c +21 -13
- data/vendor/libgit2/src/attr.h +3 -1
- data/vendor/libgit2/src/attr_file.c +14 -14
- data/vendor/libgit2/src/attr_file.h +6 -5
- data/vendor/libgit2/src/blob.c +22 -12
- data/vendor/libgit2/src/branch.c +62 -66
- data/vendor/libgit2/src/buffer.c +63 -14
- data/vendor/libgit2/src/buffer.h +4 -0
- data/vendor/libgit2/src/cache.c +5 -4
- data/vendor/libgit2/src/checkout.c +381 -159
- data/vendor/libgit2/src/clone.c +221 -94
- data/vendor/libgit2/src/common.h +13 -3
- data/vendor/libgit2/src/compress.c +53 -0
- data/vendor/libgit2/src/compress.h +16 -0
- data/vendor/libgit2/src/config.c +380 -175
- data/vendor/libgit2/src/config.h +2 -5
- data/vendor/libgit2/src/config_file.c +63 -46
- data/vendor/libgit2/src/config_file.h +16 -4
- data/vendor/libgit2/src/crlf.c +4 -3
- data/vendor/libgit2/src/delta.c +491 -0
- data/vendor/libgit2/src/delta.h +112 -0
- data/vendor/libgit2/src/diff.c +310 -67
- data/vendor/libgit2/src/diff.h +10 -1
- data/vendor/libgit2/src/diff_output.c +1030 -337
- data/vendor/libgit2/src/diff_output.h +86 -0
- data/vendor/libgit2/src/errors.c +10 -1
- data/vendor/libgit2/src/fetch.c +108 -24
- data/vendor/libgit2/src/filebuf.c +8 -2
- data/vendor/libgit2/src/fileops.c +342 -177
- data/vendor/libgit2/src/fileops.h +84 -7
- data/vendor/libgit2/src/filter.c +0 -35
- data/vendor/libgit2/src/filter.h +0 -12
- data/vendor/libgit2/src/{compat/fnmatch.c → fnmatch.c} +16 -4
- data/vendor/libgit2/src/{compat/fnmatch.h → fnmatch.h} +4 -3
- data/vendor/libgit2/src/global.c +4 -0
- data/vendor/libgit2/src/ignore.c +122 -23
- data/vendor/libgit2/src/ignore.h +1 -0
- data/vendor/libgit2/src/index.c +56 -10
- data/vendor/libgit2/src/index.h +2 -0
- data/vendor/libgit2/src/indexer.c +8 -9
- data/vendor/libgit2/src/iterator.c +244 -31
- data/vendor/libgit2/src/iterator.h +30 -1
- data/vendor/libgit2/src/message.c +1 -1
- data/vendor/libgit2/src/netops.c +44 -4
- data/vendor/libgit2/src/object.c +80 -69
- data/vendor/libgit2/src/object.h +39 -0
- data/vendor/libgit2/src/odb.c +79 -15
- data/vendor/libgit2/src/odb.h +20 -5
- data/vendor/libgit2/src/odb_pack.c +65 -33
- data/vendor/libgit2/src/oid.c +0 -3
- data/vendor/libgit2/src/pack-objects.c +1315 -0
- data/vendor/libgit2/src/pack-objects.h +87 -0
- data/vendor/libgit2/src/pack.c +36 -12
- data/vendor/libgit2/src/pack.h +1 -0
- data/vendor/libgit2/src/path.c +42 -9
- data/vendor/libgit2/src/path.h +14 -0
- data/vendor/libgit2/src/pkt.c +52 -2
- data/vendor/libgit2/src/pkt.h +10 -0
- data/vendor/libgit2/src/pool.h +11 -0
- data/vendor/libgit2/src/posix.h +8 -0
- data/vendor/libgit2/src/protocol.c +24 -2
- data/vendor/libgit2/src/protocol.h +4 -0
- data/vendor/libgit2/src/reflog.c +1 -1
- data/vendor/libgit2/src/refs.c +292 -124
- data/vendor/libgit2/src/refs.h +4 -2
- data/vendor/libgit2/src/refspec.c +117 -19
- data/vendor/libgit2/src/refspec.h +19 -0
- data/vendor/libgit2/src/remote.c +152 -48
- data/vendor/libgit2/src/remote.h +4 -1
- data/vendor/libgit2/src/repo_template.h +58 -0
- data/vendor/libgit2/src/repository.c +594 -179
- data/vendor/libgit2/src/repository.h +23 -22
- data/vendor/libgit2/src/reset.c +71 -29
- data/vendor/libgit2/src/revparse.c +26 -17
- data/vendor/libgit2/src/revwalk.c +36 -19
- data/vendor/libgit2/src/sha1.h +7 -0
- data/vendor/libgit2/src/{sha1.c → sha1/sha1.c} +0 -0
- data/vendor/libgit2/src/signature.c +12 -10
- data/vendor/libgit2/src/status.c +52 -6
- data/vendor/libgit2/src/submodule.c +1363 -255
- data/vendor/libgit2/src/submodule.h +102 -0
- data/vendor/libgit2/src/tag.c +42 -26
- data/vendor/libgit2/src/thread-utils.h +7 -7
- data/vendor/libgit2/src/transport.h +15 -1
- data/vendor/libgit2/src/transports/git.c +1 -1
- data/vendor/libgit2/src/transports/http.c +197 -36
- data/vendor/libgit2/src/tree.c +3 -3
- data/vendor/libgit2/src/unix/map.c +2 -0
- data/vendor/libgit2/src/unix/posix.h +1 -8
- data/vendor/libgit2/src/util.c +6 -1
- data/vendor/libgit2/src/util.h +7 -0
- data/vendor/libgit2/src/vector.c +16 -0
- data/vendor/libgit2/src/vector.h +1 -0
- data/vendor/libgit2/src/win32/dir.c +8 -21
- data/vendor/libgit2/src/win32/findfile.c +149 -0
- data/vendor/libgit2/src/win32/findfile.h +23 -0
- data/vendor/libgit2/src/win32/posix.h +3 -7
- data/vendor/libgit2/src/win32/posix_w32.c +44 -102
- data/vendor/libgit2/src/win32/pthread.c +68 -0
- data/vendor/libgit2/src/win32/pthread.h +7 -0
- data/vendor/libgit2/src/win32/utf-conv.c +60 -71
- data/vendor/libgit2/src/win32/utf-conv.h +4 -3
- metadata +70 -71
- data/vendor/libgit2/include/git2/windows.h +0 -59
@@ -54,6 +54,74 @@ int pthread_mutex_unlock(pthread_mutex_t *mutex)
|
|
54
54
|
return 0;
|
55
55
|
}
|
56
56
|
|
57
|
+
int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr)
|
58
|
+
{
|
59
|
+
/* We don't support non-default attributes. */
|
60
|
+
if (attr)
|
61
|
+
return EINVAL;
|
62
|
+
|
63
|
+
/* This is an auto-reset event. */
|
64
|
+
*cond = CreateEventW(NULL, FALSE, FALSE, NULL);
|
65
|
+
assert(*cond);
|
66
|
+
|
67
|
+
/* If we can't create the event, claim that the reason was out-of-memory.
|
68
|
+
* The actual reason can be fetched with GetLastError(). */
|
69
|
+
return *cond ? 0 : ENOMEM;
|
70
|
+
}
|
71
|
+
|
72
|
+
int pthread_cond_destroy(pthread_cond_t *cond)
|
73
|
+
{
|
74
|
+
BOOL closed;
|
75
|
+
|
76
|
+
if (!cond)
|
77
|
+
return EINVAL;
|
78
|
+
|
79
|
+
closed = CloseHandle(*cond);
|
80
|
+
assert(closed);
|
81
|
+
GIT_UNUSED(closed);
|
82
|
+
|
83
|
+
*cond = NULL;
|
84
|
+
return 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
|
88
|
+
{
|
89
|
+
int error;
|
90
|
+
DWORD wait_result;
|
91
|
+
|
92
|
+
if (!cond || !mutex)
|
93
|
+
return EINVAL;
|
94
|
+
|
95
|
+
/* The caller must be holding the mutex. */
|
96
|
+
error = pthread_mutex_unlock(mutex);
|
97
|
+
|
98
|
+
if (error)
|
99
|
+
return error;
|
100
|
+
|
101
|
+
wait_result = WaitForSingleObject(*cond, INFINITE);
|
102
|
+
assert(WAIT_OBJECT_0 == wait_result);
|
103
|
+
GIT_UNUSED(wait_result);
|
104
|
+
|
105
|
+
return pthread_mutex_lock(mutex);
|
106
|
+
}
|
107
|
+
|
108
|
+
int pthread_cond_signal(pthread_cond_t *cond)
|
109
|
+
{
|
110
|
+
BOOL signaled;
|
111
|
+
|
112
|
+
if (!cond)
|
113
|
+
return EINVAL;
|
114
|
+
|
115
|
+
signaled = SetEvent(*cond);
|
116
|
+
assert(signaled);
|
117
|
+
GIT_UNUSED(signaled);
|
118
|
+
|
119
|
+
return 0;
|
120
|
+
}
|
121
|
+
|
122
|
+
/* pthread_cond_broadcast is not implemented because doing so with just Win32 events
|
123
|
+
* is quite complicated, and no caller in libgit2 uses it yet. */
|
124
|
+
|
57
125
|
int pthread_num_processors_np(void)
|
58
126
|
{
|
59
127
|
DWORD_PTR p, s;
|
@@ -21,6 +21,7 @@ typedef int pthread_condattr_t;
|
|
21
21
|
typedef int pthread_attr_t;
|
22
22
|
typedef CRITICAL_SECTION pthread_mutex_t;
|
23
23
|
typedef HANDLE pthread_t;
|
24
|
+
typedef HANDLE pthread_cond_t;
|
24
25
|
|
25
26
|
#define PTHREAD_MUTEX_INITIALIZER {(void*)-1};
|
26
27
|
|
@@ -35,6 +36,12 @@ int pthread_mutex_destroy(pthread_mutex_t *);
|
|
35
36
|
int pthread_mutex_lock(pthread_mutex_t *);
|
36
37
|
int pthread_mutex_unlock(pthread_mutex_t *);
|
37
38
|
|
39
|
+
int pthread_cond_init(pthread_cond_t *, const pthread_condattr_t *);
|
40
|
+
int pthread_cond_destroy(pthread_cond_t *);
|
41
|
+
int pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *);
|
42
|
+
int pthread_cond_signal(pthread_cond_t *);
|
43
|
+
/* pthread_cond_broadcast is not supported on Win32 yet. */
|
44
|
+
|
38
45
|
int pthread_num_processors_np(void);
|
39
46
|
|
40
47
|
#endif
|
@@ -7,86 +7,75 @@
|
|
7
7
|
|
8
8
|
#include "common.h"
|
9
9
|
#include "utf-conv.h"
|
10
|
-
#include "git2/windows.h"
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
*/
|
15
|
-
static int _active_codepage = CP_UTF8;
|
16
|
-
|
17
|
-
void gitwin_set_codepage(unsigned int codepage)
|
18
|
-
{
|
19
|
-
_active_codepage = codepage;
|
20
|
-
}
|
21
|
-
|
22
|
-
unsigned int gitwin_get_codepage(void)
|
23
|
-
{
|
24
|
-
return _active_codepage;
|
25
|
-
}
|
26
|
-
|
27
|
-
void gitwin_set_utf8(void)
|
28
|
-
{
|
29
|
-
_active_codepage = CP_UTF8;
|
30
|
-
}
|
11
|
+
#define U16_LEAD(c) (wchar_t)(((c)>>10)+0xd7c0)
|
12
|
+
#define U16_TRAIL(c) (wchar_t)(((c)&0x3ff)|0xdc00)
|
31
13
|
|
32
|
-
|
14
|
+
#if 0
|
15
|
+
void git__utf8_to_16(wchar_t *dest, size_t length, const char *src)
|
33
16
|
{
|
34
|
-
wchar_t*
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
17
|
+
wchar_t *pDest = dest;
|
18
|
+
uint32_t ch;
|
19
|
+
const uint8_t* pSrc = (uint8_t*) src;
|
20
|
+
|
21
|
+
assert(dest && src && length);
|
22
|
+
|
23
|
+
length--;
|
24
|
+
|
25
|
+
while(*pSrc && length > 0) {
|
26
|
+
ch = *pSrc++;
|
27
|
+
length--;
|
28
|
+
|
29
|
+
if(ch < 0xc0) {
|
30
|
+
/*
|
31
|
+
* ASCII, or a trail byte in lead position which is treated like
|
32
|
+
* a single-byte sequence for better character boundary
|
33
|
+
* resynchronization after illegal sequences.
|
34
|
+
*/
|
35
|
+
*pDest++ = (wchar_t)ch;
|
36
|
+
continue;
|
37
|
+
} else if(ch < 0xe0) { /* U+0080..U+07FF */
|
38
|
+
if (pSrc[0]) {
|
39
|
+
/* 0x3080 = (0xc0 << 6) + 0x80 */
|
40
|
+
*pDest++ = (wchar_t)((ch << 6) + *pSrc++ - 0x3080);
|
41
|
+
continue;
|
42
|
+
}
|
43
|
+
} else if(ch < 0xf0) { /* U+0800..U+FFFF */
|
44
|
+
if (pSrc[0] && pSrc[1]) {
|
45
|
+
/* no need for (ch & 0xf) because the upper bits are truncated after <<12 in the cast to (UChar) */
|
46
|
+
/* 0x2080 = (0x80 << 6) + 0x80 */
|
47
|
+
ch = (ch << 12) + (*pSrc++ << 6);
|
48
|
+
*pDest++ = (wchar_t)(ch + *pSrc++ - 0x2080);
|
49
|
+
continue;
|
50
|
+
}
|
51
|
+
} else /* f0..f4 */ { /* U+10000..U+10FFFF */
|
52
|
+
if (length >= 1 && pSrc[0] && pSrc[1] && pSrc[2]) {
|
53
|
+
/* 0x3c82080 = (0xf0 << 18) + (0x80 << 12) + (0x80 << 6) + 0x80 */
|
54
|
+
ch = (ch << 18) + (*pSrc++ << 12);
|
55
|
+
ch += *pSrc++ << 6;
|
56
|
+
ch += *pSrc++ - 0x3c82080;
|
57
|
+
*(pDest++) = U16_LEAD(ch);
|
58
|
+
*(pDest++) = U16_TRAIL(ch);
|
59
|
+
length--; /* two bytes for this character */
|
60
|
+
continue;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
/* truncated character at the end */
|
65
|
+
*pDest++ = 0xfffd;
|
66
|
+
break;
|
52
67
|
}
|
53
68
|
|
54
|
-
|
69
|
+
*pDest++ = 0x0;
|
55
70
|
}
|
71
|
+
#endif
|
56
72
|
|
57
|
-
|
73
|
+
void git__utf8_to_16(wchar_t *dest, size_t length, const char *src)
|
58
74
|
{
|
59
|
-
|
60
|
-
_active_codepage, 0, str, -1, buffer, (int)len);
|
61
|
-
if (result == 0)
|
62
|
-
giterr_set(GITERR_OS, "Could not convert string to UTF-16");
|
63
|
-
return result;
|
75
|
+
MultiByteToWideChar(CP_UTF8, 0, src, -1, dest, (int)length);
|
64
76
|
}
|
65
77
|
|
66
|
-
char*
|
78
|
+
void git__utf16_to_8(char *out, const wchar_t *input)
|
67
79
|
{
|
68
|
-
|
69
|
-
int cb;
|
70
|
-
|
71
|
-
if (!str)
|
72
|
-
return NULL;
|
73
|
-
|
74
|
-
cb = WideCharToMultiByte(_active_codepage, 0, str, -1, NULL, 0, NULL, NULL);
|
75
|
-
if (cb == 0)
|
76
|
-
return (char *)git__calloc(1, sizeof(char));
|
77
|
-
|
78
|
-
ret = (char*)git__malloc(cb);
|
79
|
-
if (!ret)
|
80
|
-
return NULL;
|
81
|
-
|
82
|
-
if (WideCharToMultiByte(
|
83
|
-
_active_codepage, 0, str, -1, ret, (int)cb, NULL, NULL) == 0)
|
84
|
-
{
|
85
|
-
giterr_set(GITERR_OS, "Could not convert string to UTF-8");
|
86
|
-
git__free(ret);
|
87
|
-
ret = NULL;
|
88
|
-
}
|
89
|
-
|
90
|
-
return ret;
|
91
|
-
|
80
|
+
WideCharToMultiByte(CP_UTF8, 0, input, -1, out, GIT_WIN_PATH, NULL, NULL);
|
92
81
|
}
|
@@ -10,9 +10,10 @@
|
|
10
10
|
#ifndef INCLUDE_git_utfconv_h__
|
11
11
|
#define INCLUDE_git_utfconv_h__
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
#define GIT_WIN_PATH (260 + 1)
|
14
|
+
|
15
|
+
void git__utf8_to_16(wchar_t *dest, size_t length, const char *src);
|
16
|
+
void git__utf16_to_8(char *dest, const wchar_t *src);
|
16
17
|
|
17
18
|
#endif
|
18
19
|
|
metadata
CHANGED
@@ -1,71 +1,65 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rugged
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.17.0.b7
|
5
5
|
prerelease: 7
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 17
|
9
|
-
- 0
|
10
|
-
- b
|
11
|
-
- 6
|
12
|
-
version: 0.17.0.b6
|
13
6
|
platform: ruby
|
14
|
-
authors:
|
7
|
+
authors:
|
15
8
|
- Scott Chacon
|
16
9
|
- Vicent Marti
|
17
10
|
autorequire:
|
18
11
|
bindir: bin
|
19
12
|
cert_chain: []
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
dependencies:
|
24
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-10-24 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
25
16
|
name: rake-compiler
|
26
|
-
|
27
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
28
18
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
33
|
-
segments:
|
34
|
-
- 0
|
35
|
-
version: "0"
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
36
23
|
type: :development
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: minitest
|
40
24
|
prerelease: false
|
41
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: minitest
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
42
34
|
none: false
|
43
|
-
requirements:
|
35
|
+
requirements:
|
44
36
|
- - ~>
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
hash: 7
|
47
|
-
segments:
|
48
|
-
- 3
|
49
|
-
- 0
|
50
|
-
- 0
|
37
|
+
- !ruby/object:Gem::Version
|
51
38
|
version: 3.0.0
|
52
39
|
type: :development
|
53
|
-
|
54
|
-
|
55
|
-
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 3.0.0
|
47
|
+
description: ! 'Rugged is a Ruby bindings to the libgit2 linkable C Git library. This
|
48
|
+
is
|
49
|
+
|
56
50
|
for testing and using the libgit2 library in a language that is awesome.
|
57
51
|
|
52
|
+
'
|
58
53
|
email: schacon@gmail.com
|
59
54
|
executables: []
|
60
|
-
|
61
|
-
extensions:
|
55
|
+
extensions:
|
62
56
|
- ext/rugged/extconf.rb
|
63
57
|
extra_rdoc_files: []
|
64
|
-
|
65
|
-
files:
|
58
|
+
files:
|
66
59
|
- README.md
|
67
60
|
- Rakefile
|
68
61
|
- LICENSE
|
62
|
+
- lib/rugged/branch.rb
|
69
63
|
- lib/rugged/commit.rb
|
70
64
|
- lib/rugged/index.rb
|
71
65
|
- lib/rugged/object.rb
|
@@ -77,6 +71,7 @@ files:
|
|
77
71
|
- lib/rugged/walker.rb
|
78
72
|
- lib/rugged.rb
|
79
73
|
- test/blob_test.rb
|
74
|
+
- test/branch_test.rb
|
80
75
|
- test/commit_test.rb
|
81
76
|
- test/config_test.rb
|
82
77
|
- test/coverage/cover.rb
|
@@ -96,6 +91,7 @@ files:
|
|
96
91
|
- test/fixtures/testrepo.git/objects/36/060c58702ed4c2a40832c51758d5344201d89a
|
97
92
|
- test/fixtures/testrepo.git/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057
|
98
93
|
- test/fixtures/testrepo.git/objects/4a/202b346bb0fb0db7eff3cffeb3c70babbd2045
|
94
|
+
- test/fixtures/testrepo.git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904
|
99
95
|
- test/fixtures/testrepo.git/objects/5b/5b025afb0b4c913b4c338a42934a3863bf3644
|
100
96
|
- test/fixtures/testrepo.git/objects/61/9f9935957e010c419cb9d15621916ddfcc0b96
|
101
97
|
- test/fixtures/testrepo.git/objects/75/057dd4114e74cca1d750d0aee1647c903cb60a
|
@@ -103,6 +99,7 @@ files:
|
|
103
99
|
- test/fixtures/testrepo.git/objects/81/4889a078c031f61ed08ab5fa863aea9314344d
|
104
100
|
- test/fixtures/testrepo.git/objects/84/96071c1b46c854b31185ea97743be6a8774479
|
105
101
|
- test/fixtures/testrepo.git/objects/9f/d738e8f7967c078dceed8190330fc8648ee56a
|
102
|
+
- test/fixtures/testrepo.git/objects/a3/e05719b428a2d0ed7a55c4ce53dcc5768c6d5e
|
106
103
|
- test/fixtures/testrepo.git/objects/a4/a7dce85cf63874e984719f4fdd239f5145052f
|
107
104
|
- test/fixtures/testrepo.git/objects/a7/1586c1dfe8a71c6cbf6c129f404c5642ff31bd
|
108
105
|
- test/fixtures/testrepo.git/objects/a8/233120f6ad708f843d861ce2b7228ec4e3dec6
|
@@ -120,6 +117,7 @@ files:
|
|
120
117
|
- test/fixtures/testrepo.git/refs/tags/v0.9
|
121
118
|
- test/fixtures/testrepo.git/refs/tags/v1.0
|
122
119
|
- test/index_test.rb
|
120
|
+
- test/index_test.rb~
|
123
121
|
- test/lib_test.rb
|
124
122
|
- test/object_test.rb
|
125
123
|
- test/reference_test.rb
|
@@ -133,6 +131,7 @@ files:
|
|
133
131
|
- ext/rugged/rugged.c
|
134
132
|
- ext/rugged/rugged.h
|
135
133
|
- ext/rugged/rugged_blob.c
|
134
|
+
- ext/rugged/rugged_branch.c
|
136
135
|
- ext/rugged/rugged_commit.c
|
137
136
|
- ext/rugged/rugged_config.c
|
138
137
|
- ext/rugged/rugged_index.c
|
@@ -166,6 +165,7 @@ files:
|
|
166
165
|
- vendor/libgit2/include/git2/odb.h
|
167
166
|
- vendor/libgit2/include/git2/odb_backend.h
|
168
167
|
- vendor/libgit2/include/git2/oid.h
|
168
|
+
- vendor/libgit2/include/git2/pack.h
|
169
169
|
- vendor/libgit2/include/git2/reflog.h
|
170
170
|
- vendor/libgit2/include/git2/refs.h
|
171
171
|
- vendor/libgit2/include/git2/refspec.h
|
@@ -177,13 +177,13 @@ files:
|
|
177
177
|
- vendor/libgit2/include/git2/signature.h
|
178
178
|
- vendor/libgit2/include/git2/status.h
|
179
179
|
- vendor/libgit2/include/git2/stdint.h
|
180
|
+
- vendor/libgit2/include/git2/strarray.h
|
180
181
|
- vendor/libgit2/include/git2/submodule.h
|
181
182
|
- vendor/libgit2/include/git2/tag.h
|
182
183
|
- vendor/libgit2/include/git2/threads.h
|
183
184
|
- vendor/libgit2/include/git2/tree.h
|
184
185
|
- vendor/libgit2/include/git2/types.h
|
185
186
|
- vendor/libgit2/include/git2/version.h
|
186
|
-
- vendor/libgit2/include/git2/windows.h
|
187
187
|
- vendor/libgit2/include/git2.h
|
188
188
|
- vendor/libgit2/src/amiga/map.c
|
189
189
|
- vendor/libgit2/src/attr.c
|
@@ -204,8 +204,8 @@ files:
|
|
204
204
|
- vendor/libgit2/src/commit.c
|
205
205
|
- vendor/libgit2/src/commit.h
|
206
206
|
- vendor/libgit2/src/common.h
|
207
|
-
- vendor/libgit2/src/
|
208
|
-
- vendor/libgit2/src/
|
207
|
+
- vendor/libgit2/src/compress.c
|
208
|
+
- vendor/libgit2/src/compress.h
|
209
209
|
- vendor/libgit2/src/config.c
|
210
210
|
- vendor/libgit2/src/config.h
|
211
211
|
- vendor/libgit2/src/config_cache.c
|
@@ -215,9 +215,12 @@ files:
|
|
215
215
|
- vendor/libgit2/src/date.c
|
216
216
|
- vendor/libgit2/src/delta-apply.c
|
217
217
|
- vendor/libgit2/src/delta-apply.h
|
218
|
+
- vendor/libgit2/src/delta.c
|
219
|
+
- vendor/libgit2/src/delta.h
|
218
220
|
- vendor/libgit2/src/diff.c
|
219
221
|
- vendor/libgit2/src/diff.h
|
220
222
|
- vendor/libgit2/src/diff_output.c
|
223
|
+
- vendor/libgit2/src/diff_output.h
|
221
224
|
- vendor/libgit2/src/errors.c
|
222
225
|
- vendor/libgit2/src/fetch.c
|
223
226
|
- vendor/libgit2/src/fetch.h
|
@@ -227,6 +230,8 @@ files:
|
|
227
230
|
- vendor/libgit2/src/fileops.h
|
228
231
|
- vendor/libgit2/src/filter.c
|
229
232
|
- vendor/libgit2/src/filter.h
|
233
|
+
- vendor/libgit2/src/fnmatch.c
|
234
|
+
- vendor/libgit2/src/fnmatch.h
|
230
235
|
- vendor/libgit2/src/global.c
|
231
236
|
- vendor/libgit2/src/global.h
|
232
237
|
- vendor/libgit2/src/hash.c
|
@@ -249,12 +254,15 @@ files:
|
|
249
254
|
- vendor/libgit2/src/notes.c
|
250
255
|
- vendor/libgit2/src/notes.h
|
251
256
|
- vendor/libgit2/src/object.c
|
257
|
+
- vendor/libgit2/src/object.h
|
252
258
|
- vendor/libgit2/src/odb.c
|
253
259
|
- vendor/libgit2/src/odb.h
|
254
260
|
- vendor/libgit2/src/odb_loose.c
|
255
261
|
- vendor/libgit2/src/odb_pack.c
|
256
262
|
- vendor/libgit2/src/oid.c
|
257
263
|
- vendor/libgit2/src/oidmap.h
|
264
|
+
- vendor/libgit2/src/pack-objects.c
|
265
|
+
- vendor/libgit2/src/pack-objects.h
|
258
266
|
- vendor/libgit2/src/pack.c
|
259
267
|
- vendor/libgit2/src/pack.h
|
260
268
|
- vendor/libgit2/src/path.c
|
@@ -279,12 +287,13 @@ files:
|
|
279
287
|
- vendor/libgit2/src/refspec.h
|
280
288
|
- vendor/libgit2/src/remote.c
|
281
289
|
- vendor/libgit2/src/remote.h
|
290
|
+
- vendor/libgit2/src/repo_template.h
|
282
291
|
- vendor/libgit2/src/repository.c
|
283
292
|
- vendor/libgit2/src/repository.h
|
284
293
|
- vendor/libgit2/src/reset.c
|
285
294
|
- vendor/libgit2/src/revparse.c
|
286
295
|
- vendor/libgit2/src/revwalk.c
|
287
|
-
- vendor/libgit2/src/sha1.c
|
296
|
+
- vendor/libgit2/src/sha1/sha1.c
|
288
297
|
- vendor/libgit2/src/sha1.h
|
289
298
|
- vendor/libgit2/src/sha1_lookup.c
|
290
299
|
- vendor/libgit2/src/sha1_lookup.h
|
@@ -293,6 +302,7 @@ files:
|
|
293
302
|
- vendor/libgit2/src/status.c
|
294
303
|
- vendor/libgit2/src/strmap.h
|
295
304
|
- vendor/libgit2/src/submodule.c
|
305
|
+
- vendor/libgit2/src/submodule.h
|
296
306
|
- vendor/libgit2/src/tag.c
|
297
307
|
- vendor/libgit2/src/tag.h
|
298
308
|
- vendor/libgit2/src/thread-utils.c
|
@@ -315,6 +325,8 @@ files:
|
|
315
325
|
- vendor/libgit2/src/vector.h
|
316
326
|
- vendor/libgit2/src/win32/dir.c
|
317
327
|
- vendor/libgit2/src/win32/dir.h
|
328
|
+
- vendor/libgit2/src/win32/findfile.c
|
329
|
+
- vendor/libgit2/src/win32/findfile.h
|
318
330
|
- vendor/libgit2/src/win32/map.c
|
319
331
|
- vendor/libgit2/src/win32/mingw-compat.h
|
320
332
|
- vendor/libgit2/src/win32/msvc-compat.h
|
@@ -370,41 +382,28 @@ files:
|
|
370
382
|
- vendor/libgit2/deps/zlib/zutil.h
|
371
383
|
- vendor/libgit2/Makefile.embed
|
372
384
|
- ext/rugged/extconf.rb
|
373
|
-
has_rdoc: true
|
374
385
|
homepage: http://github.com/libgit2/rugged
|
375
386
|
licenses: []
|
376
|
-
|
377
387
|
post_install_message:
|
378
388
|
rdoc_options: []
|
379
|
-
|
380
|
-
require_paths:
|
389
|
+
require_paths:
|
381
390
|
- lib
|
382
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
391
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
383
392
|
none: false
|
384
|
-
requirements:
|
385
|
-
- -
|
386
|
-
- !ruby/object:Gem::Version
|
387
|
-
|
388
|
-
|
389
|
-
- 0
|
390
|
-
version: "0"
|
391
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
393
|
+
requirements:
|
394
|
+
- - ! '>='
|
395
|
+
- !ruby/object:Gem::Version
|
396
|
+
version: '0'
|
397
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
392
398
|
none: false
|
393
|
-
requirements:
|
394
|
-
- -
|
395
|
-
- !ruby/object:Gem::Version
|
396
|
-
hash: 25
|
397
|
-
segments:
|
398
|
-
- 1
|
399
|
-
- 3
|
400
|
-
- 1
|
399
|
+
requirements:
|
400
|
+
- - ! '>'
|
401
|
+
- !ruby/object:Gem::Version
|
401
402
|
version: 1.3.1
|
402
403
|
requirements: []
|
403
|
-
|
404
404
|
rubyforge_project:
|
405
|
-
rubygems_version: 1.
|
405
|
+
rubygems_version: 1.8.23
|
406
406
|
signing_key:
|
407
407
|
specification_version: 3
|
408
408
|
summary: Rugged is a Ruby binding to the libgit2 linkable library
|
409
409
|
test_files: []
|
410
|
-
|