rugged 0.28.4 → 0.28.4.1

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 (350) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rugged/version.rb +1 -1
  3. data/vendor/libgit2/AUTHORS +0 -1
  4. data/vendor/libgit2/CMakeLists.txt +16 -36
  5. data/vendor/libgit2/COPYING +0 -28
  6. data/vendor/libgit2/cmake/Modules/EnableWarnings.cmake +1 -5
  7. data/vendor/libgit2/cmake/Modules/FindCoreFoundation.cmake +2 -2
  8. data/vendor/libgit2/cmake/Modules/FindGSSAPI.cmake +1 -1
  9. data/vendor/libgit2/cmake/Modules/FindSecurity.cmake +2 -2
  10. data/vendor/libgit2/cmake/Modules/FindStatNsec.cmake +0 -6
  11. data/vendor/libgit2/deps/http-parser/http_parser.c +6 -11
  12. data/vendor/libgit2/deps/regex/CMakeLists.txt +2 -0
  13. data/vendor/libgit2/deps/regex/COPYING +502 -0
  14. data/vendor/libgit2/deps/regex/config.h +7 -0
  15. data/vendor/libgit2/deps/regex/regcomp.c +3857 -0
  16. data/vendor/libgit2/deps/regex/regex.c +92 -0
  17. data/vendor/libgit2/deps/regex/regex.h +582 -0
  18. data/vendor/libgit2/deps/regex/regex_internal.c +1744 -0
  19. data/vendor/libgit2/deps/regex/regex_internal.h +819 -0
  20. data/vendor/libgit2/deps/regex/regexec.c +4369 -0
  21. data/vendor/libgit2/deps/zlib/adler32.c +7 -0
  22. data/vendor/libgit2/deps/zlib/crc32.c +7 -0
  23. data/vendor/libgit2/include/git2.h +0 -2
  24. data/vendor/libgit2/include/git2/apply.h +2 -22
  25. data/vendor/libgit2/include/git2/attr.h +12 -19
  26. data/vendor/libgit2/include/git2/blame.h +2 -2
  27. data/vendor/libgit2/include/git2/blob.h +12 -44
  28. data/vendor/libgit2/include/git2/buffer.h +14 -20
  29. data/vendor/libgit2/include/git2/checkout.h +14 -46
  30. data/vendor/libgit2/include/git2/cherrypick.h +3 -3
  31. data/vendor/libgit2/include/git2/clone.h +2 -2
  32. data/vendor/libgit2/include/git2/commit.h +1 -23
  33. data/vendor/libgit2/include/git2/common.h +5 -7
  34. data/vendor/libgit2/include/git2/config.h +12 -12
  35. data/vendor/libgit2/include/git2/deprecated.h +3 -243
  36. data/vendor/libgit2/include/git2/describe.h +4 -4
  37. data/vendor/libgit2/include/git2/diff.h +14 -16
  38. data/vendor/libgit2/include/git2/filter.h +0 -8
  39. data/vendor/libgit2/include/git2/index.h +1 -2
  40. data/vendor/libgit2/include/git2/indexer.h +4 -48
  41. data/vendor/libgit2/include/git2/inttypes.h +309 -0
  42. data/vendor/libgit2/include/git2/merge.h +10 -6
  43. data/vendor/libgit2/include/git2/net.h +5 -0
  44. data/vendor/libgit2/include/git2/object.h +14 -2
  45. data/vendor/libgit2/include/git2/odb.h +2 -3
  46. data/vendor/libgit2/include/git2/odb_backend.h +4 -5
  47. data/vendor/libgit2/include/git2/oid.h +1 -1
  48. data/vendor/libgit2/include/git2/pack.h +1 -12
  49. data/vendor/libgit2/include/git2/proxy.h +3 -5
  50. data/vendor/libgit2/include/git2/rebase.h +2 -46
  51. data/vendor/libgit2/include/git2/refs.h +0 -19
  52. data/vendor/libgit2/include/git2/remote.h +12 -35
  53. data/vendor/libgit2/include/git2/repository.h +2 -24
  54. data/vendor/libgit2/include/git2/revert.h +1 -1
  55. data/vendor/libgit2/include/git2/stash.h +3 -3
  56. data/vendor/libgit2/include/git2/status.h +16 -25
  57. data/vendor/libgit2/include/git2/submodule.h +3 -20
  58. data/vendor/libgit2/include/git2/sys/alloc.h +9 -9
  59. data/vendor/libgit2/include/git2/sys/odb_backend.h +4 -48
  60. data/vendor/libgit2/include/git2/sys/refdb_backend.h +21 -57
  61. data/vendor/libgit2/include/git2/sys/repository.h +1 -5
  62. data/vendor/libgit2/include/git2/sys/time.h +31 -0
  63. data/vendor/libgit2/include/git2/sys/transport.h +2 -2
  64. data/vendor/libgit2/include/git2/tag.h +2 -11
  65. data/vendor/libgit2/include/git2/trace.h +2 -2
  66. data/vendor/libgit2/include/git2/transport.h +340 -11
  67. data/vendor/libgit2/include/git2/tree.h +1 -1
  68. data/vendor/libgit2/include/git2/types.h +89 -4
  69. data/vendor/libgit2/include/git2/version.h +2 -2
  70. data/vendor/libgit2/include/git2/worktree.h +5 -5
  71. data/vendor/libgit2/libgit2.pc.in +13 -0
  72. data/vendor/libgit2/src/CMakeLists.txt +222 -88
  73. data/vendor/libgit2/src/alloc.c +14 -2
  74. data/vendor/libgit2/src/apply.c +30 -60
  75. data/vendor/libgit2/src/attr.c +64 -70
  76. data/vendor/libgit2/src/attr_file.c +96 -189
  77. data/vendor/libgit2/src/attr_file.h +9 -9
  78. data/vendor/libgit2/src/attrcache.c +46 -44
  79. data/vendor/libgit2/src/attrcache.h +1 -2
  80. data/vendor/libgit2/src/blame.c +5 -17
  81. data/vendor/libgit2/src/blame.h +1 -1
  82. data/vendor/libgit2/src/blame_git.c +7 -21
  83. data/vendor/libgit2/src/blob.c +17 -81
  84. data/vendor/libgit2/src/blob.h +2 -2
  85. data/vendor/libgit2/src/branch.c +5 -29
  86. data/vendor/libgit2/src/buffer.c +7 -14
  87. data/vendor/libgit2/src/cache.c +33 -26
  88. data/vendor/libgit2/src/cache.h +1 -1
  89. data/vendor/libgit2/src/cc-compat.h +0 -5
  90. data/vendor/libgit2/src/checkout.c +16 -26
  91. data/vendor/libgit2/src/cherrypick.c +3 -9
  92. data/vendor/libgit2/src/clone.c +7 -29
  93. data/vendor/libgit2/src/clone.h +0 -4
  94. data/vendor/libgit2/src/commit.c +21 -69
  95. data/vendor/libgit2/src/commit.h +0 -6
  96. data/vendor/libgit2/src/commit_list.c +76 -28
  97. data/vendor/libgit2/src/commit_list.h +2 -2
  98. data/vendor/libgit2/src/common.h +75 -3
  99. data/vendor/libgit2/src/config.c +40 -31
  100. data/vendor/libgit2/src/config.h +6 -7
  101. data/vendor/libgit2/src/config_backend.h +0 -12
  102. data/vendor/libgit2/src/config_cache.c +39 -39
  103. data/vendor/libgit2/src/config_entries.c +99 -69
  104. data/vendor/libgit2/src/config_entries.h +0 -1
  105. data/vendor/libgit2/src/config_file.c +380 -337
  106. data/vendor/libgit2/src/config_mem.c +16 -12
  107. data/vendor/libgit2/src/config_parse.c +29 -49
  108. data/vendor/libgit2/src/config_parse.h +12 -13
  109. data/vendor/libgit2/src/crlf.c +14 -14
  110. data/vendor/libgit2/src/describe.c +20 -21
  111. data/vendor/libgit2/src/diff.c +58 -43
  112. data/vendor/libgit2/src/diff.h +1 -2
  113. data/vendor/libgit2/src/diff_driver.c +38 -37
  114. data/vendor/libgit2/src/diff_file.c +7 -9
  115. data/vendor/libgit2/src/diff_file.h +1 -1
  116. data/vendor/libgit2/src/diff_generate.c +85 -135
  117. data/vendor/libgit2/src/diff_generate.h +2 -2
  118. data/vendor/libgit2/src/diff_parse.c +1 -1
  119. data/vendor/libgit2/src/diff_print.c +13 -25
  120. data/vendor/libgit2/src/diff_stats.c +1 -1
  121. data/vendor/libgit2/src/diff_tform.c +4 -4
  122. data/vendor/libgit2/src/errors.c +22 -12
  123. data/vendor/libgit2/src/features.h.in +2 -9
  124. data/vendor/libgit2/src/fetch.c +2 -7
  125. data/vendor/libgit2/src/fetchhead.c +1 -1
  126. data/vendor/libgit2/src/filebuf.c +10 -6
  127. data/vendor/libgit2/src/filebuf.h +2 -2
  128. data/vendor/libgit2/src/{futils.c → fileops.c} +17 -21
  129. data/vendor/libgit2/src/{futils.h → fileops.h} +5 -5
  130. data/vendor/libgit2/src/filter.c +8 -16
  131. data/vendor/libgit2/src/fnmatch.c +248 -0
  132. data/vendor/libgit2/src/fnmatch.h +48 -0
  133. data/vendor/libgit2/src/global.c +40 -12
  134. data/vendor/libgit2/src/global.h +2 -0
  135. data/vendor/libgit2/src/hash.c +0 -61
  136. data/vendor/libgit2/src/hash.h +21 -19
  137. data/vendor/libgit2/src/hash/{sha1/collisiondetect.c → hash_collisiondetect.h} +17 -14
  138. data/vendor/libgit2/src/hash/{sha1/common_crypto.c → hash_common_crypto.h} +19 -15
  139. data/vendor/libgit2/src/hash/{sha1/generic.c → hash_generic.c} +10 -22
  140. data/vendor/libgit2/src/hash/{sha1/generic.h → hash_generic.h} +14 -4
  141. data/vendor/libgit2/src/hash/{sha1/mbedtls.c → hash_mbedtls.c} +7 -15
  142. data/vendor/libgit2/src/hash/{sha1/mbedtls.h → hash_mbedtls.h} +11 -6
  143. data/vendor/libgit2/src/hash/{sha1/openssl.c → hash_openssl.h} +18 -14
  144. data/vendor/libgit2/src/hash/{sha1/win32.c → hash_win32.c} +24 -34
  145. data/vendor/libgit2/src/hash/{sha1/win32.h → hash_win32.h} +19 -6
  146. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/sha1.c +3 -14
  147. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/sha1.h +0 -0
  148. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/ubc_check.c +0 -0
  149. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/ubc_check.h +0 -0
  150. data/vendor/libgit2/src/hashsig.c +1 -1
  151. data/vendor/libgit2/src/idxmap.c +65 -91
  152. data/vendor/libgit2/src/idxmap.h +15 -151
  153. data/vendor/libgit2/src/ignore.c +38 -32
  154. data/vendor/libgit2/src/index.c +43 -66
  155. data/vendor/libgit2/src/index.h +1 -1
  156. data/vendor/libgit2/src/indexer.c +70 -69
  157. data/vendor/libgit2/src/integer.h +4 -39
  158. data/vendor/libgit2/src/iterator.c +22 -27
  159. data/vendor/libgit2/src/map.h +1 -1
  160. data/vendor/libgit2/src/merge.c +44 -58
  161. data/vendor/libgit2/src/merge_driver.c +4 -4
  162. data/vendor/libgit2/src/merge_file.c +1 -1
  163. data/vendor/libgit2/src/mwindow.c +23 -18
  164. data/vendor/libgit2/src/mwindow.h +4 -4
  165. data/vendor/libgit2/src/netops.c +165 -55
  166. data/vendor/libgit2/src/netops.h +25 -3
  167. data/vendor/libgit2/src/notes.c +2 -2
  168. data/vendor/libgit2/src/object.c +2 -2
  169. data/vendor/libgit2/src/object.h +0 -2
  170. data/vendor/libgit2/src/odb.c +23 -41
  171. data/vendor/libgit2/src/odb.h +2 -3
  172. data/vendor/libgit2/src/odb_loose.c +10 -17
  173. data/vendor/libgit2/src/odb_mempack.c +23 -10
  174. data/vendor/libgit2/src/odb_pack.c +4 -4
  175. data/vendor/libgit2/src/offmap.c +55 -43
  176. data/vendor/libgit2/src/offmap.h +24 -102
  177. data/vendor/libgit2/src/oid.c +1 -6
  178. data/vendor/libgit2/src/oidmap.c +57 -39
  179. data/vendor/libgit2/src/oidmap.h +19 -99
  180. data/vendor/libgit2/src/pack-objects.c +32 -25
  181. data/vendor/libgit2/src/pack-objects.h +1 -1
  182. data/vendor/libgit2/src/pack.c +47 -45
  183. data/vendor/libgit2/src/pack.h +14 -12
  184. data/vendor/libgit2/src/parse.c +0 -10
  185. data/vendor/libgit2/src/parse.h +3 -3
  186. data/vendor/libgit2/src/patch.c +1 -1
  187. data/vendor/libgit2/src/patch_generate.c +2 -2
  188. data/vendor/libgit2/src/patch_parse.c +31 -124
  189. data/vendor/libgit2/src/path.c +6 -43
  190. data/vendor/libgit2/src/path.h +0 -2
  191. data/vendor/libgit2/src/pathspec.c +13 -13
  192. data/vendor/libgit2/src/pool.c +22 -26
  193. data/vendor/libgit2/src/pool.h +7 -7
  194. data/vendor/libgit2/src/posix.c +7 -7
  195. data/vendor/libgit2/src/posix.h +1 -12
  196. data/vendor/libgit2/src/proxy.c +2 -7
  197. data/vendor/libgit2/src/push.c +5 -10
  198. data/vendor/libgit2/src/reader.c +2 -2
  199. data/vendor/libgit2/src/rebase.c +7 -66
  200. data/vendor/libgit2/src/refdb.c +0 -12
  201. data/vendor/libgit2/src/refdb_fs.c +165 -214
  202. data/vendor/libgit2/src/reflog.c +13 -11
  203. data/vendor/libgit2/src/refs.c +18 -24
  204. data/vendor/libgit2/src/refspec.c +16 -9
  205. data/vendor/libgit2/src/remote.c +52 -50
  206. data/vendor/libgit2/src/remote.h +2 -2
  207. data/vendor/libgit2/src/repository.c +100 -115
  208. data/vendor/libgit2/src/repository.h +40 -49
  209. data/vendor/libgit2/src/revert.c +3 -8
  210. data/vendor/libgit2/src/revparse.c +19 -18
  211. data/vendor/libgit2/src/revwalk.c +30 -63
  212. data/vendor/libgit2/src/revwalk.h +0 -20
  213. data/vendor/libgit2/src/settings.c +0 -5
  214. data/vendor/libgit2/src/sortedcache.c +26 -12
  215. data/vendor/libgit2/src/sortedcache.h +1 -1
  216. data/vendor/libgit2/src/stash.c +65 -45
  217. data/vendor/libgit2/src/status.c +9 -15
  218. data/vendor/libgit2/src/{allocators/stdalloc.c → stdalloc.c} +4 -3
  219. data/vendor/libgit2/src/{allocators/stdalloc.h → stdalloc.h} +4 -4
  220. data/vendor/libgit2/src/streams/openssl.c +0 -20
  221. data/vendor/libgit2/src/streams/socket.c +2 -2
  222. data/vendor/libgit2/src/strmap.c +84 -37
  223. data/vendor/libgit2/src/strmap.h +33 -105
  224. data/vendor/libgit2/src/submodule.c +70 -102
  225. data/vendor/libgit2/src/submodule.h +1 -1
  226. data/vendor/libgit2/src/sysdir.c +1 -11
  227. data/vendor/libgit2/src/tag.c +2 -10
  228. data/vendor/libgit2/src/trace.c +1 -1
  229. data/vendor/libgit2/src/trace.h +2 -2
  230. data/vendor/libgit2/src/trailer.c +32 -46
  231. data/vendor/libgit2/src/transaction.c +9 -10
  232. data/vendor/libgit2/src/transports/auth.c +9 -10
  233. data/vendor/libgit2/src/transports/auth.h +4 -11
  234. data/vendor/libgit2/src/transports/auth_negotiate.c +9 -23
  235. data/vendor/libgit2/src/transports/auth_negotiate.h +2 -2
  236. data/vendor/libgit2/src/transports/cred.c +6 -6
  237. data/vendor/libgit2/src/{allocators/win32_crtdbg.h → transports/cred.h} +4 -5
  238. data/vendor/libgit2/src/transports/git.c +16 -11
  239. data/vendor/libgit2/src/transports/http.c +276 -419
  240. data/vendor/libgit2/src/transports/http.h +1 -1
  241. data/vendor/libgit2/src/transports/local.c +9 -9
  242. data/vendor/libgit2/src/transports/smart.c +17 -17
  243. data/vendor/libgit2/src/transports/smart.h +2 -2
  244. data/vendor/libgit2/src/transports/smart_protocol.c +60 -36
  245. data/vendor/libgit2/src/transports/ssh.c +36 -46
  246. data/vendor/libgit2/src/transports/winhttp.c +207 -231
  247. data/vendor/libgit2/src/tree-cache.c +7 -14
  248. data/vendor/libgit2/src/tree.c +24 -10
  249. data/vendor/libgit2/src/unix/map.c +1 -1
  250. data/vendor/libgit2/src/unix/posix.h +11 -1
  251. data/vendor/libgit2/src/userdiff.h +1 -3
  252. data/vendor/libgit2/src/util.c +53 -51
  253. data/vendor/libgit2/src/util.h +21 -16
  254. data/vendor/libgit2/src/win32/map.c +5 -3
  255. data/vendor/libgit2/src/win32/path_w32.c +2 -12
  256. data/vendor/libgit2/src/win32/path_w32.h +29 -0
  257. data/vendor/libgit2/src/win32/posix.h +4 -1
  258. data/vendor/libgit2/src/win32/posix_w32.c +5 -40
  259. data/vendor/libgit2/src/win32/precompiled.h +2 -0
  260. data/vendor/libgit2/src/win32/thread.c +10 -5
  261. data/vendor/libgit2/src/win32/w32_buffer.c +3 -7
  262. data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.c +93 -0
  263. data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.h +2 -0
  264. data/vendor/libgit2/src/win32/w32_stack.c +9 -4
  265. data/vendor/libgit2/src/win32/w32_stack.h +3 -3
  266. data/vendor/libgit2/src/win32/w32_util.c +0 -31
  267. data/vendor/libgit2/src/win32/w32_util.h +32 -6
  268. data/vendor/libgit2/src/worktree.c +22 -36
  269. data/vendor/libgit2/src/xdiff/xdiffi.c +1 -1
  270. data/vendor/libgit2/src/xdiff/xmerge.c +0 -12
  271. data/vendor/libgit2/src/xdiff/xpatience.c +0 -3
  272. metadata +34 -98
  273. data/vendor/libgit2/cmake/Modules/FindGSSFramework.cmake +0 -28
  274. data/vendor/libgit2/cmake/Modules/FindPCRE.cmake +0 -38
  275. data/vendor/libgit2/cmake/Modules/FindPCRE2.cmake +0 -37
  276. data/vendor/libgit2/cmake/Modules/PkgBuildConfig.cmake +0 -110
  277. data/vendor/libgit2/cmake/Modules/SelectGSSAPI.cmake +0 -53
  278. data/vendor/libgit2/cmake/Modules/SelectHTTPSBackend.cmake +0 -124
  279. data/vendor/libgit2/cmake/Modules/SelectHashes.cmake +0 -66
  280. data/vendor/libgit2/deps/ntlmclient/CMakeLists.txt +0 -21
  281. data/vendor/libgit2/deps/ntlmclient/compat.h +0 -33
  282. data/vendor/libgit2/deps/ntlmclient/crypt.h +0 -64
  283. data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.c +0 -120
  284. data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.h +0 -18
  285. data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.c +0 -145
  286. data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.h +0 -18
  287. data/vendor/libgit2/deps/ntlmclient/crypt_openssl.c +0 -130
  288. data/vendor/libgit2/deps/ntlmclient/crypt_openssl.h +0 -21
  289. data/vendor/libgit2/deps/ntlmclient/ntlm.c +0 -1420
  290. data/vendor/libgit2/deps/ntlmclient/ntlm.h +0 -174
  291. data/vendor/libgit2/deps/ntlmclient/ntlmclient.h +0 -320
  292. data/vendor/libgit2/deps/ntlmclient/unicode.h +0 -36
  293. data/vendor/libgit2/deps/ntlmclient/unicode_builtin.c +0 -445
  294. data/vendor/libgit2/deps/ntlmclient/unicode_iconv.c +0 -201
  295. data/vendor/libgit2/deps/ntlmclient/utf8.h +0 -1257
  296. data/vendor/libgit2/deps/ntlmclient/util.c +0 -21
  297. data/vendor/libgit2/deps/ntlmclient/util.h +0 -14
  298. data/vendor/libgit2/deps/pcre/CMakeLists.txt +0 -140
  299. data/vendor/libgit2/deps/pcre/COPYING +0 -5
  300. data/vendor/libgit2/deps/pcre/cmake/COPYING-CMAKE-SCRIPTS +0 -22
  301. data/vendor/libgit2/deps/pcre/cmake/FindEditline.cmake +0 -17
  302. data/vendor/libgit2/deps/pcre/cmake/FindPackageHandleStandardArgs.cmake +0 -58
  303. data/vendor/libgit2/deps/pcre/cmake/FindReadline.cmake +0 -29
  304. data/vendor/libgit2/deps/pcre/config.h.in +0 -57
  305. data/vendor/libgit2/deps/pcre/pcre.h +0 -641
  306. data/vendor/libgit2/deps/pcre/pcre_byte_order.c +0 -319
  307. data/vendor/libgit2/deps/pcre/pcre_chartables.c +0 -198
  308. data/vendor/libgit2/deps/pcre/pcre_compile.c +0 -9800
  309. data/vendor/libgit2/deps/pcre/pcre_config.c +0 -190
  310. data/vendor/libgit2/deps/pcre/pcre_dfa_exec.c +0 -3676
  311. data/vendor/libgit2/deps/pcre/pcre_exec.c +0 -7173
  312. data/vendor/libgit2/deps/pcre/pcre_fullinfo.c +0 -245
  313. data/vendor/libgit2/deps/pcre/pcre_get.c +0 -669
  314. data/vendor/libgit2/deps/pcre/pcre_globals.c +0 -86
  315. data/vendor/libgit2/deps/pcre/pcre_internal.h +0 -2787
  316. data/vendor/libgit2/deps/pcre/pcre_jit_compile.c +0 -11913
  317. data/vendor/libgit2/deps/pcre/pcre_maketables.c +0 -156
  318. data/vendor/libgit2/deps/pcre/pcre_newline.c +0 -210
  319. data/vendor/libgit2/deps/pcre/pcre_ord2utf8.c +0 -94
  320. data/vendor/libgit2/deps/pcre/pcre_printint.c +0 -834
  321. data/vendor/libgit2/deps/pcre/pcre_refcount.c +0 -92
  322. data/vendor/libgit2/deps/pcre/pcre_string_utils.c +0 -211
  323. data/vendor/libgit2/deps/pcre/pcre_study.c +0 -1686
  324. data/vendor/libgit2/deps/pcre/pcre_tables.c +0 -727
  325. data/vendor/libgit2/deps/pcre/pcre_ucd.c +0 -3644
  326. data/vendor/libgit2/deps/pcre/pcre_valid_utf8.c +0 -301
  327. data/vendor/libgit2/deps/pcre/pcre_version.c +0 -98
  328. data/vendor/libgit2/deps/pcre/pcre_xclass.c +0 -268
  329. data/vendor/libgit2/deps/pcre/pcreposix.c +0 -421
  330. data/vendor/libgit2/deps/pcre/pcreposix.h +0 -117
  331. data/vendor/libgit2/deps/pcre/ucp.h +0 -224
  332. data/vendor/libgit2/include/git2/cert.h +0 -135
  333. data/vendor/libgit2/include/git2/cred.h +0 -308
  334. data/vendor/libgit2/include/git2/sys/cred.h +0 -90
  335. data/vendor/libgit2/src/allocators/win32_crtdbg.c +0 -118
  336. data/vendor/libgit2/src/config_snapshot.c +0 -206
  337. data/vendor/libgit2/src/errors.h +0 -81
  338. data/vendor/libgit2/src/hash/sha1.h +0 -38
  339. data/vendor/libgit2/src/hash/sha1/collisiondetect.h +0 -19
  340. data/vendor/libgit2/src/hash/sha1/common_crypto.h +0 -19
  341. data/vendor/libgit2/src/hash/sha1/openssl.h +0 -19
  342. data/vendor/libgit2/src/net.c +0 -184
  343. data/vendor/libgit2/src/net.h +0 -36
  344. data/vendor/libgit2/src/regexp.c +0 -221
  345. data/vendor/libgit2/src/regexp.h +0 -97
  346. data/vendor/libgit2/src/transports/auth_ntlm.c +0 -223
  347. data/vendor/libgit2/src/transports/auth_ntlm.h +0 -35
  348. data/vendor/libgit2/src/wildmatch.c +0 -320
  349. data/vendor/libgit2/src/wildmatch.h +0 -23
  350. data/vendor/libgit2/src/win32/w32_common.h +0 -39
