@statewalker/vcs-commands 0.7.0 → 0.8.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 (410) hide show
  1. package/dist/commands/add-command.d.ts +38 -0
  2. package/dist/commands/add-command.d.ts.map +1 -1
  3. package/dist/commands/am/am-command.d.ts +55 -1
  4. package/dist/commands/am/am-command.d.ts.map +1 -1
  5. package/dist/commands/am/index.d.ts +1 -0
  6. package/dist/commands/am/index.d.ts.map +1 -1
  7. package/dist/commands/am/mailsplit.d.ts +88 -0
  8. package/dist/commands/am/mailsplit.d.ts.map +1 -0
  9. package/dist/commands/apply/apply-command.d.ts.map +1 -1
  10. package/dist/commands/apply/apply-engine.d.ts.map +1 -1
  11. package/dist/commands/apply/apply-parse.d.ts.map +1 -1
  12. package/dist/commands/bisect/bisect-command.d.ts +2 -0
  13. package/dist/commands/bisect/bisect-command.d.ts.map +1 -1
  14. package/dist/commands/branch-command.d.ts +148 -18
  15. package/dist/commands/branch-command.d.ts.map +1 -1
  16. package/dist/commands/branch-info-command.d.ts +55 -0
  17. package/dist/commands/branch-info-command.d.ts.map +1 -0
  18. package/dist/commands/branch-tracking.d.ts +106 -17
  19. package/dist/commands/branch-tracking.d.ts.map +1 -1
  20. package/dist/commands/branch-upstream-command.d.ts +83 -0
  21. package/dist/commands/branch-upstream-command.d.ts.map +1 -0
  22. package/dist/commands/checkout-command.d.ts +19 -3
  23. package/dist/commands/checkout-command.d.ts.map +1 -1
  24. package/dist/commands/cherry-pick-command.d.ts +59 -0
  25. package/dist/commands/cherry-pick-command.d.ts.map +1 -1
  26. package/dist/commands/clean-command.d.ts +12 -0
  27. package/dist/commands/clean-command.d.ts.map +1 -1
  28. package/dist/commands/clone-command.d.ts.map +1 -1
  29. package/dist/commands/commit-command.d.ts +191 -5
  30. package/dist/commands/commit-command.d.ts.map +1 -1
  31. package/dist/commands/commit-reuse.d.ts +33 -0
  32. package/dist/commands/commit-reuse.d.ts.map +1 -0
  33. package/dist/commands/config-command.d.ts +236 -0
  34. package/dist/commands/config-command.d.ts.map +1 -0
  35. package/dist/commands/config-value-types.d.ts +91 -0
  36. package/dist/commands/config-value-types.d.ts.map +1 -0
  37. package/dist/commands/core-config.d.ts +20 -0
  38. package/dist/commands/core-config.d.ts.map +1 -1
  39. package/dist/commands/diff-color-config.d.ts +73 -0
  40. package/dist/commands/diff-color-config.d.ts.map +1 -0
  41. package/dist/commands/diff-command.d.ts +252 -5
  42. package/dist/commands/diff-command.d.ts.map +1 -1
  43. package/dist/commands/fetch-command.d.ts +20 -0
  44. package/dist/commands/fetch-command.d.ts.map +1 -1
  45. package/dist/commands/fmt-merge-msg-command.d.ts +124 -0
  46. package/dist/commands/fmt-merge-msg-command.d.ts.map +1 -0
  47. package/dist/commands/fork-point.d.ts +38 -0
  48. package/dist/commands/fork-point.d.ts.map +1 -0
  49. package/dist/commands/format-patch-command.d.ts +41 -1
  50. package/dist/commands/format-patch-command.d.ts.map +1 -1
  51. package/dist/commands/fsck/fetch-fsck.d.ts +51 -0
  52. package/dist/commands/fsck/fetch-fsck.d.ts.map +1 -1
  53. package/dist/commands/gc-command.d.ts +8 -0
  54. package/dist/commands/gc-command.d.ts.map +1 -1
  55. package/dist/commands/git-describe.d.ts +4 -0
  56. package/dist/commands/git-describe.d.ts.map +1 -1
  57. package/dist/commands/git-hooks.d.ts +35 -0
  58. package/dist/commands/git-hooks.d.ts.map +1 -1
  59. package/dist/commands/grep/grep-command.d.ts +210 -0
  60. package/dist/commands/grep/grep-command.d.ts.map +1 -0
  61. package/dist/commands/grep/grep-engine.d.ts +218 -0
  62. package/dist/commands/grep/grep-engine.d.ts.map +1 -0
  63. package/dist/commands/grep/index.d.ts +3 -0
  64. package/dist/commands/grep/index.d.ts.map +1 -0
  65. package/dist/commands/index-adder.d.ts +13 -2
  66. package/dist/commands/index-adder.d.ts.map +1 -1
  67. package/dist/commands/index.d.ts +26 -0
  68. package/dist/commands/index.d.ts.map +1 -1
  69. package/dist/commands/index.js +3 -3
  70. package/dist/commands/interpret-trailers-command.d.ts +90 -0
  71. package/dist/commands/interpret-trailers-command.d.ts.map +1 -0
  72. package/dist/commands/local-transport.d.ts +36 -5
  73. package/dist/commands/local-transport.d.ts.map +1 -1
  74. package/dist/commands/log-command.d.ts +296 -11
  75. package/dist/commands/log-command.d.ts.map +1 -1
  76. package/dist/commands/log-graph.d.ts +26 -1
  77. package/dist/commands/log-graph.d.ts.map +1 -1
  78. package/dist/commands/log-output.d.ts +133 -5
  79. package/dist/commands/log-output.d.ts.map +1 -1
  80. package/dist/commands/ls-remote-command.d.ts +2 -0
  81. package/dist/commands/ls-remote-command.d.ts.map +1 -1
  82. package/dist/commands/mailmap.d.ts +30 -0
  83. package/dist/commands/mailmap.d.ts.map +1 -1
  84. package/dist/commands/merge-base-command.d.ts +60 -0
  85. package/dist/commands/merge-base-command.d.ts.map +1 -0
  86. package/dist/commands/merge-bases.d.ts +23 -0
  87. package/dist/commands/merge-bases.d.ts.map +1 -1
  88. package/dist/commands/merge-command.d.ts +96 -9
  89. package/dist/commands/merge-command.d.ts.map +1 -1
  90. package/dist/commands/merge-support.d.ts.map +1 -1
  91. package/dist/commands/mv-command.d.ts +4 -0
  92. package/dist/commands/mv-command.d.ts.map +1 -1
  93. package/dist/commands/name-rev.d.ts +48 -0
  94. package/dist/commands/name-rev.d.ts.map +1 -0
  95. package/dist/commands/notes-command.d.ts.map +1 -1
  96. package/dist/commands/pathspec-file.d.ts +39 -0
  97. package/dist/commands/pathspec-file.d.ts.map +1 -0
  98. package/dist/commands/pathspec.d.ts +3 -0
  99. package/dist/commands/pathspec.d.ts.map +1 -1
  100. package/dist/commands/pretty-format.d.ts +43 -3
  101. package/dist/commands/pretty-format.d.ts.map +1 -1
  102. package/dist/commands/promisor-remote.d.ts.map +1 -1
  103. package/dist/commands/pull-command.d.ts +10 -0
  104. package/dist/commands/pull-command.d.ts.map +1 -1
  105. package/dist/commands/push-command.d.ts +160 -9
  106. package/dist/commands/push-command.d.ts.map +1 -1
  107. package/dist/commands/read-tree-command.d.ts +6 -0
  108. package/dist/commands/read-tree-command.d.ts.map +1 -1
  109. package/dist/commands/rebase-command.d.ts +168 -6
  110. package/dist/commands/rebase-command.d.ts.map +1 -1
  111. package/dist/commands/ref-filter/for-each-ref-command.d.ts +121 -0
  112. package/dist/commands/ref-filter/for-each-ref-command.d.ts.map +1 -0
  113. package/dist/commands/ref-filter/index.d.ts +8 -0
  114. package/dist/commands/ref-filter/index.d.ts.map +1 -0
  115. package/dist/commands/ref-filter/ref-atoms.d.ts +88 -0
  116. package/dist/commands/ref-filter/ref-atoms.d.ts.map +1 -0
  117. package/dist/commands/ref-filter/ref-filter.d.ts +178 -0
  118. package/dist/commands/ref-filter/ref-filter.d.ts.map +1 -0
  119. package/dist/commands/ref-filter/ref-format.d.ts +222 -0
  120. package/dist/commands/ref-filter/ref-format.d.ts.map +1 -0
  121. package/dist/commands/ref-filter/ref-listing-command.d.ts +56 -0
  122. package/dist/commands/ref-filter/ref-listing-command.d.ts.map +1 -0
  123. package/dist/commands/ref-filter/ref-quote.d.ts +20 -0
  124. package/dist/commands/ref-filter/ref-quote.d.ts.map +1 -0
  125. package/dist/commands/ref-filter/version-compare.d.ts +20 -0
  126. package/dist/commands/ref-filter/version-compare.d.ts.map +1 -0
  127. package/dist/commands/reflog-command.d.ts +120 -0
  128. package/dist/commands/reflog-command.d.ts.map +1 -1
  129. package/dist/commands/reflog-walk.d.ts +72 -0
  130. package/dist/commands/reflog-walk.d.ts.map +1 -0
  131. package/dist/commands/remote-command.d.ts +138 -29
  132. package/dist/commands/remote-command.d.ts.map +1 -1
  133. package/dist/commands/remote-transport.d.ts +7 -1
  134. package/dist/commands/remote-transport.d.ts.map +1 -1
  135. package/dist/commands/reset-command.d.ts +2 -3
  136. package/dist/commands/reset-command.d.ts.map +1 -1
  137. package/dist/commands/restore-command.d.ts +2 -3
  138. package/dist/commands/restore-command.d.ts.map +1 -1
  139. package/dist/commands/rev-filter/commit-filter.d.ts +95 -0
  140. package/dist/commands/rev-filter/commit-filter.d.ts.map +1 -0
  141. package/dist/commands/rev-filter/commit-grep.d.ts +91 -0
  142. package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -0
  143. package/dist/commands/rev-filter/index.d.ts +3 -0
  144. package/dist/commands/rev-filter/index.d.ts.map +1 -0
  145. package/dist/commands/rev-list-command.d.ts +154 -2
  146. package/dist/commands/rev-list-command.d.ts.map +1 -1
  147. package/dist/commands/revert-command.d.ts +32 -0
  148. package/dist/commands/revert-command.d.ts.map +1 -1
  149. package/dist/commands/revision-range.d.ts +32 -1
  150. package/dist/commands/revision-range.d.ts.map +1 -1
  151. package/dist/commands/revision-resolver.d.ts +15 -0
  152. package/dist/commands/revision-resolver.d.ts.map +1 -1
  153. package/dist/commands/rm-command.d.ts +70 -2
  154. package/dist/commands/rm-command.d.ts.map +1 -1
  155. package/dist/commands/sequencer-pick.d.ts +84 -4
  156. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  157. package/dist/commands/sequencer-support.d.ts +2 -0
  158. package/dist/commands/sequencer-support.d.ts.map +1 -1
  159. package/dist/commands/serve-repository.d.ts +7 -0
  160. package/dist/commands/serve-repository.d.ts.map +1 -1
  161. package/dist/commands/show-command.d.ts +130 -0
  162. package/dist/commands/show-command.d.ts.map +1 -0
  163. package/dist/commands/show-commit.d.ts +11 -0
  164. package/dist/commands/show-commit.d.ts.map +1 -0
  165. package/dist/commands/signature-check.d.ts +164 -0
  166. package/dist/commands/signature-check.d.ts.map +1 -0
  167. package/dist/commands/signing.d.ts +160 -0
  168. package/dist/commands/signing.d.ts.map +1 -0
  169. package/dist/commands/sparse-checkout-command.d.ts.map +1 -1
  170. package/dist/commands/sparse-index-view.d.ts +45 -0
  171. package/dist/commands/sparse-index-view.d.ts.map +1 -0
  172. package/dist/commands/ssh-signer.d.ts +29 -0
  173. package/dist/commands/ssh-signer.d.ts.map +1 -0
  174. package/dist/commands/ssh-verifier.d.ts +42 -0
  175. package/dist/commands/ssh-verifier.d.ts.map +1 -0
  176. package/dist/commands/stash-apply-command.d.ts +5 -0
  177. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  178. package/dist/commands/stash-branch-command.d.ts +34 -0
  179. package/dist/commands/stash-branch-command.d.ts.map +1 -0
  180. package/dist/commands/stash-create-command.d.ts +17 -0
  181. package/dist/commands/stash-create-command.d.ts.map +1 -1
  182. package/dist/commands/stash-info.d.ts +93 -0
  183. package/dist/commands/stash-info.d.ts.map +1 -0
  184. package/dist/commands/stash-list-command.d.ts +16 -0
  185. package/dist/commands/stash-list-command.d.ts.map +1 -1
  186. package/dist/commands/stash-pop-command.d.ts +39 -0
  187. package/dist/commands/stash-pop-command.d.ts.map +1 -0
  188. package/dist/commands/stash-show-command.d.ts +48 -0
  189. package/dist/commands/stash-show-command.d.ts.map +1 -0
  190. package/dist/commands/stash-store-command.d.ts +29 -0
  191. package/dist/commands/stash-store-command.d.ts.map +1 -0
  192. package/dist/commands/stash-working-tree.d.ts.map +1 -1
  193. package/dist/commands/status-command.d.ts.map +1 -1
  194. package/dist/commands/status-header.d.ts +5 -0
  195. package/dist/commands/status-header.d.ts.map +1 -1
  196. package/dist/commands/submodule-add-command.d.ts +89 -0
  197. package/dist/commands/submodule-add-command.d.ts.map +1 -0
  198. package/dist/commands/submodule-auth.d.ts +90 -0
  199. package/dist/commands/submodule-auth.d.ts.map +1 -0
  200. package/dist/commands/submodule-commands.d.ts +375 -0
  201. package/dist/commands/submodule-commands.d.ts.map +1 -0
  202. package/dist/commands/submodule-model.d.ts +288 -0
  203. package/dist/commands/submodule-model.d.ts.map +1 -0
  204. package/dist/commands/submodule-update-command.d.ts +198 -0
  205. package/dist/commands/submodule-update-command.d.ts.map +1 -0
  206. package/dist/commands/switch-command.d.ts.map +1 -1
  207. package/dist/commands/tag-command.d.ts +259 -10
  208. package/dist/commands/tag-command.d.ts.map +1 -1
  209. package/dist/commands/trailers.d.ts +218 -17
  210. package/dist/commands/trailers.d.ts.map +1 -1
  211. package/dist/commands/tree-restore.d.ts +7 -0
  212. package/dist/commands/tree-restore.d.ts.map +1 -1
  213. package/dist/commands/verify-command.d.ts +92 -0
  214. package/dist/commands/verify-command.d.ts.map +1 -0
  215. package/dist/commands/worktree-add-command.d.ts +79 -7
  216. package/dist/commands/worktree-add-command.d.ts.map +1 -1
  217. package/dist/commands/worktree-path-rules.d.ts +66 -0
  218. package/dist/commands/worktree-path-rules.d.ts.map +1 -0
  219. package/dist/commands/worktree-remove-command.d.ts +10 -3
  220. package/dist/commands/worktree-remove-command.d.ts.map +1 -1
  221. package/dist/commands/worktree-repair-command.d.ts +15 -2
  222. package/dist/commands/worktree-repair-command.d.ts.map +1 -1
  223. package/dist/commands/worktree-support.d.ts +5 -0
  224. package/dist/commands/worktree-support.d.ts.map +1 -1
  225. package/dist/{commands-DIJ91NnD.js → commands-ISM52N0n.js} +70736 -54492
  226. package/dist/errors/checkout-errors.d.ts +19 -0
  227. package/dist/errors/checkout-errors.d.ts.map +1 -1
  228. package/dist/errors/command-errors.d.ts.map +1 -1
  229. package/dist/errors/index.js +57 -3
  230. package/dist/errors/ref-errors.d.ts +19 -0
  231. package/dist/errors/ref-errors.d.ts.map +1 -1
  232. package/dist/errors/worktree-errors.d.ts +6 -1
  233. package/dist/errors/worktree-errors.d.ts.map +1 -1
  234. package/dist/{git-command-BGiOJ8Zk.js → fsck-DLRpbwTj.js} +6230 -71
  235. package/dist/git-command.d.ts +27 -1
  236. package/dist/git-command.d.ts.map +1 -1
  237. package/dist/git.d.ts +267 -1
  238. package/dist/git.d.ts.map +1 -1
  239. package/dist/index.js +5 -5
  240. package/dist/remote-config/index.d.ts +1 -1
  241. package/dist/remote-config/index.d.ts.map +1 -1
  242. package/dist/remote-config/remote-config-store.d.ts +55 -0
  243. package/dist/remote-config/remote-config-store.d.ts.map +1 -1
  244. package/dist/results/combined-diff.d.ts +3 -0
  245. package/dist/results/combined-diff.d.ts.map +1 -1
  246. package/dist/results/diff-check.d.ts +38 -0
  247. package/dist/results/diff-check.d.ts.map +1 -0
  248. package/dist/results/diff-color.d.ts +135 -0
  249. package/dist/results/diff-color.d.ts.map +1 -0
  250. package/dist/results/diff-output.d.ts +85 -1
  251. package/dist/results/diff-output.d.ts.map +1 -1
  252. package/dist/results/diff-pickaxe.d.ts +67 -0
  253. package/dist/results/diff-pickaxe.d.ts.map +1 -0
  254. package/dist/results/diff-words.d.ts +55 -0
  255. package/dist/results/diff-words.d.ts.map +1 -0
  256. package/dist/results/index.d.ts +4 -0
  257. package/dist/results/index.d.ts.map +1 -1
  258. package/dist/results/index.js +2 -2
  259. package/dist/results/push-result.d.ts +7 -0
  260. package/dist/results/push-result.d.ts.map +1 -1
  261. package/dist/results/rebase-result.d.ts +2 -0
  262. package/dist/results/rebase-result.d.ts.map +1 -1
  263. package/dist/results/stash-result.d.ts +6 -0
  264. package/dist/results/stash-result.d.ts.map +1 -1
  265. package/dist/{results-WVlBhVb1.js → results-TB2IJ64h.js} +2168 -403
  266. package/dist/whitespace/index.d.ts +2 -0
  267. package/dist/whitespace/index.d.ts.map +1 -0
  268. package/dist/whitespace/whitespace-rule.d.ts +94 -0
  269. package/dist/whitespace/whitespace-rule.d.ts.map +1 -0
  270. package/package.json +12 -12
  271. package/src/commands/add-command.ts +178 -17
  272. package/src/commands/am/am-command.ts +262 -42
  273. package/src/commands/am/index.ts +1 -0
  274. package/src/commands/am/mailsplit.ts +326 -0
  275. package/src/commands/apply/apply-command.ts +6 -6
  276. package/src/commands/apply/apply-engine.ts +1 -1
  277. package/src/commands/apply/apply-parse.ts +7 -8
  278. package/src/commands/bisect/bisect-command.ts +18 -5
  279. package/src/commands/branch-command.ts +528 -53
  280. package/src/commands/branch-info-command.ts +150 -0
  281. package/src/commands/branch-tracking.ts +335 -60
  282. package/src/commands/branch-upstream-command.ts +218 -0
  283. package/src/commands/checkout-command.ts +69 -43
  284. package/src/commands/cherry-pick-command.ts +143 -0
  285. package/src/commands/clean-command.ts +34 -3
  286. package/src/commands/clone-command.ts +2 -1
  287. package/src/commands/commit-command.ts +782 -64
  288. package/src/commands/commit-reuse.ts +94 -0
  289. package/src/commands/config-command.ts +1256 -0
  290. package/src/commands/config-value-types.ts +358 -0
  291. package/src/commands/core-config.ts +40 -0
  292. package/src/commands/diff-color-config.ts +274 -0
  293. package/src/commands/diff-command.ts +1009 -49
  294. package/src/commands/fetch-command.ts +142 -8
  295. package/src/commands/fmt-merge-msg-command.ts +715 -0
  296. package/src/commands/fork-point.ts +63 -0
  297. package/src/commands/format-patch-command.ts +314 -46
  298. package/src/commands/fsck/fetch-fsck.ts +172 -18
  299. package/src/commands/gc-command.ts +31 -1
  300. package/src/commands/git-describe.ts +31 -11
  301. package/src/commands/git-hooks.ts +81 -0
  302. package/src/commands/grep/grep-command.ts +1077 -0
  303. package/src/commands/grep/grep-engine.ts +1024 -0
  304. package/src/commands/grep/index.ts +2 -0
  305. package/src/commands/index-adder.ts +46 -7
  306. package/src/commands/index.ts +26 -0
  307. package/src/commands/interpret-trailers-command.ts +256 -0
  308. package/src/commands/local-transport.ts +109 -10
  309. package/src/commands/log-command.ts +1246 -210
  310. package/src/commands/log-graph.ts +123 -26
  311. package/src/commands/log-output.ts +280 -21
  312. package/src/commands/ls-remote-command.ts +5 -0
  313. package/src/commands/mailmap.ts +119 -0
  314. package/src/commands/merge-base-command.ts +170 -0
  315. package/src/commands/merge-bases.ts +63 -8
  316. package/src/commands/merge-command.ts +330 -82
  317. package/src/commands/merge-support.ts +14 -1
  318. package/src/commands/mv-command.ts +6 -3
  319. package/src/commands/name-rev.ts +171 -0
  320. package/src/commands/notes-command.ts +11 -1
  321. package/src/commands/pathspec-file.ts +72 -0
  322. package/src/commands/pathspec.ts +14 -2
  323. package/src/commands/pretty-format.ts +103 -19
  324. package/src/commands/promisor-remote.ts +10 -1
  325. package/src/commands/pull-command.ts +26 -7
  326. package/src/commands/push-command.ts +682 -65
  327. package/src/commands/read-tree-command.ts +28 -1
  328. package/src/commands/rebase-command.ts +933 -129
  329. package/src/commands/ref-filter/for-each-ref-command.ts +298 -0
  330. package/src/commands/ref-filter/index.ts +7 -0
  331. package/src/commands/ref-filter/ref-atoms.ts +581 -0
  332. package/src/commands/ref-filter/ref-filter.ts +651 -0
  333. package/src/commands/ref-filter/ref-format.ts +1070 -0
  334. package/src/commands/ref-filter/ref-listing-command.ts +421 -0
  335. package/src/commands/ref-filter/ref-quote.ts +69 -0
  336. package/src/commands/ref-filter/version-compare.ts +177 -0
  337. package/src/commands/reflog-command.ts +492 -2
  338. package/src/commands/reflog-walk.ts +234 -0
  339. package/src/commands/remote-command.ts +449 -69
  340. package/src/commands/remote-transport.ts +9 -1
  341. package/src/commands/reset-command.ts +36 -31
  342. package/src/commands/restore-command.ts +12 -41
  343. package/src/commands/rev-filter/commit-filter.ts +159 -0
  344. package/src/commands/rev-filter/commit-grep.ts +444 -0
  345. package/src/commands/rev-filter/index.ts +2 -0
  346. package/src/commands/rev-list-command.ts +402 -15
  347. package/src/commands/revert-command.ts +82 -0
  348. package/src/commands/revision-range.ts +204 -4
  349. package/src/commands/revision-resolver.ts +23 -8
  350. package/src/commands/rm-command.ts +282 -21
  351. package/src/commands/sequencer-pick.ts +498 -85
  352. package/src/commands/sequencer-support.ts +20 -2
  353. package/src/commands/serve-repository.ts +18 -3
  354. package/src/commands/show-command.ts +490 -0
  355. package/src/commands/show-commit.ts +24 -0
  356. package/src/commands/signature-check.ts +657 -0
  357. package/src/commands/signing.ts +385 -0
  358. package/src/commands/sparse-checkout-command.ts +2 -9
  359. package/src/commands/sparse-checkout-support.ts +2 -2
  360. package/src/commands/sparse-index-view.ts +135 -0
  361. package/src/commands/ssh-signer.ts +199 -0
  362. package/src/commands/ssh-verifier.ts +523 -0
  363. package/src/commands/stash-apply-command.ts +16 -4
  364. package/src/commands/stash-branch-command.ts +88 -0
  365. package/src/commands/stash-create-command.ts +28 -0
  366. package/src/commands/stash-info.ts +243 -0
  367. package/src/commands/stash-list-command.ts +33 -0
  368. package/src/commands/stash-pop-command.ts +83 -0
  369. package/src/commands/stash-show-command.ts +141 -0
  370. package/src/commands/stash-store-command.ts +82 -0
  371. package/src/commands/stash-working-tree.ts +2 -2
  372. package/src/commands/status-command.ts +5 -2
  373. package/src/commands/status-header.ts +41 -7
  374. package/src/commands/submodule-add-command.ts +509 -0
  375. package/src/commands/submodule-auth.ts +276 -0
  376. package/src/commands/submodule-commands.ts +1517 -0
  377. package/src/commands/submodule-model.ts +930 -0
  378. package/src/commands/submodule-update-command.ts +1092 -0
  379. package/src/commands/switch-command.ts +3 -1
  380. package/src/commands/tag-command.ts +876 -64
  381. package/src/commands/trailers.ts +837 -100
  382. package/src/commands/tree-restore.ts +38 -10
  383. package/src/commands/verify-command.ts +235 -0
  384. package/src/commands/worktree-add-command.ts +268 -24
  385. package/src/commands/worktree-path-rules.ts +183 -0
  386. package/src/commands/worktree-remove-command.ts +39 -5
  387. package/src/commands/worktree-repair-command.ts +52 -5
  388. package/src/commands/worktree-support.ts +22 -1
  389. package/src/errors/checkout-errors.ts +29 -0
  390. package/src/errors/command-errors.ts +2 -1
  391. package/src/errors/ref-errors.ts +23 -0
  392. package/src/errors/worktree-errors.ts +8 -1
  393. package/src/git-command.ts +66 -1
  394. package/src/git.ts +404 -1
  395. package/src/remote-config/index.ts +2 -0
  396. package/src/remote-config/remote-config-store.ts +101 -0
  397. package/src/results/combined-diff.ts +38 -18
  398. package/src/results/diff-check.ts +185 -0
  399. package/src/results/diff-color.ts +868 -0
  400. package/src/results/diff-output.ts +195 -30
  401. package/src/results/diff-pickaxe.ts +304 -0
  402. package/src/results/diff-words.ts +395 -0
  403. package/src/results/index.ts +4 -0
  404. package/src/results/push-result.ts +7 -0
  405. package/src/results/rebase-result.ts +3 -0
  406. package/src/results/stash-result.ts +7 -0
  407. package/src/whitespace/index.ts +1 -0
  408. package/src/{commands/apply/whitespace.ts → whitespace/whitespace-rule.ts} +173 -23
  409. package/dist/commands/apply/whitespace.d.ts +0 -58
  410. package/dist/commands/apply/whitespace.d.ts.map +0 -1
