@statewalker/vcs-commands 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (568) hide show
  1. package/dist/commands/add-command.d.ts +70 -0
  2. package/dist/commands/add-command.d.ts.map +1 -1
  3. package/dist/commands/add-patch/add-patch.d.ts +7 -0
  4. package/dist/commands/add-patch/add-patch.d.ts.map +1 -1
  5. package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
  6. package/dist/commands/am/am-command.d.ts +102 -1
  7. package/dist/commands/am/am-command.d.ts.map +1 -1
  8. package/dist/commands/am/index.d.ts +1 -0
  9. package/dist/commands/am/index.d.ts.map +1 -1
  10. package/dist/commands/am/mailsplit.d.ts +88 -0
  11. package/dist/commands/am/mailsplit.d.ts.map +1 -0
  12. package/dist/commands/apply/apply-command.d.ts +2 -0
  13. package/dist/commands/apply/apply-command.d.ts.map +1 -1
  14. package/dist/commands/apply/apply-engine.d.ts.map +1 -1
  15. package/dist/commands/apply/apply-parse.d.ts +7 -0
  16. package/dist/commands/apply/apply-parse.d.ts.map +1 -1
  17. package/dist/commands/apply/index.d.ts +1 -1
  18. package/dist/commands/apply/index.d.ts.map +1 -1
  19. package/dist/commands/bisect/bisect-command.d.ts +2 -0
  20. package/dist/commands/bisect/bisect-command.d.ts.map +1 -1
  21. package/dist/commands/blame-command.d.ts +303 -8
  22. package/dist/commands/blame-command.d.ts.map +1 -1
  23. package/dist/commands/blame-ignore.d.ts +48 -0
  24. package/dist/commands/blame-ignore.d.ts.map +1 -0
  25. package/dist/commands/branch-command.d.ts +148 -18
  26. package/dist/commands/branch-command.d.ts.map +1 -1
  27. package/dist/commands/branch-info-command.d.ts +55 -0
  28. package/dist/commands/branch-info-command.d.ts.map +1 -0
  29. package/dist/commands/branch-tracking.d.ts +106 -17
  30. package/dist/commands/branch-tracking.d.ts.map +1 -1
  31. package/dist/commands/branch-upstream-command.d.ts +83 -0
  32. package/dist/commands/branch-upstream-command.d.ts.map +1 -0
  33. package/dist/commands/check-mailmap-command.d.ts +49 -0
  34. package/dist/commands/check-mailmap-command.d.ts.map +1 -0
  35. package/dist/commands/checkout-command.d.ts +26 -3
  36. package/dist/commands/checkout-command.d.ts.map +1 -1
  37. package/dist/commands/checkout-paths.d.ts +4 -0
  38. package/dist/commands/checkout-paths.d.ts.map +1 -1
  39. package/dist/commands/cherry-command.d.ts +61 -0
  40. package/dist/commands/cherry-command.d.ts.map +1 -0
  41. package/dist/commands/cherry-pick-command.d.ts +82 -1
  42. package/dist/commands/cherry-pick-command.d.ts.map +1 -1
  43. package/dist/commands/clean-command.d.ts +44 -0
  44. package/dist/commands/clean-command.d.ts.map +1 -1
  45. package/dist/commands/clean-interactive.d.ts +56 -0
  46. package/dist/commands/clean-interactive.d.ts.map +1 -0
  47. package/dist/commands/clone-command.d.ts +116 -2
  48. package/dist/commands/clone-command.d.ts.map +1 -1
  49. package/dist/commands/commit-command.d.ts +239 -5
  50. package/dist/commands/commit-command.d.ts.map +1 -1
  51. package/dist/commands/commit-reuse.d.ts +33 -0
  52. package/dist/commands/commit-reuse.d.ts.map +1 -0
  53. package/dist/commands/config-command.d.ts +236 -0
  54. package/dist/commands/config-command.d.ts.map +1 -0
  55. package/dist/commands/config-value-types.d.ts +91 -0
  56. package/dist/commands/config-value-types.d.ts.map +1 -0
  57. package/dist/commands/core-config.d.ts +20 -0
  58. package/dist/commands/core-config.d.ts.map +1 -1
  59. package/dist/commands/describe-command.d.ts +71 -64
  60. package/dist/commands/describe-command.d.ts.map +1 -1
  61. package/dist/commands/diff-color-config.d.ts +73 -0
  62. package/dist/commands/diff-color-config.d.ts.map +1 -0
  63. package/dist/commands/diff-command.d.ts +369 -10
  64. package/dist/commands/diff-command.d.ts.map +1 -1
  65. package/dist/commands/fetch-command.d.ts +80 -0
  66. package/dist/commands/fetch-command.d.ts.map +1 -1
  67. package/dist/commands/fetch-multiple-command.d.ts +193 -0
  68. package/dist/commands/fetch-multiple-command.d.ts.map +1 -0
  69. package/dist/commands/fmt-merge-msg-command.d.ts +124 -0
  70. package/dist/commands/fmt-merge-msg-command.d.ts.map +1 -0
  71. package/dist/commands/fork-point.d.ts +38 -0
  72. package/dist/commands/fork-point.d.ts.map +1 -0
  73. package/dist/commands/format-patch-command.d.ts +69 -3
  74. package/dist/commands/format-patch-command.d.ts.map +1 -1
  75. package/dist/commands/fsck/fetch-fsck.d.ts +51 -0
  76. package/dist/commands/fsck/fetch-fsck.d.ts.map +1 -1
  77. package/dist/commands/gc-command.d.ts +8 -0
  78. package/dist/commands/gc-command.d.ts.map +1 -1
  79. package/dist/commands/git-describe.d.ts +81 -4
  80. package/dist/commands/git-describe.d.ts.map +1 -1
  81. package/dist/commands/git-hooks.d.ts +50 -1
  82. package/dist/commands/git-hooks.d.ts.map +1 -1
  83. package/dist/commands/grep/grep-command.d.ts +210 -0
  84. package/dist/commands/grep/grep-command.d.ts.map +1 -0
  85. package/dist/commands/grep/grep-engine.d.ts +218 -0
  86. package/dist/commands/grep/grep-engine.d.ts.map +1 -0
  87. package/dist/commands/grep/index.d.ts +3 -0
  88. package/dist/commands/grep/index.d.ts.map +1 -0
  89. package/dist/commands/index-adder.d.ts +13 -2
  90. package/dist/commands/index-adder.d.ts.map +1 -1
  91. package/dist/commands/index.d.ts +38 -0
  92. package/dist/commands/index.d.ts.map +1 -1
  93. package/dist/commands/index.js +5 -3
  94. package/dist/commands/init-command.d.ts +89 -0
  95. package/dist/commands/init-command.d.ts.map +1 -1
  96. package/dist/commands/interpret-trailers-command.d.ts +90 -0
  97. package/dist/commands/interpret-trailers-command.d.ts.map +1 -0
  98. package/dist/commands/line-log.d.ts +161 -0
  99. package/dist/commands/line-log.d.ts.map +1 -0
  100. package/dist/commands/local-transport.d.ts +36 -5
  101. package/dist/commands/local-transport.d.ts.map +1 -1
  102. package/dist/commands/log-command.d.ts +527 -13
  103. package/dist/commands/log-command.d.ts.map +1 -1
  104. package/dist/commands/log-graph.d.ts +30 -3
  105. package/dist/commands/log-graph.d.ts.map +1 -1
  106. package/dist/commands/log-output.d.ts +199 -6
  107. package/dist/commands/log-output.d.ts.map +1 -1
  108. package/dist/commands/ls-remote-command.d.ts +2 -0
  109. package/dist/commands/ls-remote-command.d.ts.map +1 -1
  110. package/dist/commands/mailmap.d.ts +53 -0
  111. package/dist/commands/mailmap.d.ts.map +1 -1
  112. package/dist/commands/merge-base-command.d.ts +60 -0
  113. package/dist/commands/merge-base-command.d.ts.map +1 -0
  114. package/dist/commands/merge-bases.d.ts +23 -0
  115. package/dist/commands/merge-bases.d.ts.map +1 -1
  116. package/dist/commands/merge-command.d.ts +147 -10
  117. package/dist/commands/merge-command.d.ts.map +1 -1
  118. package/dist/commands/merge-drivers.d.ts +2 -0
  119. package/dist/commands/merge-drivers.d.ts.map +1 -1
  120. package/dist/commands/merge-strategy-options.d.ts +69 -0
  121. package/dist/commands/merge-strategy-options.d.ts.map +1 -0
  122. package/dist/commands/merge-support.d.ts +10 -0
  123. package/dist/commands/merge-support.d.ts.map +1 -1
  124. package/dist/commands/message-cleanup.d.ts +2 -0
  125. package/dist/commands/message-cleanup.d.ts.map +1 -1
  126. package/dist/commands/mv-command.d.ts +4 -0
  127. package/dist/commands/mv-command.d.ts.map +1 -1
  128. package/dist/commands/name-rev-command.d.ts +65 -0
  129. package/dist/commands/name-rev-command.d.ts.map +1 -0
  130. package/dist/commands/name-rev.d.ts +136 -0
  131. package/dist/commands/name-rev.d.ts.map +1 -0
  132. package/dist/commands/notes-command.d.ts.map +1 -1
  133. package/dist/commands/octopus-merge.d.ts +26 -1
  134. package/dist/commands/octopus-merge.d.ts.map +1 -1
  135. package/dist/commands/ort-merge.d.ts +16 -0
  136. package/dist/commands/ort-merge.d.ts.map +1 -1
  137. package/dist/commands/ort-recursive.d.ts.map +1 -1
  138. package/dist/commands/patch-id.d.ts +58 -0
  139. package/dist/commands/patch-id.d.ts.map +1 -1
  140. package/dist/commands/pathspec-file.d.ts +39 -0
  141. package/dist/commands/pathspec-file.d.ts.map +1 -0
  142. package/dist/commands/pathspec.d.ts +3 -0
  143. package/dist/commands/pathspec.d.ts.map +1 -1
  144. package/dist/commands/pretty-format.d.ts +43 -3
  145. package/dist/commands/pretty-format.d.ts.map +1 -1
  146. package/dist/commands/promisor-remote.d.ts.map +1 -1
  147. package/dist/commands/pull-command.d.ts +186 -32
  148. package/dist/commands/pull-command.d.ts.map +1 -1
  149. package/dist/commands/push-command.d.ts +225 -9
  150. package/dist/commands/push-command.d.ts.map +1 -1
  151. package/dist/commands/range-diff/index.d.ts +4 -0
  152. package/dist/commands/range-diff/index.d.ts.map +1 -0
  153. package/dist/commands/range-diff/linear-assignment.d.ts +27 -0
  154. package/dist/commands/range-diff/linear-assignment.d.ts.map +1 -0
  155. package/dist/commands/range-diff/range-diff-command.d.ts +121 -0
  156. package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -0
  157. package/dist/commands/range-diff/range-diff.d.ts +106 -0
  158. package/dist/commands/range-diff/range-diff.d.ts.map +1 -0
  159. package/dist/commands/read-tree-command.d.ts +20 -0
  160. package/dist/commands/read-tree-command.d.ts.map +1 -1
  161. package/dist/commands/rebase-command.d.ts +189 -8
  162. package/dist/commands/rebase-command.d.ts.map +1 -1
  163. package/dist/commands/ref-filter/for-each-ref-command.d.ts +121 -0
  164. package/dist/commands/ref-filter/for-each-ref-command.d.ts.map +1 -0
  165. package/dist/commands/ref-filter/index.d.ts +8 -0
  166. package/dist/commands/ref-filter/index.d.ts.map +1 -0
  167. package/dist/commands/ref-filter/ref-atoms.d.ts +88 -0
  168. package/dist/commands/ref-filter/ref-atoms.d.ts.map +1 -0
  169. package/dist/commands/ref-filter/ref-filter.d.ts +178 -0
  170. package/dist/commands/ref-filter/ref-filter.d.ts.map +1 -0
  171. package/dist/commands/ref-filter/ref-format.d.ts +222 -0
  172. package/dist/commands/ref-filter/ref-format.d.ts.map +1 -0
  173. package/dist/commands/ref-filter/ref-listing-command.d.ts +56 -0
  174. package/dist/commands/ref-filter/ref-listing-command.d.ts.map +1 -0
  175. package/dist/commands/ref-filter/ref-quote.d.ts +20 -0
  176. package/dist/commands/ref-filter/ref-quote.d.ts.map +1 -0
  177. package/dist/commands/ref-filter/version-compare.d.ts +20 -0
  178. package/dist/commands/ref-filter/version-compare.d.ts.map +1 -0
  179. package/dist/commands/reflog-command.d.ts +120 -0
  180. package/dist/commands/reflog-command.d.ts.map +1 -1
  181. package/dist/commands/reflog-walk.d.ts +72 -0
  182. package/dist/commands/reflog-walk.d.ts.map +1 -0
  183. package/dist/commands/remerge-diff.d.ts +59 -0
  184. package/dist/commands/remerge-diff.d.ts.map +1 -0
  185. package/dist/commands/remote-command.d.ts +179 -29
  186. package/dist/commands/remote-command.d.ts.map +1 -1
  187. package/dist/commands/remote-show-command.d.ts +204 -0
  188. package/dist/commands/remote-show-command.d.ts.map +1 -0
  189. package/dist/commands/remote-transport.d.ts +7 -1
  190. package/dist/commands/remote-transport.d.ts.map +1 -1
  191. package/dist/commands/reset-command.d.ts +21 -4
  192. package/dist/commands/reset-command.d.ts.map +1 -1
  193. package/dist/commands/restore-command.d.ts +9 -3
  194. package/dist/commands/restore-command.d.ts.map +1 -1
  195. package/dist/commands/rev-filter/commit-filter.d.ts +95 -0
  196. package/dist/commands/rev-filter/commit-filter.d.ts.map +1 -0
  197. package/dist/commands/rev-filter/commit-grep.d.ts +91 -0
  198. package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -0
  199. package/dist/commands/rev-filter/index.d.ts +3 -0
  200. package/dist/commands/rev-filter/index.d.ts.map +1 -0
  201. package/dist/commands/rev-list-command.d.ts +226 -2
  202. package/dist/commands/rev-list-command.d.ts.map +1 -1
  203. package/dist/commands/revert-command.d.ts +54 -1
  204. package/dist/commands/revert-command.d.ts.map +1 -1
  205. package/dist/commands/revision-range.d.ts +34 -1
  206. package/dist/commands/revision-range.d.ts.map +1 -1
  207. package/dist/commands/revision-resolver.d.ts +15 -0
  208. package/dist/commands/revision-resolver.d.ts.map +1 -1
  209. package/dist/commands/rm-command.d.ts +70 -2
  210. package/dist/commands/rm-command.d.ts.map +1 -1
  211. package/dist/commands/sequencer-pick.d.ts +186 -5
  212. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  213. package/dist/commands/sequencer-support.d.ts +12 -1
  214. package/dist/commands/sequencer-support.d.ts.map +1 -1
  215. package/dist/commands/serve-repository.d.ts +7 -0
  216. package/dist/commands/serve-repository.d.ts.map +1 -1
  217. package/dist/commands/shortlog-command.d.ts +109 -0
  218. package/dist/commands/shortlog-command.d.ts.map +1 -0
  219. package/dist/commands/shortlog.d.ts +151 -0
  220. package/dist/commands/shortlog.d.ts.map +1 -0
  221. package/dist/commands/show-command.d.ts +130 -0
  222. package/dist/commands/show-command.d.ts.map +1 -0
  223. package/dist/commands/show-commit.d.ts +11 -0
  224. package/dist/commands/show-commit.d.ts.map +1 -0
  225. package/dist/commands/signature-check.d.ts +164 -0
  226. package/dist/commands/signature-check.d.ts.map +1 -0
  227. package/dist/commands/signing.d.ts +160 -0
  228. package/dist/commands/signing.d.ts.map +1 -0
  229. package/dist/commands/sparse-checkout-command.d.ts.map +1 -1
  230. package/dist/commands/sparse-index-view.d.ts +45 -0
  231. package/dist/commands/sparse-index-view.d.ts.map +1 -0
  232. package/dist/commands/ssh-signer.d.ts +29 -0
  233. package/dist/commands/ssh-signer.d.ts.map +1 -0
  234. package/dist/commands/ssh-verifier.d.ts +42 -0
  235. package/dist/commands/ssh-verifier.d.ts.map +1 -0
  236. package/dist/commands/stash-apply-command.d.ts +5 -0
  237. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  238. package/dist/commands/stash-branch-command.d.ts +34 -0
  239. package/dist/commands/stash-branch-command.d.ts.map +1 -0
  240. package/dist/commands/stash-create-command.d.ts +17 -0
  241. package/dist/commands/stash-create-command.d.ts.map +1 -1
  242. package/dist/commands/stash-info.d.ts +93 -0
  243. package/dist/commands/stash-info.d.ts.map +1 -0
  244. package/dist/commands/stash-list-command.d.ts +16 -0
  245. package/dist/commands/stash-list-command.d.ts.map +1 -1
  246. package/dist/commands/stash-pop-command.d.ts +39 -0
  247. package/dist/commands/stash-pop-command.d.ts.map +1 -0
  248. package/dist/commands/stash-show-command.d.ts +48 -0
  249. package/dist/commands/stash-show-command.d.ts.map +1 -0
  250. package/dist/commands/stash-store-command.d.ts +29 -0
  251. package/dist/commands/stash-store-command.d.ts.map +1 -0
  252. package/dist/commands/stash-working-tree.d.ts.map +1 -1
  253. package/dist/commands/status-command.d.ts +31 -2
  254. package/dist/commands/status-command.d.ts.map +1 -1
  255. package/dist/commands/status-header.d.ts +5 -0
  256. package/dist/commands/status-header.d.ts.map +1 -1
  257. package/dist/commands/submodule-add-command.d.ts +89 -0
  258. package/dist/commands/submodule-add-command.d.ts.map +1 -0
  259. package/dist/commands/submodule-auth.d.ts +90 -0
  260. package/dist/commands/submodule-auth.d.ts.map +1 -0
  261. package/dist/commands/submodule-commands.d.ts +463 -0
  262. package/dist/commands/submodule-commands.d.ts.map +1 -0
  263. package/dist/commands/submodule-fetch.d.ts +149 -0
  264. package/dist/commands/submodule-fetch.d.ts.map +1 -0
  265. package/dist/commands/submodule-model.d.ts +296 -0
  266. package/dist/commands/submodule-model.d.ts.map +1 -0
  267. package/dist/commands/submodule-unpack.d.ts +120 -0
  268. package/dist/commands/submodule-unpack.d.ts.map +1 -0
  269. package/dist/commands/submodule-update-command.d.ts +206 -0
  270. package/dist/commands/submodule-update-command.d.ts.map +1 -0
  271. package/dist/commands/subtree-shift.d.ts +27 -0
  272. package/dist/commands/subtree-shift.d.ts.map +1 -0
  273. package/dist/commands/switch-command.d.ts +3 -0
  274. package/dist/commands/switch-command.d.ts.map +1 -1
  275. package/dist/commands/tag-command.d.ts +259 -10
  276. package/dist/commands/tag-command.d.ts.map +1 -1
  277. package/dist/commands/trailers.d.ts +218 -17
  278. package/dist/commands/trailers.d.ts.map +1 -1
  279. package/dist/commands/tree-restore.d.ts +7 -0
  280. package/dist/commands/tree-restore.d.ts.map +1 -1
  281. package/dist/commands/verify-command.d.ts +92 -0
  282. package/dist/commands/verify-command.d.ts.map +1 -0
  283. package/dist/commands/worktree-add-command.d.ts +79 -7
  284. package/dist/commands/worktree-add-command.d.ts.map +1 -1
  285. package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
  286. package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
  287. package/dist/commands/worktree-path-rules.d.ts +66 -0
  288. package/dist/commands/worktree-path-rules.d.ts.map +1 -0
  289. package/dist/commands/worktree-remove-command.d.ts +10 -3
  290. package/dist/commands/worktree-remove-command.d.ts.map +1 -1
  291. package/dist/commands/worktree-repair-command.d.ts +15 -2
  292. package/dist/commands/worktree-repair-command.d.ts.map +1 -1
  293. package/dist/commands/worktree-support.d.ts +5 -0
  294. package/dist/commands/worktree-support.d.ts.map +1 -1
  295. package/dist/{commands-DIJ91NnD.js → commands-CNvli5bl.js} +49442 -54941
  296. package/dist/errors/checkout-errors.d.ts +19 -0
  297. package/dist/errors/checkout-errors.d.ts.map +1 -1
  298. package/dist/errors/command-errors.d.ts +25 -0
  299. package/dist/errors/command-errors.d.ts.map +1 -1
  300. package/dist/errors/index.js +85 -3
  301. package/dist/errors/ref-errors.d.ts +19 -0
  302. package/dist/errors/ref-errors.d.ts.map +1 -1
  303. package/dist/errors/worktree-errors.d.ts +6 -1
  304. package/dist/errors/worktree-errors.d.ts.map +1 -1
  305. package/dist/fsck-CPeDh9fh.js +5138 -0
  306. package/dist/git-command.d.ts +58 -2
  307. package/dist/git-command.d.ts.map +1 -1
  308. package/dist/git.d.ts +363 -1
  309. package/dist/git.d.ts.map +1 -1
  310. package/dist/guarded-transport-command.d.ts +82 -0
  311. package/dist/guarded-transport-command.d.ts.map +1 -0
  312. package/dist/index.d.ts +1 -0
  313. package/dist/index.d.ts.map +1 -1
  314. package/dist/index.js +6 -5
  315. package/dist/remote-config/index.d.ts +1 -1
  316. package/dist/remote-config/index.d.ts.map +1 -1
  317. package/dist/remote-config/remote-config-store.d.ts +55 -0
  318. package/dist/remote-config/remote-config-store.d.ts.map +1 -1
  319. package/dist/remote-transport-CCmBadm-.js +1606 -0
  320. package/dist/rename/detect-renames.d.ts +20 -0
  321. package/dist/rename/detect-renames.d.ts.map +1 -1
  322. package/dist/rename/diffcore-break.d.ts +51 -0
  323. package/dist/rename/diffcore-break.d.ts.map +1 -0
  324. package/dist/rename/index.d.ts +1 -0
  325. package/dist/rename/index.d.ts.map +1 -1
  326. package/dist/results/blame-format.d.ts +62 -1
  327. package/dist/results/blame-format.d.ts.map +1 -1
  328. package/dist/results/clone-result.d.ts +9 -0
  329. package/dist/results/clone-result.d.ts.map +1 -1
  330. package/dist/results/combined-diff.d.ts +3 -0
  331. package/dist/results/combined-diff.d.ts.map +1 -1
  332. package/dist/results/diff-check.d.ts +38 -0
  333. package/dist/results/diff-check.d.ts.map +1 -0
  334. package/dist/results/diff-color.d.ts +135 -0
  335. package/dist/results/diff-color.d.ts.map +1 -0
  336. package/dist/results/diff-dirstat.d.ts +36 -0
  337. package/dist/results/diff-dirstat.d.ts.map +1 -0
  338. package/dist/results/diff-entry.d.ts +10 -0
  339. package/dist/results/diff-entry.d.ts.map +1 -1
  340. package/dist/results/diff-formatter.d.ts.map +1 -1
  341. package/dist/results/diff-output.d.ts +103 -1
  342. package/dist/results/diff-output.d.ts.map +1 -1
  343. package/dist/results/diff-pickaxe.d.ts +67 -0
  344. package/dist/results/diff-pickaxe.d.ts.map +1 -0
  345. package/dist/results/diff-words.d.ts +55 -0
  346. package/dist/results/diff-words.d.ts.map +1 -0
  347. package/dist/results/fetch-result.d.ts +12 -1
  348. package/dist/results/fetch-result.d.ts.map +1 -1
  349. package/dist/results/index.d.ts +6 -0
  350. package/dist/results/index.d.ts.map +1 -1
  351. package/dist/results/index.js +2 -2
  352. package/dist/results/init-result.d.ts +8 -1
  353. package/dist/results/init-result.d.ts.map +1 -1
  354. package/dist/results/line-range-hunks.d.ts +27 -0
  355. package/dist/results/line-range-hunks.d.ts.map +1 -0
  356. package/dist/results/merge-result.d.ts +8 -1
  357. package/dist/results/merge-result.d.ts.map +1 -1
  358. package/dist/results/pull-result.d.ts +11 -0
  359. package/dist/results/pull-result.d.ts.map +1 -1
  360. package/dist/results/push-result.d.ts +12 -0
  361. package/dist/results/push-result.d.ts.map +1 -1
  362. package/dist/results/rebase-result.d.ts +2 -0
  363. package/dist/results/rebase-result.d.ts.map +1 -1
  364. package/dist/results/stash-result.d.ts +6 -0
  365. package/dist/results/stash-result.d.ts.map +1 -1
  366. package/dist/results/status-result.d.ts +1 -1
  367. package/dist/results/status-result.d.ts.map +1 -1
  368. package/dist/results-BDuEgdLU.js +46847 -0
  369. package/dist/transport-command.d.ts +14 -0
  370. package/dist/transport-command.d.ts.map +1 -1
  371. package/dist/whitespace/index.d.ts +2 -0
  372. package/dist/whitespace/index.d.ts.map +1 -0
  373. package/dist/whitespace/whitespace-rule.d.ts +94 -0
  374. package/dist/whitespace/whitespace-rule.d.ts.map +1 -0
  375. package/package.json +12 -12
  376. package/src/commands/add-command.ts +293 -17
  377. package/src/commands/add-patch/add-patch.ts +8 -0
  378. package/src/commands/add-patch/patch-backend.ts +20 -2
  379. package/src/commands/am/am-command.ts +400 -46
  380. package/src/commands/am/index.ts +1 -0
  381. package/src/commands/am/mailsplit.ts +326 -0
  382. package/src/commands/apply/apply-command.ts +58 -15
  383. package/src/commands/apply/apply-engine.ts +1 -1
  384. package/src/commands/apply/apply-parse.ts +17 -8
  385. package/src/commands/apply/index.ts +8 -1
  386. package/src/commands/bisect/bisect-command.ts +18 -5
  387. package/src/commands/blame-command.ts +1450 -51
  388. package/src/commands/blame-ignore.ts +307 -0
  389. package/src/commands/branch-command.ts +528 -53
  390. package/src/commands/branch-info-command.ts +150 -0
  391. package/src/commands/branch-tracking.ts +335 -60
  392. package/src/commands/branch-upstream-command.ts +218 -0
  393. package/src/commands/check-mailmap-command.ts +129 -0
  394. package/src/commands/checkout-command.ts +166 -55
  395. package/src/commands/checkout-paths.ts +28 -0
  396. package/src/commands/cherry-command.ts +187 -0
  397. package/src/commands/cherry-pick-command.ts +185 -1
  398. package/src/commands/clean-command.ts +126 -15
  399. package/src/commands/clean-interactive.ts +522 -0
  400. package/src/commands/clone-command.ts +598 -45
  401. package/src/commands/commit-command.ts +925 -74
  402. package/src/commands/commit-reuse.ts +94 -0
  403. package/src/commands/config-command.ts +1256 -0
  404. package/src/commands/config-value-types.ts +358 -0
  405. package/src/commands/core-config.ts +40 -0
  406. package/src/commands/describe-command.ts +341 -254
  407. package/src/commands/diff-color-config.ts +274 -0
  408. package/src/commands/diff-command.ts +1619 -99
  409. package/src/commands/fetch-command.ts +495 -14
  410. package/src/commands/fetch-multiple-command.ts +665 -0
  411. package/src/commands/fmt-merge-msg-command.ts +715 -0
  412. package/src/commands/fork-point.ts +63 -0
  413. package/src/commands/format-patch-command.ts +496 -116
  414. package/src/commands/fsck/fetch-fsck.ts +172 -18
  415. package/src/commands/gc-command.ts +31 -1
  416. package/src/commands/git-describe.ts +460 -201
  417. package/src/commands/git-hooks.ts +123 -3
  418. package/src/commands/grep/grep-command.ts +1077 -0
  419. package/src/commands/grep/grep-engine.ts +1024 -0
  420. package/src/commands/grep/index.ts +2 -0
  421. package/src/commands/index-adder.ts +46 -7
  422. package/src/commands/index.ts +43 -0
  423. package/src/commands/init-command.ts +603 -49
  424. package/src/commands/interpret-trailers-command.ts +256 -0
  425. package/src/commands/line-log.ts +931 -0
  426. package/src/commands/local-transport.ts +109 -10
  427. package/src/commands/log-command.ts +2599 -326
  428. package/src/commands/log-graph.ts +129 -29
  429. package/src/commands/log-output.ts +449 -27
  430. package/src/commands/ls-remote-command.ts +5 -0
  431. package/src/commands/mailmap.ts +155 -0
  432. package/src/commands/merge-base-command.ts +170 -0
  433. package/src/commands/merge-bases.ts +63 -8
  434. package/src/commands/merge-command.ts +601 -95
  435. package/src/commands/merge-drivers.ts +3 -0
  436. package/src/commands/merge-strategy-options.ts +224 -0
  437. package/src/commands/merge-support.ts +115 -22
  438. package/src/commands/message-cleanup.ts +1 -1
  439. package/src/commands/mv-command.ts +6 -3
  440. package/src/commands/name-rev-command.ts +184 -0
  441. package/src/commands/name-rev.ts +762 -0
  442. package/src/commands/notes-command.ts +11 -1
  443. package/src/commands/octopus-merge.ts +35 -11
  444. package/src/commands/ort-merge.ts +41 -7
  445. package/src/commands/ort-recursive.ts +40 -2
  446. package/src/commands/patch-id.ts +109 -0
  447. package/src/commands/pathspec-file.ts +72 -0
  448. package/src/commands/pathspec.ts +14 -2
  449. package/src/commands/pretty-format.ts +103 -19
  450. package/src/commands/promisor-remote.ts +10 -1
  451. package/src/commands/pull-command.ts +734 -221
  452. package/src/commands/push-command.ts +1035 -68
  453. package/src/commands/range-diff/index.ts +3 -0
  454. package/src/commands/range-diff/linear-assignment.ts +203 -0
  455. package/src/commands/range-diff/range-diff-command.ts +433 -0
  456. package/src/commands/range-diff/range-diff.ts +617 -0
  457. package/src/commands/read-tree-command.ts +102 -4
  458. package/src/commands/rebase-command.ts +1074 -194
  459. package/src/commands/ref-filter/for-each-ref-command.ts +298 -0
  460. package/src/commands/ref-filter/index.ts +7 -0
  461. package/src/commands/ref-filter/ref-atoms.ts +581 -0
  462. package/src/commands/ref-filter/ref-filter.ts +651 -0
  463. package/src/commands/ref-filter/ref-format.ts +1070 -0
  464. package/src/commands/ref-filter/ref-listing-command.ts +421 -0
  465. package/src/commands/ref-filter/ref-quote.ts +69 -0
  466. package/src/commands/ref-filter/version-compare.ts +177 -0
  467. package/src/commands/reflog-command.ts +492 -2
  468. package/src/commands/reflog-walk.ts +234 -0
  469. package/src/commands/remerge-diff.ts +241 -0
  470. package/src/commands/remote-command.ts +537 -69
  471. package/src/commands/remote-show-command.ts +836 -0
  472. package/src/commands/remote-transport.ts +9 -1
  473. package/src/commands/reset-command.ts +114 -34
  474. package/src/commands/restore-command.ts +27 -41
  475. package/src/commands/rev-filter/commit-filter.ts +159 -0
  476. package/src/commands/rev-filter/commit-grep.ts +444 -0
  477. package/src/commands/rev-filter/index.ts +2 -0
  478. package/src/commands/rev-list-command.ts +578 -15
  479. package/src/commands/revert-command.ts +123 -1
  480. package/src/commands/revision-range.ts +207 -5
  481. package/src/commands/revision-resolver.ts +23 -8
  482. package/src/commands/rm-command.ts +282 -21
  483. package/src/commands/sequencer-pick.ts +818 -111
  484. package/src/commands/sequencer-support.ts +184 -4
  485. package/src/commands/serve-repository.ts +18 -3
  486. package/src/commands/shortlog-command.ts +354 -0
  487. package/src/commands/shortlog.ts +361 -0
  488. package/src/commands/show-command.ts +491 -0
  489. package/src/commands/show-commit.ts +24 -0
  490. package/src/commands/signature-check.ts +657 -0
  491. package/src/commands/signing.ts +385 -0
  492. package/src/commands/sparse-checkout-command.ts +2 -9
  493. package/src/commands/sparse-checkout-support.ts +2 -2
  494. package/src/commands/sparse-index-view.ts +135 -0
  495. package/src/commands/ssh-signer.ts +199 -0
  496. package/src/commands/ssh-verifier.ts +523 -0
  497. package/src/commands/stash-apply-command.ts +16 -4
  498. package/src/commands/stash-branch-command.ts +88 -0
  499. package/src/commands/stash-create-command.ts +28 -0
  500. package/src/commands/stash-info.ts +243 -0
  501. package/src/commands/stash-list-command.ts +33 -0
  502. package/src/commands/stash-pop-command.ts +83 -0
  503. package/src/commands/stash-show-command.ts +141 -0
  504. package/src/commands/stash-store-command.ts +82 -0
  505. package/src/commands/stash-working-tree.ts +2 -2
  506. package/src/commands/status-command.ts +120 -27
  507. package/src/commands/status-format.ts +1 -1
  508. package/src/commands/status-header.ts +41 -7
  509. package/src/commands/submodule-add-command.ts +509 -0
  510. package/src/commands/submodule-auth.ts +276 -0
  511. package/src/commands/submodule-commands.ts +1835 -0
  512. package/src/commands/submodule-fetch.ts +789 -0
  513. package/src/commands/submodule-model.ts +938 -0
  514. package/src/commands/submodule-unpack.ts +265 -0
  515. package/src/commands/submodule-update-command.ts +1126 -0
  516. package/src/commands/subtree-shift.ts +215 -0
  517. package/src/commands/switch-command.ts +12 -1
  518. package/src/commands/tag-command.ts +876 -64
  519. package/src/commands/trailers.ts +837 -100
  520. package/src/commands/tree-restore.ts +44 -11
  521. package/src/commands/verify-command.ts +235 -0
  522. package/src/commands/worktree-add-command.ts +268 -24
  523. package/src/commands/worktree-overwrite-checks.ts +5 -0
  524. package/src/commands/worktree-path-rules.ts +183 -0
  525. package/src/commands/worktree-remove-command.ts +39 -5
  526. package/src/commands/worktree-repair-command.ts +52 -5
  527. package/src/commands/worktree-support.ts +22 -1
  528. package/src/errors/checkout-errors.ts +29 -0
  529. package/src/errors/command-errors.ts +37 -1
  530. package/src/errors/ref-errors.ts +23 -0
  531. package/src/errors/worktree-errors.ts +8 -1
  532. package/src/git-command.ts +153 -2
  533. package/src/git.ts +550 -1
  534. package/src/guarded-transport-command.ts +171 -0
  535. package/src/index.ts +1 -0
  536. package/src/remote-config/index.ts +2 -0
  537. package/src/remote-config/remote-config-store.ts +101 -0
  538. package/src/rename/detect-renames.ts +42 -8
  539. package/src/rename/diffcore-break.ts +166 -0
  540. package/src/rename/index.ts +1 -0
  541. package/src/results/blame-format.ts +268 -43
  542. package/src/results/clone-result.ts +6 -0
  543. package/src/results/combined-diff.ts +38 -18
  544. package/src/results/diff-check.ts +185 -0
  545. package/src/results/diff-color.ts +868 -0
  546. package/src/results/diff-dirstat.ts +117 -0
  547. package/src/results/diff-entry.ts +12 -0
  548. package/src/results/diff-formatter.ts +1 -0
  549. package/src/results/diff-output.ts +322 -32
  550. package/src/results/diff-pickaxe.ts +304 -0
  551. package/src/results/diff-words.ts +395 -0
  552. package/src/results/fetch-result.ts +12 -1
  553. package/src/results/index.ts +6 -0
  554. package/src/results/init-result.ts +10 -1
  555. package/src/results/line-range-hunks.ts +126 -0
  556. package/src/results/merge-result.ts +9 -0
  557. package/src/results/pull-result.ts +7 -0
  558. package/src/results/push-result.ts +12 -0
  559. package/src/results/rebase-result.ts +3 -0
  560. package/src/results/stash-result.ts +7 -0
  561. package/src/results/status-result.ts +2 -2
  562. package/src/transport-command.ts +34 -3
  563. package/src/whitespace/index.ts +1 -0
  564. package/src/{commands/apply/whitespace.ts → whitespace/whitespace-rule.ts} +173 -23
  565. package/dist/commands/apply/whitespace.d.ts +0 -58
  566. package/dist/commands/apply/whitespace.d.ts.map +0 -1
  567. package/dist/git-command-BGiOJ8Zk.js +0 -7246
  568. package/dist/results-WVlBhVb1.js +0 -2935
