rugged 0.26.0b3 → 0.26.0b4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/ext/rugged/extconf.rb +10 -7
  4. data/ext/rugged/rugged.c +4 -6
  5. data/ext/rugged/rugged_repo.c +1 -1
  6. data/ext/rugged/rugged_revwalk.c +4 -4
  7. data/ext/rugged/rugged_tree.c +2 -2
  8. data/lib/rugged/version.rb +1 -1
  9. data/vendor/libgit2/CMakeLists.txt +13 -6
  10. data/vendor/libgit2/COPYING +33 -0
  11. data/vendor/libgit2/include/git2/branch.h +12 -0
  12. data/vendor/libgit2/include/git2/commit.h +6 -3
  13. data/vendor/libgit2/include/git2/common.h +11 -0
  14. data/vendor/libgit2/include/git2/errors.h +2 -0
  15. data/vendor/libgit2/include/git2/index.h +7 -6
  16. data/vendor/libgit2/include/git2/repository.h +91 -0
  17. data/vendor/libgit2/include/git2/stash.h +2 -2
  18. data/vendor/libgit2/include/git2/types.h +3 -0
  19. data/vendor/libgit2/include/git2/worktree.h +161 -0
  20. data/vendor/libgit2/src/attr.c +24 -16
  21. data/vendor/libgit2/src/attr_file.h +1 -1
  22. data/vendor/libgit2/src/attrcache.c +11 -10
  23. data/vendor/libgit2/src/attrcache.h +1 -4
  24. data/vendor/libgit2/src/blob.c +2 -2
  25. data/vendor/libgit2/src/branch.c +63 -0
  26. data/vendor/libgit2/src/buffer.h +2 -1
  27. data/vendor/libgit2/src/cache.c +21 -25
  28. data/vendor/libgit2/src/cache.h +1 -1
  29. data/vendor/libgit2/src/checkout.c +0 -2
  30. data/vendor/libgit2/src/cherrypick.c +2 -2
  31. data/vendor/libgit2/src/clone.c +2 -3
  32. data/vendor/libgit2/src/commit.c +8 -4
  33. data/vendor/libgit2/src/config_file.c +1 -3
  34. data/vendor/libgit2/src/describe.c +1 -3
  35. data/vendor/libgit2/src/diff_driver.c +2 -4
  36. data/vendor/libgit2/src/fetchhead.c +2 -2
  37. data/vendor/libgit2/src/fileops.c +1 -3
  38. data/vendor/libgit2/src/hash.h +5 -3
  39. data/vendor/libgit2/src/hash/hash_collisiondetect.h +57 -0
  40. data/vendor/libgit2/src/hash/sha1dc/sha1.c +1149 -0
  41. data/vendor/libgit2/src/hash/sha1dc/sha1.h +94 -0
  42. data/vendor/libgit2/src/hash/sha1dc/ubc_check.c +361 -0
  43. data/vendor/libgit2/src/hash/sha1dc/ubc_check.h +35 -0
  44. data/vendor/libgit2/src/idxmap.c +133 -0
  45. data/vendor/libgit2/src/idxmap.h +22 -60
  46. data/vendor/libgit2/src/ignore.c +7 -1
  47. data/vendor/libgit2/src/ignore.h +1 -1
  48. data/vendor/libgit2/src/index.c +11 -14
  49. data/vendor/libgit2/src/indexer.c +8 -11
  50. data/vendor/libgit2/src/merge.c +5 -5
  51. data/vendor/libgit2/src/mwindow.c +1 -3
  52. data/vendor/libgit2/src/odb.c +3 -3
  53. data/vendor/libgit2/src/odb.h +3 -0
  54. data/vendor/libgit2/src/odb_mempack.c +11 -18
  55. data/vendor/libgit2/src/offmap.c +83 -0
  56. data/vendor/libgit2/src/offmap.h +14 -34
  57. data/vendor/libgit2/src/oidmap.c +105 -0
  58. data/vendor/libgit2/src/oidmap.h +19 -22
  59. data/vendor/libgit2/src/pack-objects.c +10 -13
  60. data/vendor/libgit2/src/pack.c +17 -26
  61. data/vendor/libgit2/src/path.c +45 -24
  62. data/vendor/libgit2/src/rebase.c +3 -3
  63. data/vendor/libgit2/src/refdb_fs.c +81 -46
  64. data/vendor/libgit2/src/refs.c +13 -3
  65. data/vendor/libgit2/src/remote.c +6 -2
  66. data/vendor/libgit2/src/repository.c +318 -46
  67. data/vendor/libgit2/src/repository.h +5 -2
  68. data/vendor/libgit2/src/revert.c +2 -2
  69. data/vendor/libgit2/src/revwalk.c +6 -8
  70. data/vendor/libgit2/src/settings.c +5 -0
  71. data/vendor/libgit2/src/sortedcache.c +3 -5
  72. data/vendor/libgit2/src/strmap.c +95 -0
  73. data/vendor/libgit2/src/strmap.h +17 -37
  74. data/vendor/libgit2/src/submodule.c +12 -8
  75. data/vendor/libgit2/src/thread-utils.h +6 -0
  76. data/vendor/libgit2/src/transaction.c +5 -17
  77. data/vendor/libgit2/src/transports/local.c +2 -1
  78. data/vendor/libgit2/src/transports/smart.h +2 -0
  79. data/vendor/libgit2/src/transports/smart_protocol.c +3 -1
  80. data/vendor/libgit2/src/tree.c +2 -4
  81. data/vendor/libgit2/src/unix/posix.h +1 -1
  82. data/vendor/libgit2/src/worktree.c +432 -0
  83. data/vendor/libgit2/src/worktree.h +35 -0
  84. metadata +13 -2
