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
@@ -78,24 +78,20 @@ static int read_variable_cb(
78
78
  static int config_memory_open(git_config_backend *backend, git_config_level_t level, const git_repository *repo)
79
79
  {
80
80
  config_memory_backend *memory_backend = (config_memory_backend *) backend;
81
- git_config_parser parser = GIT_PARSE_CTX_INIT;
82
81
  config_memory_parse_data parse_data;
83
- int error;
82
+ git_config_parser reader;
84
83
 
85
84
  GIT_UNUSED(repo);
86
85
 
87
- if ((error = git_config_parser_init(&parser, "in-memory", memory_backend->cfg.ptr,
88
- memory_backend->cfg.size)) < 0)
89
- goto out;
86
+ if (memory_backend->cfg.size == 0)
87
+ return 0;
88
+
89
+ git_parse_ctx_init(&reader.ctx, memory_backend->cfg.ptr, memory_backend->cfg.size);
90
+ reader.file = NULL;
90
91
  parse_data.entries = memory_backend->entries;
91
92
  parse_data.level = level;
92
93
 
93
- if ((error = git_config_parse(&parser, NULL, read_variable_cb, NULL, NULL, &parse_data)) < 0)
94
- goto out;
95
-
96
- out:
97
- git_config_parser_dispose(&parser);
98
- return error;
94
+ return git_config_parse(&reader, NULL, read_variable_cb, NULL, NULL, &parse_data);
99
95
  }
100
96
 
101
97
  static int config_memory_get(git_config_backend *backend, const char *key, git_config_entry **out)
@@ -170,6 +166,14 @@ static int config_memory_unlock(git_config_backend *backend, int success)
170
166
  return config_error_readonly();
171
167
  }
172
168
 
169
+ static int config_memory_snapshot(git_config_backend **out, git_config_backend *backend)
170
+ {
171
+ GIT_UNUSED(out);
172
+ GIT_UNUSED(backend);
173
+ git_error_set(GIT_ERROR_CONFIG, "this backend does not support snapshots");
174
+ return -1;
175
+ }
176
+
173
177
  static void config_memory_free(git_config_backend *_backend)