@@ -1 +1 @@
1
- {"version":3,"file":"bisect-command.d.ts","sourceRoot":"","sources":["../../../src/commands/bisect/bisect-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAiC,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIrF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAgBlD,OAAO,EAEL,UAAU,EAGV,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAC;AAG5B,uCAAuC;AACvC,MAAM,WAAW,YAAY;IAC3B,mGAAmG;IACnG,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,WAAW,EAAE,UAAU,CAAC;IACxB,8FAA8F;IAC9F,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,IAAI,EAAE,UAAU,CAAC;IACjB,iFAAiF;IACjF,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAgBD;;;;;;GAMG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,YAAY,CAAC;IACzD,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,CAAM;IAC9B,OAAO,CAAC,UAAU,CAAC,CAAmB;IACtC,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAIjC;IAED,qDAAqD;IACrD,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,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AQ,aAAa;IACpD,qDAAqD;IACrD,UAAmB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAEvD;IAED,OAAO,CAAC,IAAI,CAAgB;IAE5B,sFAAsF;IACtF,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAY,GAAG,IAAI,CAI3C;IAED,UAAmB,SAAS,IAAI,MAAM,EAAE,CAEvC;CACF;AAED;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;IACjD,qDAAqD;IACrD,UAAmB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAEvD;IAED,OAAO,CAAC,OAAO,CAAgB;IAE/B,oCAAoC;IACpC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAI/B;IAED,UAAmB,SAAS,IAAI,MAAM,EAAE,CAEvC;CACF"}
@@ -27,6 +27,16 @@ export interface BlameEntry {
27
27
  };
28
28
  /** A boundary commit (a root commit, unless `setShowRoot(true)`): `^` in git's output */
29
29
  boundary?: boolean;
30
+ /**
31
+ * Lines an ignored commit changed, blamed on the line of its parent they resemble (`?` in
32
+ * git's output and `ignored` in the porcelain ones under `blame.markIgnoredLines`)
33
+ */
34
+ ignored?: boolean;
35
+ /**
36
+ * Lines an ignored commit changed that resemble no line of its parent, so stay its own
37
+ * (`*` and `unblamable` under `blame.markUnblamableLines`)
38
+ */
39
+ unblamable?: boolean;
30
40
  }
