@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,6 +5,24 @@ import { GitCommand } from "../git-command.js";
5
5
  export interface RmResult {
6
6
  /** Paths that were removed from the index (each once, whatever its stages) */
7
7
  removedPaths: string[];
8
+ /**
9
+ * What git prints on its standard output: `rm '<path>'` for each index entry removed (an
10
+ * unmerged path once per stage), before the files go; a dry run too, nothing with
11
+ * {@link RmCommand.setQuiet}
12
+ */
13
+ output: string[];
14
+ /**
15
+ * The advice git prints on its standard error before anything else (2.5x's
16
+ * `advice.sparseIndexExpanded` hint when a sparse index is expanded), as its lines; an
17
+ * {@link RmFailedError}'s message starts with them
18
+ */
19
+ advice?: string[];
20
+ /**
21
+ * What git prints on its standard error while it works: the `Migrating git directory of
22
+ * ...` lines of submodules whose `.git` directory was absorbed into the superproject's
23
+ * first (`git rm` of such a submodule, a dry run too)
24
+ */
25
+ messages?: string[];
8
26
  /**
9
27
  * What could not be done once the removal was under way, the index written all the same:
10
28
  * a file that could not be deleted after another one was (git passes over it silently),
@@ -41,11 +59,15 @@ export interface RmResult {
41
59
  */
42
60
  export declare class RmCommand extends GitCommand<RmResult> {
43
61
  private filepatterns;
62
+ /** `--pathspec-from-file` */
63
+ private readonly pathspecFile;
44
64
  private cached;
45
65
  private sparse;
46
66
  private recursive;
47
67
  private ignoreUnmatch;
48
68
  private force;
69
+ private dryRun;
70
+ private quiet;
49
71
  private compatibility;
50
72
  /**
51
73
  * `--sparse`: entries outside the sparse checkout (skip-worktree, or out of the patterns)
@@ -74,6 +96,17 @@ export declare class RmCommand extends GitCommand<RmResult> {
74
96
  * among the leading directories. Even forced, nothing is removed through such a link.
75
97
  */
76
98
  setForce(force: boolean): this;
99
+ /**
100
+ * `-n` / `--dry-run`: run every check git makes (pathspecs, `.gitmodules` staged,
101
+ * `check_local_mod`) and give the entries that would be removed, changing nothing (what
102
+ * `git submodule deinit` asks with `git rm -qn <path>`).
103
+ */
104
+ setDryRun(dryRun: boolean): this;
105
+ /**
106
+ * `-q` / `--quiet`: the `rm '<path>'` lines are not given ({@link RmResult.output} stays
107
+ * empty).
108
+ */
109
+ setQuiet(quiet: boolean): this;
77
110
  /**
78
111
  * The git version whose behaviour is reproduced where versions differ (default 2.56): the
79
112
  * advice's last hint, as `AddCommand.setCompatibility`, and 2.43's pathspec matching, where
@@ -87,6 +120,21 @@ export declare class RmCommand extends GitCommand<RmResult> {
87
120
  * @param filepattern Path pattern to remove (with `/` as separator)
88
121
  */
89
122
  addFilepattern(filepattern: string): this;
123
+ /**
124
+ * `--pathspec-from-file` (and `--pathspec-file-nul` with `nul`): the pathspec elements of
125
+ * `content`, one per line (a line starting with `"` unquoted as a C string), or separated
126
+ * by NUL with `nul`. As git's `cmd_rm`: refused beside {@link addFilepattern} patterns
127
+ * ("'--pathspec-from-file' and pathspec arguments cannot be used together"); an empty file
128
+ * is "No pathspec was given. Which files should I remove?".
129
+ *
130
+ * @example
131
+ * ```typescript
132
+ * await git.rm().setPathspecFromFile("a.txt\0b.txt\0", true).call();
133
+ * ```
134
+ *
135
+ * @throws InvalidArgumentError "fatal: line is badly quoted: <line>"
136
+ */
137
+ setPathspecFromFile(content: string | Uint8Array, nul?: boolean): this;
90
138
  /**
91
139
  * Set whether to only remove from index (keep in working tree).
92
140
  *
@@ -95,8 +143,8 @@ export declare class RmCommand extends GitCommand<RmResult> {
95
143
  * the removed entries are deleted too and the directories they leave empty pruned (git's
96
144
  * `remove_path`); a submodule's directory goes with everything in it where its repository
97
145
  * lives in the superproject (a gitfile), its `.gitmodules` section is removed and the
98
- * file staged again. A submodule holding its own `.git` directory keeps its directory (git
99
- * absorbs the repository first, which is not reproduced).
146
+ * file staged again. A submodule holding its own `.git` directory has it absorbed into the
147
+ * superproject's git directory first (`git submodule absorbgitdirs`), as git does.
100
148
  *
101
149
  * @param cached true to only remove from index
102
150
  */
@@ -111,6 +159,26 @@ export declare class RmCommand extends GitCommand<RmResult> {
111
159
  * @returns Result with list of removed paths
112
160
  */
113
161
  call(): Promise<RmResult>;
162
+ /** git's advice printed on standard error before anything else, as its lines. */
163
+ private hint;
164
+ private remove;
165
+ /**
166
+ * builtin/rm.c's `submodules_absorb_gitdir_if_needed`: each submodule removed whose
167
+ * directory is there, not empty, and whose repository (or a nested one's) is a `.git`
168
+ * directory in it gets that absorbed into the superproject's git directory
169
+ * (`absorb_git_dir_into_superproject`); its `Migrating ...` lines go to `messages`. Where
170
+ * git dies there, an {@link RmFailedError} (exit 128, git's last line as its message) is
171
+ * thrown before anything is removed, its result's `messages` holding every line printed
172
+ * before, an earlier submodule's too.
173
+ */
174
+ private absorbSubmoduleGitDirs;
175
+ /**
176
+ * A sparse index as git's `cmd_rm` sees it: the sparse directories it walks without
177
+ * expanding them (`pathspec_needs_expanded_index` answered no), or whether it expands it.
178
+ */
179
+ private sparseIndexView;
180
+ /** git 2.5x's `advice.sparseIndexExpanded` hint (`ensure_full_index`), as its lines. */
181
+ private expansionHint;
114
182
  /** Whether `.gitmodules` has conflict stages in the index (git's `is_gitmodules_unmerged`). */
115
183
  private gitmodulesUnmerged;
116
184
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"rm-command.d.ts","sourceRoot":"","sources":["../../src/commands/rm-command.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAoB/C;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,8EAA8E;IAC9E,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,SAAU,SAAQ,UAAU,CAAC,QAAQ,CAAC;IACjD,OAAO,CAAC,YAAY,CAAgB;IACpC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO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AIG;IACG,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAe9B;IAED,iFAAiF;IACjF,OAAO,CAAC,IAAI,CAAgB;YAEd,MAAM;IAuQpB;;;;;;;;OAQG;YACW,sBAAsB;IA8BpC;;;OAGG;YACW,eAAe;IAqB7B,wFAAwF;IACxF,OAAO,CAAC,aAAa;IAKrB,+FAA+F;YACjF,kBAAkB;IAOhC;;;;;;OAMG;YACW,oBAAoB;IAgClC;;;;;OAKG;YACW,aAAa;IA+F3B,4FAA4F;YAC9E,QAAQ;CAKvB"}
@@ -62,6 +62,7 @@ export interface SequencerDeps extends MergeWriteContext {
62
62
  export type PickCommitMode = {
63
63
  kind: "pick";
64
64
  reflogAction: string;
65
+ allowEmpty?: boolean;
65
66
  } | {
66
67
  kind: "continue";
67
68
  edit: boolean;
@@ -89,7 +90,44 @@ export interface PickOptions {
89
90
  * (git's `options.edit`), left out when neither was given.
90
91
  */
91
92
  edit?: boolean;
93
+ /**
94
+ * `-S[<keyid>]` (true or the key) / `--no-gpg-sign` (false); undefined: `commit.gpgSign`.
95
+ * Saved in `sequencer/opts` (`options.gpg-sign`) for a run of several commits.
96
+ */
97
+ sign?: boolean | string;
98
+ /** `-x`: `(cherry picked from commit <id>)` appended to a pick's message (record_origin) */
99
+ recordOrigin?: boolean;
100
+ /** `-s` / `--signoff`: the committer's `Signed-off-by:` appended (append_signoff) */
101
+ signoff?: boolean;
102
+ /** `--allow-empty`: a commit empty in itself (its tree its first parent's) is committed */
103
+ allowEmpty?: boolean;
104
+ /** `--allow-empty-message` (saved in `sequencer/opts`; the sequencer commits any message) */
105
+ allowEmptyMessage?: boolean;
106
+ /**
107
+ * `--keep-redundant-commits` / `--empty=keep`: a commit that becomes empty is committed
108
+ * (implies {@link allowEmpty})
109
+ */
110
+ keepRedundant?: boolean;
111
+ /** `--empty=drop`: a commit that becomes empty is dropped, git's `dropping ...` line printed */
112
+ dropRedundant?: boolean;
113
+ /** `--ff`: a commit whose parent is HEAD is fast-forwarded to, not picked */
114
+ allowFf?: boolean;
115
+ /**
116
+ * `revert --reference` (or `revert.reference`): the reverted commit named as
117
+ * `<abbrev> (<subject>, <date>)` under a `*** SAY WHY ...` comment for the title
118
+ */
119
+ reference?: boolean;
92
120
  }
121
+ /**
122
+ * builtin/revert.c's verify_opt_compatible: the `fatal:` line refusing an option that cannot
123
+ * go with `--continue`/`--skip`/`--abort`/`--quit` or with `--ff`, as git checks them; undefined
124
+ * when the options go together.
125
+ */
126
+ export declare function pickOptionsConflict(action: PickAction, operation: SequencerOperation, options: PickOptions & {
127
+ emptyGiven?: boolean;
128
+ },
129
+ /** git 2.43 lets `--keep-redundant-commits` and `--empty` go with the operations */
130
+ compatibility?: "2.43" | "2.56"): string | undefined;
93
131
  /** git's sequencer for `cherry-pick` / `revert`. */
94
132
  export declare class PickSequencer {
95
133
  private readonly deps;
@@ -102,7 +140,14 @@ export declare class PickSequencer {
102
140
  private readonly abbreviator;
103
141
  /** `--edit` / `--no-edit` (git's opts->edit, unset: undefined), read back from the opts */
104
142
  private edit;
143
+ /** What the commits are signed with (git's opts->gpg_sign), read back from the opts */
144
+ private sign;
145
+ /** The flags of the run (given, or read back from `sequencer/opts`) */
146
+ private readonly flags;
147
+ /** commit.cleanup (git's default_msg_cleanup with explicit_cleanup), or saved in the opts */
148
+ private cleanup;
105
149
  constructor(deps: SequencerDeps, options: PickOptions);
150
+ private config;
106
151
  private get name();
107
152
  private fail;
108
153
  /** `git cherry-pick <commits>` / `git revert <commits>`. */
@@ -116,13 +161,24 @@ export declare class PickSequencer {
116
161
  private run;
117
162
  /** One commit's change merged into HEAD (do_pick_commit). */
118
163
  private pickOne;
164
+ /**
165
+ * fast_forward_to: the index and worktree switched from HEAD's tree to the commit's
166
+ * (checkout_fast_forward, a two-way switch refusing over local changes), then HEAD moved
167
+ * there with the reflog line `<action>: fast-forward`.
168
+ */
169
+ private fastForward;
119
170
  /** `--continue`: the resolved conflict committed, then the rest picked. */
120
171
  continue(): Promise<PickOutcome>;
121
172
  /** `--skip`: the stopped commit dropped (`reset --merge HEAD`), the rest picked. */
122
173
  skip(): Promise<PickOutcome>;
123
174
  /** `--abort`: `reset --merge` to where the operation started, its state removed. */
124
175
  abort(): Promise<PickOutcome>;
125
- /** `--quit`: the operation forgotten, index, worktree and HEAD kept. */
176
+ /**
177
+ * `--quit` (builtin/revert.c): sequencer_remove_state (`sequencer/` removed), then
178
+ * remove_branch_state (CHERRY_PICK_HEAD, REVERT_HEAD, AUTO_MERGE, SQUASH_MSG, MERGE_MSG,
179
+ * MERGE_HEAD, MERGE_MODE, MERGE_RR go, a MERGE_AUTOSTASH is kept on `refs/stash`); the
180
+ * index, the worktree, HEAD and ORIG_HEAD are kept. Nothing in progress is no error.
181
+ */
126
182
  quit(): Promise<PickOutcome>;
127
183
  /**
128
184
  * The refs of the `git reset --merge <target>` git runs (its index and worktree reset
@@ -132,13 +188,22 @@ export declare class PickSequencer {
132
188
  */
133
189
  private resetRefs;
134
190
  /**
135
- * read_populate_opts: `options.edit` of `sequencer/opts` (git config's syntax, the last
136
- * value wins), the `--edit` / `--no-edit` the run started with.
191
+ * read_populate_opts: `options.edit` and `options.gpg-sign` of `sequencer/opts` (git
192
+ * config's syntax, the last value wins), the `--edit` / `--no-edit` and `-S` the run
193
+ * started with.
137
194
  */
138
195
  private readSavedOptions;
139
196
  private removeState;
140
- /** git's message for the commit a pick or revert makes. */
197
+ /**
198
+ * git's message for the commit a pick or revert makes (do_pick_commit's ctx->message): a
199
+ * pick's message from its subject on, with `-x`'s `(cherry picked from commit <id>)` (after a
200
+ * blank line unless the message ends with a trailer block); a revert's `Revert "<subject>"`
201
+ * (`Reapply "..."` for a revert of a revert, `--reference`'s comment and `<abbrev> (<subject>,
202
+ * <date>)`); then `-s`'s sign-off (append_signoff).
203
+ */
141
204
  private messageFor;
205
+ /** sequencer_format_revert_message. */
206
+ private revertMessage;
142
207
  /**
143
208
  * The committer of the commit a pick is about to make: the one given, else resolved as
144
209
  * git's `git_committer_info`. The clock is read again first, as git's `try_to_commit`
@@ -151,6 +216,19 @@ export declare class PickSequencer {
151
216
  */
152
217
  private revertAuthor;
153
218
  private commit;
219
+ /**
220
+ * try_to_commit's cleanup: whitespace for `-s`/`-x` unless commit.cleanup is set, else
221
+ * commit.cleanup's (`scissors` is whitespace without an editor), else none.
222
+ */
223
+ private commitCleanup;
224
+ /**
225
+ * try_to_commit's commit_tree signing `commit` for the run's key (git's opts->gpg_sign),
226
+ * the signing program in the worktree top. When it cannot be signed: gpg's error and
227
+ * `error: failed to write commit object`, then in git 2.43 `fatal: <action> failed` (exit
228
+ * 128); 2.5x returns after the error (exit 1). The pick stays in progress
229
+ * (CHERRY_PICK_HEAD, MERGE_MSG), as git leaves it.
230
+ */
231
+ private signed;
154
232
  /** HEAD (its branch, when attached) moved to `id`, with `message` in the reflogs. */
155
233
  private moveHead;
156
234
  /**
@@ -159,6 +237,8 @@ export declare class PickSequencer {
159
237
  * git 2.43 `fatal: <action> failed` (exit 128); 2.5x returns after the error (exit 1).
160
238
  */
161
239
  private headLockedError;
240
+ /** HEAD's commit, undefined while HEAD's branch is unborn. */
241
+ private headIfBorn;
162
242
  private headId;
163
243
  /** `sequencer/todo`: `pick <abbrev> <subject>` lines. */
164
244
  private writeTodo;
@@ -1 +1 @@
1
- {"version":3,"file":"sequencer-pick.d.ts","sourceRoot":"","sources":["../../src/commands/sequencer-pick.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAO9D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEnF,OAAO,EAAE,KAAK,WAAW,EAAgD,MAAM,gBAAgB,CAAC;AAKhG,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAO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IAKzB;;;;;;OAMG;YACW,UAAU;IA+BxB,uCAAuC;YACzB,aAAa;IA+B3B;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAKjB;;;OAGG;IACH,OAAO,CAAC,YAAY;YAKN,MAAM;IA2BpB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAMrB;;;;;;OAMG;YACW,MAAM;IAgCpB,qFAAqF;YACvE,QAAQ;IA0BtB;;;;OAIG;YACW,eAAe;IAmC7B,8DAA8D;YAChD,UAAU;YAKV,MAAM;IAMpB,yDAAyD;YAC3C,SAAS;IAUvB,0CAA0C;YAC5B,QAAQ;IAetB,wEAAwE;YAC1D,SAAS;CAQxB;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,EAC3E,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,QAAQ,CAAC,CAEnB;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,EAC3E,GAAG,EAAE,MAAM,EAAE,GACZ,OAAO,CAAC,QAAQ,EAAE,CAAC,CA2ErB"}
@@ -77,6 +77,8 @@ origHeadMessage?: string,
77
77
  /** HEAD detached at `target` (git's RESET_HEAD_DETACH: REF_NO_DEREF) rather than written through */
78
78
  options?: {
79
79
  detach?: boolean;
80
+ /** ORIG_HEAD's new value when not `headId` (a rebase of another branch: its tip) */
81
+ origHead?: ObjectId;
80
82
  }): Promise<string[]>;
81
83
  /**
82
84
  * git's remove_branch_state (a branch switch, a reset): the merge, cherry-pick or revert
@@ -1 +1 @@
1
- {"version":3,"file":"sequencer-support.d.ts","sourceRoot":"","sources":["../../src/commands/sequencer-support.ts"],"names":[],"mappings":"AAAA;;;;GAI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K,EAAE,cAAc,GACpB,OAAO,CAAC,MAAM,EAAE,CAAC,CAUnB;AAED,kGAAkG;AAClG,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAIlD,CAAC;AAgGF;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,gBAAgB,EACrB,MAAM,EAAE,QAAQ,GACf,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAS/B;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAa3F;AAED,6FAA6F;AAC7F,wBAAsB,aAAa,CACjC,GAAG,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,MAAM,CAAC,EAC/C,EAAE,EAAE,QAAQ,GACX,OAAO,CAAC,IAAI,CAAC,CAOf;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,SAAM,GAAG,MAAM,CAEzE;AAKD,yFAAyF;AACzF,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAOxD;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,QAAQ,EAChB,KAAK,EAAE,QAAQ,GAAG,QAAQ,EAAE,EAC5B,UAAU,EAAE,CAAC,EAAE,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,GAC5C,OAAO,CAAC,MAAM,CAAC,CA2CjB"}
@@ -6,6 +6,7 @@
6
6
  import { type ServedRepository } from "@statewalker/vcs-transport";
7
7
  import { type OpenedRepository } from "@statewalker/vcs-working-tree";
8
8
  import type { HookSession } from "./git-hooks.js";
9
+ import { type ReceivePackHost } from "./local-transport.js";
9
10
  /** Options of {@link servedRepositoryOf}. */
10
11
  export interface ServedRepositoryOptions {
11
12
  /**
@@ -15,6 +16,12 @@ export interface ServedRepositoryOptions {
15
16
  * directory, `GIT_DIR=.`), its output not sent to the client
16
17
  */
17
18
  hooks?: HookSession;
19
+ /**
20
+ * Where receive-pack runs (`ReceivePackHost`): whose fsck messages to give (default the
21
+ * hooks' runner's compatibility). A served repository's `receive.fsck.skipList` is always
22
+ * read confined to its own git directories (`confineFiles`), never from the host
23
+ */
24
+ host?: ReceivePackHost;
18
25
  }
19
26
  /**
20
27
  * An opened repository (`Worktree.openRepository`) as a git server serves it: its objects and
@@ -1 +1 @@
1
- {"version":3,"file":"serve-repository.d.ts","sourceRoot":"","sources":["../../src/commands/serve-repository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAIL,KAAK,gBAAgB,EAItB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,gBAAgB,EAAuB,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AASlD,6CAA6C;AAC7C,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAkBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,gBAAgB,CAAC,CAoC3B"}
1
+ {"version":3,"file":"serve-repository.d.ts","sourceRoot":"","sources":["../../src/commands/serve-repository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAIL,KAAK,gBAAgB,EAItB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,gBAAgB,EAAuB,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAEL,KAAK,eAAe,EAMrB,MAAM,sBAAsB,CAAC;AAE9B,6CAA6C;AAC7C,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAmBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,gBAAgB,CAAC,CA0C3B"}
@@ -0,0 +1,130 @@
1
+ /**
2
+ * ShowCommand - `git show` (builtin/log.c's cmd_show): each object named, as its kind is
3
+ * shown. A commit as `git log -1 -p` shows it, merges with their dense combined diff (`--cc`,
4
+ * show's default); an annotated tag as `tag <name>`, its tagger and message, then the object
5
+ * it tags; a tree as `tree <name>`, an empty line and its entries (a directory with a `/`, not
6
+ * recursive); a blob as its bytes (`--textconv` runs the path's textconv for `<rev>:<path>`).
7
+ * A range (`A..B`, `^A`) or `-<n>` walks the history instead, as `git log` with show's
8
+ * defaults.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * // git show HEAD
13
+ * const text = await git.show().callText();
14
+ *
15
+ * // git show --stat v1.0 main:README
16
+ * const both = await git.show().addRevision("v1.0").addRevision("main:README").callText({ stat: true });
17
+ *
18
+ * // git show -s --format=%s main topic: the subjects only
19
+ * const { stdout, exitCode } = await git.show().addArgument("main").addArgument("topic")
20
+ * .setOptions({ noPatch: true, pretty: "%s" }).call();
21
+ * ```
22
+ *
23
+ * Objects are shown in the order named, with git's separators: a newline before a tag or
24
+ * tree once something was shown, a commit's own separator as `git log` prints it (none for a
25
+ * `tformat:`), nothing around a blob. A commit named twice is shown once (git's SHOWN flag);
26
+ * with paths, a commit that changes none of them is not shown. A tag whose object is missing
27
+ * prints its header, then git's `error: could not read object <id>` and exit status 255.
28
+ *
29
+ * @module
30
+ */
31
+ import { GitCommand } from "../git-command.js";
32
+ import { type DiffTextOptions } from "./diff-command.js";
33
+ import type { LogOutputOptions } from "./log-output.js";
34
+ /** `git show`'s options: `git log`'s output options and its own. */
35
+ export interface ShowOptions extends LogOutputOptions {
36
+ /**
37
+ * `--textconv` / `--no-textconv`: a blob named `<rev>:<path>` (or `:<path>`) is shown
38
+ * through the path's textconv only with an explicit `true`; `false` also turns textconv
39
+ * off in the diffs (default: on there, off for blobs)
40
+ */
41
+ textconv?: boolean;
42
+ /** `--first-parent`: merges' diffs against their first parent (and a range walks so) */
43
+ firstParent?: boolean;
44
+ }
45
+ /** What `git show` printed and its exit status. */
46
+ export interface ShowResult {
47
+ /** git's stdout */
48
+ readonly stdout: Uint8Array;
49
+ /** git's stderr lines (`error: could not read object <id>`, revision warnings) */
50
+ readonly errors: string[];
51
+ /** 0, 2 when `--check` found errors, or 255 when an object could not be read (cmd_show's `error()` return) */
52
+ readonly exitCode: number;
53
+ }
54
+ /** `git show`. */
55
+ export declare class ShowCommand extends GitCommand<ShowResult> {
56
+ private readonly args;
57
+ private readonly paths;
58
+ private options;
59
+ private diffOptions;
60
+ private maxCount?;
61
+ private skip?;
62
+ /** A revision to show (as given before `--`; it must not also name a file without one). */
63
+ addRevision(revision: string): this;
64
+ /**
65
+ * An argument as git's command line gives it: revisions, then paths (after `--`, or from
66
+ * the first argument that names no revision on, which must then exist as git checks them).
67
+ */
68
+ addArgument(arg: string): this;
69
+ /** A path the diffs (and the commits shown) are limited to, as after `--`. */
70
+ addPath(path: string): this;
71
+ /** The output options (see {@link ShowOptions}); merged into those set before. */
72
+ setOptions(options: ShowOptions): this;
73
+ /** Options of the diffs (context, algorithm, `--stat` widths...). */
74
+ setDiffOptions(options: DiffTextOptions): this;
75
+ /** `-<n>` / `-n <n>`: walk the history, at most n commits (git's no-walk off). */
76
+ setMaxCount(maxCount: number): this;
77
+ /** `--skip=<n>`: walk the history, leaving out the first n commits. */
78
+ setSkip(skip: number): this;
79
+ /** {@link call}'s stdout as text; throws git's error when the exit status is not 0. */
80
+ callText(options?: ShowOptions): Promise<string>;
81
+ /** {@link call}'s stdout; throws git's error when the exit status is not 0. */
82
+ callBytes(options?: ShowOptions): Promise<Uint8Array>;
83
+ /**
84
+ * Shows the objects.
85
+ *
86
+ * @throws RevisionError where git dies reading the arguments (`fatal: ambiguous argument`,
87
+ * `fatal: bad revision`, `fatal: path 'x' does not exist in 'HEAD'`), GitApiError where
88
+ * it dies otherwise (an unborn HEAD, `--graph` without a walk), exit status 128
89
+ */
90
+ call(options?: ShowOptions): Promise<ShowResult>;
91
+ /** cmd_show's loop over the pending objects: its exit status (255 after an `error()`) */
92
+ private showObjects;
93
+ /**
94
+ * An object's kind: from its header where the store has it, else by reading it, which
95
+ * fetches a missing object of a partial clone from its promisor remote (git's
96
+ * parse_object); undefined when it cannot be found
97
+ */
98
+ private objectKind;
99
+ /**
100
+ * show_tag_object: `tag <name>`, a `Tagger:` line (and date) for each `tagger` header, the
101
+ * rest of the object from its empty line on; the id it tags, undefined when unreadable
102
+ */
103
+ private showTag;
104
+ /** show_blob_object: the blob's bytes, through textconv for a named path under `--textconv` */
105
+ private blobContent;
106
+ /**
107
+ * get_oid_with_context's recorded path and mode of `<rev>:<path>`, `:<path>` and
108
+ * `:<n>:<path>` (undefined for any other name)
109
+ */
110
+ private blobPath;
111
+ /** An object's content as stored, undefined when it is missing */
112
+ private rawObject;
113
+ /**
114
+ * An object as stored (a partial clone's missing object fetched first), undefined when it is
115
+ * missing. A failed lazy fetch propagates (`PromisorFetchError`); a corrupt copy dies with
116
+ * git's lines (exit 128).
117
+ */
118
+ private readObject;
119
+ /**
120
+ * git's death on a corrupt object (unpack_entry, read_object_file's die): zlib's `error:`
121
+ * line, then `fatal: packed object <id> (stored in <pack>) is corrupt` or the loose
122
+ * object's
123
+ */
124
+ private corruptDeath;
125
+ /** setup_revisions' default `HEAD`, dying as diagnose_missing_default does */
126
+ private defaultHead;
127
+ /** The refs under `refs/` in name order (refs_for_each_ref), symbolic ones resolved. */
128
+ private refTips;
129
+ }
130
+ //# sourceMappingURL=show-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"show-command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IAED,qEAAqE;IACrE,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAI7C;IAED,kFAAkF;IAClF,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAIlC;IAED,uEAAuE;IACvE,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED,uFAAuF;IACjF,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAErD;IAED,+EAA+E;IACzE,SAAS,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAM1D;IAED;;;;;;OAMG;IACG,IAAI,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAyDrD;IAED,yFAAyF;YAC3E,WAAW;IA4CzB;;;;OAIG;YACW,UAAU;IAMxB;;;OAGG;YACW,OAAO;IA8BrB,+FAA+F;YACjF,WAAW;IAkBzB;;;OAGG;YACW,QAAQ;IAwCtB,kEAAkE;YACpD,SAAS;IAIvB;;;;OAIG;YACW,UAAU;IAexB;;;;OAIG;YACW,YAAY;IAoB1B,8EAA8E;YAChE,WAAW;IAWzB,wFAAwF;YAC1E,OAAO;CAWtB"}
@@ -0,0 +1,11 @@
1
+ import type { ObjectId } from "@statewalker/vcs-core";
2
+ import { LogCommand } from "./log-command.js";
3
+ /**
4
+ * `git show <id> --` of one commit, as the child git runs for `rebase --show-current-patch`
5
+ * and `am --show-current-patch` prints it without a terminal: the configuration's format,
6
+ * dates, notes and mailmap, then its patch (`--cc` for a merge, git show's default).
7
+ */
8
+ export declare function showCommitBytes(workingCopy: ConstructorParameters<typeof LogCommand>[0], id: ObjectId): Promise<Uint8Array>;
9
+ /** {@link showCommitBytes} as text. */
10
+ export declare function showCommit(workingCopy: ConstructorParameters<typeof LogCommand>[0], id: ObjectId): Promise<string>;
11
+ //# sourceMappingURL=show-commit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"show-commit.d.ts","sourceRoot":"","sources":["../../src/commands/show-commit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,EACxD,EAAE,EAAE,QAAQ,GACX,OAAO,CAAC,UAAU,CAAC,CAErB;AAED,uCAAuC;AACvC,wBAAsB,UAAU,CAC9B,WAAW,EAAE,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,EACxD,EAAE,EAAE,QAAQ,GACX,OAAO,CAAC,MAAM,CAAC,CAEjB"}