rugged 0.24.0 → 0.24.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/lib/rugged/version.rb +1 -1
  3. data/vendor/libgit2/CMakeLists.txt +20 -9
  4. data/vendor/libgit2/deps/http-parser/http_parser.c +5 -2
  5. data/vendor/libgit2/include/git2/checkout.h +7 -0
  6. data/vendor/libgit2/include/git2/common.h +16 -1
  7. data/vendor/libgit2/include/git2/version.h +2 -2
  8. data/vendor/libgit2/src/array.h +40 -0
  9. data/vendor/libgit2/src/blame.c +8 -3
  10. data/vendor/libgit2/src/blame_git.c +20 -9
  11. data/vendor/libgit2/src/checkout.c +13 -5
  12. data/vendor/libgit2/src/commit.c +5 -4
  13. data/vendor/libgit2/src/common.h +1 -1
  14. data/vendor/libgit2/src/config_cache.c +2 -1
  15. data/vendor/libgit2/src/config_file.c +14 -20
  16. data/vendor/libgit2/src/delta-apply.c +36 -5
  17. data/vendor/libgit2/src/delta-apply.h +12 -0
  18. data/vendor/libgit2/src/describe.c +2 -1
  19. data/vendor/libgit2/src/diff_tform.c +5 -3
  20. data/vendor/libgit2/src/filebuf.c +6 -1
  21. data/vendor/libgit2/src/global.c +28 -8
  22. data/vendor/libgit2/src/global.h +1 -0
  23. data/vendor/libgit2/src/ignore.c +56 -19
  24. data/vendor/libgit2/src/index.c +27 -8
  25. data/vendor/libgit2/src/indexer.c +11 -7
  26. data/vendor/libgit2/src/iterator.c +2 -2
  27. data/vendor/libgit2/src/merge.c +1 -0
  28. data/vendor/libgit2/src/mwindow.c +20 -21
  29. data/vendor/libgit2/src/mwindow.h +1 -2
  30. data/vendor/libgit2/src/object.c +3 -6
  31. data/vendor/libgit2/src/odb.c +11 -15
  32. data/vendor/libgit2/src/odb.h +2 -1
  33. data/vendor/libgit2/src/odb_loose.c +13 -9
  34. data/vendor/libgit2/src/odb_pack.c +5 -6
  35. data/vendor/libgit2/src/oid.h +9 -0
  36. data/vendor/libgit2/src/openssl_stream.c +60 -27
  37. data/vendor/libgit2/src/openssl_stream.h +106 -0
  38. data/vendor/libgit2/src/pack-objects.c +4 -2
  39. data/vendor/libgit2/src/pack.c +10 -14
  40. data/vendor/libgit2/src/posix.c +7 -0
  41. data/vendor/libgit2/src/posix.h +1 -0
  42. data/vendor/libgit2/src/push.c +6 -6
  43. data/vendor/libgit2/src/refdb_fs.c +1 -0
  44. data/vendor/libgit2/src/refs.c +3 -0
  45. data/vendor/libgit2/src/refspec.c +4 -2
  46. data/vendor/libgit2/src/remote.c +15 -5
  47. data/vendor/libgit2/src/repository.c +29 -21
  48. data/vendor/libgit2/src/settings.c +23 -1
  49. data/vendor/libgit2/src/stransport_stream.c +15 -9
  50. data/vendor/libgit2/src/submodule.c +3 -2
  51. data/vendor/libgit2/src/sysdir.c +41 -47
  52. data/vendor/libgit2/src/sysdir.h +0 -5
  53. data/vendor/libgit2/src/tag.c +8 -2
  54. data/vendor/libgit2/src/thread-utils.h +5 -51
  55. data/vendor/libgit2/src/transport.c +2 -0
  56. data/vendor/libgit2/src/transports/http.c +2 -1
  57. data/vendor/libgit2/src/transports/smart_pkt.c +1 -0
  58. data/vendor/libgit2/src/transports/smart_protocol.c +72 -17
  59. data/vendor/libgit2/src/transports/ssh.c +32 -17
  60. data/vendor/libgit2/src/tree.c +83 -100
  61. data/vendor/libgit2/src/tree.h +4 -5
  62. data/vendor/libgit2/src/unix/map.c +5 -0
  63. data/vendor/libgit2/src/unix/pthread.h +54 -0
  64. data/vendor/libgit2/src/util.c +3 -3
  65. data/vendor/libgit2/src/win32/map.c +24 -5
  66. data/vendor/libgit2/src/win32/precompiled.h +1 -1
  67. data/vendor/libgit2/src/win32/{pthread.c → thread.c} +50 -80
  68. data/vendor/libgit2/src/win32/thread.h +62 -0
  69. data/vendor/libgit2/src/xdiff/xprepare.c +2 -1
  70. metadata +384 -394
  71. data/vendor/libgit2/src/win32/pthread.h +0 -92