@@ -323,7 +323,7 @@ typedef struct {
323
323
  * @param version The struct version; pass `GIT_REPOSITORY_INIT_OPTIONS_VERSION`.
324
324
  * @return Zero on success; -1 on failure.
325
325
  */
326
- GIT_EXTERN(int) git_repository_init_options_init(
326
+ GIT_EXTERN(int) git_repository_init_init_options(
327
327
  git_repository_init_options *opts,
328
328
  unsigned int version);
329
329
 
@@ -438,8 +438,7 @@ typedef enum {
438
438
  GIT_REPOSITORY_ITEM_HOOKS,
439
439
  GIT_REPOSITORY_ITEM_LOGS,
440
440
  GIT_REPOSITORY_ITEM_MODULES,
441
- GIT_REPOSITORY_ITEM_WORKTREES,
442
- GIT_REPOSITORY_ITEM__LAST
441
+ GIT_REPOSITORY_ITEM_WORKTREES
443
442
  } git_repository_item_t;
444
443
 
445
444
  /**
@@ -641,18 +640,6 @@ GIT_EXTERN(int) git_repository_message_remove(git_repository *repo);
641
640
  */
642
641
  GIT_EXTERN(int) git_repository_state_cleanup(git_repository *repo);
643
642
 
644
- /**
645
- * Callback used to iterate over each FETCH_HEAD entry
646
- *
647
- * @see git_repository_fetchhead_foreach
648
- *
649
- * @param ref_name The reference name
650
- * @param remote_url The remote URL
651
- * @param oid The reference target OID
652
- * @param is_merge Was the reference the result of a merge
653
- * @param payload Payload passed to git_repository_fetchhead_foreach
654
- * @return non-zero to terminate the iteration
655
- */
656
643
  typedef int GIT_CALLBACK(git_repository_fetchhead_foreach_cb)(const char *ref_name,
657
644
  const char *remote_url,
658
645
  const git_oid *oid,
@@ -675,15 +662,6 @@ GIT_EXTERN(int) git_repository_fetchhead_foreach(
675
662
  git_repository_fetchhead_foreach_cb callback,
676
663
  void *payload);
677
664
 
678
- /**
679
- * Callback used to iterate over each MERGE_HEAD entry
680
- *
681
- * @see git_repository_mergehead_foreach
682
- *
683
- * @param oid The merge OID
684
- * @param payload Payload passed to git_repository_mergehead_foreach
685
- * @return non-zero to terminate the iteration
686
- */
687
665
  typedef int GIT_CALLBACK(git_repository_mergehead_foreach_cb)(const git_oid *oid,
688
666
  void *payload);
689
667
 
@@ -46,7 +46,7 @@ typedef struct {
46
46
  * @param version The struct version; pass `GIT_REVERT_OPTIONS_VERSION`.
47
47
  * @return Zero on success; -1 on failure.
48
48
  */
49
- GIT_EXTERN(int) git_revert_options_init(
49
+ GIT_EXTERN(int) git_revert_init_options(
50
50
  git_revert_options *opts,
51
51
  unsigned int version);
52
52
 
@@ -120,14 +120,14 @@ typedef int GIT_CALLBACK(git_stash_apply_progress_cb)(
120
120
  * Stash application options structure
121
121
  *
122
122
  * Initialize with `GIT_STASH_APPLY_OPTIONS_INIT`. Alternatively, you can
123
- * use `git_stash_apply_options_init`.
123
+ * use `git_stash_apply_init_options`.
124
124
  *
125
125
  */
126
126
  typedef struct git_stash_apply_options {
127
127
  unsigned int version;
128
128
 
129
129
  /** See `git_stash_apply_flags_t`, above. */
130
- uint32_t flags;
130
+ git_stash_apply_flags flags;
131
131
 
132
132
  /** Options to use when writing files to the working directory. */
133
133
  git_checkout_options checkout_options;
@@ -153,7 +153,7 @@ typedef struct git_stash_apply_options {
153
153
  * @param version The struct version; pass `GIT_STASH_APPLY_OPTIONS_VERSION`.
154
154
  * @return Zero on success; -1 on failure.
155
155
  */
156
- GIT_EXTERN(int) git_stash_apply_options_init(
156
+ GIT_EXTERN(int) git_stash_apply_init_options(
157
157
  git_stash_apply_options *opts, unsigned int version);
158
158
 
159
159
  /**
@@ -163,36 +163,27 @@ typedef enum {
163
163
  /**
164
164
  * Options to control how `git_status_foreach_ext()` will issue callbacks.
165
165
  *
166
- * Initialize with `GIT_STATUS_OPTIONS_INIT`. Alternatively, you can
167
- * use `git_status_options_init`.
166
+ * This structure is set so that zeroing it out will give you relatively
167
+ * sane defaults.
168
168
  *
169
+ * The `show` value is one of the `git_status_show_t` constants that
170
+ * control which files to scan and in what order.
171
+ *
172
+ * The `flags` value is an OR'ed combination of the `git_status_opt_t`
173
+ * values above.
174
+ *
175
+ * The `pathspec` is an array of path patterns to match (using
176
+ * fnmatch-style matching), or just an array of paths to match exactly if
177
+ * `GIT_STATUS_OPT_DISABLE_PATHSPEC_MATCH` is specified in the flags.
178
+ *
179
+ * The `baseline` is the tree to be used for comparison to the working directory
180
+ * and index; defaults to HEAD.
169
181
  */
170
182
  typedef struct {
171
- unsigned int version; /**< The version */
172
-
173
- /**
174
- * The `show` value is one of the `git_status_show_t` constants that
175
- * control which files to scan and in what order.
176
- */
183
+ unsigned int version;
177
184
  git_status_show_t show;
178
-
179
- /**
180
- * The `flags` value is an OR'ed combination of the `git_status_opt_t`
181
- * values above.
182
- */
183
185
  unsigned int flags;
184
-
185
- /**
186
- * The `pathspec` is an array of path patterns to match (using
187
- * fnmatch-style matching), or just an array of paths to match exactly if
188
- * `GIT_STATUS_OPT_DISABLE_PATHSPEC_MATCH` is specified in the flags.
189
- */
190
186
  git_strarray pathspec;
191
-
192
- /**
193
- * The `baseline` is the tree to be used for comparison to the working directory
194
- * and index; defaults to HEAD.
195
- */
196
187
  git_tree *baseline;
197
188
  } git_status_options;
198
189
 
@@ -209,7 +200,7 @@ typedef struct {
209
200
  * @param version The struct version; pass `GIT_STATUS_OPTIONS_VERSION`.
210
201
  * @return Zero on success; -1 on failure.
211
202
  */
212
- GIT_EXTERN(int) git_status_options_init(
203
+ GIT_EXTERN(int) git_status_init_options(
213
204
  git_status_options *opts,
214
205
  unsigned int version);
215
206
 
@@ -122,7 +122,7 @@ typedef int GIT_CALLBACK(git_submodule_cb)(
122
122
  * Submodule update options structure
123
123
  *
124
124
  * Initialize with `GIT_SUBMODULE_UPDATE_OPTIONS_INIT`. Alternatively, you can
125
- * use `git_submodule_update_options_init`.
125
+ * use `git_submodule_update_init_options`.
126
126
  *
127
127
  */
128
128
  typedef struct git_submodule_update_options {
@@ -168,7 +168,7 @@ typedef struct git_submodule_update_options {
168
168
  * @param version The struct version; pass `GIT_SUBMODULE_UPDATE_OPTIONS_VERSION`.
169
169
  * @return Zero on success; -1 on failure.
170
170
  */
171
- GIT_EXTERN(int) git_submodule_update_options_init(
171
+ GIT_EXTERN(int) git_submodule_update_init_options(
172
172
  git_submodule_update_options *opts, unsigned int version);
173
173
 
174
174
  /**
@@ -263,8 +263,7 @@ GIT_EXTERN(int) git_submodule_foreach(
263
263
  * from the working directory to the new repo.
264
264
  *
265
265
  * To fully emulate "git submodule add" call this function, then open the
266
- * submodule repo and perform the clone step as needed (if you don't need
267
- * anything custom see `git_submodule_add_clone()`). Lastly, call
266
+ * submodule repo and perform the clone step as needed. Lastly, call
268
267
  * `git_submodule_add_finalize()` to wrap up adding the new submodule and
269
268
  * .gitmodules to the index to be ready to commit.
270
269
  *
@@ -286,22 +285,6 @@ GIT_EXTERN(int) git_submodule_add_setup(
286
285
  const char *path,
287
286
  int use_gitlink);
288
287
 
289
- /**
290
- * Perform the clone step for a newly created submodule.
291
- *
292
- * This performs the necessary `git_clone` to setup a newly-created submodule.
293
- *
294
- * @param out The newly created repository object. Optional.
295
- * @param submodule The submodule currently waiting for its clone.
296
- * @param opts The options to use.
297
- *
298
- * @return 0 on success, -1 on other errors (see git_clone).
299
- */
300
- GIT_EXTERN(int) git_submodule_clone(
301
- git_repository **out,
302
- git_submodule *submodule,
303
- const git_submodule_update_options *opts);
304
-
305
288
  /**
306
289
  * Resolve the setup of a new git submodule.
307
290
  *
@@ -21,51 +21,51 @@ GIT_BEGIN_DECL
21
21
  * that all fields need to be set to a proper function.
22
22
  */
23
23
  typedef struct {
24
- /** Allocate `n` bytes of memory */
24
+ /* Allocate `n` bytes of memory */
25
25
  void * GIT_CALLBACK(gmalloc)(size_t n, const char *file, int line);
26
26
 
27
- /**
27
+ /*
28
28
  * Allocate memory for an array of `nelem` elements, where each element
29
29
  * has a size of `elsize`. Returned memory shall be initialized to
30
30
  * all-zeroes
31
31
  */
32
32
  void * GIT_CALLBACK(gcalloc)(size_t nelem, size_t elsize, const char *file, int line);
33
33
 
34
- /** Allocate memory for the string `str` and duplicate its contents. */
34
+ /* Allocate memory for the string `str` and duplicate its contents. */
35
35
  char * GIT_CALLBACK(gstrdup)(const char *str, const char *file, int line);
36
36
 
37
- /**
37
+ /*
38
38
  * Equivalent to the `gstrdup` function, but only duplicating at most
39
39
  * `n + 1` bytes
40
40
  */
41
41
  char * GIT_CALLBACK(gstrndup)(const char *str, size_t n, const char *file, int line);
42
42
 
43
- /**
43
+ /*
44
44
  * Equivalent to `gstrndup`, but will always duplicate exactly `n` bytes
45
45
  * of `str`. Thus, out of bounds reads at `str` may happen.
46
46
  */
47
47
  char * GIT_CALLBACK(gsubstrdup)(const char *str, size_t n, const char *file, int line);
48
48
 
49
- /**
49
+ /*
50
50
  * This function shall deallocate the old object `ptr` and return a
51
51
  * pointer to a new object that has the size specified by `size`. In
52
52
  * case `ptr` is `NULL`, a new array shall be allocated.
53
53
  */
54
54
  void * GIT_CALLBACK(grealloc)(void *ptr, size_t size, const char *file, int line);
55
55
 
56
- /**
56
+ /*
57
57
  * This function shall be equivalent to `grealloc`, but allocating
58
58
  * `neleme * elsize` bytes.
59
59
  */
60
60
  void * GIT_CALLBACK(greallocarray)(void *ptr, size_t nelem, size_t elsize, const char *file, int line);
61
61
 
62
- /**
62
+ /*
63
63
  * This function shall allocate a new array of `nelem` elements, where
64
64
  * each element has a size of `elsize` bytes.
65
65
  */
66
66
  void * GIT_CALLBACK(gmallocarray)(size_t nelem, size_t elsize, const char *file, int line);
67
67
 
68
- /**
68
+ /*
69
69
  * This function shall free the memory pointed to by `ptr`. In case
70
70
  * `ptr` is `NULL`, this shall be a no-op.
71
71
  */
@@ -30,8 +30,8 @@ struct git_odb_backend {
30
30
 
31
31
  /* read and read_prefix each return to libgit2 a buffer which
32
32
  * will be freed later. The buffer should be allocated using
33
- * the function git_odb_backend_data_alloc to ensure that libgit2
34
- * can safely free it later. */
33
+ * the function git_odb_backend_malloc to ensure that it can
34
+ * be safely freed later. */
35
35
  int GIT_CALLBACK(read)(
36
36
  void **, size_t *, git_object_t *, git_odb_backend *, const git_oid *);
37
37
 
@@ -53,7 +53,7 @@ struct git_odb_backend {
53
53
  git_odb_backend *, const git_oid *, const void *, size_t, git_object_t);
54
54
 
55
55
  int GIT_CALLBACK(writestream)(
56
- git_odb_stream **, git_odb_backend *, git_object_size_t, git_object_t);
56
+ git_odb_stream **, git_odb_backend *, git_off_t, git_object_t);
57
57
 
58
58
  int GIT_CALLBACK(readstream)(
59
59
  git_odb_stream **, size_t *, git_object_t *,
@@ -82,7 +82,7 @@ struct git_odb_backend {
82
82
 
83
83
  int GIT_CALLBACK(writepack)(
84
84
  git_odb_writepack **, git_odb_backend *, git_odb *odb,
85
- git_indexer_progress_cb progress_cb, void *progress_payload);
85
+ git_transfer_progress_cb progress_cb, void *progress_payload);
86
86
 
87
87
  /**
88
88
  * "Freshens" an already existing object, updating its last-used
@@ -117,52 +117,8 @@ GIT_EXTERN(int) git_odb_init_backend(
117
117
  git_odb_backend *backend,
118
118
  unsigned int version);
119
119
 
120
- /**
121
- * Allocate data for an ODB object. Custom ODB backends may use this
122
- * to provide data back to the ODB from their read function. This
123
- * memory should not be freed once it is returned to libgit2. If a
124
- * custom ODB uses this function but encounters an error and does not
125
- * return this data to libgit2, then they should use the corresponding
126
- * git_odb_backend_data_free function.
127
- *
128
- * @param backend the ODB backend that is allocating this memory
129
- * @param len the number of bytes to allocate
130
- * @return the allocated buffer on success or NULL if out of memory
131
- */
132
- GIT_EXTERN(void *) git_odb_backend_data_alloc(git_odb_backend *backend, size_t len);
133
-
134
- /**
135
- * Frees custom allocated ODB data. This should only be called when
136
- * memory allocated using git_odb_backend_data_alloc is not returned
137
- * to libgit2 because the backend encountered an error in the read
138
- * function after allocation and did not return this data to libgit2.
139
- *
140
- * @param backend the ODB backend that is freeing this memory
141
- * @param data the buffer to free
142
- */
143
- GIT_EXTERN(void) git_odb_backend_data_free(git_odb_backend *backend, void *data);
144
-
145
-
146
- /*
147
- * Users can avoid deprecated functions by defining `GIT_DEPRECATE_HARD`.
148
- */
149
- #ifndef GIT_DEPRECATE_HARD
150
-
151
- /**
152
- * Allocate memory for an ODB object from a custom backend. This is
153
- * an alias of `git_odb_backend_data_alloc` and is preserved for
154
- * backward compatibility.
155
- *
156
- * This function is deprecated, but there is no plan to remove this
157
- * function at this time.
158
- *
159
- * @deprecated git_odb_backend_data_alloc
160
- * @see git_odb_backend_data_alloc
161
- */
162
120
  GIT_EXTERN(void *) git_odb_backend_malloc(git_odb_backend *backend, size_t len);
163
121
 
164
- #endif
165
-
166
122
  GIT_END_DECL
167
123
 
168
124
  #endif
@@ -58,12 +58,11 @@ struct git_reference_iterator {
58
58
 
59
59
  /** An instance for a custom backend */
60
60
  struct git_refdb_backend {
61
- unsigned int version; /**< The backend API version */
61
+ unsigned int version;
62
62
 
63
63
  /**
64
- * Queries the refdb backend for the existence of a reference.
65
- *
66
- * A refdb implementation must provide this function.
64
+ * Queries the refdb backend to determine if the given ref_name
65
+ * exists. A refdb implementation must provide this function.
67
66
  */
68
67
  int GIT_CALLBACK(exists)(
69
68
  int *exists,
@@ -71,9 +70,8 @@ struct git_refdb_backend {
71
70
  const char *ref_name);
72
71
 
73
72
  /**
74
- * Queries the refdb backend for a given reference.
75
- *
76
- * A refdb implementation must provide this function.
73
+ * Queries the refdb backend for a given reference. A refdb
74
+ * implementation must provide this function.
77
75
  */
78
76
  int GIT_CALLBACK(lookup)(
79
77
  git_reference **out,
@@ -90,116 +88,82 @@ struct git_refdb_backend {
90
88
  struct git_refdb_backend *backend,
91
89
  const char *glob);
92
90
 
93
- /**
94
- * Writes the given reference to the refdb.
95
- *
96
- * A refdb implementation must provide this function.
91
+ /*
92
+ * Writes the given reference to the refdb. A refdb implementation
93
+ * must provide this function.
97
94
  */
98
95
  int GIT_CALLBACK(write)(git_refdb_backend *backend,
99
96
  const git_reference *ref, int force,
100
97
  const git_signature *who, const char *message,
101
98
  const git_oid *old, const char *old_target);
102
99
 
103
- /**
104
- * Rename a reference in the refdb.
105
- *
106
- * A refdb implementation must provide this function.
107
- */
108
100
  int GIT_CALLBACK(rename)(
109
101
  git_reference **out, git_refdb_backend *backend,
110
102
  const char *old_name, const char *new_name, int force,
111
103
  const git_signature *who, const char *message);
112
104
 
113
105
  /**
114
- * Deletes the given reference from the refdb.
115
- *
116
- * If it exists, its reflog should be deleted as well.
117
- *
118
- * A refdb implementation must provide this function.
106
+ * Deletes the given reference (and if necessary its reflog)
107
+ * from the refdb. A refdb implementation must provide this
108
+ * function.
119
109
  */
120
110
  int GIT_CALLBACK(del)(git_refdb_backend *backend, const char *ref_name, const git_oid *old_id, const char *old_target);
121
111
 
122
112
  /**
123
113
  * Suggests that the given refdb compress or optimize its references.
124
- *
125
- * This mechanism is implementation specific. For on-disk reference
126
- * databases, this may pack all loose references.
127
- *
128
- * A refdb implementation may provide this function; if it is not
129
- * provided, nothing will be done.
114
+ * This mechanism is implementation specific. (For on-disk reference
115
+ * databases, this may pack all loose references.) A refdb
116
+ * implementation may provide this function; if it is not provided,
117
+ * nothing will be done.
130
118
  */
131
119
  int GIT_CALLBACK(compress)(git_refdb_backend *backend);
132
120
 
133
121
  /**
134
122
  * Query whether a particular reference has a log (may be empty)
135
- *
136
- * A refdb implementation must provide this function.
137
123
  */
138
124
  int GIT_CALLBACK(has_log)(git_refdb_backend *backend, const char *refname);
139
125
 
140
126
  /**
141
127
  * Make sure a particular reference will have a reflog which
142
128
  * will be appended to on writes.
143
- *
144
- * A refdb implementation must provide this function.
145
129
  */
146
130
  int GIT_CALLBACK(ensure_log)(git_refdb_backend *backend, const char *refname);
147
131
 
148
132
  /**
149
133
  * Frees any resources held by the refdb (including the `git_refdb_backend`
150
- * itself).
151
- *
152
- * A refdb backend implementation must provide this function.
134
+ * itself). A refdb backend implementation must provide this function.
153
135
  */
154
136
  void GIT_CALLBACK(free)(git_refdb_backend *backend);
155
137
 
156
138
  /**
157
139
  * Read the reflog for the given reference name.
158
- *
159
- * A refdb implementation must provide this function.
160
140
  */
161
141
  int GIT_CALLBACK(reflog_read)(git_reflog **out, git_refdb_backend *backend, const char *name);
162
142
 
163
143
  /**
164
144
  * Write a reflog to disk.
165
- *
166
- * A refdb implementation must provide this function.
167
145
  */
168
146
  int GIT_CALLBACK(reflog_write)(git_refdb_backend *backend, git_reflog *reflog);
169
147
 
170
148
  /**
171
- * Rename a reflog.
172
- *
173
- * A refdb implementation must provide this function.
149
+ * Rename a reflog
174
150
  */
175
151
  int GIT_CALLBACK(reflog_rename)(git_refdb_backend *_backend, const char *old_name, const char *new_name);
176
152
 
177
153
  /**
178
154
  * Remove a reflog.
179
- *
180
- * A refdb implementation must provide this function.
181
155
  */
182
156
  int GIT_CALLBACK(reflog_delete)(git_refdb_backend *backend, const char *name);
183
157
 
184
158
  /**
185
- * Lock a reference.
186
- *
187
- * The opaque parameter will be passed to the unlock function.
188
- *
189
- * A refdb implementation may provide this function; if it is not
190
- * provided, the transaction API will fail to work.
159
+ * Lock a reference. The opaque parameter will be passed to the unlock function
191
160
  */
192
161
  int GIT_CALLBACK(lock)(void **payload_out, git_refdb_backend *backend, const char *refname);
193
162
 
194
163
  /**
195
- * Unlock a reference.
196
- *
197
- * Only one of target or symbolic_target will be set.
198
- * `success` will be true if the reference should be update, false if
199
- * the lock must be discarded.
200
- *
201
- * A refdb implementation must provide this function if a `lock`
202
- * implementation is provided.
164
+ * Unlock a reference. Only one of target or symbolic_target
165
+ * will be set. success indicates whether to update the
166
+ * reference or discard the lock (if it's false)
203
167
  */
204
168
  int GIT_CALLBACK(unlock)(git_refdb_backend *backend, void *payload, int success, int update_reflog,
205
169
  const git_reference *ref, const git_signature *sig, const char *message);