rugged 1.0.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (349) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -0
  3. data/README.md +1 -1
  4. data/ext/rugged/rugged.c +7 -4
  5. data/ext/rugged/rugged_commit.c +1 -1
  6. data/ext/rugged/rugged_object.c +1 -1
  7. data/ext/rugged/rugged_repo.c +3 -3
  8. data/lib/rugged/commit.rb +16 -2
  9. data/lib/rugged/repository.rb +2 -2
  10. data/lib/rugged/version.rb +1 -1
  11. data/vendor/libgit2/CMakeLists.txt +41 -74
  12. data/vendor/libgit2/COPYING +109 -1
  13. data/vendor/libgit2/cmake/{Modules/AddCFlagIfSupported.cmake → AddCFlagIfSupported.cmake} +0 -0
  14. data/vendor/libgit2/cmake/{Modules/EnableWarnings.cmake → EnableWarnings.cmake} +0 -0
  15. data/vendor/libgit2/cmake/{Modules/FindCoreFoundation.cmake → FindCoreFoundation.cmake} +0 -0
  16. data/vendor/libgit2/cmake/{Modules/FindGSSAPI.cmake → FindGSSAPI.cmake} +0 -0
  17. data/vendor/libgit2/cmake/{Modules/FindGSSFramework.cmake → FindGSSFramework.cmake} +0 -0
  18. data/vendor/libgit2/cmake/{Modules/FindHTTP_Parser.cmake → FindHTTP_Parser.cmake} +0 -0
  19. data/vendor/libgit2/cmake/{Modules/FindIconv.cmake → FindIconv.cmake} +0 -0
  20. data/vendor/libgit2/cmake/FindLibSSH2.cmake +13 -0
  21. data/vendor/libgit2/cmake/{Modules/FindPCRE.cmake → FindPCRE.cmake} +0 -0
  22. data/vendor/libgit2/cmake/{Modules/FindPCRE2.cmake → FindPCRE2.cmake} +0 -0
  23. data/vendor/libgit2/cmake/{Modules/FindPkgLibraries.cmake → FindPkgLibraries.cmake} +0 -0
  24. data/vendor/libgit2/cmake/{Modules/FindSecurity.cmake → FindSecurity.cmake} +0 -0
  25. data/vendor/libgit2/cmake/{Modules/FindStatNsec.cmake → FindStatNsec.cmake} +0 -0
  26. data/vendor/libgit2/cmake/Findfutimens.cmake +14 -0
  27. data/vendor/libgit2/cmake/{Modules/FindmbedTLS.cmake → FindmbedTLS.cmake} +0 -0
  28. data/vendor/libgit2/cmake/{Modules/IdeSplitSources.cmake → IdeSplitSources.cmake} +0 -0
  29. data/vendor/libgit2/cmake/{Modules/PkgBuildConfig.cmake → PkgBuildConfig.cmake} +0 -0
  30. data/vendor/libgit2/cmake/{Modules/SanitizeBool.cmake → SanitizeBool.cmake} +0 -0
  31. data/vendor/libgit2/cmake/{Modules/SelectGSSAPI.cmake → SelectGSSAPI.cmake} +18 -26
  32. data/vendor/libgit2/cmake/{Modules/SelectHTTPSBackend.cmake → SelectHTTPSBackend.cmake} +29 -32
  33. data/vendor/libgit2/cmake/{Modules/SelectHashes.cmake → SelectHashes.cmake} +21 -28
  34. data/vendor/libgit2/deps/chromium-zlib/CMakeLists.txt +101 -0
  35. data/vendor/libgit2/deps/http-parser/CMakeLists.txt +4 -3
  36. data/vendor/libgit2/deps/ntlmclient/CMakeLists.txt +24 -10
  37. data/vendor/libgit2/deps/ntlmclient/compat.h +0 -27
  38. data/vendor/libgit2/deps/ntlmclient/crypt.h +14 -9
  39. data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.c +20 -20
  40. data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.h +3 -3
  41. data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.c +37 -36
  42. data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.h +4 -3
  43. data/vendor/libgit2/deps/ntlmclient/crypt_openssl.c +178 -51
  44. data/vendor/libgit2/deps/ntlmclient/crypt_openssl.h +74 -5
  45. data/vendor/libgit2/deps/ntlmclient/ntlm.c +164 -135
  46. data/vendor/libgit2/deps/ntlmclient/ntlm.h +13 -9
  47. data/vendor/libgit2/deps/ntlmclient/ntlmclient.h +16 -3
  48. data/vendor/libgit2/deps/ntlmclient/unicode.h +10 -4
  49. data/vendor/libgit2/deps/ntlmclient/unicode_builtin.c +16 -27
  50. data/vendor/libgit2/deps/ntlmclient/unicode_builtin.h +20 -0
  51. data/vendor/libgit2/deps/ntlmclient/unicode_iconv.c +28 -52
  52. data/vendor/libgit2/deps/ntlmclient/unicode_iconv.h +22 -0
  53. data/vendor/libgit2/deps/ntlmclient/util.c +15 -1
  54. data/vendor/libgit2/deps/ntlmclient/util.h +2 -1
  55. data/vendor/libgit2/deps/pcre/LICENCE +93 -0
  56. data/vendor/libgit2/deps/pcre/pcre.h +2 -2
  57. data/vendor/libgit2/deps/pcre/pcre_compile.c +29 -17
  58. data/vendor/libgit2/deps/pcre/pcre_jit_compile.c +4 -4
  59. data/vendor/libgit2/deps/pcre/pcreposix.c +2 -3
  60. data/vendor/libgit2/deps/zlib/CMakeLists.txt +6 -5
  61. data/vendor/libgit2/deps/zlib/deflate.c +1 -0
  62. data/vendor/libgit2/include/git2/annotated_commit.h +1 -1
  63. data/vendor/libgit2/include/git2/apply.h +2 -0
  64. data/vendor/libgit2/include/git2/attr.h +95 -0
  65. data/vendor/libgit2/include/git2/blame.h +95 -42
  66. data/vendor/libgit2/include/git2/blob.h +37 -3
  67. data/vendor/libgit2/include/git2/branch.h +25 -0
  68. data/vendor/libgit2/include/git2/cert.h +42 -5
  69. data/vendor/libgit2/include/git2/checkout.h +28 -12
  70. data/vendor/libgit2/include/git2/clone.h +1 -1
  71. data/vendor/libgit2/include/git2/commit.h +35 -19
  72. data/vendor/libgit2/include/git2/common.h +51 -6
  73. data/vendor/libgit2/include/git2/config.h +1 -1
  74. data/vendor/libgit2/include/git2/deprecated.h +368 -8
  75. data/vendor/libgit2/include/git2/diff.h +34 -113
  76. data/vendor/libgit2/include/git2/email.h +127 -0
  77. data/vendor/libgit2/include/git2/errors.h +8 -7
  78. data/vendor/libgit2/include/git2/filter.h +63 -17
  79. data/vendor/libgit2/include/git2/graph.h +20 -2
  80. data/vendor/libgit2/include/git2/index.h +4 -5
  81. data/vendor/libgit2/include/git2/indexer.h +2 -1
  82. data/vendor/libgit2/include/git2/notes.h +2 -2
  83. data/vendor/libgit2/include/git2/odb.h +44 -20
  84. data/vendor/libgit2/include/git2/oidarray.h +5 -8
  85. data/vendor/libgit2/include/git2/pack.h +1 -1
  86. data/vendor/libgit2/include/git2/patch.h +8 -0
  87. data/vendor/libgit2/include/git2/rebase.h +25 -1
  88. data/vendor/libgit2/include/git2/refs.h +9 -5
  89. data/vendor/libgit2/include/git2/remote.h +62 -9
  90. data/vendor/libgit2/include/git2/repository.h +107 -62
  91. data/vendor/libgit2/include/git2/revparse.h +5 -5
  92. data/vendor/libgit2/include/git2/stash.h +1 -1
  93. data/vendor/libgit2/include/git2/status.h +115 -59
  94. data/vendor/libgit2/include/git2/stdint.h +3 -3
  95. data/vendor/libgit2/include/git2/strarray.h +6 -10
  96. data/vendor/libgit2/include/git2/submodule.h +9 -0
  97. data/vendor/libgit2/include/git2/sys/commit_graph.h +174 -0
  98. data/vendor/libgit2/include/git2/sys/email.h +45 -0
  99. data/vendor/libgit2/include/git2/sys/filter.h +49 -28
  100. data/vendor/libgit2/include/git2/sys/midx.h +74 -0
  101. data/vendor/libgit2/include/git2/sys/odb_backend.h +7 -0
  102. data/vendor/libgit2/include/git2/sys/transport.h +1 -0
  103. data/vendor/libgit2/include/git2/tag.h +12 -0
  104. data/vendor/libgit2/include/git2/transport.h +1 -1
  105. data/vendor/libgit2/include/git2/tree.h +2 -14
  106. data/vendor/libgit2/include/git2/types.h +9 -0
  107. data/vendor/libgit2/include/git2/version.h +4 -4
  108. data/vendor/libgit2/include/git2/worktree.h +1 -0
  109. data/vendor/libgit2/include/git2.h +1 -0
  110. data/vendor/libgit2/src/CMakeLists.txt +84 -44
  111. data/vendor/libgit2/src/alloc.c +21 -8
  112. data/vendor/libgit2/src/allocators/failalloc.c +92 -0
  113. data/vendor/libgit2/src/allocators/failalloc.h +23 -0
  114. data/vendor/libgit2/src/allocators/stdalloc.c +41 -10
  115. data/vendor/libgit2/src/allocators/win32_leakcheck.c +118 -0
  116. data/vendor/libgit2/src/allocators/{win32_crtdbg.h → win32_leakcheck.h} +3 -3
  117. data/vendor/libgit2/src/annotated_commit.c +21 -9
  118. data/vendor/libgit2/src/apply.c +21 -8
  119. data/vendor/libgit2/src/array.h +11 -11
  120. data/vendor/libgit2/src/assert_safe.h +58 -0
  121. data/vendor/libgit2/src/attr.c +192 -70
  122. data/vendor/libgit2/src/attr_file.c +99 -41
  123. data/vendor/libgit2/src/attr_file.h +32 -11
  124. data/vendor/libgit2/src/attrcache.c +44 -40
  125. data/vendor/libgit2/src/attrcache.h +4 -5
  126. data/vendor/libgit2/src/blame.c +32 -19
  127. data/vendor/libgit2/src/blame_git.c +7 -4
  128. data/vendor/libgit2/src/blob.c +60 -32
  129. data/vendor/libgit2/src/branch.c +87 -37
  130. data/vendor/libgit2/src/buffer.c +349 -29
  131. data/vendor/libgit2/src/buffer.h +154 -2
  132. data/vendor/libgit2/src/cache.c +3 -24
  133. data/vendor/libgit2/src/cache.h +7 -7
  134. data/vendor/libgit2/src/cc-compat.h +10 -8
  135. data/vendor/libgit2/src/checkout.c +103 -105
  136. data/vendor/libgit2/src/cherrypick.c +8 -2
  137. data/vendor/libgit2/src/clone.c +105 -30
  138. data/vendor/libgit2/src/commit.c +41 -28
  139. data/vendor/libgit2/src/commit_graph.c +1209 -0
  140. data/vendor/libgit2/src/commit_graph.h +162 -0
  141. data/vendor/libgit2/src/commit_list.c +46 -0
  142. data/vendor/libgit2/src/commit_list.h +2 -0
  143. data/vendor/libgit2/src/common.h +26 -2
  144. data/vendor/libgit2/src/config.c +41 -23
  145. data/vendor/libgit2/src/config_cache.c +9 -4
  146. data/vendor/libgit2/src/config_entries.c +35 -27
  147. data/vendor/libgit2/src/config_file.c +17 -9
  148. data/vendor/libgit2/src/config_parse.c +6 -8
  149. data/vendor/libgit2/src/config_snapshot.c +2 -1
  150. data/vendor/libgit2/src/crlf.c +16 -6
  151. data/vendor/libgit2/src/date.c +4 -3
  152. data/vendor/libgit2/src/delta.c +1 -1
  153. data/vendor/libgit2/src/describe.c +12 -5
  154. data/vendor/libgit2/src/diff.c +55 -183
  155. data/vendor/libgit2/src/diff_driver.c +21 -17
  156. data/vendor/libgit2/src/diff_file.c +5 -7
  157. data/vendor/libgit2/src/diff_generate.c +56 -28
  158. data/vendor/libgit2/src/diff_parse.c +2 -3
  159. data/vendor/libgit2/src/diff_print.c +81 -65
  160. data/vendor/libgit2/src/diff_stats.c +19 -16
  161. data/vendor/libgit2/src/diff_tform.c +13 -13
  162. data/vendor/libgit2/src/diff_xdiff.c +4 -2
  163. data/vendor/libgit2/src/diff_xdiff.h +1 -1
  164. data/vendor/libgit2/src/email.c +299 -0
  165. data/vendor/libgit2/src/email.h +25 -0
  166. data/vendor/libgit2/src/errors.c +26 -19
  167. data/vendor/libgit2/src/features.h.in +5 -1
  168. data/vendor/libgit2/src/fetch.c +7 -2
  169. data/vendor/libgit2/src/fetchhead.c +8 -4
  170. data/vendor/libgit2/src/filebuf.c +9 -7
  171. data/vendor/libgit2/src/filter.c +215 -113
  172. data/vendor/libgit2/src/filter.h +24 -5
  173. data/vendor/libgit2/src/futils.c +8 -8
  174. data/vendor/libgit2/src/futils.h +4 -4
  175. data/vendor/libgit2/src/graph.c +64 -9
  176. data/vendor/libgit2/src/hash/sha1/collisiondetect.c +3 -3
  177. data/vendor/libgit2/src/hash/sha1/common_crypto.c +3 -3
  178. data/vendor/libgit2/src/hash/sha1/generic.h +1 -1
  179. data/vendor/libgit2/src/hash/sha1/mbedtls.c +12 -12
  180. data/vendor/libgit2/src/hash/sha1/openssl.c +3 -3
  181. data/vendor/libgit2/src/hash/sha1/sha1dc/sha1.c +8 -10
  182. data/vendor/libgit2/src/hash/sha1/win32.c +15 -11
  183. data/vendor/libgit2/src/hash.c +16 -13
  184. data/vendor/libgit2/src/hash.h +1 -1
  185. data/vendor/libgit2/src/hashsig.c +23 -10
  186. data/vendor/libgit2/src/ident.c +13 -3
  187. data/vendor/libgit2/src/idxmap.c +0 -22
  188. data/vendor/libgit2/src/ignore.c +33 -17
  189. data/vendor/libgit2/src/index.c +124 -82
  190. data/vendor/libgit2/src/index.h +1 -1
  191. data/vendor/libgit2/src/indexer.c +95 -37
  192. data/vendor/libgit2/src/integer.h +79 -2
  193. data/vendor/libgit2/src/iterator.c +40 -28
  194. data/vendor/libgit2/src/iterator.h +1 -1
  195. data/vendor/libgit2/src/khash.h +2 -11
  196. data/vendor/libgit2/src/{settings.c → libgit2.c} +148 -49
  197. data/vendor/libgit2/src/libgit2.h +15 -0
  198. data/vendor/libgit2/src/mailmap.c +23 -10
  199. data/vendor/libgit2/src/map.h +3 -3
  200. data/vendor/libgit2/src/merge.c +95 -43
  201. data/vendor/libgit2/src/merge.h +2 -1
  202. data/vendor/libgit2/src/merge_driver.c +19 -13
  203. data/vendor/libgit2/src/merge_file.c +15 -9
  204. data/vendor/libgit2/src/message.c +3 -1
  205. data/vendor/libgit2/src/midx.c +879 -0
  206. data/vendor/libgit2/src/midx.h +110 -0
  207. data/vendor/libgit2/src/mwindow.c +214 -95
  208. data/vendor/libgit2/src/mwindow.h +3 -3
  209. data/vendor/libgit2/src/net.c +133 -4
  210. data/vendor/libgit2/src/net.h +16 -2
  211. data/vendor/libgit2/src/netops.c +6 -4
  212. data/vendor/libgit2/src/netops.h +2 -2
  213. data/vendor/libgit2/src/notes.c +40 -40
  214. data/vendor/libgit2/src/object.c +24 -15
  215. data/vendor/libgit2/src/odb.c +298 -57
  216. data/vendor/libgit2/src/odb.h +16 -2
  217. data/vendor/libgit2/src/odb_loose.c +31 -21
  218. data/vendor/libgit2/src/odb_mempack.c +3 -1
  219. data/vendor/libgit2/src/odb_pack.c +391 -114
  220. data/vendor/libgit2/src/oid.c +7 -4
  221. data/vendor/libgit2/src/oidarray.c +10 -1
  222. data/vendor/libgit2/src/pack-objects.c +83 -69
  223. data/vendor/libgit2/src/pack.c +383 -150
  224. data/vendor/libgit2/src/pack.h +44 -9
  225. data/vendor/libgit2/src/patch.c +14 -7
  226. data/vendor/libgit2/src/patch_generate.c +3 -5
  227. data/vendor/libgit2/src/patch_parse.c +6 -3
  228. data/vendor/libgit2/src/path.c +103 -58
  229. data/vendor/libgit2/src/path.h +80 -7
  230. data/vendor/libgit2/src/pathspec.c +12 -11
  231. data/vendor/libgit2/src/pool.c +34 -22
  232. data/vendor/libgit2/src/pool.h +9 -1
  233. data/vendor/libgit2/src/posix.c +43 -12
  234. data/vendor/libgit2/src/posix.h +9 -0
  235. data/vendor/libgit2/src/proxy.c +2 -0
  236. data/vendor/libgit2/src/push.c +2 -0
  237. data/vendor/libgit2/src/reader.c +10 -6
  238. data/vendor/libgit2/src/rebase.c +95 -49
  239. data/vendor/libgit2/src/refdb.c +165 -13
  240. data/vendor/libgit2/src/refdb.h +69 -0
  241. data/vendor/libgit2/src/refdb_fs.c +145 -153
  242. data/vendor/libgit2/src/reflog.c +21 -20
  243. data/vendor/libgit2/src/refs.c +153 -233
  244. data/vendor/libgit2/src/refs.h +2 -20
  245. data/vendor/libgit2/src/refspec.c +81 -45
  246. data/vendor/libgit2/src/regexp.c +2 -2
  247. data/vendor/libgit2/src/remote.c +320 -122
  248. data/vendor/libgit2/src/remote.h +2 -1
  249. data/vendor/libgit2/src/repository.c +476 -203
  250. data/vendor/libgit2/src/repository.h +27 -29
  251. data/vendor/libgit2/src/reset.c +8 -7
  252. data/vendor/libgit2/src/revert.c +8 -2
  253. data/vendor/libgit2/src/revparse.c +23 -17
  254. data/vendor/libgit2/src/revwalk.c +35 -20
  255. data/vendor/libgit2/src/runtime.c +162 -0
  256. data/vendor/libgit2/src/runtime.h +62 -0
  257. data/vendor/libgit2/src/{refdb_fs.h → settings.h} +3 -11
  258. data/vendor/libgit2/src/signature.c +6 -5
  259. data/vendor/libgit2/src/sortedcache.c +2 -3
  260. data/vendor/libgit2/src/sortedcache.h +10 -8
  261. data/vendor/libgit2/src/stash.c +6 -2
  262. data/vendor/libgit2/src/status.c +9 -4
  263. data/vendor/libgit2/src/strarray.c +64 -0
  264. data/vendor/libgit2/src/streams/mbedtls.c +14 -17
  265. data/vendor/libgit2/src/streams/mbedtls.h +1 -1
  266. data/vendor/libgit2/src/streams/openssl.c +113 -207
  267. data/vendor/libgit2/src/streams/openssl.h +9 -1
  268. data/vendor/libgit2/src/streams/openssl_dynamic.c +309 -0
  269. data/vendor/libgit2/src/streams/openssl_dynamic.h +348 -0
  270. data/vendor/libgit2/src/streams/openssl_legacy.c +203 -0
  271. data/vendor/libgit2/src/streams/openssl_legacy.h +63 -0
  272. data/vendor/libgit2/src/streams/registry.c +10 -9
  273. data/vendor/libgit2/src/streams/socket.c +6 -2
  274. data/vendor/libgit2/src/streams/stransport.c +6 -3
  275. data/vendor/libgit2/src/streams/tls.c +5 -3
  276. data/vendor/libgit2/src/submodule.c +134 -66
  277. data/vendor/libgit2/src/submodule.h +9 -9
  278. data/vendor/libgit2/src/sysdir.c +8 -26
  279. data/vendor/libgit2/src/sysdir.h +0 -11
  280. data/vendor/libgit2/src/tag.c +49 -11
  281. data/vendor/libgit2/src/thread.c +140 -0
  282. data/vendor/libgit2/src/thread.h +479 -0
  283. data/vendor/libgit2/src/threadstate.c +84 -0
  284. data/vendor/libgit2/src/threadstate.h +24 -0
  285. data/vendor/libgit2/src/trace.c +2 -2
  286. data/vendor/libgit2/src/trace.h +17 -13
  287. data/vendor/libgit2/src/trailer.c +1 -1
  288. data/vendor/libgit2/src/transaction.c +21 -9
  289. data/vendor/libgit2/src/transport.c +3 -3
  290. data/vendor/libgit2/src/transports/auth.c +1 -1
  291. data/vendor/libgit2/src/transports/auth_negotiate.c +11 -4
  292. data/vendor/libgit2/src/transports/auth_ntlm.c +10 -6
  293. data/vendor/libgit2/src/transports/credential.c +17 -7
  294. data/vendor/libgit2/src/transports/credential_helpers.c +2 -0
  295. data/vendor/libgit2/src/transports/git.c +1 -3
  296. data/vendor/libgit2/src/transports/http.c +19 -17
  297. data/vendor/libgit2/src/transports/http.h +1 -0
  298. data/vendor/libgit2/src/transports/httpclient.c +68 -38
  299. data/vendor/libgit2/src/transports/httpclient.h +1 -1
  300. data/vendor/libgit2/src/transports/local.c +5 -5
  301. data/vendor/libgit2/src/transports/smart.c +14 -9
  302. data/vendor/libgit2/src/transports/smart.h +1 -1
  303. data/vendor/libgit2/src/transports/smart_protocol.c +11 -5
  304. data/vendor/libgit2/src/transports/ssh.c +55 -21
  305. data/vendor/libgit2/src/transports/winhttp.c +157 -89
  306. data/vendor/libgit2/src/tree.c +100 -77
  307. data/vendor/libgit2/src/tree.h +1 -0
  308. data/vendor/libgit2/src/tsort.c +0 -2
  309. data/vendor/libgit2/src/unix/map.c +3 -1
  310. data/vendor/libgit2/src/unix/posix.h +16 -1
  311. data/vendor/libgit2/src/unix/pthread.h +2 -1
  312. data/vendor/libgit2/src/utf8.c +150 -0
  313. data/vendor/libgit2/src/utf8.h +52 -0
  314. data/vendor/libgit2/src/util.c +75 -184
  315. data/vendor/libgit2/src/util.h +34 -40
  316. data/vendor/libgit2/src/vector.c +23 -19
  317. data/vendor/libgit2/src/vector.h +4 -2
  318. data/vendor/libgit2/src/win32/findfile.c +5 -3
  319. data/vendor/libgit2/src/win32/git2.rc +18 -3
  320. data/vendor/libgit2/src/win32/map.c +1 -1
  321. data/vendor/libgit2/src/win32/msvc-compat.h +9 -1
  322. data/vendor/libgit2/src/win32/path_w32.c +23 -25
  323. data/vendor/libgit2/src/win32/path_w32.h +0 -1
  324. data/vendor/libgit2/src/win32/posix.h +6 -6
  325. data/vendor/libgit2/src/win32/posix_w32.c +86 -7
  326. data/vendor/libgit2/src/win32/precompiled.h +0 -1
  327. data/vendor/libgit2/src/win32/reparse.h +4 -4
  328. data/vendor/libgit2/src/win32/thread.c +24 -15
  329. data/vendor/libgit2/src/win32/thread.h +1 -1
  330. data/vendor/libgit2/src/win32/w32_buffer.c +3 -3
  331. data/vendor/libgit2/src/win32/w32_common.h +18 -9
  332. data/vendor/libgit2/src/win32/{w32_crtdbg_stacktrace.c → w32_leakcheck.c} +269 -33
  333. data/vendor/libgit2/src/win32/w32_leakcheck.h +222 -0
  334. data/vendor/libgit2/src/win32/w32_util.h +6 -6
  335. data/vendor/libgit2/src/worktree.c +36 -14
  336. data/vendor/libgit2/src/zstream.c +1 -1
  337. metadata +65 -42
  338. data/vendor/libgit2/cmake/Modules/CheckPrototypeDefinition.c.in +0 -29
  339. data/vendor/libgit2/cmake/Modules/CheckPrototypeDefinition.cmake +0 -96
  340. data/vendor/libgit2/src/allocators/win32_crtdbg.c +0 -118
  341. data/vendor/libgit2/src/buf_text.c +0 -316
  342. data/vendor/libgit2/src/buf_text.h +0 -122
  343. data/vendor/libgit2/src/global.c +0 -361
  344. data/vendor/libgit2/src/global.h +0 -41
  345. data/vendor/libgit2/src/thread-utils.c +0 -58
  346. data/vendor/libgit2/src/thread-utils.h +0 -246
  347. data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.h +0 -127
  348. data/vendor/libgit2/src/win32/w32_stack.c +0 -188
  349. data/vendor/libgit2/src/win32/w32_stack.h +0 -140