174
178
  {
175
179
  config_memory_backend *backend = (config_memory_backend *)_backend;
@@ -211,7 +215,7 @@ int git_config_backend_from_string(git_config_backend **out, const char *cfg, si
211
215
  backend->parent.iterator = config_memory_iterator;
212
216
  backend->parent.lock = config_memory_lock;
213
217
  backend->parent.unlock = config_memory_unlock;
214
- backend->parent.snapshot = git_config_backend_snapshot;
218
+ backend->parent.snapshot = config_memory_snapshot;
215
219
  backend->parent.free = config_memory_free;
216
220
 
217
221
  *out = (git_config_backend *)backend;
@@ -16,14 +16,9 @@ const char *git_config_escaped = "\n\t\b\"\\";
16
16
 
17
17
  static void set_parse_error(git_config_parser *reader, int col, const char *error_str)
18
18
  {
19
- if (col)
20
- git_error_set(GIT_ERROR_CONFIG,
21
- "failed to parse config file: %s (in %s:%"PRIuZ", column %d)",
22
- error_str, reader->path, reader->ctx.line_num, col);
23
- else
24
- git_error_set(GIT_ERROR_CONFIG,
25
- "failed to parse config file: %s (in %s:%"PRIuZ")",
26
- error_str, reader->path, reader->ctx.line_num);
19
+ const char *file = reader->file ? reader->file->path : "in-memory";
20
+ git_error_set(GIT_ERROR_CONFIG, "failed to parse config file: %s (in %s:%"PRIuZ", column %d)",
21
+ error_str, file, reader->ctx.line_num, col);
27
22
  }
28
23
 
29
24
 
@@ -64,35 +59,31 @@ static int strip_comments(char *line, int in_quotes)
64
59
  }
65
60
 
66
61
 
67
- static int parse_subsection_header(git_config_parser *reader, const char *line, size_t pos, const char *base_name, char **section_name)
62
+ static int parse_section_header_ext(git_config_parser *reader, const char *line, const char *base_name, char **section_name)
68
63
  {
69
64
  int c, rpos;
70
- const char *first_quote, *last_quote;
65
+ char *first_quote, *last_quote;
71
66
  const char *line_start = line;
72
67
  git_buf buf = GIT_BUF_INIT;
73
68
  size_t quoted_len, alloc_len, base_name_len = strlen(base_name);
74
69
 
75
- /* Skip any additional whitespace before our section name */
76
- while (git__isspace(line[pos]))
77
- pos++;
70
+ /*
71
+ * base_name is what came before the space. We should be at the
72
+ * first quotation mark, except for now, line isn't being kept in
73
+ * sync so we only really use it to calculate the length.
74
+ */
78
75
 
79
- /* We should be at the first quotation mark. */
80
- if (line[pos] != '"') {
81
- set_parse_error(reader, 0, "missing quotation marks in section header");
76
+ first_quote = strchr(line, '"');
77
+ if (first_quote == NULL) {
78
+ set_parse_error(reader, 0, "Missing quotation marks in section header");
82
79
  goto end_error;
83
80
  }
84
81
 
85
- first_quote = &line[pos];
86
82
  last_quote = strrchr(line, '"');
87
83
  quoted_len = last_quote - first_quote;
88
84
 
89
- if ((last_quote - line) > INT_MAX) {
90
- set_parse_error(reader, 0, "invalid section header, line too long");
91
- goto end_error;
92
- }
93
-
94
85
  if (quoted_len == 0) {
95
- set_parse_error(reader, 0, "missing closing quotation mark in section header");
86
+ set_parse_error(reader, 0, "Missing closing quotation mark in section header");
96
87
  goto end_error;
97
88
  }
98
89
 
@@ -116,7 +107,7 @@ static int parse_subsection_header(git_config_parser *reader, const char *line,
116
107
 
117
108
  switch (c) {
118
109
  case 0:
119
- set_parse_error(reader, 0, "unexpected end-of-line in section header");
110
+ set_parse_error(reader, 0, "Unexpected end-of-line in section header");
120
111
  goto end_error;
121
112
 
122
113
  case '"':
@@ -126,7 +117,7 @@ static int parse_subsection_header(git_config_parser *reader, const char *line,
126
117
  c = line[++rpos];
127
118
 
128
119
  if (c == 0) {
129
- set_parse_error(reader, rpos, "unexpected end-of-line in section header");
120
+ set_parse_error(reader, rpos, "Unexpected end-of-line in section header");
130
121
  goto end_error;
131
122
  }
132
123
 
@@ -143,13 +134,13 @@ end_parse:
143
134
  goto end_error;
144
135
 
145
136
  if (line[rpos] != '"' || line[rpos + 1] != ']') {
146
- set_parse_error(reader, rpos, "unexpected text after closing quotes");
137
+ set_parse_error(reader, rpos, "Unexpected text after closing quotes");
147
138
  git_buf_dispose(&buf);
148
139
  return -1;
149
140
  }
150
141
 
151
142
  *section_name = git_buf_detach(&buf);
152
- return (int)(&line[rpos + 2] - line_start); /* rpos is at the closing quote */
143
+ return &line[rpos + 2] - line_start; /* rpos is at the closing quote */
153
144
 
154
145
  end_error:
155
146
  git_buf_dispose(&buf);
@@ -174,7 +165,7 @@ static int parse_section_header(git_config_parser *reader, char **section_out)
174
165
  name_end = strrchr(line, ']');
175
166
  if (name_end == NULL) {
176
167
  git__free(line);
177
- set_parse_error(reader, 0, "missing ']' in section header");
168
+ set_parse_error(reader, 0, "Missing ']' in section header");
178
169
  return -1;
179
170
  }
180
171
 
@@ -194,14 +185,14 @@ static int parse_section_header(git_config_parser *reader, char **section_out)
194
185
  do {
195
186
  if (git__isspace(c)){
196
187
  name[name_length] = '\0';
197
- result = parse_subsection_header(reader, line, pos, name, section_out);
188
+ result = parse_section_header_ext(reader, line, name, section_out);
198
189
  git__free(line);
199
190
  git__free(name);
200
191
  return result;
201
192
  }
202
193
 
203
194
  if (!config_keychar(c) && c != '.') {
204
- set_parse_error(reader, pos, "unexpected character in header");
195
+ set_parse_error(reader, pos, "Unexpected character in header");
205
196
  goto fail_parse;
206
197
  }
207
198
 
@@ -210,7 +201,7 @@ static int parse_section_header(git_config_parser *reader, char **section_out)
210
201
  } while ((c = line[pos++]) != ']');
211
202
 
212
203
  if (line[pos - 1] != ']') {
213
- set_parse_error(reader, pos, "unexpected end of file");
204
+ set_parse_error(reader, pos, "Unexpected end of file");
214
205
  goto fail_parse;
215
206
  }
216
207
 
@@ -395,7 +386,7 @@ static int parse_name(
395
386
  name_end++;
396
387
 
397
388
  if (line == name_end) {
398
- set_parse_error(reader, 0, "invalid configuration key");
389
+ set_parse_error(reader, 0, "Invalid configuration key");
399
390
  return -1;
400
391
  }
401
392
 
@@ -407,7 +398,7 @@ static int parse_name(
407
398
  if (*value_start == '=') {
408
399
  *value = value_start + 1;
409
400
  } else if (*value_start) {
410
- set_parse_error(reader, 0, "invalid configuration key");
401
+ set_parse_error(reader, 0, "Invalid configuration key");
411
402
  return -1;
412
403
  }
413
404
 
@@ -474,24 +465,13 @@ out:
474
465
  return error;
475
466
  }
476
467
 
477
- int git_config_parser_init(git_config_parser *out, const char *path, const char *data, size_t datalen)
478
- {
479
- out->path = path;
480
- return git_parse_ctx_init(&out->ctx, data, datalen);
481
- }
482
-
483
- void git_config_parser_dispose(git_config_parser *parser)
484
- {
485
- git_parse_ctx_clear(&parser->ctx);
486
- }
487
-
488
468
  int git_config_parse(
489
469
  git_config_parser *parser,
490
470
  git_config_parser_section_cb on_section,
491
471
  git_config_parser_variable_cb on_variable,
492
472
  git_config_parser_comment_cb on_comment,
493
473
  git_config_parser_eof_cb on_eof,
494
- void *payload)
474
+ void *data)
495
475
  {
496
476
  git_parse_ctx *ctx;
497
477
  char *current_section = NULL, *var_name = NULL, *var_value = NULL;
@@ -531,7 +511,7 @@ int git_config_parse(
531
511
  git_parse_advance_chars(ctx, result);
532
512
 
533
513
  if (on_section)
534
- result = on_section(parser, current_section, line_start, line_len, payload);
514
+ result = on_section(parser, current_section, line_start, line_len, data);
535
515
  /*
536
516
  * After we've parsed the section header we may not be
537
517
  * done with the line. If there's still data in there,
@@ -551,13 +531,13 @@ int git_config_parse(
551
531
  case ';':
552
532
  case '#':
553
533
  if (on_comment) {
554
- result = on_comment(parser, line_start, line_len, payload);
534
+ result = on_comment(parser, line_start, line_len, data);
555
535
  }
556
536
  break;
557
537
 
558
538
  default: /* assume variable declaration */
559
539
  if ((result = parse_variable(parser, &var_name, &var_value)) == 0 && on_variable) {
560
- result = on_variable(parser, current_section, var_name, var_value, line_start, line_len, payload);
540
+ result = on_variable(parser, current_section, var_name, var_value, line_start, line_len, data);
561
541
  git__free(var_name);
562
542
  git__free(var_value);
563
543
  }
@@ -570,7 +550,7 @@ int git_config_parse(
570
550
  }
571
551
 
572
552
  if (on_eof)
573
- result = on_eof(parser, current_section, payload);
553
+ result = on_eof(parser, current_section, data);
574
554
 
575
555
  out:
576
556
  git__free(current_section);
@@ -8,28 +8,30 @@
8
8
  #define INCLUDE_config_parse_h__
9
9
 
10
10
  #include "common.h"
11
-
12
11
  #include "array.h"
13
- #include "futils.h"
14
12
  #include "oid.h"
15
13
  #include "parse.h"
16
14
 
17
15
  extern const char *git_config_escapes;
18
16
  extern const char *git_config_escaped;
19
17
 
18
+ typedef struct config_file {
19
+ git_oid checksum;
20
+ char *path;
21
+ git_array_t(struct config_file) includes;
22
+ } git_config_file;
23
+
20
24
  typedef struct {
21
- const char *path;
25
+ struct config_file *file;
22
26
  git_parse_ctx ctx;
23
27
  } git_config_parser;
24
28
 
25
- #define GIT_CONFIG_PARSER_INIT { NULL, GIT_PARSE_CTX_INIT }
26
-
27
29
  typedef int (*git_config_parser_section_cb)(
28
30
  git_config_parser *parser,
29
31
  const char *current_section,
30
32
  const char *line,
31
33
  size_t line_len,
32
- void *payload);
34
+ void *data);
33
35
 
34
36
  typedef int (*git_config_parser_variable_cb)(
35
37
  git_config_parser *parser,
@@ -38,21 +40,18 @@ typedef int (*git_config_parser_variable_cb)(
38
40
  const char *var_value,
39
41
  const char *line,
40
42
  size_t line_len,
41
- void *payload);
43
+ void *data);
42
44
 
43
45
  typedef int (*git_config_parser_comment_cb)(
44
46
  git_config_parser *parser,
45
47
  const char *line,
46
48
  size_t line_len,
47
- void *payload);
49
+ void *data);
48
50
 
49
51
  typedef int (*git_config_parser_eof_cb)(
50
52
  git_config_parser *parser,
51
53
  const char *current_section,
52
- void *payload);
53
-
54
- int git_config_parser_init(git_config_parser *out, const char *path, const char *data, size_t datalen);
55
- void git_config_parser_dispose(git_config_parser *parser);
54
+ void *data);
56
55
 
57
56
  int git_config_parse(
58
57
  git_config_parser *parser,
@@ -60,6 +59,6 @@ int git_config_parse(
60
59
  git_config_parser_variable_cb on_variable,
61
60
  git_config_parser_comment_cb on_comment,
62
61
  git_config_parser_eof_cb on_eof,
63
- void *payload);
62
+ void *data);
64
63
 
65
64
  #endif
@@ -12,7 +12,7 @@
12
12
  #include "git2/index.h"
13
13
  #include "git2/sys/filter.h"
14
14
 
15
- #include "futils.h"
15
+ #include "fileops.h"
16
16
  #include "hash.h"
17
17
  #include "filter.h"
18
18
  #include "buf_text.h"
@@ -44,11 +44,11 @@ struct crlf_filter {
44
44
 
45
45
  static git_crlf_t check_crlf(const char *value)
46
46
  {
47
- if (GIT_ATTR_IS_TRUE(value))
47
+ if (GIT_ATTR_TRUE(value))
48
48
  return GIT_CRLF_TEXT;
49
- else if (GIT_ATTR_IS_FALSE(value))
49
+ else if (GIT_ATTR_FALSE(value))
50
50
  return GIT_CRLF_BINARY;
51
- else if (GIT_ATTR_IS_UNSPECIFIED(value))
51
+ else if (GIT_ATTR_UNSPECIFIED(value))
52
52
  ;
53
53
  else if (strcmp(value, "input") == 0)
54
54
  return GIT_CRLF_TEXT_INPUT;
@@ -58,9 +58,9 @@ static git_crlf_t check_crlf(const char *value)
58
58
  return GIT_CRLF_UNDEFINED;
59
59
  }
60
60
 
61
- static git_configmap_value check_eol(const char *value)
61
+ static git_cvar_value check_eol(const char *value)
62
62
  {
63
- if (GIT_ATTR_IS_UNSPECIFIED(value))
63
+ if (GIT_ATTR_UNSPECIFIED(value))
64
64
  ;
65
65
  else if (strcmp(value, "lf") == 0)
66
66
  return GIT_EOL_LF;
@@ -78,7 +78,7 @@ static int has_cr_in_index(const git_filter_source *src)
78
78
  const git_index_entry *entry;
79
79
  git_blob *blob;
80
80
  const void *blobcontent;
81
- git_object_size_t blobsize;
81
+ git_off_t blobsize;
82
82
  bool found_cr;
83
83
 
84
84
  if (!path)
@@ -127,7 +127,7 @@ static int text_eol_is_crlf(struct crlf_attrs *ca)
127
127
  return 0;
128
128
  }
129
129
 
130
- static git_configmap_value output_eol(struct crlf_attrs *ca)
130
+ static git_cvar_value output_eol(struct crlf_attrs *ca)
131
131
  {
132
132
  switch (ca->crlf_action) {
133
133
  case GIT_CRLF_BINARY:
@@ -293,12 +293,12 @@ static int convert_attrs(
293
293
 
294
294
  memset(ca, 0, sizeof(struct crlf_attrs));
295
295
 
296
- if ((error = git_repository__configmap_lookup(&ca->auto_crlf,
297
- git_filter_source_repo(src), GIT_CONFIGMAP_AUTO_CRLF)) < 0 ||
298
- (error = git_repository__configmap_lookup(&ca->safe_crlf,
299
- git_filter_source_repo(src), GIT_CONFIGMAP_SAFE_CRLF)) < 0 ||
300
- (error = git_repository__configmap_lookup(&ca->core_eol,
301
- git_filter_source_repo(src), GIT_CONFIGMAP_EOL)) < 0)
296
+ if ((error = git_repository__cvar(&ca->auto_crlf,
297
+ git_filter_source_repo(src), GIT_CVAR_AUTO_CRLF)) < 0 ||
298
+ (error = git_repository__cvar(&ca->safe_crlf,
299
+ git_filter_source_repo(src), GIT_CVAR_SAFE_CRLF)) < 0 ||
300
+ (error = git_repository__cvar(&ca->core_eol,
301
+ git_filter_source_repo(src), GIT_CVAR_EOL)) < 0)
302
302
  return error;
303
303
 
304
304
  /* downgrade FAIL to WARN if ALLOW_UNSAFE option is used */
@@ -16,11 +16,10 @@
16
16
  #include "commit_list.h"
17
17
  #include "oidmap.h"
18
18
  #include "refs.h"
19
- #include "repository.h"
20
19
  #include "revwalk.h"
21
20
  #include "tag.h"
22
21
  #include "vector.h"
23
- #include "wildmatch.h"
22
+ #include "repository.h"
24
23
 
25
24
  /* Ported from https://github.com/git/git/blob/89dde7882f71f846ccd0359756d27bebc31108de/builtin/describe.c */
26
25
 
@@ -37,7 +36,12 @@ struct commit_name {
37
36
 
38
37
  static void *oidmap_value_bykey(git_oidmap *map, const git_oid *key)
39
38
  {
40
- return git_oidmap_get(map, key);
39
+ size_t pos = git_oidmap_lookup_index(map, key);
40
+
41
+ if (!git_oidmap_valid_index(map, pos))
42
+ return NULL;
43
+
44
+ return git_oidmap_value_at(map, pos);
41
45
  }
42
46
 
43
47
  static struct commit_name *find_commit_name(
@@ -120,8 +124,13 @@ static int add_to_known_names(
120
124
  e->path = git__strdup(path);
121
125
  git_oid_cpy(&e->peeled, peeled);
122
126
 
123
- if (!found && git_oidmap_set(names, &e->peeled, e) < 0)
124
- return -1;
127
+ if (!found) {
128
+ int ret;
129
+
130
+ git_oidmap_insert(names, &e->peeled, e, &ret);
131
+ if (ret < 0)
132
+ return -1;
133
+ }
125
134
  }
126
135
  else
127
136
  git_tag_free(tag);
@@ -215,7 +224,7 @@ static int get_name(const char *refname, void *payload)
215
224
  return 0;
216
225
 
217
226
  /* Accept only tags that match the pattern, if given */
218
- if (data->opts->pattern && (!is_tag || wildmatch(data->opts->pattern,
227
+ if (data->opts->pattern && (!is_tag || p_fnmatch(data->opts->pattern,
219
228
  refname + strlen(GIT_REFS_TAGS_DIR), 0)))
220
229
  return 0;
221
230
 
@@ -672,8 +681,8 @@ int git_describe_commit(
672
681
  "git_describe_options");
673
682
  data.opts = &normalized;
674
683
 
675
- if ((error = git_oidmap_new(&data.names)) < 0)
676
- return error;
684
+ data.names = git_oidmap_alloc();
685
+ GIT_ERROR_CHECK_ALLOC(data.names);
677
686
 
678
687
  /** TODO: contains to be implemented */
679
688
 
@@ -760,7 +769,7 @@ static int normalize_format_options(
760
769
  const git_describe_format_options *src)
761
770
  {
762
771
  if (!src) {
763
- git_describe_format_options_init(dst, GIT_DESCRIBE_FORMAT_OPTIONS_VERSION);
772
+ git_describe_init_format_options(dst, GIT_DESCRIBE_FORMAT_OPTIONS_VERSION);
764
773
  return 0;
765
774
  }
766
775
 
@@ -869,26 +878,16 @@ void git_describe_result_free(git_describe_result *result)
869
878
  git__free(result);
870
879
  }
871
880
 
872
- int git_describe_options_init(git_describe_options *opts, unsigned int version)
881
+ int git_describe_init_options(git_describe_options *opts, unsigned int version)
873
882
  {
874
883
  GIT_INIT_STRUCTURE_FROM_TEMPLATE(
875
884
  opts, version, git_describe_options, GIT_DESCRIBE_OPTIONS_INIT);
876
885
  return 0;
877
886
  }
878
887
 
879
- int git_describe_init_options(git_describe_options *opts, unsigned int version)
880
- {
881
- return git_describe_options_init(opts, version);
882
- }
883
-
884
- int git_describe_format_options_init(git_describe_format_options *opts, unsigned int version)
888
+ int git_describe_init_format_options(git_describe_format_options *opts, unsigned int version)
885
889
  {
886
890
  GIT_INIT_STRUCTURE_FROM_TEMPLATE(
887
891
  opts, version, git_describe_format_options, GIT_DESCRIBE_FORMAT_OPTIONS_INIT);
888
892
  return 0;
889
893
  }
890
-
891
- int git_describe_init_format_options(git_describe_format_options *opts, unsigned int version)
892
- {
893
- return git_describe_format_options_init(opts, version);
894
- }