rugged 0.23.3 → 0.24.0b0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/ext/rugged/rugged.c +24 -0
  4. data/ext/rugged/rugged_config.c +65 -0
  5. data/ext/rugged/rugged_remote.c +22 -2
  6. data/ext/rugged/rugged_repo.c +10 -5
  7. data/ext/rugged/rugged_tree.c +4 -1
  8. data/lib/rugged/version.rb +1 -1
  9. data/vendor/libgit2/CMakeLists.txt +47 -2
  10. data/vendor/libgit2/include/git2/config.h +18 -0
  11. data/vendor/libgit2/include/git2/diff.h +25 -2
  12. data/vendor/libgit2/include/git2/errors.h +0 -12
  13. data/vendor/libgit2/include/git2/index.h +11 -0
  14. data/vendor/libgit2/include/git2/remote.h +12 -1
  15. data/vendor/libgit2/include/git2/sys/config.h +14 -0
  16. data/vendor/libgit2/include/git2/sys/filter.h +4 -1
  17. data/vendor/libgit2/include/git2/sys/odb_backend.h +4 -0
  18. data/vendor/libgit2/include/git2/sys/refdb_backend.h +5 -4
  19. data/vendor/libgit2/include/git2/sys/transport.h +27 -0
  20. data/vendor/libgit2/include/git2/transport.h +25 -21
  21. data/vendor/libgit2/include/git2/version.h +2 -2
  22. data/vendor/libgit2/libgit2.pc.in +3 -2
  23. data/vendor/libgit2/src/branch.c +1 -12
  24. data/vendor/libgit2/src/checkout.c +29 -20
  25. data/vendor/libgit2/src/clone.c +2 -2
  26. data/vendor/libgit2/src/common.h +13 -4
  27. data/vendor/libgit2/src/config.c +36 -0
  28. data/vendor/libgit2/src/config.h +15 -0
  29. data/vendor/libgit2/src/config_file.c +124 -20
  30. data/vendor/libgit2/src/config_file.h +10 -0
  31. data/vendor/libgit2/src/curl_stream.c +7 -7
  32. data/vendor/libgit2/src/diff.c +89 -27
  33. data/vendor/libgit2/src/diff_print.c +1 -1
  34. data/vendor/libgit2/src/errors.c +75 -40
  35. data/vendor/libgit2/src/filebuf.c +81 -3
  36. data/vendor/libgit2/src/fileops.c +176 -75
  37. data/vendor/libgit2/src/fileops.h +7 -10
  38. data/vendor/libgit2/src/filter.c +5 -2
  39. data/vendor/libgit2/src/global.c +25 -9
  40. data/vendor/libgit2/src/global.h +1 -0
  41. data/vendor/libgit2/src/idxmap.h +92 -0
  42. data/vendor/libgit2/src/ignore.c +9 -7
  43. data/vendor/libgit2/src/index.c +246 -46
  44. data/vendor/libgit2/src/index.h +2 -0
  45. data/vendor/libgit2/src/iterator.c +377 -118
  46. data/vendor/libgit2/src/iterator.h +28 -20
  47. data/vendor/libgit2/src/merge.c +26 -13
  48. data/vendor/libgit2/src/notes.c +1 -1
  49. data/vendor/libgit2/src/odb.c +1 -2
  50. data/vendor/libgit2/src/odb_loose.c +2 -2
  51. data/vendor/libgit2/src/odb_mempack.c +6 -2
  52. data/vendor/libgit2/src/oidmap.h +2 -0
  53. data/vendor/libgit2/src/openssl_stream.c +9 -3
  54. data/vendor/libgit2/src/path.c +37 -2
  55. data/vendor/libgit2/src/path.h +12 -1
  56. data/vendor/libgit2/src/pathspec.c +12 -12
  57. data/vendor/libgit2/src/push.c +2 -1
  58. data/vendor/libgit2/src/push.h +1 -0
  59. data/vendor/libgit2/src/refdb.c +2 -6
  60. data/vendor/libgit2/src/refdb_fs.c +13 -3
  61. data/vendor/libgit2/src/remote.c +44 -15
  62. data/vendor/libgit2/src/repository.c +28 -12
  63. data/vendor/libgit2/src/stash.c +17 -12
  64. data/vendor/libgit2/src/stransport_stream.c +1 -1
  65. data/vendor/libgit2/src/submodule.c +234 -152
  66. data/vendor/libgit2/src/sysdir.c +22 -8
  67. data/vendor/libgit2/src/transaction.c +41 -0
  68. data/vendor/libgit2/src/transaction.h +14 -0
  69. data/vendor/libgit2/src/transports/cred.c +8 -0
  70. data/vendor/libgit2/src/transports/http.c +6 -0
  71. data/vendor/libgit2/src/transports/smart.c +95 -0
  72. data/vendor/libgit2/src/transports/smart.h +1 -0
  73. data/vendor/libgit2/src/transports/smart_pkt.c +9 -2
  74. data/vendor/libgit2/src/transports/ssh.c +5 -3
  75. data/vendor/libgit2/src/transports/winhttp.c +19 -1
  76. data/vendor/libgit2/src/unix/posix.h +14 -1
  77. data/vendor/libgit2/src/util.c +56 -13
  78. data/vendor/libgit2/src/util.h +13 -5
  79. data/vendor/libgit2/src/win32/path_w32.c +15 -8
  80. data/vendor/libgit2/src/win32/posix_w32.c +11 -2
  81. data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.c +343 -0
  82. data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.h +93 -0
  83. data/vendor/libgit2/src/win32/w32_stack.c +192 -0
  84. data/vendor/libgit2/src/win32/w32_stack.h +138 -0
  85. data/vendor/libgit2/src/win32/w32_util.c +29 -5
  86. data/vendor/libgit2/src/win32/w32_util.h +13 -3
  87. metadata +11 -5