@@ -5,7 +5,8 @@
5
5
  * is decided in `remote-transport.ts` (`resolveRemote`).
6
6
  */
7
7
  import { type Duplex, type GitServeSettings, type ReceivePackConnection, type ReceivePackHookContext, type ReceivePackHooks, type ServedRequestContext, type UploadPackConnection } from "@statewalker/vcs-transport";
8
- import { type LinkedWorktrees, type OpenedRepository, type WorkingCopy } from "@statewalker/vcs-working-tree";
8
+ import { type GitHostEnvironment, type LinkedWorktrees, type OpenedRepository, type WorkingCopy } from "@statewalker/vcs-working-tree";
9
+ import { type ReceiveFsckSettings } from "./fsck/index.js";
9
10
  import { HookSession } from "./git-hooks.js";
10
11
  /**
11
12
  * A connected pair of in-memory duplex streams: what one side writes, the other reads. `end`
@@ -62,9 +63,16 @@ hooks?: HookSession,
62
63
  * output reaches the pushing user's stderr directly, not as "remote: " lines
63
64
  */
64
65
  transactionHooks?: HookSession | undefined,
65
- /** `protocol.version`: 1 has receive-pack answer `version 1` first (2 is v0 for a push) */
66
+ /**
67
+ * `protocol.version`: 1 has receive-pack answer `version 1` first (2 is v0 for a push);
68
+ * `host`: where receive-pack runs ({@link ReceivePackHost}); `onWarning`: receive-pack's own
69
+ * warnings as it reads its config (`warning: skipping unknown msg id '<id>'`), which git's
70
+ * local transport shows on the pushing user's stderr
71
+ */
66
72
  options?: {
67
73
  protocolVersion?: 0 | 1 | 2;
74
+ host?: ReceivePackHost;
75
+ onWarning?: (line: string) => void;
68
76
  }): Promise<T>;
