rugged 0.28.4 → 0.28.4.1

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -46,7 +46,7 @@ typedef struct {
46
46
  * @param version The struct version; pass `GIT_CHERRYPICK_OPTIONS_VERSION`.
47
47
  * @return Zero on success; -1 on failure.
48
48
  */
49
- GIT_EXTERN(int) git_cherrypick_options_init(
49
+ GIT_EXTERN(int) git_cherrypick_init_options(
50
50
  git_cherrypick_options *opts,
51
51
  unsigned int version);
52
52
 
@@ -59,8 +59,8 @@ GIT_EXTERN(int) git_cherrypick_options_init(
59
59
  * @param out pointer to store the index result in
60
60
  * @param repo the repository that contains the given commits
61
61
  * @param cherrypick_commit the commit to cherry-pick
62
- * @param our_commit the commit to cherry-pick against (eg, HEAD)
63
- * @param mainline the parent of the `cherrypick_commit`, if it is a merge
62
+ * @param our_commit the commit to revert against (eg, HEAD)
63
+ * @param mainline the parent of the revert commit, if it is a merge
64
64
  * @param merge_options the merge options (or null for defaults)
65
65
  * @return zero on success, -1 on failure.
66
66
  */
@@ -97,7 +97,7 @@ typedef int GIT_CALLBACK(git_repository_create_cb)(
97
97
  * Clone options structure
98
98
  *
99
99
  * Initialize with `GIT_CLONE_OPTIONS_INIT`. Alternatively, you can
100
- * use `git_clone_options_init`.
100
+ * use `git_clone_init_options`.
101
101
  *
102
102
  */
103
103
  typedef struct git_clone_options {
@@ -178,7 +178,7 @@ typedef struct git_clone_options {
178
178
  * @param version The struct version; pass `GIT_CLONE_OPTIONS_VERSION`.
179
179
  * @return Zero on success; -1 on failure.
180
180
  */
181
- GIT_EXTERN(int) git_clone_options_init(
181
+ GIT_EXTERN(int) git_clone_init_options(
182
182
  git_clone_options *opts,
183
183
  unsigned int version);
184
184
 
@@ -480,8 +480,7 @@ GIT_EXTERN(int) git_commit_create_buffer(
480
480
  *
481
481
  * @param out the resulting commit id
482
482
  * @param commit_content the content of the unsigned commit object
483
- * @param signature the signature to add to the commit. Leave `NULL`
484
- * to create a commit without adding a signature field.
483
+ * @param signature the signature to add to the commit
485
484
  * @param signature_field which header field should contain this
486
485
  * signature. Leave `NULL` for the default of "gpgsig"
487
486
  * @return 0 or an error code
@@ -502,27 +501,6 @@ GIT_EXTERN(int) git_commit_create_with_signature(
502
501
  */
503
502
  GIT_EXTERN(int) git_commit_dup(git_commit **out, git_commit *source);
504
503
 
505
- /**
506
- * Commit signing callback.
507
- *
508
- * The callback will be called with the commit content, giving a user an
509
- * opportunity to sign the commit content. The signature_field
510
- * buf may be left empty to specify the default field "gpgsig".
511
- *
512
- * Signatures can take the form of any string, and can be created on an arbitrary
513
- * header field. Signatures are most commonly used for verifying authorship of a
514
- * commit using GPG or a similar cryptographically secure signing algorithm.
515
- * See https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work for more
516
- * details.
517
- *
518
- * When the callback:
519
- * - returns GIT_PASSTHROUGH, no signature will be added to the commit.
520
- * - returns < 0, commit creation will be aborted.
521
- * - returns GIT_OK, the signature parameter is expected to be filled.
522
- */
523
- typedef int (*git_commit_signing_cb)(
524
- git_buf *signature, git_buf *signature_field, const char *commit_content, void *payload);
525
-
526
504
  /** @} */
527
505
  GIT_END_DECL
528
506
  #endif
@@ -21,7 +21,10 @@
21
21
  #endif
22
22
 
23
23
  #if defined(_MSC_VER) && _MSC_VER < 1800
24
- # include <stdint.h>
24
+ GIT_BEGIN_DECL
25
+ # include "inttypes.h"
26
+ GIT_END_DECL
27
+ /** This check is needed for importing this file in an iOS/OS X framework throws an error in Xcode otherwise.*/
25
28
  #elif !defined(__CLANG_INTTYPES_H)
26
29
  # include <inttypes.h>
27
30
  #endif
@@ -202,8 +205,7 @@ typedef enum {
202
205
  GIT_OPT_SET_ALLOCATOR,
203
206
  GIT_OPT_ENABLE_UNSAVED_INDEX_SAFETY,
204
207
  GIT_OPT_GET_PACK_MAX_OBJECTS,
205
- GIT_OPT_SET_PACK_MAX_OBJECTS,
206
- GIT_OPT_DISABLE_PACK_KEEP_FILE_CHECKS
208
+ GIT_OPT_SET_PACK_MAX_OBJECTS
207
209
  } git_libgit2_opt_t;
208
210
 
209
211
  /**
@@ -393,10 +395,6 @@ typedef enum {
393
395
  * > Set the maximum number of objects libgit2 will allow in a pack
394
396
  * > file when downloading a pack file from a remote.
395
397
  *
396
- * opts(GIT_OPT_DISABLE_PACK_KEEP_FILE_CHECKS, int enabled)
397
- * > This will cause .keep file existence checks to be skipped when
398
- * > accessing packfiles, which can help performance with remote filesystems.
399
- *
400
398
  * @param option Option key
401
399
  * @param ... value to set the option
402
400
  * @return 0 on success, <0 on failure
@@ -92,20 +92,20 @@ typedef struct git_config_iterator git_config_iterator;
92
92
  * Config var type
93
93
  */
94
94
  typedef enum {
95
- GIT_CONFIGMAP_FALSE = 0,
96
- GIT_CONFIGMAP_TRUE = 1,
97
- GIT_CONFIGMAP_INT32,
98
- GIT_CONFIGMAP_STRING
99
- } git_configmap_t;
95
+ GIT_CVAR_FALSE = 0,
96
+ GIT_CVAR_TRUE = 1,
97
+ GIT_CVAR_INT32,
98
+ GIT_CVAR_STRING
99
+ } git_cvar_t;
100
100
 
101
101
  /**
102
102
  * Mapping from config variables to values.
103
103
  */
104
104
  typedef struct {
105
- git_configmap_t type;
105
+ git_cvar_t cvar_type;
106
106
  const char *str_match;
107
107
  int map_value;
108
- } git_configmap;
108
+ } git_cvar_map;
109
109
 
110
110
  /**
111
111
  * Locate the path to the global configuration file
@@ -623,7 +623,7 @@ GIT_EXTERN(int) git_config_foreach_match(
623
623
  *
624
624
  * A mapping array looks as follows:
625
625
  *
626
- * git_configmap autocrlf_mapping[] = {
626
+ * git_cvar_map autocrlf_mapping[] = {
627
627
  * {GIT_CVAR_FALSE, NULL, GIT_AUTO_CRLF_FALSE},
628
628
  * {GIT_CVAR_TRUE, NULL, GIT_AUTO_CRLF_TRUE},
629
629
  * {GIT_CVAR_STRING, "input", GIT_AUTO_CRLF_INPUT},
@@ -644,7 +644,7 @@ GIT_EXTERN(int) git_config_foreach_match(
644
644
  * @param out place to store the result of the mapping
645
645
  * @param cfg config file to get the variables from
646
646
  * @param name name of the config variable to lookup
647
- * @param maps array of `git_configmap` objects specifying the possible mappings
647
+ * @param maps array of `git_cvar_map` objects specifying the possible mappings
648
648
  * @param map_n number of mapping objects in `maps`
649
649
  * @return 0 on success, error code otherwise
650
650
  */
@@ -652,20 +652,20 @@ GIT_EXTERN(int) git_config_get_mapped(
652
652
  int *out,
653
653
  const git_config *cfg,
654
654
  const char *name,
655
- const git_configmap *maps,
655
+ const git_cvar_map *maps,
656
656
  size_t map_n);
657
657
 
658
658
  /**
659
659
  * Maps a string value to an integer constant
660
660
  *
661
661
  * @param out place to store the result of the parsing
662
- * @param maps array of `git_configmap` objects specifying the possible mappings
662
+ * @param maps array of `git_cvar_map` objects specifying the possible mappings
663
663
  * @param map_n number of mapping objects in `maps`
664
664
  * @param value value to parse
665
665
  */
666
666
  GIT_EXTERN(int) git_config_lookup_map_value(
667
667
  int *out,
668
- const git_configmap *maps,
668
+ const git_cvar_map *maps,
669
669
  size_t map_n,
670
670
  const char *value);
671
671
 
@@ -7,32 +7,12 @@
7
7
  #ifndef INCLUDE_git_deprecated_h__
8
8
  #define INCLUDE_git_deprecated_h__
9
9
 
10
- #include "attr.h"
11
- #include "config.h"
12
10
  #include "common.h"
13
- #include "blame.h"
14
11
  #include "buffer.h"
15
- #include "checkout.h"
16
- #include "cherrypick.h"
17
- #include "clone.h"
18
- #include "describe.h"
19
- #include "diff.h"
20
12
  #include "errors.h"
21
13
  #include "index.h"
22
- #include "indexer.h"
23
- #include "merge.h"
24
14
  #include "object.h"
25
- #include "proxy.h"
26
15
  #include "refs.h"
27
- #include "rebase.h"
28
- #include "remote.h"
29
- #include "trace.h"
30
- #include "repository.h"
31
- #include "revert.h"
32
- #include "stash.h"
33
- #include "status.h"
34
- #include "submodule.h"
35
- #include "worktree.h"
36
16
 
37
17
  /*
38
18
  * Users can avoid deprecated functions by defining `GIT_DEPRECATE_HARD`.
@@ -47,61 +27,6 @@
47
27
  */
48
28
  GIT_BEGIN_DECL
49
29
 
50
- /** @name Deprecated Attribute Constants
51
- *
52
- * These enumeration values are retained for backward compatibility.
53
- * The newer versions of these functions should be preferred in all
54
- * new code.
55
- *
56
- * There is no plan to remove these backward compatibility values at
57
- * this time.
58
- */
59
- /**@{*/
60
-
61
- #define GIT_ATTR_UNSPECIFIED_T GIT_ATTR_VALUE_UNSPECIFIED
62
- #define GIT_ATTR_TRUE_T GIT_ATTR_VALUE_TRUE
63
- #define GIT_ATTR_FALSE_T GIT_ATTR_VALUE_FALSE
64
- #define GIT_ATTR_VALUE_T GIT_ATTR_VALUE_STRING
65
-
66
- #define GIT_ATTR_TRUE(attr) GIT_ATTR_IS_TRUE(attr)
67
- #define GIT_ATTR_FALSE(attr) GIT_ATTR_IS_FALSE(attr)
68
- #define GIT_ATTR_UNSPECIFIED(attr) GIT_ATTR_IS_UNSPECIFIED(attr)
69
-
70
- typedef git_attr_value_t git_attr_t;
71
-
72
- /**@}*/
73
-
74
- /** @name Deprecated Blob Functions
75
- *
76
- * These functions are retained for backward compatibility. The newer
77
- * versions of these functions should be preferred in all new code.
78
- *
79
- * There is no plan to remove these backward compatibility values at
80
- * this time.
81
- */
82
- /**@{*/
83
-
84
- GIT_EXTERN(int) git_blob_create_fromworkdir(git_oid *id, git_repository *repo, const char *relative_path);
85
- GIT_EXTERN(int) git_blob_create_fromdisk(git_oid *id, git_repository *repo, const char *path);
86
- GIT_EXTERN(int) git_blob_create_fromstream(
87
- git_writestream **out,
88
- git_repository *repo,
89
- const char *hintpath);
90
- GIT_EXTERN(int) git_blob_create_fromstream_commit(
91
- git_oid *out,
92
- git_writestream *stream);
93
- GIT_EXTERN(int) git_blob_create_frombuffer(
94
- git_oid *id, git_repository *repo, const void *buffer, size_t len);
95
-
96
- /** Deprecated in favor of @see git_blob_filter */
97
- GIT_EXTERN(int) git_blob_filtered_content(
98
- git_buf *out,
99
- git_blob *blob,
100
- const char *as_path,
101
- int check_for_binary_data);
102
-
103
- /**@}*/
104
-
105
30
  /** @name Deprecated Buffer Functions
106
31
  *
107
32
  * These functions and enumeration values are retained for backward
@@ -127,19 +52,6 @@ GIT_EXTERN(void) git_buf_free(git_buf *buffer);
127
52
 
128
53
  /**@}*/
129
54
 
130
- /** @name Deprecated Config Functions and Constants
131
- */
132
- /**@{*/
133
-
134
- #define GIT_CVAR_FALSE GIT_CONFIGMAP_FALSE
135
- #define GIT_CVAR_TRUE GIT_CONFIGMAP_TRUE
136
- #define GIT_CVAR_INT32 GIT_CONFIGMAP_INT32
137
- #define GIT_CVAR_STRING GIT_CONFIGMAP_STRING
138
-
139
- typedef git_configmap git_cvar_map;
140
-
141
- /**@}*/
142
-
143
55
  /** @name Deprecated Error Functions and Constants
144
56
  *
145
57
  * These functions and enumeration values are retained for backward
@@ -237,11 +149,10 @@ GIT_EXTERN(void) giterr_set_oom(void);
237
149
 
238
150
  /**@}*/
239
151
 
240
- /** @name Deprecated Index Functions and Constants
152
+ /** @name Deprecated Index Constants
241
153
  *
242
- * These functions and enumeration values are retained for backward
243
- * compatibility. The newer versions of these values should be
244
- * preferred in all new code.
154
+ * These enumeration values are retained for backward compatibility.
155
+ * The newer versions of these values should be preferred in all new code.
245
156
  *
246
157
  * There is no plan to remove these backward compatibility values at
247
158
  * this time.
@@ -281,11 +192,6 @@ GIT_EXTERN(void) giterr_set_oom(void);
281
192
  #define GIT_INDEXCAP_NO_SYMLINKS GIT_INDEX_CAPABILITY_NO_SYMLINKS
282
193
  #define GIT_INDEXCAP_FROM_OWNER GIT_INDEX_CAPABILITY_FROM_OWNER
283
194
 
284
- GIT_EXTERN(int) git_index_add_frombuffer(
285
- git_index *index,
286
- const git_index_entry *entry,
287
- const void *buffer, size_t len);
288
-
289
195
  /**@}*/
290
196
 
291
197
  /** @name Deprecated Object Constants
@@ -311,20 +217,6 @@ GIT_EXTERN(int) git_index_add_frombuffer(
311
217
  #define GIT_OBJ_OFS_DELTA GIT_OBJECT_OFS_DELTA
312
218
  #define GIT_OBJ_REF_DELTA GIT_OBJECT_REF_DELTA
313
219
 
314
- /**
315
- * Get the size in bytes for the structure which
316
- * acts as an in-memory representation of any given
317
- * object type.
318
- *
319
- * For all the core types, this would the equivalent
320
- * of calling `sizeof(git_commit)` if the core types
321
- * were not opaque on the external API.
322
- *
323
- * @param type object type to get its size
324
- * @return size in bytes of the object
325
- */
326
- GIT_EXTERN(size_t) git_object__size(git_object_t type);
327
-
328
220
  /**@}*/
329
221
 
330
222
  /** @name Deprecated Reference Constants
@@ -351,138 +243,6 @@ GIT_EXTERN(size_t) git_object__size(git_object_t type);
351
243
  #define GIT_REF_FORMAT_REFSPEC_PATTERN GIT_REFERENCE_FORMAT_REFSPEC_PATTERN
352
244
  #define GIT_REF_FORMAT_REFSPEC_SHORTHAND GIT_REFERENCE_FORMAT_REFSPEC_SHORTHAND
353
245
 
354
- GIT_EXTERN(int) git_tag_create_frombuffer(
355
- git_oid *oid,
356
- git_repository *repo,
357
- const char *buffer,
358
- int force);
359
-
360
- /**@}*/
361
-
362
- /** @name Deprecated Credential Callback Types
363
- *
364
- * These types are retained for backward compatibility. The newer
365
- * versions of these values should be preferred in all new code.
366
- *
367
- * There is no plan to remove these backward compatibility values at
368
- * this time.
369
- */
370
-
371
- typedef git_cred_sign_cb git_cred_sign_callback;
372
- typedef git_cred_ssh_interactive_cb git_cred_ssh_interactive_callback;
373
-
374
- /**@}*/
375
-
376
- /** @name Deprecated Trace Callback Types
377
- *
378
- * These types are retained for backward compatibility. The newer
379
- * versions of these values should be preferred in all new code.
380
- *
381
- * There is no plan to remove these backward compatibility values at
382
- * this time.
383
- */
384
- /**@{*/
385
-
386
- typedef git_trace_cb git_trace_callback;
387
-
388
- /**@}*/
389
-
390
- /** @name Deprecated Object ID Types
391
- *
392
- * These types are retained for backward compatibility. The newer
393
- * versions of these values should be preferred in all new code.
394
- *
395
- * There is no plan to remove these backward compatibility values at
396
- * this time.
397
- */
398
- /**@{*/
399
-
400
- GIT_EXTERN(int) git_oid_iszero(const git_oid *id);
401
-
402
- /**@}*/
403
-
404
- /** @name Deprecated Transfer Progress Types
405
- *
406
- * These types are retained for backward compatibility. The newer
407
- * versions of these values should be preferred in all new code.
408
- *
409
- * There is no plan to remove these backward compatibility values at
410
- * this time.
411
- */
412
- /**@{*/
413
-
414
- /**
415
- * This structure is used to provide callers information about the
416
- * progress of indexing a packfile.
417
- *
418
- * This type is deprecated, but there is no plan to remove this
419
- * type definition at this time.
420
- */
421
- typedef git_indexer_progress git_transfer_progress;
422
-
423
- /**
424
- * Type definition for progress callbacks during indexing.
425
- *
426
- * This type is deprecated, but there is no plan to remove this
427
- * type definition at this time.
428
- */
429
- typedef git_indexer_progress_cb git_transfer_progress_cb;
430
-
431
- /**
432
- * Type definition for push transfer progress callbacks.
433
- *
434
- * This type is deprecated, but there is no plan to remove this
435
- * type definition at this time.
436
- */
437
- typedef git_push_transfer_progress_cb git_push_transfer_progress;
438
-
439
- /** The type of a remote completion event */
440
- #define git_remote_completion_type git_remote_completion_t
441
-
442
- /**
443
- * Callback for listing the remote heads
444
- */
445
- typedef int GIT_CALLBACK(git_headlist_cb)(git_remote_head *rhead, void *payload);
446
-
447
- /**@}*/
448
-
449
- /** @name Deprecated Options Initialization Functions
450
- *
451
- * These functions are retained for backward compatibility. The newer
452
- * versions of these functions should be preferred in all new code.
453
- *
454
- * There is no plan to remove these backward compatibility functions at
455
- * this time.
456
- */
457
- /**@{*/
458
-
459
- GIT_EXTERN(int) git_blame_init_options(git_blame_options *opts, unsigned int version);
460
- GIT_EXTERN(int) git_checkout_init_options(git_checkout_options *opts, unsigned int version);
461
- GIT_EXTERN(int) git_cherrypick_init_options(git_cherrypick_options *opts, unsigned int version);
462
- GIT_EXTERN(int) git_clone_init_options(git_clone_options *opts, unsigned int version);
463
- GIT_EXTERN(int) git_describe_init_options(git_describe_options *opts, unsigned int version);
464
- GIT_EXTERN(int) git_describe_init_format_options(git_describe_format_options *opts, unsigned int version);
465
- GIT_EXTERN(int) git_diff_init_options(git_diff_options *opts, unsigned int version);
466
- GIT_EXTERN(int) git_diff_find_init_options(git_diff_find_options *opts, unsigned int version);
467
- GIT_EXTERN(int) git_diff_format_email_init_options(git_diff_format_email_options *opts, unsigned int version);
468
- GIT_EXTERN(int) git_diff_patchid_init_options(git_diff_patchid_options *opts, unsigned int version);
469
- GIT_EXTERN(int) git_fetch_init_options(git_fetch_options *opts, unsigned int version);
470
- GIT_EXTERN(int) git_indexer_init_options(git_indexer_options *opts, unsigned int version);
471
- GIT_EXTERN(int) git_merge_init_options(git_merge_options *opts, unsigned int version);
472
- GIT_EXTERN(int) git_merge_file_init_input(git_merge_file_input *input, unsigned int version);
473
- GIT_EXTERN(int) git_merge_file_init_options(git_merge_file_options *opts, unsigned int version);
474
- GIT_EXTERN(int) git_proxy_init_options(git_proxy_options *opts, unsigned int version);
475
- GIT_EXTERN(int) git_push_init_options(git_push_options *opts, unsigned int version);
476
- GIT_EXTERN(int) git_rebase_init_options(git_rebase_options *opts, unsigned int version);
477
- GIT_EXTERN(int) git_remote_create_init_options(git_remote_create_options *opts, unsigned int version);
478
- GIT_EXTERN(int) git_repository_init_init_options(git_repository_init_options *opts, unsigned int version);
479
- GIT_EXTERN(int) git_revert_init_options(git_revert_options *opts, unsigned int version);
480
- GIT_EXTERN(int) git_stash_apply_init_options(git_stash_apply_options *opts, unsigned int version);
481
- GIT_EXTERN(int) git_status_init_options(git_status_options *opts, unsigned int version);
482
- GIT_EXTERN(int) git_submodule_update_init_options(git_submodule_update_options *opts, unsigned int version);
483
- GIT_EXTERN(int) git_worktree_add_init_options(git_worktree_add_options *opts, unsigned int version);
484
- GIT_EXTERN(int) git_worktree_prune_init_options(git_worktree_prune_options *opts, unsigned int version);
485
-
486
246
  /**@}*/
487
247
 
488
248
  /** @} */