rugged 0.21.0 → 0.21.1b0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -5
- data/ext/rugged/extconf.rb +8 -8
- data/ext/rugged/rugged.h +1 -1
- data/ext/rugged/rugged_cred.c +23 -0
- data/ext/rugged/rugged_index.c +5 -1
- data/ext/rugged/rugged_remote.c +68 -0
- data/ext/rugged/rugged_repo.c +287 -5
- data/ext/rugged/rugged_tag_collection.c +70 -2
- data/ext/rugged/rugged_tree.c +29 -10
- data/lib/rugged.rb +1 -0
- data/lib/rugged/attributes.rb +41 -0
- data/lib/rugged/diff.rb +0 -1
- data/lib/rugged/diff/line.rb +1 -3
- data/lib/rugged/patch.rb +12 -2
- data/lib/rugged/version.rb +1 -1
- data/vendor/libgit2/CMakeLists.txt +11 -0
- data/vendor/libgit2/cmake/Modules/FindGSSAPI.cmake +324 -0
- data/vendor/libgit2/deps/http-parser/http_parser.h +2 -0
- data/vendor/libgit2/deps/zlib/adler32.c +39 -29
- data/vendor/libgit2/deps/zlib/crc32.c +33 -50
- data/vendor/libgit2/deps/zlib/crc32.h +1 -1
- data/vendor/libgit2/deps/zlib/deflate.c +198 -65
- data/vendor/libgit2/deps/zlib/deflate.h +8 -4
- data/vendor/libgit2/deps/zlib/infback.c +640 -0
- data/vendor/libgit2/deps/zlib/inffast.c +3 -3
- data/vendor/libgit2/deps/zlib/inffixed.h +3 -3
- data/vendor/libgit2/deps/zlib/inflate.c +84 -52
- data/vendor/libgit2/deps/zlib/inftrees.c +15 -39
- data/vendor/libgit2/deps/zlib/trees.c +18 -36
- data/vendor/libgit2/deps/zlib/zconf.h +4 -0
- data/vendor/libgit2/deps/zlib/zlib.h +250 -95
- data/vendor/libgit2/deps/zlib/zutil.c +13 -10
- data/vendor/libgit2/deps/zlib/zutil.h +41 -62
- data/vendor/libgit2/include/git2/attr.h +16 -13
- data/vendor/libgit2/include/git2/buffer.h +16 -0
- data/vendor/libgit2/include/git2/checkout.h +12 -12
- data/vendor/libgit2/include/git2/cherrypick.h +15 -15
- data/vendor/libgit2/include/git2/clone.h +77 -69
- data/vendor/libgit2/include/git2/diff.h +7 -0
- data/vendor/libgit2/include/git2/errors.h +1 -0
- data/vendor/libgit2/include/git2/merge.h +16 -0
- data/vendor/libgit2/include/git2/oid.h +8 -4
- data/vendor/libgit2/include/git2/oidarray.h +40 -0
- data/vendor/libgit2/include/git2/remote.h +5 -24
- data/vendor/libgit2/include/git2/repository.h +4 -1
- data/vendor/libgit2/include/git2/reset.h +4 -0
- data/vendor/libgit2/include/git2/status.h +17 -14
- data/vendor/libgit2/include/git2/submodule.h +18 -0
- data/vendor/libgit2/include/git2/sys/transport.h +354 -0
- data/vendor/libgit2/include/git2/transport.h +34 -327
- data/vendor/libgit2/include/git2/types.h +16 -6
- data/vendor/libgit2/src/array.h +1 -1
- data/vendor/libgit2/src/attr_file.c +14 -1
- data/vendor/libgit2/src/blame.c +0 -1
- data/vendor/libgit2/src/buffer.c +67 -10
- data/vendor/libgit2/src/buffer.h +4 -2
- data/vendor/libgit2/src/cache.c +9 -9
- data/vendor/libgit2/src/cache.h +1 -1
- data/vendor/libgit2/src/checkout.c +118 -23
- data/vendor/libgit2/src/cherrypick.c +41 -44
- data/vendor/libgit2/src/clone.c +94 -56
- data/vendor/libgit2/src/config_file.c +4 -4
- data/vendor/libgit2/src/diff.c +21 -0
- data/vendor/libgit2/src/diff_file.c +1 -0
- data/vendor/libgit2/src/diff_print.c +11 -9
- data/vendor/libgit2/src/diff_tform.c +3 -1
- data/vendor/libgit2/src/errors.c +9 -7
- data/vendor/libgit2/src/fileops.c +5 -3
- data/vendor/libgit2/src/global.c +9 -1
- data/vendor/libgit2/src/global.h +1 -0
- data/vendor/libgit2/src/graph.c +2 -2
- data/vendor/libgit2/src/indexer.c +6 -1
- data/vendor/libgit2/src/merge.c +98 -144
- data/vendor/libgit2/src/merge.h +1 -1
- data/vendor/libgit2/src/netops.c +4 -0
- data/vendor/libgit2/src/oid.c +8 -0
- data/vendor/libgit2/src/oid.h +11 -0
- data/vendor/libgit2/src/oidarray.c +21 -0
- data/vendor/libgit2/src/oidarray.h +18 -0
- data/vendor/libgit2/src/pack.c +1 -4
- data/vendor/libgit2/src/path.c +93 -33
- data/vendor/libgit2/src/path.h +21 -0
- data/vendor/libgit2/src/pool.c +1 -1
- data/vendor/libgit2/src/posix.h +46 -28
- data/vendor/libgit2/src/refs.h +2 -2
- data/vendor/libgit2/src/refspec.c +54 -18
- data/vendor/libgit2/src/remote.c +31 -8
- data/vendor/libgit2/src/remote.h +3 -0
- data/vendor/libgit2/src/repository.c +27 -11
- data/vendor/libgit2/src/revert.c +4 -6
- data/vendor/libgit2/src/revparse.c +15 -18
- data/vendor/libgit2/src/revwalk.c +0 -3
- data/vendor/libgit2/src/signature.c +2 -2
- data/vendor/libgit2/src/stash.c +2 -1
- data/vendor/libgit2/src/status.c +11 -2
- data/vendor/libgit2/src/strnlen.h +2 -1
- data/vendor/libgit2/src/submodule.c +73 -33
- data/vendor/libgit2/src/thread-utils.h +0 -7
- data/vendor/libgit2/src/trace.h +9 -1
- data/vendor/libgit2/src/transport.c +93 -90
- data/vendor/libgit2/src/transports/auth.c +71 -0
- data/vendor/libgit2/src/transports/auth.h +63 -0
- data/vendor/libgit2/src/transports/auth_negotiate.c +275 -0
- data/vendor/libgit2/src/transports/auth_negotiate.h +27 -0
- data/vendor/libgit2/src/transports/cred.c +58 -0
- data/vendor/libgit2/src/transports/cred.h +14 -0
- data/vendor/libgit2/src/transports/cred_helpers.c +3 -0
- data/vendor/libgit2/src/transports/git.c +1 -0
- data/vendor/libgit2/src/transports/http.c +168 -76
- data/vendor/libgit2/src/transports/smart.h +1 -0
- data/vendor/libgit2/src/transports/smart_protocol.c +4 -2
- data/vendor/libgit2/src/transports/ssh.c +214 -38
- data/vendor/libgit2/src/transports/winhttp.c +26 -6
- data/vendor/libgit2/src/unix/posix.h +23 -9
- data/vendor/libgit2/src/unix/realpath.c +8 -7
- data/vendor/libgit2/src/util.c +2 -1
- data/vendor/libgit2/src/util.h +3 -3
- data/vendor/libgit2/src/win32/mingw-compat.h +5 -12
- data/vendor/libgit2/src/win32/msvc-compat.h +3 -32
- data/vendor/libgit2/src/win32/posix.h +20 -31
- data/vendor/libgit2/src/win32/posix_w32.c +33 -4
- metadata +81 -69
@@ -4,33 +4,47 @@
|
|
4
4
|
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
5
5
|
* a Linking Exception. For full terms see the included COPYING file.
|
6
6
|
*/
|
7
|
-
#ifndef
|
8
|
-
#define
|
7
|
+
#ifndef INCLUDE_posix__unix_h__
|
8
|
+
#define INCLUDE_posix__unix_h__
|
9
9
|
|
10
10
|
#include <stdio.h>
|
11
11
|
#include <sys/param.h>
|
12
12
|
|
13
|
+
typedef int GIT_SOCKET;
|
14
|
+
#define INVALID_SOCKET -1
|
15
|
+
|
16
|
+
#define p_lseek(f,n,w) lseek(f, n, w)
|
17
|
+
#define p_fstat(f,b) fstat(f, b)
|
13
18
|
#define p_lstat(p,b) lstat(p,b)
|
19
|
+
#define p_stat(p,b) stat(p, b)
|
20
|
+
|
14
21
|
#define p_readlink(a, b, c) readlink(a, b, c)
|
15
22
|
#define p_symlink(o,n) symlink(o, n)
|
16
23
|
#define p_link(o,n) link(o, n)
|
17
24
|
#define p_unlink(p) unlink(p)
|
18
25
|
#define p_mkdir(p,m) mkdir(p, m)
|
19
26
|
#define p_fsync(fd) fsync(fd)
|
27
|
+
extern char *p_realpath(const char *, char *);
|
20
28
|
|
21
|
-
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#else
|
25
|
-
char *p_realpath(const char *, char *);
|
26
|
-
#endif
|
29
|
+
#define p_recv(s,b,l,f) recv(s,b,l,f)
|
30
|
+
#define p_send(s,b,l,f) send(s,b,l,f)
|
31
|
+
#define p_inet_pton(a, b, c) inet_pton(a, b, c)
|
27
32
|
|
33
|
+
#define p_strcasecmp(s1, s2) strcasecmp(s1, s2)
|
34
|
+
#define p_strncasecmp(s1, s2, c) strncasecmp(s1, s2, c)
|
28
35
|
#define p_vsnprintf(b, c, f, a) vsnprintf(b, c, f, a)
|
29
36
|
#define p_snprintf(b, c, f, ...) snprintf(b, c, f, __VA_ARGS__)
|
30
37
|
#define p_mkstemp(p) mkstemp(p)
|
31
|
-
#define
|
38
|
+
#define p_chdir(p) chdir(p)
|
39
|
+
#define p_chmod(p,m) chmod(p, m)
|
40
|
+
#define p_rmdir(p) rmdir(p)
|
41
|
+
#define p_access(p,m) access(p,m)
|
42
|
+
#define p_ftruncate(fd, sz) ftruncate(fd, sz)
|
32
43
|
|
33
44
|
/* see win32/posix.h for explanation about why this exists */
|
34
45
|
#define p_lstat_posixly(p,b) lstat(p,b)
|
35
46
|
|
47
|
+
#define p_localtime_r(c, r) localtime_r(c, r)
|
48
|
+
#define p_gmtime_r(c, r) gmtime_r(c, r)
|
49
|
+
|
36
50
|
#endif
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
#include <git2/common.h>
|
8
8
|
|
9
|
-
#
|
9
|
+
#ifndef GIT_WIN32
|
10
10
|
|
11
11
|
#include <limits.h>
|
12
12
|
#include <stdlib.h>
|
@@ -16,15 +16,16 @@
|
|
16
16
|
char *p_realpath(const char *pathname, char *resolved)
|
17
17
|
{
|
18
18
|
char *ret;
|
19
|
-
|
20
19
|
if ((ret = realpath(pathname, resolved)) == NULL)
|
21
20
|
return NULL;
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
#ifdef __OpenBSD__
|
23
|
+
/* The OpenBSD realpath function behaves differently,
|
24
|
+
* figure out if the file exists */
|
25
|
+
if (access(ret, F_OK) < 0)
|
26
|
+
ret = NULL;
|
27
|
+
#endif
|
28
|
+
return ret;
|
28
29
|
}
|
29
30
|
|
30
31
|
#endif
|
data/vendor/libgit2/src/util.c
CHANGED
@@ -613,7 +613,8 @@ void git__qsort_r(
|
|
613
613
|
defined(__OpenBSD__) || defined(__NetBSD__) || \
|
614
614
|
defined(__gnu_hurd__) || defined(__ANDROID_API__) || \
|
615
615
|
defined(__sun) || defined(__CYGWIN__) || \
|
616
|
-
(__GLIBC__ == 2 && __GLIBC_MINOR__ < 8)
|
616
|
+
(__GLIBC__ == 2 && __GLIBC_MINOR__ < 8) || \
|
617
|
+
(defined(_MSC_VER) && _MSC_VER < 1500)
|
617
618
|
git__insertsort_r(els, nel, elsize, NULL, cmp, payload);
|
618
619
|
#elif defined(GIT_WIN32)
|
619
620
|
git__qsort_r_glue glue = { cmp, payload };
|
data/vendor/libgit2/src/util.h
CHANGED
@@ -419,7 +419,7 @@ GIT_INLINE(double) git__timer(void)
|
|
419
419
|
scaling_factor = (double)info.numer / (double)info.denom;
|
420
420
|
}
|
421
421
|
|
422
|
-
return (double)time * scaling_factor / 1.
|
422
|
+
return (double)time * scaling_factor / 1.0E9;
|
423
423
|
}
|
424
424
|
|
425
425
|
#else
|
@@ -431,13 +431,13 @@ GIT_INLINE(double) git__timer(void)
|
|
431
431
|
struct timespec tp;
|
432
432
|
|
433
433
|
if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) {
|
434
|
-
return (double) tp.tv_sec + (double) tp.tv_nsec /
|
434
|
+
return (double) tp.tv_sec + (double) tp.tv_nsec / 1.0E9;
|
435
435
|
} else {
|
436
436
|
/* Fall back to using gettimeofday */
|
437
437
|
struct timeval tv;
|
438
438
|
struct timezone tz;
|
439
439
|
gettimeofday(&tv, &tz);
|
440
|
-
return (double)tv.tv_sec + (double)tv.tv_usec /
|
440
|
+
return (double)tv.tv_sec + (double)tv.tv_usec / 1.0E6;
|
441
441
|
}
|
442
442
|
}
|
443
443
|
|
@@ -9,18 +9,11 @@
|
|
9
9
|
|
10
10
|
#if defined(__MINGW32__)
|
11
11
|
|
12
|
-
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
# undef fstat
|
18
|
-
# define fstat _fstati64
|
19
|
-
|
20
|
-
/* stat: file mode type testing macros */
|
21
|
-
# define _S_IFLNK 0120000
|
22
|
-
# define S_IFLNK _S_IFLNK
|
23
|
-
# define S_ISLNK(m) (((m) & _S_IFMT) == _S_IFLNK)
|
12
|
+
#if _WIN32_WINNT >= 0x0601
|
13
|
+
#define stat __stat64
|
14
|
+
#else
|
15
|
+
#define stat _stati64
|
16
|
+
#endif
|
24
17
|
|
25
18
|
#endif
|
26
19
|
|
@@ -9,41 +9,12 @@
|
|
9
9
|
|
10
10
|
#if defined(_MSC_VER)
|
11
11
|
|
12
|
-
/*
|
13
|
-
#
|
14
|
-
# define W_OK 2 /* write mode check */
|
15
|
-
# define R_OK 4 /* read mode check */
|
12
|
+
/* 64-bit stat information, regardless of USE_32BIT_TIME_T define */
|
13
|
+
#define stat __stat64
|
16
14
|
|
17
|
-
|
18
|
-
# define stat _stat64
|
19
|
-
# define fstat _fstat64
|
20
|
-
|
21
|
-
/* stat: file mode type testing macros */
|
22
|
-
# define _S_IFLNK 0120000
|
23
|
-
# define S_IFLNK _S_IFLNK
|
24
|
-
# define S_IXUSR 00100
|
25
|
-
|
26
|
-
# define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
|
27
|
-
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
28
|
-
# define S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO)
|
29
|
-
# define S_ISLNK(m) (((m) & _S_IFMT) == _S_IFLNK)
|
30
|
-
|
31
|
-
# define mode_t unsigned short
|
32
|
-
|
33
|
-
/* case-insensitive string comparison */
|
34
|
-
# define strcasecmp _stricmp
|
35
|
-
# define strncasecmp _strnicmp
|
36
|
-
|
37
|
-
/* MSVC doesn't define ssize_t at all */
|
15
|
+
typedef unsigned short mode_t;
|
38
16
|
typedef SSIZE_T ssize_t;
|
39
17
|
|
40
|
-
/* define snprintf using variadic macro support if available */
|
41
|
-
#if _MSC_VER >= 1400
|
42
|
-
# define snprintf(BUF, SZ, FMT, ...) _snprintf_s(BUF, SZ, _TRUNCATE, FMT, __VA_ARGS__)
|
43
|
-
#else
|
44
|
-
# define snprintf _snprintf
|
45
|
-
#endif
|
46
|
-
|
47
18
|
#endif
|
48
19
|
|
49
20
|
#define GIT_STDLIB_CALL __cdecl
|
@@ -12,49 +12,35 @@
|
|
12
12
|
#include "utf-conv.h"
|
13
13
|
#include "dir.h"
|
14
14
|
|
15
|
-
|
16
|
-
* mingw lacks EAFNOSUPPORT. */
|
15
|
+
typedef SOCKET GIT_SOCKET;
|
17
16
|
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#endif
|
21
|
-
|
22
|
-
#ifdef _MSC_VER
|
23
|
-
# define p_ftruncate(fd, sz) _chsize_s(fd, sz)
|
24
|
-
#else /* MinGW */
|
25
|
-
# define p_ftruncate(fd, sz) _chsize(fd, sz)
|
26
|
-
#endif
|
27
|
-
|
28
|
-
GIT_INLINE(int) p_link(const char *old, const char *new)
|
29
|
-
{
|
30
|
-
GIT_UNUSED(old);
|
31
|
-
GIT_UNUSED(new);
|
32
|
-
errno = ENOSYS;
|
33
|
-
return -1;
|
34
|
-
}
|
35
|
-
|
36
|
-
extern int p_mkdir(const char *path, mode_t mode);
|
37
|
-
extern int p_unlink(const char *path);
|
17
|
+
#define p_lseek(f,n,w) _lseeki64(f, n, w)
|
18
|
+
#define p_fstat(f,b) _fstat64(f, b)
|
38
19
|
extern int p_lstat(const char *file_name, struct stat *buf);
|
20
|
+
extern int p_stat(const char* path, struct stat* buf);
|
21
|
+
|
39
22
|
extern int p_readlink(const char *path, char *buf, size_t bufsiz);
|
40
23
|
extern int p_symlink(const char *old, const char *new);
|
24
|
+
extern int p_link(const char *old, const char *new);
|
25
|
+
extern int p_unlink(const char *path);
|
26
|
+
extern int p_mkdir(const char *path, mode_t mode);
|
27
|
+
extern int p_fsync(int fd);
|
41
28
|
extern char *p_realpath(const char *orig_path, char *buffer);
|
29
|
+
|
30
|
+
extern int p_recv(GIT_SOCKET socket, void *buffer, size_t length, int flags);
|
31
|
+
extern int p_send(GIT_SOCKET socket, const void *buffer, size_t length, int flags);
|
32
|
+
extern int p_inet_pton(int af, const char* src, void* dst);
|
33
|
+
|
34
|
+
#define strcasecmp(s1, s2) _stricmp(s1, s2)
|
35
|
+
#define strncasecmp(s1, s2, c) _strnicmp(s1, s2, c)
|
42
36
|
extern int p_vsnprintf(char *buffer, size_t count, const char *format, va_list argptr);
|
43
37
|
extern int p_snprintf(char *buffer, size_t count, const char *format, ...) GIT_FORMAT_PRINTF(3, 4);
|
44
38
|
extern int p_mkstemp(char *tmp_path);
|
45
|
-
extern int p_stat(const char* path, struct stat* buf);
|
46
39
|
extern int p_chdir(const char* path);
|
47
40
|
extern int p_chmod(const char* path, mode_t mode);
|
48
41
|
extern int p_rmdir(const char* path);
|
49
42
|
extern int p_access(const char* path, mode_t mode);
|
50
|
-
extern int
|
51
|
-
extern int p_open(const char *path, int flags, ...);
|
52
|
-
extern int p_creat(const char *path, mode_t mode);
|
53
|
-
extern int p_getcwd(char *buffer_out, size_t size);
|
54
|
-
extern int p_rename(const char *from, const char *to);
|
55
|
-
extern int p_recv(GIT_SOCKET socket, void *buffer, size_t length, int flags);
|
56
|
-
extern int p_send(GIT_SOCKET socket, const void *buffer, size_t length, int flags);
|
57
|
-
extern int p_inet_pton(int af, const char* src, void* dst);
|
43
|
+
extern int p_ftruncate(int fd, long size);
|
58
44
|
|
59
45
|
/* p_lstat is almost but not quite POSIX correct. Specifically, the use of
|
60
46
|
* ENOTDIR is wrong, in that it does not mean precisely that a non-directory
|
@@ -64,4 +50,7 @@ extern int p_inet_pton(int af, const char* src, void* dst);
|
|
64
50
|
*/
|
65
51
|
extern int p_lstat_posixly(const char *filename, struct stat *buf);
|
66
52
|
|
53
|
+
extern struct tm * p_localtime_r (const time_t *timer, struct tm *result);
|
54
|
+
extern struct tm * p_gmtime_r (const time_t *timer, struct tm *result);
|
55
|
+
|
67
56
|
#endif
|
@@ -19,6 +19,10 @@
|
|
19
19
|
# define FILE_NAME_NORMALIZED 0
|
20
20
|
#endif
|
21
21
|
|
22
|
+
#ifndef IO_REPARSE_TAG_SYMLINK
|
23
|
+
#define IO_REPARSE_TAG_SYMLINK (0xA000000CL)
|
24
|
+
#endif
|
25
|
+
|
22
26
|
/* Options which we always provide to _wopen.
|
23
27
|
*
|
24
28
|
* _O_BINARY - Raw access; no translation of CR or LF characters
|
@@ -47,6 +51,15 @@ static int utf8_to_16_with_errno(git_win32_path dest, const char *src)
|
|
47
51
|
return len;
|
48
52
|
}
|
49
53
|
|
54
|
+
int p_ftruncate(int fd, long size)
|
55
|
+
{
|
56
|
+
#if defined(_MSC_VER) && _MSC_VER >= 1500
|
57
|
+
return _chsize_s(fd, size);
|
58
|
+
#else
|
59
|
+
return _chsize(fd, size);
|
60
|
+
#endif
|
61
|
+
}
|
62
|
+
|
50
63
|
int p_mkdir(const char *path, mode_t mode)
|
51
64
|
{
|
52
65
|
git_win32_path buf;
|
@@ -59,6 +72,14 @@ int p_mkdir(const char *path, mode_t mode)
|
|
59
72
|
return _wmkdir(buf);
|
60
73
|
}
|
61
74
|
|
75
|
+
int p_link(const char *old, const char *new)
|
76
|
+
{
|
77
|
+
GIT_UNUSED(old);
|
78
|
+
GIT_UNUSED(new);
|
79
|
+
errno = ENOSYS;
|
80
|
+
return -1;
|
81
|
+
}
|
82
|
+
|
62
83
|
int p_unlink(const char *path)
|
63
84
|
{
|
64
85
|
git_win32_path buf;
|
@@ -543,11 +564,19 @@ char *p_realpath(const char *orig_path, char *buffer)
|
|
543
564
|
|
544
565
|
int p_vsnprintf(char *buffer, size_t count, const char *format, va_list argptr)
|
545
566
|
{
|
546
|
-
#
|
567
|
+
#if defined(_MSC_VER)
|
547
568
|
int len;
|
548
569
|
|
549
|
-
if (count == 0
|
550
|
-
|
570
|
+
if (count == 0)
|
571
|
+
return _vscprintf(format, argptr);
|
572
|
+
|
573
|
+
#if _MSC_VER >= 1500
|
574
|
+
len = _vsnprintf_s(buffer, count, _TRUNCATE, format, argptr);
|
575
|
+
#else
|
576
|
+
len = _vsnprintf(buffer, count, format, argptr);
|
577
|
+
#endif
|
578
|
+
|
579
|
+
if (len < 0)
|
551
580
|
return _vscprintf(format, argptr);
|
552
581
|
|
553
582
|
return len;
|
@@ -570,7 +599,7 @@ int p_snprintf(char *buffer, size_t count, const char *format, ...)
|
|
570
599
|
|
571
600
|
int p_mkstemp(char *tmp_path)
|
572
601
|
{
|
573
|
-
#if defined(_MSC_VER)
|
602
|
+
#if defined(_MSC_VER) && _MSC_VER >= 1500
|
574
603
|
if (_mktemp_s(tmp_path, strlen(tmp_path) + 1) != 0)
|
575
604
|
return -1;
|
576
605
|
#else
|
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.1b0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon
|
@@ -9,48 +9,48 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 0.9.0
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 0.9.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: pry
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: minitest
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 3.0.0
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 3.0.0
|
56
56
|
description: |
|
@@ -62,27 +62,9 @@ extensions:
|
|
62
62
|
- ext/rugged/extconf.rb
|
63
63
|
extra_rdoc_files: []
|
64
64
|
files:
|
65
|
-
- README.md
|
66
65
|
- LICENSE
|
67
|
-
-
|
68
|
-
-
|
69
|
-
- lib/rugged/console.rb
|
70
|
-
- lib/rugged/credentials.rb
|
71
|
-
- lib/rugged/diff/delta.rb
|
72
|
-
- lib/rugged/diff/hunk.rb
|
73
|
-
- lib/rugged/diff/line.rb
|
74
|
-
- lib/rugged/diff.rb
|
75
|
-
- lib/rugged/index.rb
|
76
|
-
- lib/rugged/object.rb
|
77
|
-
- lib/rugged/patch.rb
|
78
|
-
- lib/rugged/reference.rb
|
79
|
-
- lib/rugged/remote.rb
|
80
|
-
- lib/rugged/repository.rb
|
81
|
-
- lib/rugged/tag.rb
|
82
|
-
- lib/rugged/tree.rb
|
83
|
-
- lib/rugged/version.rb
|
84
|
-
- lib/rugged/walker.rb
|
85
|
-
- lib/rugged.rb
|
66
|
+
- README.md
|
67
|
+
- ext/rugged/extconf.rb
|
86
68
|
- ext/rugged/rugged.c
|
87
69
|
- ext/rugged/rugged.h
|
88
70
|
- ext/rugged/rugged_blame.c
|
@@ -111,10 +93,65 @@ files:
|
|
111
93
|
- ext/rugged/rugged_tag.c
|
112
94
|
- ext/rugged/rugged_tag_collection.c
|
113
95
|
- ext/rugged/rugged_tree.c
|
96
|
+
- lib/rugged.rb
|
97
|
+
- lib/rugged/attributes.rb
|
98
|
+
- lib/rugged/branch.rb
|
99
|
+
- lib/rugged/commit.rb
|
100
|
+
- lib/rugged/console.rb
|
101
|
+
- lib/rugged/credentials.rb
|
102
|
+
- lib/rugged/diff.rb
|
103
|
+
- lib/rugged/diff/delta.rb
|
104
|
+
- lib/rugged/diff/hunk.rb
|
105
|
+
- lib/rugged/diff/line.rb
|
106
|
+
- lib/rugged/index.rb
|
107
|
+
- lib/rugged/object.rb
|
108
|
+
- lib/rugged/patch.rb
|
109
|
+
- lib/rugged/reference.rb
|
110
|
+
- lib/rugged/remote.rb
|
111
|
+
- lib/rugged/repository.rb
|
112
|
+
- lib/rugged/tag.rb
|
113
|
+
- lib/rugged/tree.rb
|
114
|
+
- lib/rugged/version.rb
|
115
|
+
- lib/rugged/walker.rb
|
116
|
+
- vendor/libgit2/AUTHORS
|
117
|
+
- vendor/libgit2/CMakeLists.txt
|
118
|
+
- vendor/libgit2/COPYING
|
119
|
+
- vendor/libgit2/Makefile.embed
|
114
120
|
- vendor/libgit2/cmake/Modules/AddCFlagIfSupported.cmake
|
121
|
+
- vendor/libgit2/cmake/Modules/FindGSSAPI.cmake
|
115
122
|
- vendor/libgit2/cmake/Modules/FindHTTP_Parser.cmake
|
116
123
|
- vendor/libgit2/cmake/Modules/FindIconv.cmake
|
117
124
|
- vendor/libgit2/cmake/Modules/FindLIBSSH2.cmake
|
125
|
+
- vendor/libgit2/deps/http-parser/LICENSE-MIT
|
126
|
+
- vendor/libgit2/deps/http-parser/http_parser.c
|
127
|
+
- vendor/libgit2/deps/http-parser/http_parser.h
|
128
|
+
- vendor/libgit2/deps/regex/config.h
|
129
|
+
- vendor/libgit2/deps/regex/regcomp.c
|
130
|
+
- vendor/libgit2/deps/regex/regex.c
|
131
|
+
- vendor/libgit2/deps/regex/regex.h
|
132
|
+
- vendor/libgit2/deps/regex/regex_internal.c
|
133
|
+
- vendor/libgit2/deps/regex/regex_internal.h
|
134
|
+
- vendor/libgit2/deps/regex/regexec.c
|
135
|
+
- vendor/libgit2/deps/zlib/adler32.c
|
136
|
+
- vendor/libgit2/deps/zlib/crc32.c
|
137
|
+
- vendor/libgit2/deps/zlib/crc32.h
|
138
|
+
- vendor/libgit2/deps/zlib/deflate.c
|
139
|
+
- vendor/libgit2/deps/zlib/deflate.h
|
140
|
+
- vendor/libgit2/deps/zlib/infback.c
|
141
|
+
- vendor/libgit2/deps/zlib/inffast.c
|
142
|
+
- vendor/libgit2/deps/zlib/inffast.h
|
143
|
+
- vendor/libgit2/deps/zlib/inffixed.h
|
144
|
+
- vendor/libgit2/deps/zlib/inflate.c
|
145
|
+
- vendor/libgit2/deps/zlib/inflate.h
|
146
|
+
- vendor/libgit2/deps/zlib/inftrees.c
|
147
|
+
- vendor/libgit2/deps/zlib/inftrees.h
|
148
|
+
- vendor/libgit2/deps/zlib/trees.c
|
149
|
+
- vendor/libgit2/deps/zlib/trees.h
|
150
|
+
- vendor/libgit2/deps/zlib/zconf.h
|
151
|
+
- vendor/libgit2/deps/zlib/zlib.h
|
152
|
+
- vendor/libgit2/deps/zlib/zutil.c
|
153
|
+
- vendor/libgit2/deps/zlib/zutil.h
|
154
|
+
- vendor/libgit2/include/git2.h
|
118
155
|
- vendor/libgit2/include/git2/attr.h
|
119
156
|
- vendor/libgit2/include/git2/blame.h
|
120
157
|
- vendor/libgit2/include/git2/blob.h
|
@@ -143,6 +180,7 @@ files:
|
|
143
180
|
- vendor/libgit2/include/git2/odb.h
|
144
181
|
- vendor/libgit2/include/git2/odb_backend.h
|
145
182
|
- vendor/libgit2/include/git2/oid.h
|
183
|
+
- vendor/libgit2/include/git2/oidarray.h
|
146
184
|
- vendor/libgit2/include/git2/pack.h
|
147
185
|
- vendor/libgit2/include/git2/patch.h
|
148
186
|
- vendor/libgit2/include/git2/pathspec.h
|
@@ -174,6 +212,7 @@ files:
|
|
174
212
|
- vendor/libgit2/include/git2/sys/reflog.h
|
175
213
|
- vendor/libgit2/include/git2/sys/refs.h
|
176
214
|
- vendor/libgit2/include/git2/sys/repository.h
|
215
|
+
- vendor/libgit2/include/git2/sys/transport.h
|
177
216
|
- vendor/libgit2/include/git2/tag.h
|
178
217
|
- vendor/libgit2/include/git2/threads.h
|
179
218
|
- vendor/libgit2/include/git2/trace.h
|
@@ -181,7 +220,7 @@ files:
|
|
181
220
|
- vendor/libgit2/include/git2/tree.h
|
182
221
|
- vendor/libgit2/include/git2/types.h
|
183
222
|
- vendor/libgit2/include/git2/version.h
|
184
|
-
- vendor/libgit2/
|
223
|
+
- vendor/libgit2/libgit2.pc.in
|
185
224
|
- vendor/libgit2/src/array.h
|
186
225
|
- vendor/libgit2/src/attr.c
|
187
226
|
- vendor/libgit2/src/attr.h
|
@@ -256,13 +295,13 @@ files:
|
|
256
295
|
- vendor/libgit2/src/global.c
|
257
296
|
- vendor/libgit2/src/global.h
|
258
297
|
- vendor/libgit2/src/graph.c
|
298
|
+
- vendor/libgit2/src/hash.c
|
299
|
+
- vendor/libgit2/src/hash.h
|
259
300
|
- vendor/libgit2/src/hash/hash_generic.c
|
260
301
|
- vendor/libgit2/src/hash/hash_generic.h
|
261
302
|
- vendor/libgit2/src/hash/hash_openssl.h
|
262
303
|
- vendor/libgit2/src/hash/hash_win32.c
|
263
304
|
- vendor/libgit2/src/hash/hash_win32.h
|
264
|
-
- vendor/libgit2/src/hash.c
|
265
|
-
- vendor/libgit2/src/hash.h
|
266
305
|
- vendor/libgit2/src/hashsig.c
|
267
306
|
- vendor/libgit2/src/hashsig.h
|
268
307
|
- vendor/libgit2/src/ident.c
|
@@ -298,6 +337,8 @@ files:
|
|
298
337
|
- vendor/libgit2/src/offmap.h
|
299
338
|
- vendor/libgit2/src/oid.c
|
300
339
|
- vendor/libgit2/src/oid.h
|
340
|
+
- vendor/libgit2/src/oidarray.c
|
341
|
+
- vendor/libgit2/src/oidarray.h
|
301
342
|
- vendor/libgit2/src/oidmap.h
|
302
343
|
- vendor/libgit2/src/pack-objects.c
|
303
344
|
- vendor/libgit2/src/pack-objects.h
|
@@ -359,7 +400,12 @@ files:
|
|
359
400
|
- vendor/libgit2/src/trace.c
|
360
401
|
- vendor/libgit2/src/trace.h
|
361
402
|
- vendor/libgit2/src/transport.c
|
403
|
+
- vendor/libgit2/src/transports/auth.c
|
404
|
+
- vendor/libgit2/src/transports/auth.h
|
405
|
+
- vendor/libgit2/src/transports/auth_negotiate.c
|
406
|
+
- vendor/libgit2/src/transports/auth_negotiate.h
|
362
407
|
- vendor/libgit2/src/transports/cred.c
|
408
|
+
- vendor/libgit2/src/transports/cred.h
|
363
409
|
- vendor/libgit2/src/transports/cred_helpers.c
|
364
410
|
- vendor/libgit2/src/transports/git.c
|
365
411
|
- vendor/libgit2/src/transports/http.c
|
@@ -422,40 +468,6 @@ files:
|
|
422
468
|
- vendor/libgit2/src/xdiff/xutils.h
|
423
469
|
- vendor/libgit2/src/zstream.c
|
424
470
|
- vendor/libgit2/src/zstream.h
|
425
|
-
- vendor/libgit2/deps/http-parser/http_parser.c
|
426
|
-
- vendor/libgit2/deps/http-parser/http_parser.h
|
427
|
-
- vendor/libgit2/deps/http-parser/LICENSE-MIT
|
428
|
-
- vendor/libgit2/deps/regex/config.h
|
429
|
-
- vendor/libgit2/deps/regex/regcomp.c
|
430
|
-
- vendor/libgit2/deps/regex/regex.c
|
431
|
-
- vendor/libgit2/deps/regex/regex.h
|
432
|
-
- vendor/libgit2/deps/regex/regex_internal.c
|
433
|
-
- vendor/libgit2/deps/regex/regex_internal.h
|
434
|
-
- vendor/libgit2/deps/regex/regexec.c
|
435
|
-
- vendor/libgit2/deps/zlib/adler32.c
|
436
|
-
- vendor/libgit2/deps/zlib/crc32.c
|
437
|
-
- vendor/libgit2/deps/zlib/crc32.h
|
438
|
-
- vendor/libgit2/deps/zlib/deflate.c
|
439
|
-
- vendor/libgit2/deps/zlib/deflate.h
|
440
|
-
- vendor/libgit2/deps/zlib/inffast.c
|
441
|
-
- vendor/libgit2/deps/zlib/inffast.h
|
442
|
-
- vendor/libgit2/deps/zlib/inffixed.h
|
443
|
-
- vendor/libgit2/deps/zlib/inflate.c
|
444
|
-
- vendor/libgit2/deps/zlib/inflate.h
|
445
|
-
- vendor/libgit2/deps/zlib/inftrees.c
|
446
|
-
- vendor/libgit2/deps/zlib/inftrees.h
|
447
|
-
- vendor/libgit2/deps/zlib/trees.c
|
448
|
-
- vendor/libgit2/deps/zlib/trees.h
|
449
|
-
- vendor/libgit2/deps/zlib/zconf.h
|
450
|
-
- vendor/libgit2/deps/zlib/zlib.h
|
451
|
-
- vendor/libgit2/deps/zlib/zutil.c
|
452
|
-
- vendor/libgit2/deps/zlib/zutil.h
|
453
|
-
- vendor/libgit2/CMakeLists.txt
|
454
|
-
- vendor/libgit2/Makefile.embed
|
455
|
-
- vendor/libgit2/AUTHORS
|
456
|
-
- vendor/libgit2/COPYING
|
457
|
-
- vendor/libgit2/libgit2.pc.in
|
458
|
-
- ext/rugged/extconf.rb
|
459
471
|
homepage: https://github.com/libgit2/rugged
|
460
472
|
licenses:
|
461
473
|
- MIT
|
@@ -466,17 +478,17 @@ require_paths:
|
|
466
478
|
- lib
|
467
479
|
required_ruby_version: !ruby/object:Gem::Requirement
|
468
480
|
requirements:
|
469
|
-
- -
|
481
|
+
- - ">="
|
470
482
|
- !ruby/object:Gem::Version
|
471
483
|
version: 1.9.3
|
472
484
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
473
485
|
requirements:
|
474
|
-
- -
|
486
|
+
- - ">"
|
475
487
|
- !ruby/object:Gem::Version
|
476
|
-
version:
|
488
|
+
version: 1.3.1
|
477
489
|
requirements: []
|
478
490
|
rubyforge_project:
|
479
|
-
rubygems_version: 2.
|
491
|
+
rubygems_version: 2.2.2
|
480
492
|
signing_key:
|
481
493
|
specification_version: 4
|
482
494
|
summary: Rugged is a Ruby binding to the libgit2 linkable library
|