69
77
  /**
70
78
  * Runs `body` with the reference-transaction hook of `hooks` (a receiving repository's
@@ -74,13 +82,36 @@ options?: {
74
82
  * runner, or a ref store that cannot take one, `body` alone.
75
83
  */
76
84
  export declare function withReceiveTransactionHook<T>(remote: OpenedRepository, hooks: HookSession | undefined, body: () => Promise<T>): Promise<T>;
85
+ /** Where receive-pack runs: what it reads besides the served repository. */
86
+ export interface ReceivePackHost {
87
+ /** The host environment (absolute and `~/` skip lists, `$HOME`) */
88
+ environment?: GitHostEnvironment;
89
+ /** Whose messages to give where git 2.43 and 2.5x differ (default 2.5x) */
90
+ compatibility?: "2.43" | "2.56";
91
+ /**
92
+ * The repository is someone else's (served): files its configuration names (a
93
+ * `receive.fsck.skipList`) are read only inside its own git directories, as confined
94
+ * includes (`configIncludes: "files"`), never from the host; a local push into one's own
95
+ * repository reads them as git does
96
+ */
97
+ confineFiles?: boolean;
98
+ }
99
+ /**
100
+ * receive-pack's `receive.fsckObjects` / `transfer.fsckObjects` settings of the repository it
101
+ * serves (`receiveFsckOf`): skip lists named by a relative path are read from its git
102
+ * directory (receive-pack's working directory), absolute ones from the host; with
103
+ * `confineFiles` (a served repository) only files inside its own git directories, where their
104
+ * links lead and capped as confined includes (`readConfinedFile`), anything else unreadable.
105
+ */
106
+ export declare function receiveFsckSettingsOf(remote: OpenedRepository, host?: ReceivePackHost): ReceiveFsckSettings;
77
107
  /**
78
108
  * The settings git's receive-pack takes from the repository it serves: the policies and hidden
79
109
  * refs of its config (`serverSettingsFromConfig`), its current branch and the branches its
80
- * worktrees have checked out, `updateInstead` (push-to-checkout, push-to-deploy), and, with
81
- * hooks, pre-receive / update / post-receive run as git's receive-pack runs them.
110
+ * worktrees have checked out, `updateInstead` (push-to-checkout, push-to-deploy), the fsck of
111
+ * pushed objects (`receive.fsckObjects`, {@link receiveFsckSettingsOf}) and, with hooks,
112
+ * pre-receive / update / post-receive run as git's receive-pack runs them.
82
113
  */