@@ -40,12 +40,22 @@ GIT_INLINE(bool) git_win32__isalpha(wchar_t c)
40
40
  bool git_win32__findfirstfile_filter(git_win32_path dest, const char *src);
41
41
 
42
42
  /**
43
- * Ensures the given path (file or folder) has the +H (hidden) attribute set.
43
+ * Ensures the given path (file or folder) has the +H (hidden) attribute set
44
+ * or unset.
44
45
  *
45
- * @param path The path which should receive the +H bit.
46
+ * @param path The path that should receive the +H bit.
47
+ * @param hidden true to set +H, false to unset it
46
48
  * @return 0 on success; -1 on failure
47
49
  */
48
- int git_win32__sethidden(const char *path);
50
+ extern int git_win32__set_hidden(const char *path, bool hidden);
51
+
52
+ /**
53
+ * Determines if the given file or folder has the hidden attribute set.
54
+ * @param hidden pointer to store hidden value
55
+ * @param path The path that should be queried for hiddenness.
56
+ * @return 0 on success or an error code.
57
+ */
58
+ extern int git_win32__hidden(bool *hidden, const char *path);
49
59
 
50
60
  /**
51
61
  * Removes any trailing backslashes from a path, except in the case of a drive
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.23.3
4
+ version: 0.24.0b0
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: 2015-10-07 00:00:00.000000000 Z
12
+ date: 2015-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
@@ -325,6 +325,7 @@ files:
325
325
  - vendor/libgit2/src/hash/hash_win32.h
326
326
  - vendor/libgit2/src/hashsig.c
327
327
  - vendor/libgit2/src/ident.c
328
+ - vendor/libgit2/src/idxmap.h
328
329
  - vendor/libgit2/src/ignore.c
329
330
  - vendor/libgit2/src/ignore.h
330
331
  - vendor/libgit2/src/index.c
@@ -430,6 +431,7 @@ files:
430
431
  - vendor/libgit2/src/trace.c
431
432
  - vendor/libgit2/src/trace.h
432
433
  - vendor/libgit2/src/transaction.c
434
+ - vendor/libgit2/src/transaction.h
433
435
  - vendor/libgit2/src/transport.c
434
436
  - vendor/libgit2/src/transports/auth.c
435
437
  - vendor/libgit2/src/transports/auth.h
@@ -484,6 +486,10 @@ files:
484
486
  - vendor/libgit2/src/win32/version.h
485
487
  - vendor/libgit2/src/win32/w32_buffer.c
486
488
  - vendor/libgit2/src/win32/w32_buffer.h
489
+ - vendor/libgit2/src/win32/w32_crtdbg_stacktrace.c
490
+ - vendor/libgit2/src/win32/w32_crtdbg_stacktrace.h
491
+ - vendor/libgit2/src/win32/w32_stack.c
492
+ - vendor/libgit2/src/win32/w32_stack.h
487
493
  - vendor/libgit2/src/win32/w32_util.c
488
494
  - vendor/libgit2/src/win32/w32_util.h
489
495
  - vendor/libgit2/src/xdiff/xdiff.h
@@ -518,12 +524,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
518
524
  version: 1.9.3
519
525
  required_rubygems_version: !ruby/object:Gem::Requirement
520
526
  requirements:
521
- - - ">="
527
+ - - ">"
522
528
  - !ruby/object:Gem::Version
523
- version: '0'
529
+ version: 1.3.1
524
530
  requirements: []
525
531
  rubyforge_project:
526
- rubygems_version: 2.2.2
532
+ rubygems_version: 2.2.5
527
533
  signing_key:
528
534
  specification_version: 4
529
535
  summary: Rugged is a Ruby binding to the libgit2 linkable library