31
41
  /**
32
42
  * Detailed tracking information for a single line.
@@ -61,8 +71,23 @@ export interface BlameResult {
61
71
  * line ranges asked for
62
72
  */
63
73
  entries: BlameEntry[];
64
- /** The blamed file's content at the start commit */
74
+ /** The blamed file's content at the start commit (`--reverse`: at the commit reversed from) */
65
75
  content?: Uint8Array;
76
+ /** Whether git's output marks ignored lines (`blame.markIgnoredLines`, `setMarkIgnoredLines`) */
77
+ markIgnoredLines?: boolean;
78
+ /**
79
+ * Whether git's output marks unblamable lines (`blame.markUnblamableLines`,
80
+ * `setMarkUnblamableLines`)
81
+ */
82
+ markUnblamableLines?: boolean;
83
+ /**
84
+ * The entries in the order blame found them, before sorting and coalescing: what
85
+ * `git blame --incremental` prints (`formatBlameIncremental`). Each entry's `boundary` is
86
+ * what git knew when it printed the entry.
87
+ */
88
+ incremental?: BlameEntry[];
89
+ /** The output settings of the repository's configuration (defaults of `formatBlame`) */
90
+ output?: BlameOutputConfig;
66
91
  /**
67
92
  * Get the blame entry for a specific line (1-based).
68
93
  *
@@ -112,6 +137,54 @@ export interface BlameResult {
112
137
  */