83
- export declare function receivePackSettingsOf(remote: OpenedRepository, hooks?: HookSession, receiveHooks?: ReceivePackHooks | undefined): Promise<GitServeSettings>;
114
+ export declare function receivePackSettingsOf(remote: OpenedRepository, hooks?: HookSession, receiveHooks?: ReceivePackHooks | undefined, host?: ReceivePackHost): Promise<GitServeSettings>;
84
115
  /**
85
116
  * The hooks of a repository a local push reaches (git's receive-pack runs them there): found
86
117
  * in its git directory (or its `core.hooksPath`), run in its git directory, through the host
@@ -1 +1 @@
1
- {"version":3,"file":"local-transport.d.ts","sourceRoot":"","sources":["../../src/comm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EACnB,YAAY,GAAE,gBAAgB,GAAG,SAEpB,EACb,IAAI,GAAE,eAAoB,GACzB,OAAO,CAAC,gBAAgB,CAAC,CA8C3B;AA4ED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GACpC,WAAW,GAAG,SAAS,CAiCzB;AA4BD;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,KAAK,EAAE,WAAW,EAClB,GAAG,EAAE,IAAI,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,GAClD,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAuBjC;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,oBAAoB,GAAG,SAAS,GACvC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB"}
@@ -1,7 +1,8 @@
1
- import { type Commit, type ObjectId } from "@statewalker/vcs-core";
1
+ import { type Commit, type ObjectId, type PersonIdent } from "@statewalker/vcs-core";
2
2
  import { GitCommand } from "../git-command.js";
3
3
  import { type DiffTextOptions } from "./diff-command.js";
4
- import { type LogOutputOptions } from "./log-output.js";
4
+ import { type LogOutputOptions, type LogReflogEntry } from "./log-output.js";
5
+ import { type CommitFilter, type GrepPatternType } from "./rev-filter/index.js";
5
6
  /**
6
7
  * Result of a log command iteration.
7
8
  *
@@ -10,7 +11,50 @@ import { type LogOutputOptions } from "./log-output.js";
10
11
  export interface LogResult extends Commit {
11
12
  /** The SHA-1 object ID of the commit */