@@ -0,0 +1,35 @@
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
+ #ifndef INCLUDE_worktree_h__
8
+ #define INCLUDE_worktree_h__
9
+
10
+ #include "git2/common.h"
11
+ #include "git2/worktree.h"
12
+
13
+ struct git_worktree {
14
+ /* Name of the working tree. This is the name of the
15
+ * containing directory in the `$PARENT/.git/worktrees/`
16
+ * directory. */
17
+ char *name;
18
+
19
+ /* Path to the .git file in the working tree's repository */
20
+ char *gitlink_path;
21
+ /* Path to the .git directory inside the parent's
22
+ * worktrees directory */
23
+ char *gitdir_path;
24
+ /* Path to the common directory contained in the parent
25
+ * repository */
26
+ char *commondir_path;
27
+ /* Path to the parent's .git directory */
28
+ char *parent_path;
29
+
30
+ int locked:1;
31
+ };
32
+
33
+ char *git_worktree__read_link(const char *base, const char *file);
34
+
35
+ #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.26.0b3
4
+ version: 0.26.0b4
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-02-10 00:00:00.000000000 Z
12
+ date: 2017-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
@@ -202,6 +202,7 @@ files:
202
202
  - vendor/libgit2/include/git2/tree.h
203
203
  - vendor/libgit2/include/git2/types.h
204
204
  - vendor/libgit2/include/git2/version.h
205
+ - vendor/libgit2/include/git2/worktree.h
205
206
  - vendor/libgit2/include/git2.h
206
207
  - vendor/libgit2/src/annotated_commit.c
207
208
  - vendor/libgit2/src/annotated_commit.h
@@ -284,16 +285,22 @@ files:
284
285
  - vendor/libgit2/src/global.c
285
286
  - vendor/libgit2/src/global.h
286
287
  - vendor/libgit2/src/graph.c
288
+ - vendor/libgit2/src/hash/hash_collisiondetect.h
287
289
  - vendor/libgit2/src/hash/hash_common_crypto.h
288
290
  - vendor/libgit2/src/hash/hash_generic.c
289
291
  - vendor/libgit2/src/hash/hash_generic.h
290
292
  - vendor/libgit2/src/hash/hash_openssl.h
291
293
  - vendor/libgit2/src/hash/hash_win32.c
292
294
  - vendor/libgit2/src/hash/hash_win32.h
295
+ - vendor/libgit2/src/hash/sha1dc/sha1.c
296
+ - vendor/libgit2/src/hash/sha1dc/sha1.h
297
+ - vendor/libgit2/src/hash/sha1dc/ubc_check.c
298
+ - vendor/libgit2/src/hash/sha1dc/ubc_check.h
293
299
  - vendor/libgit2/src/hash.c
294
300
  - vendor/libgit2/src/hash.h
295
301
  - vendor/libgit2/src/hashsig.c
296
302
  - vendor/libgit2/src/ident.c
303
+ - vendor/libgit2/src/idxmap.c
297
304
  - vendor/libgit2/src/idxmap.h
298
305
  - vendor/libgit2/src/ignore.c
299
306
  - vendor/libgit2/src/ignore.h
@@ -326,11 +333,13 @@ files:
326
333
  - vendor/libgit2/src/odb_loose.c
327
334
  - vendor/libgit2/src/odb_mempack.c
328
335
  - vendor/libgit2/src/odb_pack.c
336
+ - vendor/libgit2/src/offmap.c
329
337
  - vendor/libgit2/src/offmap.h
330
338
  - vendor/libgit2/src/oid.c
331
339
  - vendor/libgit2/src/oid.h
332
340
  - vendor/libgit2/src/oidarray.c
333
341
  - vendor/libgit2/src/oidarray.h
342
+ - vendor/libgit2/src/oidmap.c
334
343
  - vendor/libgit2/src/oidmap.h
335
344
  - vendor/libgit2/src/openssl_stream.c
336
345
  - vendor/libgit2/src/openssl_stream.h
@@ -476,6 +485,8 @@ files:
476
485
  - vendor/libgit2/src/win32/w32_util.c
477
486
  - vendor/libgit2/src/win32/w32_util.h
478
487
  - vendor/libgit2/src/win32/win32-compat.h
488
+ - vendor/libgit2/src/worktree.c
489
+ - vendor/libgit2/src/worktree.h
479
490
  - vendor/libgit2/src/xdiff/xdiff.h
480
491
  - vendor/libgit2/src/xdiff/xdiffi.c
481
492
  - vendor/libgit2/src/xdiff/xdiffi.h