rugged 0.24.6.1 → 0.25.0b1

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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/ext/rugged/rugged_repo.c +44 -36
  3. data/lib/rugged/version.rb +1 -1
  4. data/vendor/libgit2/CMakeLists.txt +10 -21
  5. data/vendor/libgit2/include/git2/checkout.h +0 -7
  6. data/vendor/libgit2/include/git2/commit.h +46 -0
  7. data/vendor/libgit2/include/git2/common.h +1 -16
  8. data/vendor/libgit2/include/git2/odb.h +47 -1
  9. data/vendor/libgit2/include/git2/version.h +2 -2
  10. data/vendor/libgit2/src/array.h +0 -40
  11. data/vendor/libgit2/src/blame.c +3 -8
  12. data/vendor/libgit2/src/blame_git.c +9 -20
  13. data/vendor/libgit2/src/checkout.c +5 -13
  14. data/vendor/libgit2/src/commit.c +132 -52
  15. data/vendor/libgit2/src/common.h +1 -1
  16. data/vendor/libgit2/src/config_cache.c +1 -2
  17. data/vendor/libgit2/src/config_file.c +20 -14
  18. data/vendor/libgit2/src/delta-apply.c +5 -36
  19. data/vendor/libgit2/src/delta-apply.h +0 -12
  20. data/vendor/libgit2/src/describe.c +1 -2
  21. data/vendor/libgit2/src/diff_tform.c +3 -5
  22. data/vendor/libgit2/src/filebuf.c +1 -6
  23. data/vendor/libgit2/src/global.c +8 -28
  24. data/vendor/libgit2/src/global.h +0 -1
  25. data/vendor/libgit2/src/ignore.c +19 -56
  26. data/vendor/libgit2/src/index.c +8 -27
  27. data/vendor/libgit2/src/indexer.c +7 -11
  28. data/vendor/libgit2/src/iterator.c +2 -2
  29. data/vendor/libgit2/src/merge.c +0 -1
  30. data/vendor/libgit2/src/mwindow.c +19 -8
  31. data/vendor/libgit2/src/mwindow.h +2 -1
  32. data/vendor/libgit2/src/object.c +6 -3
  33. data/vendor/libgit2/src/odb.c +188 -48
  34. data/vendor/libgit2/src/odb_loose.c +1 -1
  35. data/vendor/libgit2/src/odb_pack.c +3 -0
  36. data/vendor/libgit2/src/openssl_stream.c +27 -60
  37. data/vendor/libgit2/src/openssl_stream.h +0 -106
  38. data/vendor/libgit2/src/pack-objects.c +2 -4
  39. data/vendor/libgit2/src/pack.c +9 -5
  40. data/vendor/libgit2/src/posix.c +0 -7
  41. data/vendor/libgit2/src/posix.h +0 -1
  42. data/vendor/libgit2/src/push.c +6 -6
  43. data/vendor/libgit2/src/refdb_fs.c +0 -1
  44. data/vendor/libgit2/src/refs.c +0 -3
  45. data/vendor/libgit2/src/refspec.c +2 -4
  46. data/vendor/libgit2/src/remote.c +5 -15
  47. data/vendor/libgit2/src/repository.c +21 -29
  48. data/vendor/libgit2/src/settings.c +1 -23
  49. data/vendor/libgit2/src/stransport_stream.c +9 -15
  50. data/vendor/libgit2/src/submodule.c +2 -3
  51. data/vendor/libgit2/src/sysdir.c +47 -41
  52. data/vendor/libgit2/src/sysdir.h +5 -0
  53. data/vendor/libgit2/src/tag.c +2 -8
  54. data/vendor/libgit2/src/thread-utils.h +51 -5
  55. data/vendor/libgit2/src/transports/http.c +3 -3
  56. data/vendor/libgit2/src/transports/smart_pkt.c +4 -13
  57. data/vendor/libgit2/src/transports/smart_protocol.c +17 -61
  58. data/vendor/libgit2/src/tree.c +100 -83
  59. data/vendor/libgit2/src/tree.h +5 -4
  60. data/vendor/libgit2/src/unix/map.c +0 -5
  61. data/vendor/libgit2/src/util.c +3 -3
  62. data/vendor/libgit2/src/win32/map.c +5 -24
  63. data/vendor/libgit2/src/win32/precompiled.h +1 -1
  64. data/vendor/libgit2/src/win32/{thread.c → pthread.c} +80 -50
  65. data/vendor/libgit2/src/win32/pthread.h +92 -0
  66. data/vendor/libgit2/src/xdiff/xprepare.c +1 -2
  67. metadata +7 -8
  68. data/vendor/libgit2/src/unix/pthread.h +0 -54
  69. data/vendor/libgit2/src/win32/thread.h +0 -62