113
138
  autoAbbrev?(): Promise<number>;
114
139
  }
140
+ /**
141
+ * The output settings `git blame` reads from the configuration (`git_blame_config`), which
142
+ * `formatBlame` takes as defaults of its options
143
+ */
144
+ export interface BlameOutputConfig {
145
+ /** `blame.date`: the date mode (`--date`), as written */
146
+ date?: string;
147
+ /** `blame.showEmail` (`-e`) */
148
+ showEmail?: boolean;
149
+ /** `blame.blankBoundary` (`-b`) */
150
+ blankBoundary?: boolean;
151
+ /** `blame.coloring=repeatedLines` (`--color-lines`) */
152
+ colorLines?: boolean;
153
+ /** `blame.coloring=highlightRecent` (`--color-by-age`) */
154
+ colorByAge?: boolean;
155
+ /** `color.blame.repeatedLines`: the escape sequence of the color (default cyan) */
156
+ repeatedLinesColor?: string;
157
+ /** `color.blame.highlightRecent`: `<color>,<date>,<color>,...` as written */
158
+ highlightRecent?: string;
159
+ /** Warnings git prints while reading these settings (invalid values it skips) */
160
+ warnings?: string[];
161
+ }
162
+ /**
163
+ * The buffer blamed instead of the file of the start commit (`setContents`): git's fake
164
+ * working-tree commit on top of the start commit
165
+ */
166
+ export interface BlameContentsOptions {
167
+ /**
168
+ * The `--contents` argument, named in the fake commit's summary (`-` reads "standard
169
+ * input", the default)
170
+ */
171
+ name?: string;
172
+ /**
173
+ * The working tree's file blamed as `git blame <path>` without a revision does: the commit
174
+ * is "Not Committed Yet" instead of "External file (--contents)"
175
+ */
176
+ workingTree?: boolean;
177
+ /** The fake commit's time in seconds (default now) */
178
+ time?: number;
179
+ /** Its zone, `+HHMM` (default the local zone at `time`) */
180
+ tzOffset?: string;
181
+ /**
182
+ * The file's mode, as git's `canon_mode` of the `--contents` file's stat or the working
183
+ * tree file's lstat (`120000` for a link, whose content is its target); default, as for
184
+ * standard input, the index entry's mode at the path, else `100644`
185
+ */
186
+ mode?: number;
187
+ }
115
188
  /**
116
189
  * Annotate each line of a file with the commit that last changed it.
117
190
  *
@@ -123,8 +196,14 @@ export interface BlameResult {
123
196
  * are its own. A parent with the same blob takes all lines. Root commits are boundaries
124
197
  * unless `setShowRoot(true)` (`blame.showRoot`).
125
198
  *
126
- * Moves and copies across lines (`-M`, `-C`), `--reverse`, `--ignore-rev` and the mailmap
127
- * are not supported.
199
+ * Lines moved within the file (`-M`, `setDetectMoves`) and copied from other files (`-C` up
200
+ * to three times, `setDetectCopies`) are found as git's `find_move_in_parent` and
201
+ * `find_copy_in_parent` find them, and names and emails go through the mailmap
202
+ * (`setUseMailmap`). Ignored revisions (`setIgnoreRevs`, `setIgnoreRevsFiles`,
203
+ * `blame.ignoreRevsFile`) pass their changed lines to the parent lines they resemble, by
204
+ * git's fingerprint matching (`guess_line_blames`); `setReverse` blames each line of an old
205
+ * version on the last commit it existed in (`--reverse`), and `setFirstParent` follows
206
+ * first parents only.
128
207
  *
129
208
  * @example
130
209
  * ```typescript
@@ -151,7 +230,58 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
151
230
  private lineRanges;
152
231
  private diffOptions;
153
232
  private renameCountLastSpan?;
233
+ /** `-M`: look for lines moved within the file (`PICKAXE_BLAME_MOVE`) */
234
+ private detectMoves;
235
+ /** `-C` given this many times (`PICKAXE_BLAME_COPY`, `_HARDER`, `_HARDEST`) */
236
+ private copyLevel;
237
+ private moveScore;
238
+ private copyScore;
239
+ private useMailmap;
240
+ private ignoreRevs;
241
+ private ignoreRevsFiles;
242
+ private markIgnoredLines?;
243
+ private markUnblamableLines?;
244
+ /** `:(optional)` paths in the configuration (git 2.52+) */
245
+ private optionalPaths;
246
+ /** `--reverse`: the commit whose lines are followed forward */
247
+ private reverseFrom?;
248
+ private firstParent;
249
+ /** The buffer blamed instead of the start commit's file (`--contents`) */
250
+ private contents?;
251
+ /** Commits older than this (committer time, seconds) are boundaries (`--since`) */
252
+ private since?;
253
+ /** Commits `--since` marked uninteresting before they were loaded */
254
+ private sinceUninteresting;
255
+ /** Blobs that exist only here (the `--contents` buffer: git's `odb_pretend_object`) */
256
+ private pretend;
257
+ /** The entries in the order they were found guilty (`--incremental`) */
258
+ private guilty;
259
+ /** The commits blamed lines pass to from each commit in reverse (`revs->children`) */
260
+ private children;
261
+ /** The commits the reverse walk found uninteresting (boundaries) */
262
+ private reverseUninteresting;
263
+ /** The commits whose changes are ignored (`sb->ignore_list`) */
264
+ private ignoreList;
265
+ /** The blamed file at the start commit, its line starts and alphanumerics before each line */
266
+ private finalContent;
267
+ private finalStarts;
268
+ private finalAlnum;
269
+ private originSeq;
270
+ /** Files looked in for copies, interned, the most recently used last (`copySourceText`) */
271
+ private copySources;
272
+ private copySourceBytes;
273
+ /** Line hashes of the files looked in for copies (null: over the big file threshold) */
274
+ private copyHashes;
275
+ private copyHashBytes;
276
+ private copyHashCacheBytes;
277
+ private copySourceCacheBytes;
278
+ /** The hash of each line of the final file (`lineHashesOf`) */
279
+ private finalHashes;
154
280
  private states;