12
13
  id: ObjectId;
14
+ /**
15
+ * A boundary commit ({@link LogCommand.setBoundary}): a parent of a commit listed that is
16
+ * not listed itself, given after the others (git's `BOUNDARY`, the `-` mark)
17
+ */
18
+ boundary?: boolean;
19
+ /**
20
+ * The name the commit was reached from ({@link LogCommand.setSource}, git's `--source`):
21
+ * the revision as given, or the ref `--all`, `--branches`... named
22
+ */
23
+ source?: string;
24
+ /** In a reflog walk ({@link LogCommand.addReflogWalk}), the entry the commit is listed for */
25
+ reflog?: LogReflogEntry;
13
26
  }
27
+ /**
28
+ * What `git show` prints through one log printer (see {@link LogCommand.showSession}).
29
+ *
30
+ * @internal
31
+ */
32
+ export interface ShowSession {
33
+ /** Shows a commit as git show does; false when it was not shown (already, or TREESAME) */
34
+ commit(id: ObjectId): Promise<boolean>;
35
+ /** The newline before a tag or tree once something was shown */
36
+ separate(): void;
37
+ /** Marks something shown (a tag's or tree's header) */
38
+ markShown(): void;
39
+ text(text: string): void;
40
+ bytes(bytes: Uint8Array): void;
41
+ /** A tag's `tagger` line as `Tagger:` (and its date) in the format */
42
+ tagger(ident: PersonIdent): void;
43
+ /** Everything printed */
44
+ result(): Uint8Array;
45
+ /** The `color.diff.commit` color and its reset of a tag's or tree's header ("" without color) */
46
+ readonly commitColor: {
47
+ set: string;
48
+ reset: string;
49
+ };
50
+ }
51
+ /**
52
+ * The order of the commits listed: git's `--topo-order` (`topo`: no parent before all its
53
+ * children, a line of history kept together), `--date-order` (`date`: no parent before its
54
+ * children, else newest commit date first), `--author-date-order` (`author-date`: as `date`
55
+ * by author date).
56
+ */
57
+ export type LogOrder = "topo" | "date" | "author-date";
14
58
  /**
15
59
  * What a path-limited walk did (git's trace2 `bloom` statistics, and the tree work behind
16
60
  * them): how often the changed-path filters answered, and how many tree entries the walk read
@@ -120,12 +164,115 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
120
164
  private authorPattern?;
121
165
  private committerPattern?;
122
166
  private revFilter;
167
+ /** `--grep` patterns */
168
+ private readonly grepMessages;
169
+ /** `--author` patterns */
170
+ private readonly grepAuthors;
171
+ /** `--committer` patterns */
172
+ private readonly grepCommitters;
173
+ private allMatch;
174
+ private invertGrep;
175
+ private regexpIgnoreCase;
176
+ private patternType?;
177
+ private useMailmap?;
178
+ private logConfig;
179
+ private readonly commitFilters;
180
+ /** The filter of the walk under way (git's options and the added filters) */
181
+ private activeFilter?;
123
182
  private useBloomFilters;