@@ -301,11 +301,10 @@ int xdl_prepare_env(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp,
301
301
 
302
302
  xdl_free_ctx(&xe->xdf2);
303
303
  xdl_free_ctx(&xe->xdf1);
304
- xdl_free_classifier(&cf);
305
304
  return -1;
306
305
  }
307
306
 
308
- if (XDF_DIFF_ALG(xpp->flags) != XDF_HISTOGRAM_DIFF)
307
+ if (!(xpp->flags & XDF_HISTOGRAM_DIFF))
309
308
  xdl_free_classifier(&cf);
310
309
 
311
310
  return 0;
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.24.6.1
4
+ version: 0.25.0b1
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: 2017-01-12 00:00:00.000000000 Z
12
+ date: 2016-03-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
@@ -458,7 +458,6 @@ files:
458
458
  - vendor/libgit2/src/tsort.c
459
459
  - vendor/libgit2/src/unix/map.c
460
460
  - vendor/libgit2/src/unix/posix.h
461
- - vendor/libgit2/src/unix/pthread.h
462
461
  - vendor/libgit2/src/unix/realpath.c
463
462
  - vendor/libgit2/src/userdiff.h
464
463
  - vendor/libgit2/src/util.c
@@ -481,9 +480,9 @@ files:
481
480
  - vendor/libgit2/src/win32/posix_w32.c
482
481
  - vendor/libgit2/src/win32/precompiled.c
483
482
  - vendor/libgit2/src/win32/precompiled.h
483
+ - vendor/libgit2/src/win32/pthread.c
484
+ - vendor/libgit2/src/win32/pthread.h
484
485
  - vendor/libgit2/src/win32/reparse.h
485
- - vendor/libgit2/src/win32/thread.c
486
- - vendor/libgit2/src/win32/thread.h
487
486
  - vendor/libgit2/src/win32/utf-conv.c
488
487
  - vendor/libgit2/src/win32/utf-conv.h
489
488
  - vendor/libgit2/src/win32/version.h
@@ -528,12 +527,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
528
527
  version: 1.9.3
529
528
  required_rubygems_version: !ruby/object:Gem::Requirement
530
529
  requirements:
531
- - - ">="
530
+ - - ">"
532
531
  - !ruby/object:Gem::Version
533
- version: '0'
532
+ version: 1.3.1
534
533
  requirements: []
535
534
  rubyforge_project:
536
- rubygems_version: 2.6.8
535
+ rubygems_version: 2.2.5
537
536
  signing_key:
538
537
  specification_version: 4
539
538
  summary: Rugged is a Ruby binding to the libgit2 linkable library