281
+ /** The `--contents` buffer's blob and mode */
282
+ private fakeEntry?;
283
+ /** The index's files with the `--contents` buffer at its path (the fake commit's "tree") */
284
+ private fakeFiles?;
155
285
  /** Numbers the lines of every version compared, so each is split and hashed once */
156
286
  private interner?;
157
287
  /**
@@ -199,12 +329,82 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
199
329
  */
200
330
  setLineRanges(ranges: Array<[number, number]>): this;
201
331
  /**
202
- * Diff details that changed between git versions: `histogramRediff` (git 2.54+, default
203
- * true), `legacyMinimal` (git before 2.5x), and `renameCountLastSpan` (rename scores of
204
- * git 2.50+, default true)
332
+ * Find lines moved or copied within the file (`-M[<num>]`): lines a commit moved are blamed
333
+ * on the commit that wrote them. A block is taken when it has more than `score`
334
+ * alphanumeric characters (default 20; 0 keeps the default, as git's).
335
+ */
336
+ setDetectMoves(detect: boolean, score?: number): this;
337
+ /**
338
+ * Find lines copied from other files (`-C[<num>]` given `level` times; any level also
339
+ * finds moves): 1 looks in the files the commit changed, 2 also in every file of the parent
340
+ * when the blamed file was created or renamed, 3 in every file of the parent always. A block
341
+ * is taken when it has more than `score` alphanumeric characters (default 40; 0 keeps the
342
+ * default).
343
+ */
344
+ setDetectCopies(level: number, score?: number): this;
345
+ /**
346
+ * Map the names and emails of authors and committers through the mailmap (`.mailmap`,
347
+ * `mailmap.blob`, `mailmap.file`), as git blame always does (default true). The entries'
348
+ * commits then carry the mapped identities.
349
+ */
350
+ setUseMailmap(use: boolean): this;
351
+ /**
352
+ * Ignore the changes these revisions made (`--ignore-rev <rev>`, each peeled to a commit):
353
+ * their lines are blamed on the lines of their parents they resemble most (git's fuzzy
354
+ * matching), or stay theirs (unblamable) when none does.
355
+ *
356
+ * @throws Error `cannot find revision <rev> to ignore` when a name gives no commit
357
+ */
358
+ setIgnoreRevs(revs: string[]): this;
359
+ /**
360
+ * Ignore the revisions listed in these files (`--ignore-revs-file <file>`, read after
361
+ * `blame.ignoreRevsFile`): full object ids, one per line, `#` comments; an empty name
362
+ * forgets the files before it. A relative path is read from the worktree's top.
363
+ *
364
+ * @throws Error `could not open object name list: <file>`, `invalid object name: <line>`
365
+ */
366
+ setIgnoreRevsFiles(files: string[]): this;
367
+ /** Mark lines blamed through an ignored commit (`?`; default `blame.markIgnoredLines`) */
368
+ setMarkIgnoredLines(mark: boolean): this;
369
+ /** Mark lines an ignored commit keeps (`*`; default `blame.markUnblamableLines`) */
370
+ setMarkUnblamableLines(mark: boolean): this;
371
+ /**
372
+ * Blame in reverse (`--reverse <from>..<start>`): the lines of the file at `from`, each
373
+ * blamed on the last commit up to the start commit (default HEAD) it still existed in.
374
+ */
375
+ setReverse(from: ObjectId): this;
376
+ /**
377
+ * Follow only first parents (`--first-parent`); with `setReverse`, the range must lie on
378
+ * the start commit's first-parent chain.
379
+ */
380
+ setFirstParent(first: boolean): this;
381
+ /**
382
+ * Blame a buffer instead of the start commit's file (`--contents <file>`): git's fake
383
+ * commit on top of the start commit (default HEAD) and the commits `MERGE_HEAD` names,
384
+ * with null id, holding `content` at the blamed path of the index. Its lines are blamed on
385
+ * "External file (--contents)" where the parents' file differs (`workingTree`: "Not
386
+ * Committed Yet", as `git blame <path>` blames the working tree's file); a path only the
387
+ * index has is all its own, a rename staged in the index is followed. The content is taken
388
+ * as git stores it (no clean filters).
389
+ *
390
+ * @throws Error `--contents and --reverse do not blend well.` with `setReverse`, and
391
+ * `no such path '<path>' in HEAD` when neither a parent nor the index has the path
392
+ */
393
+ setContents(content: Uint8Array, options?: BlameContentsOptions): this;
394
+ /**
395
+ * Stop at commits older than `timestamp` (seconds, committer time; `--since`): they and
396
+ * their ancestors are boundaries, as git's `revs->max_age`
397
+ */
398
+ setSince(timestamp: number): this;
399
+ /**
400
+ * Details that changed between git versions: `histogramRediff` (git 2.54+, default
401
+ * true), `legacyMinimal` (git before 2.5x), `renameCountLastSpan` (rename scores of
402
+ * git 2.50+, default true) and `optionalPaths` (a `blame.ignoreRevsFile` of
403
+ * `:(optional)<path>` naming a missing file is skipped: git 2.52+, default true)
205
404
  */