124
183
  private readonly statistics;
125
184
  /** The commits of the last walk (for its statistics). */
126
185
  private lastWalk;
127
186
  /** Set while {@link callBytes} collects the walk for its output */
128
187
  private outputWalk;
188
+ /** `-g <ref>...`: the reflogs walked instead of the history (names as given) */
189
+ private reflogWalkNames?;
190
+ /** `--grep-reflog` patterns */
191
+ private readonly grepReflogs;
192
+ /** The git version whose behaviour differs where versions differ */
193
+ private compatibility;
194
+ /** `--topo-order`, `--date-order`, `--author-date-order` */
195
+ private order?;
196
+ /** `--reverse` */
197
+ private reverse;
198
+ /** `--boundary` */
199
+ private boundary;
200
+ /** `--source` */
201
+ private source;
202
+ /**
203
+ * The order of the commits ({@link LogOrder}); undefined is git's default, newest commit
204
+ * date first as the walk meets them. A sorted walk reads the whole history it lists
205
+ * before giving the first commit.
206
+ *
207
+ * @example
208
+ * ```typescript
209
+ * // git rev-list --topo-order main
210
+ * await git.log().add(main).setOrder("topo").call();
211
+ * ```
212
+ */
213
+ setOrder(order: LogOrder | undefined): this;
214
+ /**
215
+ * `--reverse`: the commits chosen (after `-n` and `--skip`, boundary commits included)
216
+ * given oldest first.
217
+ */
218
+ setReverse(reverse: boolean): this;
219
+ /**
220
+ * `--boundary`: after the commits listed, the parents of those that are not listed
221
+ * themselves (excluded, cut by `-n`, `--since` or a filter), each with `boundary: true`,
222
+ * as git's get_revision lists them (sorted as `sort_in_topological_order` sorts them).
223
+ *
224
+ * @example
225
+ * ```typescript
226
+ * // git rev-list --boundary main..topic
227
+ * for await (const c of await git.log().addRange(main, topic).setBoundary(true).call())
228
+ * console.log(`${c.boundary ? "-" : ""}${c.id}`);
229
+ * ```
230
+ */
231
+ setBoundary(boundary: boolean): this;
232
+ /**
233
+ * `--source`: each commit carries the name it was reached from (`source`): the name given
234
+ * to {@link add}/{@link not}, the ref of {@link all}, `HEAD` for the default, passed from
235
+ * child to parent as the walk goes (the first name to reach a commit wins).
236
+ */
237
+ setSource(source: boolean): this;
238
+ /**
239
+ * `git log -g <ref>` (`--walk-reflogs`) for the printed log ({@link callText}): the
240
+ * commits of `ref`'s reflog, newest entry first, each shown with its entry (`Reflog:`
241
+ * lines, `<sel>: <message>` under `--oneline`, `%gd`/`%gD`/`%gs`/`%gn`/`%ge` in a format,
242
+ * `<ref>@{<date>}` under an explicit `--date`). `-n`, `--skip` and the commit filters
243
+ * (`--grep`, `--author`...) apply; entries whose object is no commit are passed over.
244
+ */
245
+ setReflogWalk(ref: string): this;
246
+ /**
247
+ * One more reflog of a reflog walk (`git log -g <name>...`): `HEAD`, `main`,
248
+ * `refs/heads/main`, with a selector of its first entry (`main@{2}`, `HEAD@{now}`,
249
+ * `@{0}` for the current branch, `@{-1}`). The walk takes the newest of the logs' entries
250
+ * each time (reflog-walk.c), so several logs interleave by date; a name without a reflog
251
+ * shows nothing. {@link call} gives the commits, {@link callText} the log with each entry.
252
+ *
253
+ * @example
254
+ * ```typescript
255
+ * // git log -g --format='%gd %gs' HEAD main
256
+ * await git.log().addReflogWalk("HEAD").addReflogWalk("main").callText({ pretty: "format:%gd %gs" });
257
+ * ```
258
+ */
259
+ addReflogWalk(name: string): this;
260
+ /**
261
+ * `-g` / `--walk-reflogs`: walk reflogs instead of history, those {@link addReflogWalk}
262
+ * names, HEAD's when it names none (`git log -g`).
263
+ */
264
+ setWalkReflogs(walk: boolean): this;
265
+ /**
266
+ * The git version to follow where versions differ (default 2.56): 2.43 refuses a reflog
267
+ * walk's `--reverse` before a sorted walk (`--topo-order`, `--graph`), 2.56 after.
268
+ */
269
+ setCompatibility(version: "2.43" | "2.56"): this;
270
+ /**
271
+ * `--grep-reflog=<pattern>`: a reflog walk shows only entries whose message matches (a
272
+ * header pattern beside `--author`/`--committer`, combined with `--grep` as git's
273
+ * commit_match). Without a reflog walk the log dies, as git does.
274
+ */
275
+ addGrepReflog(pattern: string): this;
129
276
  /**
130
277
  * Add a starting commit for the log.
131
278
  *
@@ -134,8 +281,9 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
134
281
  * peels it; with {@link all} the refs are walked besides (`git log --all <commit>`).
135
282
  *
136
283
  * @param commit ObjectId of commit to start from
284
+ * @param name The name it was given by, which {@link setSource} reports (the id without)
137
285
  */
138
- add(commit: ObjectId): this;
286
+ add(commit: ObjectId, name?: string): this;
139
287
  /**
140
288
  * Filter commits to only those affecting the given path.
141
289
  *
@@ -198,8 +346,9 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
198
346
  * Useful for finding commits in one branch but not another.
199
347
  *
200
348
  * @param commit ObjectId to exclude along with its ancestors
349
+ * @param name The name it was given by (see {@link add})
201
350
  */
202
- not(commit: ObjectId): this;
351
+ not(commit: ObjectId, name?: string): this;
203
352
  /**
204
353
  * Set minimum commit time (--since/--after).
205
354
  *
@@ -242,6 +391,56 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
242
391
  * @param filter Revision filter
243
392
  */
244
393
  setRevFilter(filter: RevFilter): this;