@@ -1,54 +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 INCLUDE_unix_pthread_h__
9
- #define INCLUDE_unix_pthread_h__
10
-
11
- typedef struct {
12
- pthread_t thread;
13
- } git_thread;
14
-
15
- #define git_threads_init() (void)0
16
- #define git_thread_create(git_thread_ptr, start_routine, arg) \
17
- pthread_create(&(git_thread_ptr)->thread, NULL, start_routine, arg)
18
- #define git_thread_join(git_thread_ptr, status) \
19
- pthread_join((git_thread_ptr)->thread, status)
20
-
21
- /* Git Mutex */
22
- #define git_mutex pthread_mutex_t
23
- #define git_mutex_init(a) pthread_mutex_init(a, NULL)
24
- #define git_mutex_lock(a) pthread_mutex_lock(a)
25
- #define git_mutex_unlock(a) pthread_mutex_unlock(a)
26
- #define git_mutex_free(a) pthread_mutex_destroy(a)
27
-
28
- /* Git condition vars */
29
- #define git_cond pthread_cond_t
30
- #define git_cond_init(c) pthread_cond_init(c, NULL)
31
- #define git_cond_free(c) pthread_cond_destroy(c)
32
- #define git_cond_wait(c, l) pthread_cond_wait(c, l)
33
- #define git_cond_signal(c) pthread_cond_signal(c)
34
- #define git_cond_broadcast(c) pthread_cond_broadcast(c)
35
-
36
- /* Pthread (-ish) rwlock
37
- *
38
- * This differs from normal pthreads rwlocks in two ways:
39
- * 1. Separate APIs for releasing read locks and write locks (as
40
- * opposed to the pure POSIX API which only has one unlock fn)
41
- * 2. You should not use recursive read locks (i.e. grabbing a read
42
- * lock in a thread that already holds a read lock) because the
43
- * Windows implementation doesn't support it
44
- */
45
- #define git_rwlock pthread_rwlock_t
46
- #define git_rwlock_init(a) pthread_rwlock_init(a, NULL)
47
- #define git_rwlock_rdlock(a) pthread_rwlock_rdlock(a)
48
- #define git_rwlock_rdunlock(a) pthread_rwlock_unlock(a)
49
- #define git_rwlock_wrlock(a) pthread_rwlock_wrlock(a)
50
- #define git_rwlock_wrunlock(a) pthread_rwlock_unlock(a)
51
- #define git_rwlock_free(a) pthread_rwlock_destroy(a)
52
- #define GIT_RWLOCK_STATIC_INIT PTHREAD_RWLOCK_INITIALIZER
53
-
54
- #endif /* INCLUDE_unix_pthread_h__ */
@@ -1,62 +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 INCLUDE_win32_thread_h__
9
- #define INCLUDE_win32_thread_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_thread;
25
-
26
- typedef CRITICAL_SECTION git_mutex;
27
- typedef HANDLE git_cond;
28
-
29
- typedef struct { void *Ptr; } GIT_SRWLOCK;
30
-
31
- typedef struct {
32
- union {
33
- GIT_SRWLOCK srwl;
34
- CRITICAL_SECTION csec;
35
- } native;
36
- } git_rwlock;
37
-
38
- int git_threads_init(void);
39
-
40
- int git_thread_create(git_thread *GIT_RESTRICT,
41
- void *(*) (void *),
42
- void *GIT_RESTRICT);
43
- int git_thread_join(git_thread *, void **);
44
-
45
- int git_mutex_init(git_mutex *GIT_RESTRICT mutex);
46
- int git_mutex_free(git_mutex *);
47
- int git_mutex_lock(git_mutex *);
48
- int git_mutex_unlock(git_mutex *);
49
-
50
- int git_cond_init(git_cond *);
51
- int git_cond_free(git_cond *);
52
- int git_cond_wait(git_cond *, git_mutex *);
53
- int git_cond_signal(git_cond *);
54
-
55
- int git_rwlock_init(git_rwlock *GIT_RESTRICT lock);
56
- int git_rwlock_rdlock(git_rwlock *);
57
- int git_rwlock_rdunlock(git_rwlock *);
58
- int git_rwlock_wrlock(git_rwlock *);
59
- int git_rwlock_wrunlock(git_rwlock *);
60
- int git_rwlock_free(git_rwlock *);
61
-
62
- #endif /* INCLUDE_win32_thread_h__ */