206
405
  setCompatibility(options: Pick<XdiffOptions, "histogramRediff" | "legacyMinimal"> & {
207
406
  renameCountLastSpan?: boolean;
407
+ optionalPaths?: boolean;
208
408
  }): this;
209
409
  /**
210
410
  * Set the size above which a file is never loaded (git's
@@ -226,23 +426,116 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
226
426
  * @param bytes Size in bytes
227
427
  */
228
428
  setInternerByteLimit(bytes: number): this;
429
+ /**
430
+ * Set how many bytes the caches of `-C` keep between commits (default 32 MiB of line hashes
431
+ * of the files looked in, 16 MiB of their contents): a file not kept is read again for the
432
+ * next commit, as git reads it. The output does not change.
433
+ *
434
+ * @param bytes Size in bytes
435
+ */
436
+ setCopyCacheByteLimit(bytes: number): this;
229
437
  /**
230
438
  * Execute the blame command.
231
439
  *
232
440
  * @returns BlameResult with per-line authorship
233
441
  */
234
442
  call(): Promise<BlameResult>;
443
+ /** The commits a commit's lines pass to: its parents, or its children in reverse */
444
+ private scapegoats;
445
+ /**
446
+ * builtin/blame.c's `build_ignorelist`: `blame.ignoreRevsFile` (sorted, as git inserts
447
+ * them), the files given, then the revisions given
448
+ */
449
+ private buildIgnoreList;
450
+ /**
451
+ * The children each commit passes its lines to in `--reverse` (git's `--children` walk of
452
+ * `<from>..<start>`: `limit_list` then `set_children`, or the first-parent chain)
453
+ */
454
+ private prepareReverse;
235
455
  /** The -L ranges as 0-based half-open ranges, sorted and merged; the whole file otherwise */