@@ -133,6 +133,9 @@ typedef enum {
133
133
  */
134
134
  GIT_DIFF_INDENT_HEURISTIC = (1u << 18),
135
135
 
136
+ /** Ignore blank lines */
137
+ GIT_DIFF_IGNORE_BLANK_LINES = (1u << 19),
138
+
136
139
  /** Treat all files as text, disabling binary attributes & detection */
137
140
  GIT_DIFF_FORCE_TEXT = (1u << 20),
138
141
  /** Treat all files as binary, disabling text diffs */
@@ -237,32 +240,43 @@ typedef enum {
237
240
  * Although this is called a "file", it could represent a file, a symbolic
238
241
  * link, a submodule commit id, or even a tree (although that only if you
239
242
  * are tracking type changes or ignored/untracked directories).
240
- *
241
- * The `id` is the `git_oid` of the item. If the entry represents an
242
- * absent side of a diff (e.g. the `old_file` of a `GIT_DELTA_ADDED` delta),
243
- * then the oid will be zeroes.
244
- *
245
- * `path` is the NUL-terminated path to the entry relative to the working
246
- * directory of the repository.
247
- *
248
- * `size` is the size of the entry in bytes.
249
- *
250
- * `flags` is a combination of the `git_diff_flag_t` types
251
- *
252
- * `mode` is, roughly, the stat() `st_mode` value for the item. This will
253
- * be restricted to one of the `git_filemode_t` values.
254
- *
255
- * The `id_abbrev` represents the known length of the `id` field, when
256
- * converted to a hex string. It is generally `GIT_OID_HEXSZ`, unless this
257
- * delta was created from reading a patch file, in which case it may be
258
- * abbreviated to something reasonable, like 7 characters.
259
243
  */
260
244
  typedef struct {
245
+ /**
246
+ * The `git_oid` of the item. If the entry represents an
247
+ * absent side of a diff (e.g. the `old_file` of a `GIT_DELTA_ADDED` delta),
248
+ * then the oid will be zeroes.
249
+ */
261
250
  git_oid id;
251
+
252
+ /**
253
+ * The NUL-terminated path to the entry relative to the working
254
+ * directory of the repository.
255
+ */
262
256
  const char *path;
257
+
258
+ /**
259
+ * The size of the entry in bytes.
260
+ */
263
261
  git_object_size_t size;
262
+
263
+ /**
264
+ * A combination of the `git_diff_flag_t` types
265
+ */
264
266
  uint32_t flags;
267
+
268
+ /**
269
+ * Roughly, the stat() `st_mode` value for the item. This will
270
+ * be restricted to one of the `git_filemode_t` values.
271
+ */
265
272
  uint16_t mode;
273
+
274
+ /**
275
+ * Represents the known length of the `id` field, when
276
+ * converted to a hex string. It is generally `GIT_OID_HEXSZ`, unless this
277
+ * delta was created from reading a patch file, in which case it may be
278
+ * abbreviated to something reasonable, like 7 characters.
279
+ */
266
280
  uint16_t id_abbrev;
267
281
  } git_diff_file;
268
282
 
@@ -998,7 +1012,7 @@ GIT_EXTERN(size_t) git_diff_num_deltas(const git_diff *diff);
998
1012
  /**
999
1013
  * Query how many diff deltas are there in a diff filtered by type.
1000
1014
  *
1001
- * This works just like `git_diff_entrycount()` with an extra parameter
1015
+ * This works just like `git_diff_num_deltas()` with an extra parameter
1002
1016
  * that is a `git_delta_t` and returns just the count of how many deltas
1003
1017
  * match that particular type.
1004
1018
  *
@@ -1361,99 +1375,6 @@ GIT_EXTERN(int) git_diff_stats_to_buf(
1361
1375
  */
1362
1376
  GIT_EXTERN(void) git_diff_stats_free(git_diff_stats *stats);
1363
1377
 
1364
- /**
1365
- * Formatting options for diff e-mail generation
1366
- */
1367
- typedef enum {
1368
- /** Normal patch, the default */
1369
- GIT_DIFF_FORMAT_EMAIL_NONE = 0,
1370
-
1371
- /** Don't insert "[PATCH]" in the subject header*/
1372
- GIT_DIFF_FORMAT_EMAIL_EXCLUDE_SUBJECT_PATCH_MARKER = (1 << 0),
1373
-
1374
- } git_diff_format_email_flags_t;
1375
-
1376
- /**
1377
- * Options for controlling the formatting of the generated e-mail.
1378
- */
1379
- typedef struct {
1380
- unsigned int version;
1381
-
1382
- /** see `git_diff_format_email_flags_t` above */
1383
- uint32_t flags;
1384
-
1385
- /** This patch number */
1386
- size_t patch_no;
1387
-
1388
- /** Total number of patches in this series */
1389
- size_t total_patches;
1390
-
1391
- /** id to use for the commit */
1392
- const git_oid *id;
1393
-
1394
- /** Summary of the change */
1395
- const char *summary;
1396
-
1397
- /** Commit message's body */
1398
- const char *body;
1399
-
1400
- /** Author of the change */
1401
- const git_signature *author;
1402
- } git_diff_format_email_options;
1403
-
1404
- #define GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION 1
1405
- #define GIT_DIFF_FORMAT_EMAIL_OPTIONS_INIT {GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION, 0, 1, 1, NULL, NULL, NULL, NULL}
1406
-
1407
- /**
1408
- * Create an e-mail ready patch from a diff.
1409
- *
1410
- * @param out buffer to store the e-mail patch in
1411
- * @param diff containing the commit
1412
- * @param opts structure with options to influence content and formatting.
1413
- * @return 0 or an error code
1414
- */
1415
- GIT_EXTERN(int) git_diff_format_email(
1416
- git_buf *out,
1417
- git_diff *diff,
1418
- const git_diff_format_email_options *opts);
1419
-
1420
- /**
1421
- * Create an e-mail ready patch for a commit.
1422
- *
1423
- * Does not support creating patches for merge commits (yet).
1424
- *
1425
- * @param out buffer to store the e-mail patch in
1426
- * @param repo containing the commit
1427
- * @param commit pointer to up commit
1428
- * @param patch_no patch number of the commit
1429
- * @param total_patches total number of patches in the patch set
1430
- * @param flags determines the formatting of the e-mail
1431
- * @param diff_opts structure with options to influence diff or NULL for defaults.
1432
- * @return 0 or an error code
1433
- */
1434
- GIT_EXTERN(int) git_diff_commit_as_email(
1435
- git_buf *out,
1436
- git_repository *repo,
1437
- git_commit *commit,
1438
- size_t patch_no,
1439
- size_t total_patches,
1440
- uint32_t flags,
1441
- const git_diff_options *diff_opts);
1442
-
1443
- /**
1444
- * Initialize git_diff_format_email_options structure
1445
- *
1446
- * Initializes a `git_diff_format_email_options` with default values. Equivalent
1447
- * to creating an instance with GIT_DIFF_FORMAT_EMAIL_OPTIONS_INIT.
1448
- *
1449
- * @param opts The `git_blame_options` struct to initialize.
1450
- * @param version The struct version; pass `GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION`.
1451
- * @return Zero on success; -1 on failure.
1452
- */
1453
- GIT_EXTERN(int) git_diff_format_email_options_init(
1454
- git_diff_format_email_options *opts,
1455
- unsigned int version);
1456
-
1457
1378
  /**
1458
1379
  * Patch ID options structure
1459
1380
  *
@@ -0,0 +1,127 @@
1
+ /*
2
+ * Copyright (C) the libgit2 contributors. All rights reserved.
3
+ *
4
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
5
+ * a Linking Exception. For full terms see the included COPYING file.
6
+ */
7
+ #ifndef INCLUDE_git_email_h__
8
+ #define INCLUDE_git_email_h__
9
+
10
+ #include "common.h"
11
+
12
+ /**
13
+ * @file git2/email.h
14
+ * @brief Git email formatting and application routines.
15
+ * @ingroup Git
16
+ * @{
17
+ */
18
+ GIT_BEGIN_DECL
19
+
20
+ /**
21
+ * Formatting options for diff e-mail generation
22
+ */
23
+ typedef enum {
24
+ /** Normal patch, the default */
25
+ GIT_EMAIL_CREATE_DEFAULT = 0,
26
+
27
+ /** Do not include patch numbers in the subject prefix. */
28
+ GIT_EMAIL_CREATE_OMIT_NUMBERS = (1u << 0),
29
+
30
+ /**
31
+ * Include numbers in the subject prefix even when the
32
+ * patch is for a single commit (1/1).
33
+ */
34
+ GIT_EMAIL_CREATE_ALWAYS_NUMBER = (1u << 1),
35
+
36
+ /** Do not perform rename or similarity detection. */
37
+ GIT_EMAIL_CREATE_NO_RENAMES = (1u << 2),
38
+ } git_email_create_flags_t;
39
+
40
+ /**
41
+ * Options for controlling the formatting of the generated e-mail.
42
+ */
43
+ typedef struct {
44
+ unsigned int version;
45
+
46
+ /** see `git_email_create_flags_t` above */
47
+ uint32_t flags;
48
+
49
+ /** Options to use when creating diffs */
50
+ git_diff_options diff_opts;
51
+
52
+ /** Options for finding similarities within diffs */
53
+ git_diff_find_options diff_find_opts;
54
+
55
+ /**
56
+ * The subject prefix, by default "PATCH". If set to an empty
57
+ * string ("") then only the patch numbers will be shown in the
58
+ * prefix. If the subject_prefix is empty and patch numbers
59
+ * are not being shown, the prefix will be omitted entirely.
60
+ */
61
+ const char *subject_prefix;
62
+
63
+ /**
64
+ * The starting patch number; this cannot be 0. By default,
65
+ * this is 1.
66
+ */
67
+ size_t start_number;
68
+
69
+ /** The "re-roll" number. By default, there is no re-roll. */
70
+ size_t reroll_number;
71
+ } git_email_create_options;
72
+
73
+ /*
74
+ * By default, our options include rename detection and binary
75
+ * diffs to match `git format-patch`.
76
+ */
77
+ #define GIT_EMAIL_CREATE_OPTIONS_VERSION 1
78
+ #define GIT_EMAIL_CREATE_OPTIONS_INIT \
79
+ { \
80
+ GIT_EMAIL_CREATE_OPTIONS_VERSION, \
81
+ GIT_EMAIL_CREATE_DEFAULT, \
82
+ { GIT_DIFF_OPTIONS_VERSION, GIT_DIFF_SHOW_BINARY, GIT_SUBMODULE_IGNORE_UNSPECIFIED, {NULL,0}, NULL, NULL, NULL, 3 }, \
83
+ GIT_DIFF_FIND_OPTIONS_INIT \
84
+ }
85
+
86
+ /**
87
+ * Create a diff for a commit in mbox format for sending via email.
88
+ *
89
+ * @param out buffer to store the e-mail patch in
90
+ * @param diff the changes to include in the email
91
+ * @param patch_idx the patch index
92
+ * @param patch_count the total number of patches that will be included
93
+ * @param commit_id the commit id for this change
94
+ * @param summary the commit message for this change
95
+ * @param body optional text to include above the diffstat
96
+ * @param author the person who authored this commit
97
+ * @param opts email creation options
98
+ */
99
+ GIT_EXTERN(int) git_email_create_from_diff(
100
+ git_buf *out,
101
+ git_diff *diff,
102
+ size_t patch_idx,
103
+ size_t patch_count,
104
+ const git_oid *commit_id,
105
+ const char *summary,
106
+ const char *body,
107
+ const git_signature *author,
108
+ const git_email_create_options *opts);
109
+
110
+ /**
111
+ * Create a diff for a commit in mbox format for sending via email.
112
+ * The commit must not be a merge commit.
113
+ *
114
+ * @param out buffer to store the e-mail patch in
115
+ * @param commit commit to create a patch for
116
+ * @param opts email creation options
117
+ */
118
+ GIT_EXTERN(int) git_email_create_from_commit(
119
+ git_buf *out,
120
+ git_commit *commit,
121
+ const git_email_create_options *opts);
122
+
123
+ GIT_END_DECL
124
+
125
+ /** @} */
126
+
127
+ #endif
@@ -42,14 +42,14 @@ typedef enum {
42
42
  GIT_ECONFLICT = -13, /**< Checkout conflicts prevented operation */
43
43
  GIT_ELOCKED = -14, /**< Lock file prevented operation */
44
44
  GIT_EMODIFIED = -15, /**< Reference value does not match expected */
45
- GIT_EAUTH = -16, /**< Authentication error */
46
- GIT_ECERTIFICATE = -17, /**< Server certificate is invalid */
45
+ GIT_EAUTH = -16, /**< Authentication error */
46
+ GIT_ECERTIFICATE = -17, /**< Server certificate is invalid */
47
47
  GIT_EAPPLIED = -18, /**< Patch/merge has already been applied */
48
- GIT_EPEEL = -19, /**< The requested peel operation is not possible */
49
- GIT_EEOF = -20, /**< Unexpected EOF */
50
- GIT_EINVALID = -21, /**< Invalid operation or input */
48
+ GIT_EPEEL = -19, /**< The requested peel operation is not possible */
49
+ GIT_EEOF = -20, /**< Unexpected EOF */
50
+ GIT_EINVALID = -21, /**< Invalid operation or input */
51
51
  GIT_EUNCOMMITTED = -22, /**< Uncommitted changes in index prevented operation */
52
- GIT_EDIRECTORY = -23, /**< The operation is not valid for a directory */
52
+ GIT_EDIRECTORY = -23, /**< The operation is not valid for a directory */
53
53
  GIT_EMERGECONFLICT = -24, /**< A merge conflict exists and cannot continue */
54
54
 
55
55
  GIT_PASSTHROUGH = -30, /**< A user-configured callback refused to act */
@@ -107,7 +107,8 @@ typedef enum {
107
107
  GIT_ERROR_PATCH,
108
108
  GIT_ERROR_WORKTREE,
109
109
  GIT_ERROR_SHA1,
110
- GIT_ERROR_HTTP
110
+ GIT_ERROR_HTTP,
111
+ GIT_ERROR_INTERNAL
111
112
  } git_error_t;
112
113
 
113
114
  /**
@@ -49,8 +49,39 @@ typedef enum {
49
49
 
50
50
  /** Load attributes from `.gitattributes` in the root of HEAD */
51
51
  GIT_FILTER_ATTRIBUTES_FROM_HEAD = (1u << 2),
52
+
53
+ /**
54
+ * Load attributes from `.gitattributes` in a given commit.
55
+ * This can only be specified in a `git_filter_options`.
56
+ */
57
+ GIT_FILTER_ATTRIBUTES_FROM_COMMIT = (1u << 3),
52
58
  } git_filter_flag_t;
53
59
 
60
+ /**
61
+ * Filtering options
62
+ */
63
+ typedef struct {
64
+ unsigned int version;
65
+
66
+ /** See `git_filter_flag_t` above */
67
+ uint32_t flags;
68
+
69
+ #ifdef GIT_DEPRECATE_HARD
70
+ void *reserved;
71
+ #else
72
+ git_oid *commit_id;
73
+ #endif
74
+
75
+ /**
76
+ * The commit to load attributes from, when
77
+ * `GIT_FILTER_ATTRIBUTES_FROM_COMMIT` is specified.
78
+ */
79
+ git_oid attr_commit_id;
80
+ } git_filter_options;
81
+
82
+ #define GIT_FILTER_OPTIONS_VERSION 1
83
+ #define GIT_FILTER_OPTIONS_INIT {GIT_FILTER_OPTIONS_VERSION}
84
+
54
85
  /**
55
86
  * A filter that can transform file data
56
87
  *
@@ -103,6 +134,29 @@ GIT_EXTERN(int) git_filter_list_load(
103
134
  git_filter_mode_t mode,
104
135
  uint32_t flags);
105
136
 
137
+ /**
138
+ * Load the filter list for a given path.
139
+ *
140
+ * This will return 0 (success) but set the output git_filter_list to NULL
141
+ * if no filters are requested for the given file.
142
+ *
143
+ * @param filters Output newly created git_filter_list (or NULL)
144
+ * @param repo Repository object that contains `path`
145
+ * @param blob The blob to which the filter will be applied (if known)
146
+ * @param path Relative path of the file to be filtered
147
+ * @param mode Filtering direction (WT->ODB or ODB->WT)
148
+ * @param opts The `git_filter_options` to use when loading filters
149
+ * @return 0 on success (which could still return NULL if no filters are
150
+ * needed for the requested file), <0 on error
151
+ */
152
+ GIT_EXTERN(int) git_filter_list_load_ext(
153
+ git_filter_list **filters,
154
+ git_repository *repo,
155
+ git_blob *blob,
156
+ const char *path,
157
+ git_filter_mode_t mode,
158
+ git_filter_options *opts);
159
+
106
160
  /**
107
161
  * Query the filter list to see if a given filter (by name) will run.
108
162
  * The built-in filters "crlf" and "ident" can be queried, otherwise this
@@ -122,27 +176,17 @@ GIT_EXTERN(int) git_filter_list_contains(
122
176
  /**
123
177
  * Apply filter list to a data buffer.
124
178
  *
125
- * See `git2/buffer.h` for background on `git_buf` objects.
126
- *
127
- * If the `in` buffer holds data allocated by libgit2 (i.e. `in->asize` is
128
- * not zero), then it will be overwritten when applying the filters. If
129
- * not, then it will be left untouched.
130
- *
131
- * If there are no filters to apply (or `filters` is NULL), then the `out`
132
- * buffer will reference the `in` buffer data (with `asize` set to zero)
133
- * instead of allocating data. This keeps allocations to a minimum, but
134
- * it means you have to be careful about freeing the `in` data since `out`
135
- * may be pointing to it!
136
- *
137
179
  * @param out Buffer to store the result of the filtering
138
180
  * @param filters A loaded git_filter_list (or NULL)
139
181
  * @param in Buffer containing the data to filter
182
+ * @param in_len The length of the input buffer
140
183
  * @return 0 on success, an error code otherwise
141
184
  */
142
- GIT_EXTERN(int) git_filter_list_apply_to_data(
185
+ GIT_EXTERN(int) git_filter_list_apply_to_buffer(
143
186
  git_buf *out,
144
187
  git_filter_list *filters,
145
- git_buf *in);
188
+ const char *in,
189
+ size_t in_len);
146
190
 
147
191
  /**
148
192
  * Apply a filter list to the contents of a file on disk
@@ -175,12 +219,14 @@ GIT_EXTERN(int) git_filter_list_apply_to_blob(
175
219
  * Apply a filter list to an arbitrary buffer as a stream
176
220
  *
177
221
  * @param filters the list of filters to apply
178
- * @param data the buffer to filter
222
+ * @param buffer the buffer to filter
223
+ * @param len the size of the buffer
179
224
  * @param target the stream into which the data will be written
180
225
  */
181
- GIT_EXTERN(int) git_filter_list_stream_data(
226
+ GIT_EXTERN(int) git_filter_list_stream_buffer(
182
227
  git_filter_list *filters,
183
- git_buf *data,
228
+ const char *buffer,
229
+ size_t len,
184
230
  git_writestream *target);
185
231
 
186
232
  /**
@@ -43,8 +43,9 @@ GIT_EXTERN(int) git_graph_ahead_behind(size_t *ahead, size_t *behind, git_reposi
43
43
  * Note that a commit is not considered a descendant of itself, in contrast
44
44
  * to `git merge-base --is-ancestor`.
45
45
  *
46
- * @param commit a previously loaded commit.
47
- * @param ancestor a potential ancestor commit.
46
+ * @param repo the repository where the commits exist
47
+ * @param commit a previously loaded commit
48
+ * @param ancestor a potential ancestor commit
48
49
  * @return 1 if the given commit is a descendant of the potential ancestor,
49
50
  * 0 if not, error code otherwise.
50
51
  */
@@ -53,6 +54,23 @@ GIT_EXTERN(int) git_graph_descendant_of(
53
54
  const git_oid *commit,
54
55
  const git_oid *ancestor);
55
56
 
57
+ /**
58
+ * Determine if a commit is reachable from any of a list of commits by
59
+ * following parent edges.
60
+ *
61
+ * @param repo the repository where the commits exist
62
+ * @param commit a previously loaded commit
63
+ * @param length the number of commits in the provided `descendant_array`
64
+ * @param descendant_array oids of the commits
65
+ * @return 1 if the given commit is an ancestor of any of the given potential
66
+ * descendants, 0 if not, error code otherwise.
67
+ */
68
+ GIT_EXTERN(int) git_graph_reachable_from_any(
69
+ git_repository *repo,
70
+ const git_oid *commit,
71
+ const git_oid descendant_array[],
72
+ size_t length);
73
+
56
74
  /** @} */
57
75
  GIT_END_DECL
58
76
  #endif
@@ -349,7 +349,7 @@ GIT_EXTERN(int) git_index_write_tree(git_oid *out, git_index *index);
349
349
  *
350
350
  * The index must not contain any file in conflict.
351
351
  *
352
- * @param out Pointer where to store OID of the the written tree
352
+ * @param out Pointer where to store OID of the written tree
353
353
  * @param index Index to write
354
354
  * @param repo Repository where to write the tree
355
355
  * @return 0 on success, GIT_EUNMERGED when the index is not clean
@@ -555,8 +555,7 @@ GIT_EXTERN(int) git_index_add_bypath(git_index *index, const char *path);
555
555
  *
556
556
  * If a previous index entry exists that has the same path as the
557
557
  * given 'entry', it will be replaced. Otherwise, the 'entry' will be
558
- * added. The `id` and the `file_size` of the 'entry' are updated with the
559
- * real value of the blob.
558
+ * added.
560
559
  *
561
560
  * This forces the file to be added to the index, not looking
562
561
  * at gitignore rules. Those rules can be evaluated through
@@ -703,7 +702,7 @@ GIT_EXTERN(int) git_index_update_all(
703
702
  * @param at_pos the address to which the position of the index entry is written (optional)
704
703
  * @param index an existing index object
705
704
  * @param path path to search
706
- * @return a zero-based position in the index if found; GIT_ENOTFOUND otherwise
705
+ * @return 0 or an error code
707
706
  */
708
707
  GIT_EXTERN(int) git_index_find(size_t *at_pos, git_index *index, const char *path);
709
708
 
@@ -714,7 +713,7 @@ GIT_EXTERN(int) git_index_find(size_t *at_pos, git_index *index, const char *pat
714
713
  * @param at_pos the address to which the position of the index entry is written (optional)
715
714
  * @param index an existing index object
716
715
  * @param prefix the prefix to search for
717
- * @return 0 with valid value in at_pos; an error code otherwise
716
+ * @return 0 or an error code
718
717
  */
719
718
  GIT_EXTERN(int) git_index_find_prefix(size_t *at_pos, git_index *index, const char *prefix);
720
719
 
@@ -51,7 +51,7 @@ typedef struct git_indexer_progress {
51
51
  * Type for progress callbacks during indexing. Return a value less
52
52
  * than zero to cancel the indexing or download.
53
53
  *
54
- * @param stats Structure containing information about the state of the tran sfer
54
+ * @param stats Structure containing information about the state of the transfer
55
55
  * @param payload Payload provided by caller
56
56
  */
57
57
  typedef int GIT_CALLBACK(git_indexer_progress_cb)(const git_indexer_progress *stats, void *payload);
@@ -64,6 +64,7 @@ typedef struct git_indexer_options {
64
64
 
65
65
  /** progress_cb function to call with progress information */
66
66
  git_indexer_progress_cb progress_cb;
67
+
67
68
  /** progress_cb_payload payload for the progress callback */
68
69
  void *progress_cb_payload;
69
70
 
@@ -84,8 +84,8 @@ GIT_EXTERN(void) git_note_iterator_free(git_note_iterator *it);
84
84
  * (negative value)
85
85
  */
86
86
  GIT_EXTERN(int) git_note_next(
87
- git_oid* note_id,
88
- git_oid* annotated_id,
87
+ git_oid *note_id,
88
+ git_oid *annotated_id,
89
89
  git_note_iterator *it);
90
90
 
91
91