394
+ /**
395
+ * `--grep=<pattern>`: commits whose message has a line matching the pattern (several:
396
+ * any of them, every one with {@link setAllMatch}). Patterns are basic POSIX regexes unless
397
+ * {@link setPatternType} or `grep.patternType`/`grep.extendedRegexp` say otherwise, matched
398
+ * as git's grep.c matches them (`--grep=` matches every commit with a message part).
399
+ *
400
+ * @example
401
+ * ```typescript
402
+ * // git log --grep=fix --grep=bug --all-match -i
403
+ * await git.log().addGrep("fix").addGrep("bug").setAllMatch(true).setRegexpIgnoreCase(true).call();
404
+ * ```
405
+ */
406
+ addGrep(pattern: string): this;
407
+ /**
408
+ * `--author=<pattern>`: commits whose `author` header line (name and email, the date left
409
+ * out; mapped through the mailmap under `log.mailmap`) matches the pattern; several are
410
+ * or-ed. Unlike {@link setAuthorFilter}, the pattern is git's (a basic regex, case-sensitive
411
+ * without {@link setRegexpIgnoreCase}).
412
+ */
413
+ addAuthor(pattern: string): this;
414
+ /** `--committer=<pattern>`: as {@link addAuthor}, on the `committer` header line. */
415
+ addCommitter(pattern: string): this;
416
+ /** `--all-match`: every `--grep` pattern must match (author and committer patterns always must). */
417
+ setAllMatch(allMatch: boolean): this;
418
+ /** `--invert-grep`: commits whose message matches no `--grep` pattern (not `--author`'s). */
419
+ setInvertGrep(invert: boolean): this;
420
+ /** `-i` / `--regexp-ignore-case`: the patterns fold ASCII case. */
421
+ setRegexpIgnoreCase(ignoreCase: boolean): this;
422
+ /**
423
+ * The patterns' type: `--basic-regexp`, `-E` (`extended`), `-F` (`fixed`) or `-P`
424
+ * (`perl`: refused as a git built without PCRE refuses it, unless the pattern has no regex
425
+ * character). Default: `grep.patternType`, else `grep.extendedRegexp`, else basic.
426
+ */
427
+ setPatternType(type: GrepPatternType): this;
428
+ /**
429
+ * Whether `--author`/`--committer` match the identities as the mailmap maps them
430
+ * (`--use-mailmap`/`--no-mailmap`; default `log.mailmap`, true, as `git log`).
431
+ */
432
+ setUseMailmap(use: boolean): this;
433
+ /**
434
+ * Whether the filters read `git log`'s configuration (default true): `grep.patternType`,
435
+ * `grep.extendedRegexp` and `log.mailmap`. False reads none of them, as `git rev-list`.
436
+ */
437
+ setLogConfig(read: boolean): this;
438
+ /**
439
+ * A filter of the commits shown (see `CommitFilters`); several must all include a commit,
440
+ * as must git's options above. The walk still goes through the commits a filter hides, and
441
+ * `setMaxCount`/`setSkip` count only shown ones.
442
+ */
443
+ addCommitFilter(filter: CommitFilter): this;
245
444
  /**
246
445
  * Whether a path-limited walk asks the commit-graph's changed-path Bloom filters before it
247
446
  * compares trees (default true, as git does whenever the graph has filters).
@@ -265,6 +464,25 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
265
464
  * @returns AsyncIterable of commits in reverse chronological order
266
465
  */
267
466
  call(): Promise<AsyncIterable<LogResult>>;
467
+ /**
468
+ * The walk's filter: git's `--grep`/`--author`/`--committer` options as one `commit_match`
469
+ * (revision.c), then the filters added. The walk reads `grep.patternType` (and refuses a
470
+ * value git does not know) only when a pattern is given; the log output (`callBytes`, git
471
+ * log and git show) reads it on every run, as git does.
472
+ */
473
+ private buildCommitFilter;
474
+ /**
475
+ * `grep.patternType` as grep_config reads it (`default` is undefined); a value git does not
476
+ * know dies, as every `git log`/`git show` dies on it whatever it is asked.
477
+ */
478
+ private configuredPatternType;
479
+ /** The bytes of a commit as the walk reads it (the replacement's under replace refs) */
480
+ private rawCommit;
481
+ /**
482
+ * The author date of a commit as commit.c's record_author_date reads it (0 when the
483
+ * header has no well-formed author line).
484
+ */
485
+ private authorDate;
268
486
  /** The commit an annotated tag (or a chain of them) tags; any other id as it is. */
269
487
  private peelToCommit;
270
488
  /**
@@ -301,7 +519,8 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
301
519
  */
302
520
  private finishOutputWalk;
303
521
  /**
304
- * The log printed as `git log <options>` prints it to a pipe (no colors, no pager): the
522
+ * The log printed as `git log <options>` prints it to a pipe (no pager; colors only when
523
+ * `setDiffOptions({ color })` or `color.ui`/`color.diff` say `always`): the
305
524
  * walk set up by this command (start points, ranges, paths, `-n`, `--skip`, filters), each
306
525
  * commit in the format asked for, with the graph and the diffs asked for. See
307
526
  * {@link LogOutputOptions}.
@@ -316,18 +535,90 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
316
535
  /** {@link callText} as bytes (messages and file contents that are not UTF-8 kept as they are). */
317
536
  callBytes(options?: LogOutputOptions): Promise<Uint8Array>;
318
537
  private printLog;
538
+ /**
539
+ * `git show`'s output of objects one at a time (builtin/log.c's cmd_show without a walk):
540
+ * one printer for every object, so commits, tags and trees share git's `shown_one`
541
+ * separators. Used by {@link ShowCommand}; the paths and filters set on this command
542
+ * decide which commits show, as revision.c's no-walk mode simplifies each one.
543
+ *
544
+ * @internal
545
+ */
546
+ showSession(options: LogOutputOptions): Promise<ShowSession>;
547
+ /** revision.c's try_to_simplify_commit for a commit git shows without walking */
548
+ private treesameForShow;
549
+ /**
550
+ * setup_revisions' refusals of a reflog walk: a sorted walk (`--topo-order`, `--graph`
551
+ * without generation numbers: git's `limited`), then `--graph`/`--reverse`, then
552
+ * `--grep-reflog` without `-g`.
553
+ */
554
+ private checkReflogWalkOptions;
555
+ /**
556
+ * The entries of a reflog walk (reflog-walk.c's next_reflog_entry over the names given,
557
+ * HEAD without): each entry's new commit, filtered as get_revision_1 filters a reflog walk
558
+ * (`--since`/`--until` against the entry's date, path limiting against the commit's parents,
559
+ * get_commit_action), then skipped and counted.
560
+ */
561
+ private reflogEntries;
562
+ /**
563
+ * try_to_simplify_commit for a commit of a reflog walk (every parent relevant): TREESAME
564
+ * at the paths to a parent (to every parent under `--full-history`), a root commit to the
565
+ * empty tree.
566
+ */
567
+ private reflogCommitTreesame;
319
568
  /** What the log printer reads of the repository. */
320
569
  private outputHost;
321
570
  private diffOptions;
571
+ /** `--check` found errors in a commit's diff (git's `check_failed`) */
572
+ private checkFailed;
573
+ /**
574
+ * The exit status `git log` ends with: 2 when `--check` ({@link LogOutputOptions.check})
575
+ * found errors in the diffs shown, else 0 (cmd_log_walk)
576
+ */
577
+ get exitCode(): number;
578
+ /** The colors {@link callBytes} prints with */
579
+ private colorSettings?;
580
+ private readonly outputWarnings;
581
+ /**
582
+ * What git prints on stderr while {@link callBytes} prints the log without dying: the
583
+ * `log.graphColors` colors it cannot parse (`error: invalid color value: <c>`, then
584
+ * `warning: ignored invalid color '<c>' in log.graphColors`)
585
+ */
586
+ get warnings(): readonly string[];
587
+ /**
588
+ * git_log_config (git_diff_ui_config): the colors, read once for every commit's diff; the
589
+ * palettes of the log's own lines, undefined without color
590
+ */
591
+ private readColors;
592
+ /**
593
+ * The pickaxe options checked before anything is shown, as git parses them (empty `-S`/
594
+ * `-G`, `--find-object` names resolved once, the combinations, the regex compiled); `-i`
595
+ * (`setRegexpIgnoreCase`) folds `-S`/`-G` too, as revision.c's `--regexp-ignore-case`
596
+ */
597
+ private preparePickaxe;
322
598
  /** `log` stores no objects: its abbreviations read each loose fan-out directory once */