236
456
  private ranges;
237
457
  /** git's `assign_blame` */
238
458
  private assignBlame;
239
- /** git's `pass_blame` (without -M/-C) */
459
+ /**
460
+ * revision.c's `mark_parents_uninteresting`: the parents marked, and the parents of those
461
+ * already loaded (parsed) recursively
462
+ */
463
+ private markParentsUninteresting;
464
+ /**
465
+ * blame.c's `fake_working_tree_commit`: a commit with the null id on top of `parentId`
466
+ * (and the commits MERGE_HEAD names, `append_merge_parents`) whose file at `path` is the
467
+ * `--contents` buffer; its id is returned
468
+ */
469
+ private fakeWorkingTreeCommit;
470
+ /** The commits `.git/MERGE_HEAD` names, one per line (`append_merge_parents`) */
471
+ private mergeHeadParents;
472
+ /** Every entry of the index, none without one (a bare repository) */
473
+ private indexEntries;
474
+ /** git's `pass_blame` */
240
475
  private passBlame;
476
+ /**
477
+ * The steps of `pass_blame` before its `finish`: the parents' versions found and compared,
478
+ * then moves and copies looked for; returning is git's `goto finish`
479
+ */
480
+ private passBlameSteps;
481
+ /** `filter_small` of the origin's suspects into `toosmall` */
482
+ private filterSuspects;
483
+ /**
484
+ * git's `filter_small`: the entries of `source` scoring at most `scoreMin` moved to the
485
+ * front of the list after `small`; returns the link before the old head of that list
486
+ */
487
+ private filterSmall;
488
+ /** git's `blame_entry_score`: one more than the alphanumerics of the lines in the final file */
489
+ private entryScore;
490
+ /** git's `prepare_lines`, and the alphanumerics before each line for `entryScore` */
491
+ private prepareLines;
492
+ /** git's `copy_split_if_better`: `potential` kept in `best` when it scores no lower */
493
+ private copySplitIfBetter;
494
+ /**
495
+ * git's `find_copy_in_blob`: the best run of `ent`'s lines (in the final file) that the
496
+ * parent's file has, as a split of `ent`
497
+ */
498
+ private findCopyInBlob;
499
+ /** git's `find_move_in_parent`: lines the target is suspected for found in the parent's file */
500
+ private findMoveInParent;
501
+ /**
502
+ * git's `find_copy_in_parent`: lines the target is suspected for found in other files of
503
+ * the parent (`porigin`, the parent's version of the file, was tried by the move pass)
504
+ */
505
+ private findCopyInParent;
506
+ /**
507
+ * The hash of each line, as the line interner hashes it (`xdl_hash_record` under
508
+ * whitespace flags): lines a diff can match hash alike
509
+ */
510
+ private lineHashesOf;
511
+ /**
512
+ * Kept while the cache has room (and never evicted): a commit scans its parent's files in
513
+ * the order the next one scans them, so evicting the oldest would evict every file before
514
+ * its next use
515
+ */
516
+ private keepCopyHashes;
517
+ /** A file a copy was looked for in, interned, kept as `keepCopyHashes` keeps hashes */
518
+ private keepCopySourceText;
519
+ /**
520
+ * The parent's files `find_copy_in_parent` looks in, in the order git's tree diff lists
521
+ * them: those the commit changed or removed, or (`harder`, find_copies_harder) all of
522
+ * them; never gitlinks
523
+ */
524
+ private copyCandidates;
525
+ /** git's `distribute_blame`: the entries found in parents queued to their origins */
526
+ private distributeBlame;
527
+ /** The diff options of every comparison (`sb->xdl_opts`) */
528
+ private xdiffOptions;
529
+ /** mailmap.c's read_mailmap: `.mailmap` (not in a bare repository), `mailmap.blob`, `mailmap.file` */
530
+ private loadMailmap;
241
531
  /** git's `pass_whole_blame` */