@@ -1,92 +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 GIT_PTHREAD_H
9
- #define GIT_PTHREAD_H
10
-
11
- #include "../common.h"
12
-
13
- #if defined (_MSC_VER)
14
- # define GIT_RESTRICT __restrict
15
- #else
16
- # define GIT_RESTRICT __restrict__
17
- #endif
18
-
19
- typedef struct {
20
- HANDLE thread;
21
- void *(*proc)(void *);
22
- void *param;
23
- void *result;
24
- } git_win32_thread;
25
-
26
- typedef int pthread_mutexattr_t;
27
- typedef int pthread_condattr_t;
28
- typedef int pthread_attr_t;
29
- typedef int pthread_rwlockattr_t;
30
-
31
- typedef CRITICAL_SECTION pthread_mutex_t;
32
- typedef HANDLE pthread_cond_t;
33
-
34
- typedef struct { void *Ptr; } GIT_SRWLOCK;
35
-
36
- typedef struct {
37
- union {
38
- GIT_SRWLOCK srwl;
39
- CRITICAL_SECTION csec;
40
- } native;
41
- } pthread_rwlock_t;
42
-
43
- #define PTHREAD_MUTEX_INITIALIZER {(void*)-1}
44
-
45
- int git_win32__thread_create(
46
- git_win32_thread *GIT_RESTRICT,
47
- const pthread_attr_t *GIT_RESTRICT,
48
- void *(*) (void *),
49
- void *GIT_RESTRICT);
50
-
51
- int git_win32__thread_join(
52
- git_win32_thread *,
53
- void **);
54
-
55
- #ifdef GIT_THREADS
56
-
57
- typedef git_win32_thread git_thread;
58
-
59
- #define git_thread_create(git_thread_ptr, attr, start_routine, arg) \
60
- git_win32__thread_create(git_thread_ptr, attr, start_routine, arg)
61
- #define git_thread_join(git_thread_ptr, status) \
62
- git_win32__thread_join(git_thread_ptr, status)
63
-
64
- #endif
65
-
66
- int pthread_mutex_init(
67
- pthread_mutex_t *GIT_RESTRICT mutex,
68
- const pthread_mutexattr_t *GIT_RESTRICT mutexattr);
69
- int pthread_mutex_destroy(pthread_mutex_t *);
70
- int pthread_mutex_lock(pthread_mutex_t *);
71
- int pthread_mutex_unlock(pthread_mutex_t *);
72
-
73
- int pthread_cond_init(pthread_cond_t *, const pthread_condattr_t *);
74
- int pthread_cond_destroy(pthread_cond_t *);
75
- int pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *);
76
- int pthread_cond_signal(pthread_cond_t *);
77
- /* pthread_cond_broadcast is not supported on Win32 yet. */
78
-
79
- int pthread_num_processors_np(void);
80
-
81
- int pthread_rwlock_init(
82
- pthread_rwlock_t *GIT_RESTRICT lock,
83
- const pthread_rwlockattr_t *GIT_RESTRICT attr);
84
- int pthread_rwlock_rdlock(pthread_rwlock_t *);
85
- int pthread_rwlock_rdunlock(pthread_rwlock_t *);
86
- int pthread_rwlock_wrlock(pthread_rwlock_t *);
87
- int pthread_rwlock_wrunlock(pthread_rwlock_t *);
88
- int pthread_rwlock_destroy(pthread_rwlock_t *);
89
-
90
- extern int win32_pthread_initialize(void);
91
-
92
- #endif