323
599
  protected writesNoObjects(): boolean;
324
600
  /** Options of the diffs {@link callBytes} prints (context, algorithm, `--stat` widths...) */
325
601
  setDiffOptions(options: DiffTextOptions): this;
602
+ private readonly signatureChecks;
603
+ private signatureCwd?;
604
+ /** A commit's bytes as its buffer is read (the replacement's, core.useReplaceRefs) */
605
+ private commitBuffer;
606
+ /** `check_commit_signature` of a commit, made once */
607
+ private signatureOf;
608
+ /** log-tree.c's `show_signature` and `show_mergetag` for one commit */
609
+ private signatureLines;
326
610
  /** An object's content as stored (undefined when missing) */
327
611
  private readObjectBytes;
328
612
  private readBlob;
329
613
  /** The blobs of a tree, by path (empty for a missing tree) */
330
614
  private flatTree;
615
+ /**
616
+ * The pickaxe of a combined diff: without rename detection `--find-object` keeps the paths
617
+ * with the object in the merge or a parent (combined_objfind); with it, and for `-S`/`-G`,
618
+ * find_paths_generic's way: a diff against each parent through diffcore (renames, pickaxe
619
+ * and `--diff-filter`), keeping the paths every one of them still lists (intersect_paths)
620
+ */
621
+ private combinedPickaxe;
331
622
  /**
332
623
  * combine-diff.c's diff_tree_combined for a merge: the paths that differ from every
333
624
  * parent (within the pathspec), each as a combined diff of the trees.
@@ -341,12 +632,6 @@ export declare class LogCommand extends GitCommand<AsyncIterable<LogResult>> {
341
632
  private loadNotes;
342
633
  /** mailmap.c's read_mailmap: `.mailmap` (not in a bare repository), `mailmap.blob`, `mailmap.file` */
343
634
  private loadMailmap;
344
- /**
345
- * `mailmap.file`, read as git reads it: through the host (a relative path from its current
346
- * directory). Without a host environment, a relative path is read from the worktree's top
347
- * (where git usually runs), and an absolute one inside the worktree through it as well.
348
- */
349
- private readMailmapFile;
350
635
  /**
351
636
  * The tree, parents and date of a commit (git's parse_commit_buffer), from its raw bytes
352
637
  * when the store gives them (kept in `raw` to be decoded whole if the commit is shown),
@@ -1 +1 @@
1
- {"version":3,"file":"log-command.d.ts","sourceRoot":"","sources":["../../src/commands/log-command.ts"],"names":[],"mappings":"AA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W;IAmBnB,uEAAuE;YACzD,cAAc;IA6C5B,6DAA6D;YAC/C,eAAe;YAef,QAAQ;IAYtB,8DAA8D;YAChD,QAAQ;IAetB;;;;;OAKG;YACW,eAAe;IAgC7B;;;OAGG;YACW,YAAY;IAqJ1B;;;;OAIG;YACW,SAAS;IAyBvB,sGAAsG;YACxF,WAAW;IAczB;;;;OAIG;YACW,gBAAgB;IAuC9B;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;IAsBhB,6FAA6F;IAC7F,OAAO,CAAC,mBAAmB;IAM3B;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAoBjB,OAAO,CAAC,gBAAgB,CAAC,CAAyD;IAElF;;;;;OAKG;IACG,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,EAAE,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAI5E;IAED;;;;;;OAMG;YACW,cAAc;IAuD5B;;;;;OAKG;YACW,WAAW;IA0DzB;;;;;;;;OAQG;YACW,cAAc;IAQ5B,6EAA6E;YAC/D,cAAc;IAqB5B,OAAO,CAAC,YAAY,CAAC,CAAqB;IAE1C,gFAAgF;IAChF,OAAO,CAAC,cAAc;IAUtB,0EAA0E;YAC5D,WAAW;IAqBzB;;;OAGG;YACW,aAAa;IAuB3B;;;OAGG;YACW,OAAO;IAWrB,0EAA0E;IAC1E,OAAO,CAAC,gBAAgB,CAAC,CAAkC;IAE3D,qGAAqG;IACrG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA0C;IACnE,OAAO,CAAC,YAAY,CAAK;IAEzB,8FAA8F;YAChF,OAAO;IAyCrB;;OAEG;IACH,OAAO,CAAC,aAAa;IAMrB;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAKzB"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `git log --graph`: a port of git's graph.c (2.5x), without colors. The graph is fed one
2
+ * `git log --graph`: a port of git's graph.c (2.5x). The graph is fed one
3
3
  * commit at a time, in the order `git log` shows them, and draws the lines before, at and
4
4
  * after each commit: columns of `|`, merges (`|\`, octopus `*-.`), collapsing (`/`, `_`),
5
5
  * and (git 2.5x) the indentation of a "visual root", a commit without visible parents
@@ -30,7 +30,19 @@ export interface LogGraphOptions {
30
30
  indent?: boolean;
31
31
  /** `--graph-lane-limit=<n>`: lanes past it are truncated with `~` (default none) */
32
32
  maxLanes?: number;
33
+ /**
34
+ * Draw each column in its color (want_color): the palette, its reset last
35
+ * (`column_colors_ansi`, or `log.graphColors` through {@link graphColumnColors})
36
+ */
37
+ colors?: readonly string[];
33
38
  }
39
+ /** color.c's `column_colors_ansi`: the graph's default palette, its reset last */
40
+ export declare const GRAPH_COLUMN_COLORS_ANSI: readonly string[];
41
+ /**
42
+ * graph.c's `parse_graph_colors_config`: the colors of `log.graphColors` (comma separated),
43
+ * the reset appended; `warn` gets git's warning for each color it cannot parse
44
+ */
45
+ export declare function graphColumnColors(value: string, parse: (spec: string) => string | undefined, warn: (message: string) => void): string[];
34
46
  /** git's struct git_graph. */
35
47
  export declare class LogGraph {
36
48
  private readonly options;
@@ -57,7 +69,20 @@ export declare class LogGraph {
57
69
  private visualRootDepth;
58
70
  private visualRootCascade;
59
71
  private commitInColumns;
72
+ /** column_colors and column_colors_max (the reset's index) */
73
+ private readonly palette;
74
+ private readonly colorsMax;
75
+ /** default_column_color: starts at the last color, incremented for the first commit */
76
+ private defaultColumnColor;
60
77
  constructor(options: LogGraphOptions);
78
+ /** graph_get_current_column_color */
79
+ private currentColumnColor;
80
+ /** graph_increment_column_color */
81
+ private incrementColumnColor;
82
+ /** graph_find_commit_color */
83
+ private findCommitColor;
84
+ /** graph_line_write_column: the character in its column's color */
85
+ private writeColumn;
61
86
  private get noIndent();
62
87
  private needsTruncation;
63
88
  private isInteresting;
@@ -1 +1 @@
1
- {"version":3,"file":"log-graph.d.ts","sourceRoot":"","sources":["../../src/commands/log-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO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