242
532
  private passWholeBlame;
243
533
  /** git's `queue_blames` */
244
534
  private queueBlames;
245
- /** git's `pass_blame_to_parent` */
535
+ /**
536
+ * git's `pass_blame_to_parent`; `ignoreDiffs` (an ignored commit's second pass) passes the
537
+ * changed lines too, to the parent lines they resemble
538
+ */
246
539
  private passBlameToParent;
247
540
  /** git's `find_origin`: the parent's version at the same path, of the same kind */
248
541
  private findOrigin;
@@ -260,6 +553,8 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
260
553
  private lineInterner;
261
554
  /** Whether a blob is over the threshold (from its size, without reading it). */
262
555
  private isBig;
556
+ /** A blob's size, the `--contents` buffer's too */
557
+ private blobSize;
263
558
  /**
264
559
  * A blob's content; `shared` (for content only read here) takes a single chunk as it
265
560
  * comes (a resolved pack object) instead of copying it
@@ -1 +1 @@
1
- {"version":3,"file":"blame-command.d.ts","sourceRoot":"","sources":["../../src/commands/blame-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,EAIL,KAAK,kBAAkB,EAEvB,KAAK,cAAc,EACnB,KAAK,YAAY,EAElB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAc/C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,6CAA6C;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,yFAAyF;IACzF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAA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2B;IAC3B,OAAO,CAAC,WAAW;IAgBnB;;;OAGG;YACW,iBAAiB;IA8C/B,mFAAmF;YACrE,UAAU;IAcxB,mFAAmF;YACrE,UAAU;IAyCxB,2FAA2F;IAC3F,OAAO,CAAC,SAAS;YAyBH,KAAK;YAgBL,aAAa;IAK3B;;;;OAIG;IACH,OAAO,CAAC,YAAY;IASpB,gFAAgF;YAClE,KAAK;IAInB,mDAAmD;YACrC,QAAQ;IAKtB;;;OAGG;YACW,QAAQ;IAsBtB,6CAA6C;YAC/B,MAAM;YAiBN,YAAY;CAW3B"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * git's heuristics for the lines of an ignored commit (blame.c): each changed line of the
3
+ * ignored version is matched with a line of its parent's version by fingerprint
4
+ * (`fuzzy_find_matching_lines` within the diff chunk, then `scan_parent_range` over the
5
+ * whole parent), so `git blame --ignore-rev` can blame it on the commit that wrote that line.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * const parentFps = lineFingerprints(parentContent);
10
+ * const targetFps = lineFingerprints(targetContent);
11
+ * // a chunk replacing parent lines [3, 5) by target lines [3, 7)
12
+ * const blames = guessLineBlames(parentFps, targetFps, 3, 0, 7, 2);
13
+ * blames[0]; // { isParent: true, sLno: 3 } or { isParent: false, sLno: 3 }
14
+ * ```
15
+ *
16
+ * @module
17
+ */
18
+ /**
19
+ * A fingerprint (`struct fingerprint`): the multiset of the lower-cased byte pairs of a line,
20
+ * whitespace (as `\0`) added at both ends, whitespace pairs left out; each pair (`c0 | c1 << 8`)
21
+ * mapped to its count
22
+ */
23
+ export type Fingerprint = Map<number, number>;
24
+ /** git's `find_line_starts`: where each line starts, and the length at the end */
25
+ export declare function lineStartsOf(content: Uint8Array): Int32Array;
26
+ /** git's `get_line_fingerprints` over every line (`fill_origin_fingerprints`) */
27
+ export declare function lineFingerprints(content: Uint8Array): Fingerprint[];
28
+ /**
29
+ * git's `fuzzy_find_matching_lines`: for each target line of `[tlno, same)` the parent line
30
+ * of `[parentSlno, parentSlno + parentLen)` it matches (-1 for none), the line order kept;
31
+ * undefined when the parent chunk is empty. The matched parent fingerprints are reduced by
32
+ * what was matched (`parentFps` changes).
33
+ */
34
+ export declare function fuzzyFindMatchingLines(parentFps: Fingerprint[], targetFps: Fingerprint[], tlno: number, parentSlno: number, same: number, parentLen: number): Int32Array | undefined;
35
+ /** Where a changed line of an ignored commit is blamed (`struct blame_line_tracker`) */
36
+ export interface LineBlame {
37
+ /** Whether it goes to the parent (else it stays with the ignored commit: unblamable) */
38
+ isParent: boolean;
39
+ /** Its line in the parent, or its own line in the target */
40
+ sLno: number;
41
+ }
42
+ /**
43
+ * git's `guess_line_blames`: for the target lines `[tlno, same)` of a diff chunk whose parent
44
+ * side is `parentLen` lines at `tlno + offset`, the parent line each came from, by the fuzzy
45
+ * match within the chunk, else the best match in the whole parent.
46
+ */
47
+ export declare function guessLineBlames(parentFps: Fingerprint[], targetFps: Fingerprint[], tlno: number, offset: number, same: number, parentLen: number): LineBlame[];
48
+ //# sourceMappingURL=blame-ignore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blame-ignore.d.ts","sourceRoot":"","sources":["../../src/commands/blame-ignore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAK9C,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,CAS5D;AAoBD,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,GAAG,WAAW,EAAE,CAKnE;AAwCD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,WAAW,EAAE,EACxB,SAAS,EAAE,WAAW,EAAE,EACxB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAChB,UAAU,GAAG,SAAS,CAqIxB;AAwBD,wFAAwF;AACxF,MAAM,WAAW,SAAS;IACxB,wFAAwF;IACxF,QAAQ,EAAE,OAAO,CAAC;IAClB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,WAAW,EAAE,EACxB,SAAS,EAAE,WAAW,EAAE,EACxB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAChB,SAAS,EAAE,CAYb"}