@statewalker/vcs-commands 0.8.0 → 0.10.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 (622) hide show
  1. package/README.md +1 -1
  2. package/dist/commands/add-command.d.ts +32 -0
  3. package/dist/commands/add-command.d.ts.map +1 -1
  4. package/dist/commands/add-patch/add-patch.d.ts +7 -0
  5. package/dist/commands/add-patch/add-patch.d.ts.map +1 -1
  6. package/dist/commands/add-patch/patch-backend.d.ts +2 -0
  7. package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
  8. package/dist/commands/add-patch/patch-modes.d.ts +6 -2
  9. package/dist/commands/add-patch/patch-modes.d.ts.map +1 -1
  10. package/dist/commands/add-patch/patch-session.d.ts +4 -0
  11. package/dist/commands/add-patch/patch-session.d.ts.map +1 -1
  12. package/dist/commands/am/am-command.d.ts +88 -2
  13. package/dist/commands/am/am-command.d.ts.map +1 -1
  14. package/dist/commands/apply/apply-command.d.ts +2 -0
  15. package/dist/commands/apply/apply-command.d.ts.map +1 -1
  16. package/dist/commands/apply/apply-parse.d.ts +7 -0
  17. package/dist/commands/apply/apply-parse.d.ts.map +1 -1
  18. package/dist/commands/apply/index.d.ts +1 -1
  19. package/dist/commands/apply/index.d.ts.map +1 -1
  20. package/dist/commands/archive/archive-command.d.ts +169 -0
  21. package/dist/commands/archive/archive-command.d.ts.map +1 -0
  22. package/dist/commands/archive/archive-entry.d.ts +60 -0
  23. package/dist/commands/archive/archive-entry.d.ts.map +1 -0
  24. package/dist/commands/archive/index.d.ts +8 -0
  25. package/dist/commands/archive/index.d.ts.map +1 -0
  26. package/dist/commands/archive/remote-archive-command.d.ts +56 -0
  27. package/dist/commands/archive/remote-archive-command.d.ts.map +1 -0
  28. package/dist/commands/archive/tar-archive.d.ts +31 -0
  29. package/dist/commands/archive/tar-archive.d.ts.map +1 -0
  30. package/dist/commands/archive/tar-commit-id.d.ts +13 -0
  31. package/dist/commands/archive/tar-commit-id.d.ts.map +1 -0
  32. package/dist/commands/archive/upload-archive-writer.d.ts +48 -0
  33. package/dist/commands/archive/upload-archive-writer.d.ts.map +1 -0
  34. package/dist/commands/archive/zip-archive.d.ts +42 -0
  35. package/dist/commands/archive/zip-archive.d.ts.map +1 -0
  36. package/dist/commands/attributes-source.d.ts +10 -0
  37. package/dist/commands/attributes-source.d.ts.map +1 -1
  38. package/dist/commands/blame-command.d.ts +345 -8
  39. package/dist/commands/blame-command.d.ts.map +1 -1
  40. package/dist/commands/blame-ignore.d.ts +48 -0
  41. package/dist/commands/blame-ignore.d.ts.map +1 -0
  42. package/dist/commands/bundle/bundle-create-command.d.ts +67 -0
  43. package/dist/commands/bundle/bundle-create-command.d.ts.map +1 -0
  44. package/dist/commands/bundle/bundle-format.d.ts +89 -0
  45. package/dist/commands/bundle/bundle-format.d.ts.map +1 -0
  46. package/dist/commands/bundle/bundle-list.d.ts +92 -0
  47. package/dist/commands/bundle/bundle-list.d.ts.map +1 -0
  48. package/dist/commands/bundle/bundle-read-commands.d.ts +81 -0
  49. package/dist/commands/bundle/bundle-read-commands.d.ts.map +1 -0
  50. package/dist/commands/bundle/bundle-support.d.ts +32 -0
  51. package/dist/commands/bundle/bundle-support.d.ts.map +1 -0
  52. package/dist/commands/bundle/bundle-transport.d.ts +38 -0
  53. package/dist/commands/bundle/bundle-transport.d.ts.map +1 -0
  54. package/dist/commands/bundle/bundle-uri-host.d.ts +43 -0
  55. package/dist/commands/bundle/bundle-uri-host.d.ts.map +1 -0
  56. package/dist/commands/bundle/bundle-uri.d.ts +55 -0
  57. package/dist/commands/bundle/bundle-uri.d.ts.map +1 -0
  58. package/dist/commands/bundle/bundle-verify.d.ts +63 -0
  59. package/dist/commands/bundle/bundle-verify.d.ts.map +1 -0
  60. package/dist/commands/bundle/index.d.ts +14 -0
  61. package/dist/commands/bundle/index.d.ts.map +1 -0
  62. package/dist/commands/cat-file/batch-format.d.ts +58 -0
  63. package/dist/commands/cat-file/batch-format.d.ts.map +1 -0
  64. package/dist/commands/cat-file/cat-file-command.d.ts +135 -0
  65. package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -0
  66. package/dist/commands/cat-file/index.d.ts +3 -0
  67. package/dist/commands/cat-file/index.d.ts.map +1 -0
  68. package/dist/commands/check-attr-command.d.ts +66 -0
  69. package/dist/commands/check-attr-command.d.ts.map +1 -0
  70. package/dist/commands/check-ignore-command.d.ts +58 -0
  71. package/dist/commands/check-ignore-command.d.ts.map +1 -0
  72. package/dist/commands/check-mailmap-command.d.ts +49 -0
  73. package/dist/commands/check-mailmap-command.d.ts.map +1 -0
  74. package/dist/commands/check-ref-format-command.d.ts +60 -0
  75. package/dist/commands/check-ref-format-command.d.ts.map +1 -0
  76. package/dist/commands/checkout-command.d.ts +7 -0
  77. package/dist/commands/checkout-command.d.ts.map +1 -1
  78. package/dist/commands/checkout-index-command.d.ts +96 -0
  79. package/dist/commands/checkout-index-command.d.ts.map +1 -0
  80. package/dist/commands/checkout-paths.d.ts +4 -0
  81. package/dist/commands/checkout-paths.d.ts.map +1 -1
  82. package/dist/commands/cherry-command.d.ts +61 -0
  83. package/dist/commands/cherry-command.d.ts.map +1 -0
  84. package/dist/commands/cherry-pick-command.d.ts +33 -1
  85. package/dist/commands/cherry-pick-command.d.ts.map +1 -1
  86. package/dist/commands/clean-command.d.ts +32 -0
  87. package/dist/commands/clean-command.d.ts.map +1 -1
  88. package/dist/commands/clean-interactive.d.ts +56 -0
  89. package/dist/commands/clean-interactive.d.ts.map +1 -0
  90. package/dist/commands/clone-command.d.ts +135 -2
  91. package/dist/commands/clone-command.d.ts.map +1 -1
  92. package/dist/commands/commit-command.d.ts +59 -3
  93. package/dist/commands/commit-command.d.ts.map +1 -1
  94. package/dist/commands/config-command.d.ts +2 -0
  95. package/dist/commands/config-command.d.ts.map +1 -1
  96. package/dist/commands/daemon-access-hook.d.ts +36 -0
  97. package/dist/commands/daemon-access-hook.d.ts.map +1 -0
  98. package/dist/commands/default-branch.d.ts +42 -0
  99. package/dist/commands/default-branch.d.ts.map +1 -1
  100. package/dist/commands/describe-command.d.ts +71 -64
  101. package/dist/commands/describe-command.d.ts.map +1 -1
  102. package/dist/commands/diff-command.d.ts +249 -10
  103. package/dist/commands/diff-command.d.ts.map +1 -1
  104. package/dist/commands/diff-external.d.ts +43 -0
  105. package/dist/commands/diff-external.d.ts.map +1 -0
  106. package/dist/commands/diff-plumbing/diff-pairs-command.d.ts +27 -0
  107. package/dist/commands/diff-plumbing/diff-pairs-command.d.ts.map +1 -0
  108. package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts +129 -0
  109. package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts.map +1 -0
  110. package/dist/commands/diff-plumbing/index.d.ts +3 -0
  111. package/dist/commands/diff-plumbing/index.d.ts.map +1 -0
  112. package/dist/commands/diff-textconv.d.ts +5 -1
  113. package/dist/commands/diff-textconv.d.ts.map +1 -1
  114. package/dist/commands/fast-export/fast-export-command.d.ts +135 -0
  115. package/dist/commands/fast-export/fast-export-command.d.ts.map +1 -0
  116. package/dist/commands/fast-export/fast-import-command.d.ts +182 -0
  117. package/dist/commands/fast-export/fast-import-command.d.ts.map +1 -0
  118. package/dist/commands/fast-export/fast-stream-support.d.ts +64 -0
  119. package/dist/commands/fast-export/fast-stream-support.d.ts.map +1 -0
  120. package/dist/commands/fast-export/index.d.ts +4 -0
  121. package/dist/commands/fast-export/index.d.ts.map +1 -0
  122. package/dist/commands/fetch-command.d.ts +125 -0
  123. package/dist/commands/fetch-command.d.ts.map +1 -1
  124. package/dist/commands/fetch-multiple-command.d.ts +193 -0
  125. package/dist/commands/fetch-multiple-command.d.ts.map +1 -0
  126. package/dist/commands/format-patch-command.d.ts +28 -2
  127. package/dist/commands/format-patch-command.d.ts.map +1 -1
  128. package/dist/commands/format-rev-command.d.ts +58 -0
  129. package/dist/commands/format-rev-command.d.ts.map +1 -0
  130. package/dist/commands/fsck/fsck-command.d.ts.map +1 -1
  131. package/dist/commands/fsck/fsck-msg-ids.d.ts +18 -3
  132. package/dist/commands/fsck/fsck-msg-ids.d.ts.map +1 -1
  133. package/dist/commands/fsmonitor-refresh.d.ts +69 -0
  134. package/dist/commands/fsmonitor-refresh.d.ts.map +1 -0
  135. package/dist/commands/gc-command.d.ts +5 -0
  136. package/dist/commands/gc-command.d.ts.map +1 -1
  137. package/dist/commands/git-describe.d.ts +77 -4
  138. package/dist/commands/git-describe.d.ts.map +1 -1
  139. package/dist/commands/git-hooks.d.ts +47 -1
  140. package/dist/commands/git-hooks.d.ts.map +1 -1
  141. package/dist/commands/git-paths.d.ts +26 -0
  142. package/dist/commands/git-paths.d.ts.map +1 -0
  143. package/dist/commands/grep/grep-command.d.ts +2 -1
  144. package/dist/commands/grep/grep-command.d.ts.map +1 -1
  145. package/dist/commands/history-command.d.ts +156 -0
  146. package/dist/commands/history-command.d.ts.map +1 -0
  147. package/dist/commands/http-config.d.ts +38 -0
  148. package/dist/commands/http-config.d.ts.map +1 -0
  149. package/dist/commands/index-adder.d.ts +12 -1
  150. package/dist/commands/index-adder.d.ts.map +1 -1
  151. package/dist/commands/index-host.d.ts.map +1 -1
  152. package/dist/commands/index.d.ts +56 -1
  153. package/dist/commands/index.d.ts.map +1 -1
  154. package/dist/commands/index.js +6 -3
  155. package/dist/commands/init-command.d.ts +89 -0
  156. package/dist/commands/init-command.d.ts.map +1 -1
  157. package/dist/commands/last-modified-command.d.ts +102 -0
  158. package/dist/commands/last-modified-command.d.ts.map +1 -0
  159. package/dist/commands/lfs/go-url.d.ts +43 -0
  160. package/dist/commands/lfs/go-url.d.ts.map +1 -0
  161. package/dist/commands/lfs/index.d.ts +3 -0
  162. package/dist/commands/lfs/index.d.ts.map +1 -0
  163. package/dist/commands/lfs/lfs-config.d.ts +174 -0
  164. package/dist/commands/lfs/lfs-config.d.ts.map +1 -0
  165. package/dist/commands/lfs/lfs-endpoint-command.d.ts +83 -0
  166. package/dist/commands/lfs/lfs-endpoint-command.d.ts.map +1 -0
  167. package/dist/commands/line-log.d.ts +161 -0
  168. package/dist/commands/line-log.d.ts.map +1 -0
  169. package/dist/commands/local-transport.d.ts.map +1 -1
  170. package/dist/commands/log-command.d.ts +261 -6
  171. package/dist/commands/log-command.d.ts.map +1 -1
  172. package/dist/commands/log-graph.d.ts +4 -2
  173. package/dist/commands/log-graph.d.ts.map +1 -1
  174. package/dist/commands/log-output.d.ts +88 -2
  175. package/dist/commands/log-output.d.ts.map +1 -1
  176. package/dist/commands/ls-files-command.d.ts +153 -0
  177. package/dist/commands/ls-files-command.d.ts.map +1 -0
  178. package/dist/commands/ls-remote-command.d.ts +5 -0
  179. package/dist/commands/ls-remote-command.d.ts.map +1 -1
  180. package/dist/commands/ls-tree-command.d.ts +105 -0
  181. package/dist/commands/ls-tree-command.d.ts.map +1 -0
  182. package/dist/commands/mailmap.d.ts +24 -1
  183. package/dist/commands/mailmap.d.ts.map +1 -1
  184. package/dist/commands/maintenance-run-command.d.ts +122 -0
  185. package/dist/commands/maintenance-run-command.d.ts.map +1 -0
  186. package/dist/commands/merge-command.d.ts +58 -1
  187. package/dist/commands/merge-command.d.ts.map +1 -1
  188. package/dist/commands/merge-config.d.ts +7 -0
  189. package/dist/commands/merge-config.d.ts.map +1 -1
  190. package/dist/commands/merge-drivers.d.ts +69 -5
  191. package/dist/commands/merge-drivers.d.ts.map +1 -1
  192. package/dist/commands/merge-strategy-options.d.ts +69 -0
  193. package/dist/commands/merge-strategy-options.d.ts.map +1 -0
  194. package/dist/commands/merge-support.d.ts +16 -0
  195. package/dist/commands/merge-support.d.ts.map +1 -1
  196. package/dist/commands/merge-tree-command.d.ts +122 -0
  197. package/dist/commands/merge-tree-command.d.ts.map +1 -0
  198. package/dist/commands/message-cleanup.d.ts +2 -0
  199. package/dist/commands/message-cleanup.d.ts.map +1 -1
  200. package/dist/commands/mktag-command.d.ts +51 -0
  201. package/dist/commands/mktag-command.d.ts.map +1 -0
  202. package/dist/commands/name-rev-command.d.ts +65 -0
  203. package/dist/commands/name-rev-command.d.ts.map +1 -0
  204. package/dist/commands/name-rev.d.ts +110 -22
  205. package/dist/commands/name-rev.d.ts.map +1 -1
  206. package/dist/commands/object-store/count-objects-command.d.ts +58 -0
  207. package/dist/commands/object-store/count-objects-command.d.ts.map +1 -0
  208. package/dist/commands/object-store/index.d.ts +5 -0
  209. package/dist/commands/object-store/index.d.ts.map +1 -0
  210. package/dist/commands/object-store/objects-directory.d.ts +12 -0
  211. package/dist/commands/object-store/objects-directory.d.ts.map +1 -0
  212. package/dist/commands/object-store/prune-command.d.ts +38 -0
  213. package/dist/commands/object-store/prune-command.d.ts.map +1 -0
  214. package/dist/commands/object-store/show-index-command.d.ts +23 -0
  215. package/dist/commands/object-store/show-index-command.d.ts.map +1 -0
  216. package/dist/commands/octopus-merge.d.ts +26 -1
  217. package/dist/commands/octopus-merge.d.ts.map +1 -1
  218. package/dist/commands/ort-merge.d.ts +40 -0
  219. package/dist/commands/ort-merge.d.ts.map +1 -1
  220. package/dist/commands/ort-recursive.d.ts.map +1 -1
  221. package/dist/commands/patch-id-command.d.ts +30 -0
  222. package/dist/commands/patch-id-command.d.ts.map +1 -0
  223. package/dist/commands/patch-id.d.ts +82 -0
  224. package/dist/commands/patch-id.d.ts.map +1 -1
  225. package/dist/commands/plumbing-command.d.ts +66 -0
  226. package/dist/commands/plumbing-command.d.ts.map +1 -0
  227. package/dist/commands/plumbing-input.d.ts +38 -0
  228. package/dist/commands/plumbing-input.d.ts.map +1 -0
  229. package/dist/commands/promisor-remote-reply.d.ts +35 -0
  230. package/dist/commands/promisor-remote-reply.d.ts.map +1 -0
  231. package/dist/commands/promisor-remote.d.ts.map +1 -1
  232. package/dist/commands/pull-command.d.ts +182 -38
  233. package/dist/commands/pull-command.d.ts.map +1 -1
  234. package/dist/commands/push-command.d.ts +82 -2
  235. package/dist/commands/push-command.d.ts.map +1 -1
  236. package/dist/commands/range-diff/index.d.ts +4 -0
  237. package/dist/commands/range-diff/index.d.ts.map +1 -0
  238. package/dist/commands/range-diff/linear-assignment.d.ts +27 -0
  239. package/dist/commands/range-diff/linear-assignment.d.ts.map +1 -0
  240. package/dist/commands/range-diff/range-diff-command.d.ts +121 -0
  241. package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -0
  242. package/dist/commands/range-diff/range-diff.d.ts +106 -0
  243. package/dist/commands/range-diff/range-diff.d.ts.map +1 -0
  244. package/dist/commands/read-tree-command.d.ts +14 -0
  245. package/dist/commands/read-tree-command.d.ts.map +1 -1
  246. package/dist/commands/rebase-command.d.ts +129 -4
  247. package/dist/commands/rebase-command.d.ts.map +1 -1
  248. package/dist/commands/refs-command.d.ts +81 -0
  249. package/dist/commands/refs-command.d.ts.map +1 -0
  250. package/dist/commands/remerge-diff.d.ts +59 -0
  251. package/dist/commands/remerge-diff.d.ts.map +1 -0
  252. package/dist/commands/remote-command.d.ts +41 -0
  253. package/dist/commands/remote-command.d.ts.map +1 -1
  254. package/dist/commands/remote-object-info-command.d.ts +55 -0
  255. package/dist/commands/remote-object-info-command.d.ts.map +1 -0
  256. package/dist/commands/remote-show-command.d.ts +204 -0
  257. package/dist/commands/remote-show-command.d.ts.map +1 -0
  258. package/dist/commands/remote-transport.d.ts +40 -3
  259. package/dist/commands/remote-transport.d.ts.map +1 -1
  260. package/dist/commands/repack-command.d.ts +115 -0
  261. package/dist/commands/repack-command.d.ts.map +1 -0
  262. package/dist/commands/replace-command.d.ts +143 -0
  263. package/dist/commands/replace-command.d.ts.map +1 -0
  264. package/dist/commands/replay-command.d.ts +117 -0
  265. package/dist/commands/replay-command.d.ts.map +1 -0
  266. package/dist/commands/repo-command.d.ts +136 -0
  267. package/dist/commands/repo-command.d.ts.map +1 -0
  268. package/dist/commands/request-pull-command.d.ts +82 -0
  269. package/dist/commands/request-pull-command.d.ts.map +1 -0
  270. package/dist/commands/rerere-command.d.ts +36 -0
  271. package/dist/commands/rerere-command.d.ts.map +1 -0
  272. package/dist/commands/rerere.d.ts +102 -0
  273. package/dist/commands/rerere.d.ts.map +1 -0
  274. package/dist/commands/reset-command.d.ts +19 -1
  275. package/dist/commands/reset-command.d.ts.map +1 -1
  276. package/dist/commands/restore-command.d.ts +7 -0
  277. package/dist/commands/restore-command.d.ts.map +1 -1
  278. package/dist/commands/rev-filter/commit-grep.d.ts +3 -1
  279. package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -1
  280. package/dist/commands/rev-list-command.d.ts +78 -3
  281. package/dist/commands/rev-list-command.d.ts.map +1 -1
  282. package/dist/commands/rev-parse-command.d.ts +9 -0
  283. package/dist/commands/rev-parse-command.d.ts.map +1 -1
  284. package/dist/commands/revert-command.d.ts +32 -1
  285. package/dist/commands/revert-command.d.ts.map +1 -1
  286. package/dist/commands/revision-range.d.ts +7 -0
  287. package/dist/commands/revision-range.d.ts.map +1 -1
  288. package/dist/commands/revision-resolver.d.ts +12 -0
  289. package/dist/commands/revision-resolver.d.ts.map +1 -1
  290. package/dist/commands/sequencer-pick.d.ts +120 -1
  291. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  292. package/dist/commands/sequencer-support.d.ts +10 -1
  293. package/dist/commands/sequencer-support.d.ts.map +1 -1
  294. package/dist/commands/serve-repository.d.ts +23 -1
  295. package/dist/commands/serve-repository.d.ts.map +1 -1
  296. package/dist/commands/session-id.d.ts +18 -0
  297. package/dist/commands/session-id.d.ts.map +1 -0
  298. package/dist/commands/shortlog-command.d.ts +109 -0
  299. package/dist/commands/shortlog-command.d.ts.map +1 -0
  300. package/dist/commands/shortlog.d.ts +151 -0
  301. package/dist/commands/shortlog.d.ts.map +1 -0
  302. package/dist/commands/show-branch-command.d.ts +59 -0
  303. package/dist/commands/show-branch-command.d.ts.map +1 -0
  304. package/dist/commands/show-ref-command.d.ts +112 -0
  305. package/dist/commands/show-ref-command.d.ts.map +1 -0
  306. package/dist/commands/signature-check.d.ts +9 -2
  307. package/dist/commands/signature-check.d.ts.map +1 -1
  308. package/dist/commands/signing.d.ts +22 -1
  309. package/dist/commands/signing.d.ts.map +1 -1
  310. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  311. package/dist/commands/stash-export-command.d.ts +115 -0
  312. package/dist/commands/stash-export-command.d.ts.map +1 -0
  313. package/dist/commands/status-command.d.ts +33 -3
  314. package/dist/commands/status-command.d.ts.map +1 -1
  315. package/dist/commands/stripspace-command.d.ts +44 -0
  316. package/dist/commands/stripspace-command.d.ts.map +1 -0
  317. package/dist/commands/submodule-add-command.d.ts +10 -1
  318. package/dist/commands/submodule-add-command.d.ts.map +1 -1
  319. package/dist/commands/submodule-auth.d.ts +3 -1
  320. package/dist/commands/submodule-auth.d.ts.map +1 -1
  321. package/dist/commands/submodule-commands.d.ts +99 -3
  322. package/dist/commands/submodule-commands.d.ts.map +1 -1
  323. package/dist/commands/submodule-fetch.d.ts +149 -0
  324. package/dist/commands/submodule-fetch.d.ts.map +1 -0
  325. package/dist/commands/submodule-model.d.ts +8 -0
  326. package/dist/commands/submodule-model.d.ts.map +1 -1
  327. package/dist/commands/submodule-unpack.d.ts +120 -0
  328. package/dist/commands/submodule-unpack.d.ts.map +1 -0
  329. package/dist/commands/submodule-update-command.d.ts +21 -1
  330. package/dist/commands/submodule-update-command.d.ts.map +1 -1
  331. package/dist/commands/subtree-shift.d.ts +27 -0
  332. package/dist/commands/subtree-shift.d.ts.map +1 -0
  333. package/dist/commands/switch-command.d.ts +3 -0
  334. package/dist/commands/switch-command.d.ts.map +1 -1
  335. package/dist/commands/textconv-cache.d.ts +58 -0
  336. package/dist/commands/textconv-cache.d.ts.map +1 -0
  337. package/dist/commands/tree-restore.d.ts +5 -0
  338. package/dist/commands/tree-restore.d.ts.map +1 -1
  339. package/dist/commands/unpack-objects-command.d.ts +47 -0
  340. package/dist/commands/unpack-objects-command.d.ts.map +1 -0
  341. package/dist/commands/update-index-command.d.ts +110 -0
  342. package/dist/commands/update-index-command.d.ts.map +1 -0
  343. package/dist/commands/uri-protocols.d.ts +13 -0
  344. package/dist/commands/uri-protocols.d.ts.map +1 -0
  345. package/dist/commands/url-parse-command.d.ts +30 -0
  346. package/dist/commands/url-parse-command.d.ts.map +1 -0
  347. package/dist/commands/var-command.d.ts +42 -0
  348. package/dist/commands/var-command.d.ts.map +1 -0
  349. package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
  350. package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
  351. package/dist/{commands-ISM52N0n.js → commands-Mlo1dxQN.js} +56133 -70269
  352. package/dist/errors/command-errors.d.ts +58 -0
  353. package/dist/errors/command-errors.d.ts.map +1 -1
  354. package/dist/errors/index.js +67 -1
  355. package/dist/fsck-CrhVMNIH.js +5179 -0
  356. package/dist/git-command.d.ts +89 -3
  357. package/dist/git-command.d.ts.map +1 -1
  358. package/dist/git.d.ts +628 -1
  359. package/dist/git.d.ts.map +1 -1
  360. package/dist/guarded-transport-command.d.ts +84 -0
  361. package/dist/guarded-transport-command.d.ts.map +1 -0
  362. package/dist/index.d.ts +1 -0
  363. package/dist/index.d.ts.map +1 -1
  364. package/dist/index.js +7 -5
  365. package/dist/maintenance-run-command-Bw21HEkH.js +13539 -0
  366. package/dist/remote-transport-Bu4PGSMD.js +2605 -0
  367. package/dist/rename/detect-renames.d.ts +20 -0
  368. package/dist/rename/detect-renames.d.ts.map +1 -1
  369. package/dist/rename/diffcore-break.d.ts +51 -0
  370. package/dist/rename/diffcore-break.d.ts.map +1 -0
  371. package/dist/rename/index.d.ts +1 -0
  372. package/dist/rename/index.d.ts.map +1 -1
  373. package/dist/results/blame-format.d.ts +62 -1
  374. package/dist/results/blame-format.d.ts.map +1 -1
  375. package/dist/results/cherry-pick-result.d.ts +6 -0
  376. package/dist/results/cherry-pick-result.d.ts.map +1 -1
  377. package/dist/results/clone-result.d.ts +9 -0
  378. package/dist/results/clone-result.d.ts.map +1 -1
  379. package/dist/results/diff-dirstat.d.ts +36 -0
  380. package/dist/results/diff-dirstat.d.ts.map +1 -0
  381. package/dist/results/diff-entry.d.ts +20 -0
  382. package/dist/results/diff-entry.d.ts.map +1 -1
  383. package/dist/results/diff-formatter.d.ts.map +1 -1
  384. package/dist/results/diff-output.d.ts +67 -3
  385. package/dist/results/diff-output.d.ts.map +1 -1
  386. package/dist/results/fetch-result.d.ts +24 -1
  387. package/dist/results/fetch-result.d.ts.map +1 -1
  388. package/dist/results/index.d.ts +2 -0
  389. package/dist/results/index.d.ts.map +1 -1
  390. package/dist/results/index.js +2 -2
  391. package/dist/results/init-result.d.ts +8 -1
  392. package/dist/results/init-result.d.ts.map +1 -1
  393. package/dist/results/line-range-hunks.d.ts +27 -0
  394. package/dist/results/line-range-hunks.d.ts.map +1 -0
  395. package/dist/results/merge-result.d.ts +13 -1
  396. package/dist/results/merge-result.d.ts.map +1 -1
  397. package/dist/results/pull-result.d.ts +11 -0
  398. package/dist/results/pull-result.d.ts.map +1 -1
  399. package/dist/results/push-result.d.ts +10 -0
  400. package/dist/results/push-result.d.ts.map +1 -1
  401. package/dist/results/rebase-result.d.ts +7 -0
  402. package/dist/results/rebase-result.d.ts.map +1 -1
  403. package/dist/results/revert-result.d.ts +6 -0
  404. package/dist/results/revert-result.d.ts.map +1 -1
  405. package/dist/results/stash-result.d.ts +5 -0
  406. package/dist/results/stash-result.d.ts.map +1 -1
  407. package/dist/results/status-result.d.ts +1 -1
  408. package/dist/results/status-result.d.ts.map +1 -1
  409. package/dist/results-ERo9vELd.js +49673 -0
  410. package/dist/transport-command.d.ts +93 -1
  411. package/dist/transport-command.d.ts.map +1 -1
  412. package/package.json +12 -12
  413. package/src/commands/add-command.ts +118 -0
  414. package/src/commands/add-patch/add-patch.ts +8 -0
  415. package/src/commands/add-patch/patch-backend.ts +24 -3
  416. package/src/commands/add-patch/patch-modes.ts +26 -2
  417. package/src/commands/add-patch/patch-session.ts +6 -0
  418. package/src/commands/am/am-command.ts +301 -12
  419. package/src/commands/apply/apply-command.ts +52 -9
  420. package/src/commands/apply/apply-parse.ts +10 -0
  421. package/src/commands/apply/index.ts +9 -1
  422. package/src/commands/archive/archive-command.ts +1148 -0
  423. package/src/commands/archive/archive-entry.ts +93 -0
  424. package/src/commands/archive/index.ts +7 -0
  425. package/src/commands/archive/remote-archive-command.ts +140 -0
  426. package/src/commands/archive/tar-archive.ts +207 -0
  427. package/src/commands/archive/tar-commit-id.ts +72 -0
  428. package/src/commands/archive/upload-archive-writer.ts +213 -0
  429. package/src/commands/archive/zip-archive.ts +317 -0
  430. package/src/commands/attributes-source.ts +26 -12
  431. package/src/commands/blame-command.ts +1551 -53
  432. package/src/commands/blame-ignore.ts +307 -0
  433. package/src/commands/bundle/bundle-create-command.ts +405 -0
  434. package/src/commands/bundle/bundle-format.ts +228 -0
  435. package/src/commands/bundle/bundle-list.ts +276 -0
  436. package/src/commands/bundle/bundle-read-commands.ts +157 -0
  437. package/src/commands/bundle/bundle-support.ts +85 -0
  438. package/src/commands/bundle/bundle-transport.ts +107 -0
  439. package/src/commands/bundle/bundle-uri-host.ts +204 -0
  440. package/src/commands/bundle/bundle-uri.ts +236 -0
  441. package/src/commands/bundle/bundle-verify.ts +152 -0
  442. package/src/commands/bundle/index.ts +14 -0
  443. package/src/commands/cat-file/batch-format.ts +193 -0
  444. package/src/commands/cat-file/cat-file-command.ts +857 -0
  445. package/src/commands/cat-file/index.ts +2 -0
  446. package/src/commands/check-attr-command.ts +333 -0
  447. package/src/commands/check-ignore-command.ts +261 -0
  448. package/src/commands/check-mailmap-command.ts +129 -0
  449. package/src/commands/check-ref-format-command.ts +129 -0
  450. package/src/commands/checkout-command.ts +131 -28
  451. package/src/commands/checkout-index-command.ts +568 -0
  452. package/src/commands/checkout-paths.ts +35 -0
  453. package/src/commands/cherry-command.ts +187 -0
  454. package/src/commands/cherry-pick-command.ts +63 -2
  455. package/src/commands/clean-command.ts +92 -12
  456. package/src/commands/clean-interactive.ts +522 -0
  457. package/src/commands/clone-command.ts +803 -50
  458. package/src/commands/commit-command.ts +202 -51
  459. package/src/commands/config-command.ts +9 -0
  460. package/src/commands/daemon-access-hook.ts +78 -0
  461. package/src/commands/default-branch.ts +99 -1
  462. package/src/commands/describe-command.ts +341 -254
  463. package/src/commands/diff-command.ts +1186 -99
  464. package/src/commands/diff-external.ts +131 -0
  465. package/src/commands/diff-plumbing/diff-pairs-command.ts +193 -0
  466. package/src/commands/diff-plumbing/diff-plumbing-command.ts +424 -0
  467. package/src/commands/diff-plumbing/index.ts +2 -0
  468. package/src/commands/diff-textconv.ts +5 -1
  469. package/src/commands/fast-export/fast-export-command.ts +911 -0
  470. package/src/commands/fast-export/fast-import-command.ts +1553 -0
  471. package/src/commands/fast-export/fast-stream-support.ts +162 -0
  472. package/src/commands/fast-export/index.ts +3 -0
  473. package/src/commands/fetch-command.ts +665 -14
  474. package/src/commands/fetch-multiple-command.ts +668 -0
  475. package/src/commands/format-patch-command.ts +189 -77
  476. package/src/commands/format-rev-command.ts +251 -0
  477. package/src/commands/fsck/fsck-command.ts +47 -20
  478. package/src/commands/fsck/fsck-msg-ids.ts +19 -3
  479. package/src/commands/fsck/fsck-pack.ts +2 -2
  480. package/src/commands/fsmonitor-refresh.ts +315 -0
  481. package/src/commands/gc-command.ts +10 -0
  482. package/src/commands/git-describe.ts +456 -217
  483. package/src/commands/git-hooks.ts +165 -9
  484. package/src/commands/git-paths.ts +136 -0
  485. package/src/commands/grep/grep-command.ts +38 -15
  486. package/src/commands/history-command.ts +617 -0
  487. package/src/commands/http-config.ts +139 -0
  488. package/src/commands/index-adder.ts +37 -3
  489. package/src/commands/index-host.ts +6 -1
  490. package/src/commands/index.ts +62 -0
  491. package/src/commands/init-command.ts +617 -49
  492. package/src/commands/last-modified-command.ts +804 -0
  493. package/src/commands/lfs/go-url.ts +370 -0
  494. package/src/commands/lfs/index.ts +2 -0
  495. package/src/commands/lfs/lfs-config.ts +738 -0
  496. package/src/commands/lfs/lfs-endpoint-command.ts +180 -0
  497. package/src/commands/line-log.ts +931 -0
  498. package/src/commands/local-transport.ts +252 -4
  499. package/src/commands/log-command.ts +1518 -182
  500. package/src/commands/log-graph.ts +6 -3
  501. package/src/commands/log-output.ts +228 -15
  502. package/src/commands/ls-files-command.ts +1177 -0
  503. package/src/commands/ls-remote-command.ts +6 -0
  504. package/src/commands/ls-tree-command.ts +684 -0
  505. package/src/commands/mailmap.ts +41 -5
  506. package/src/commands/maintenance-run-command.ts +949 -0
  507. package/src/commands/merge-command.ts +351 -47
  508. package/src/commands/merge-config.ts +23 -1
  509. package/src/commands/merge-drivers.ts +112 -20
  510. package/src/commands/merge-strategy-options.ts +224 -0
  511. package/src/commands/merge-support.ts +130 -26
  512. package/src/commands/merge-tree-command.ts +786 -0
  513. package/src/commands/message-cleanup.ts +1 -1
  514. package/src/commands/mktag-command.ts +149 -0
  515. package/src/commands/name-rev-command.ts +184 -0
  516. package/src/commands/name-rev.ts +700 -109
  517. package/src/commands/object-store/count-objects-command.ts +404 -0
  518. package/src/commands/object-store/index.ts +4 -0
  519. package/src/commands/object-store/objects-directory.ts +24 -0
  520. package/src/commands/object-store/prune-command.ts +129 -0
  521. package/src/commands/object-store/show-index-command.ts +151 -0
  522. package/src/commands/octopus-merge.ts +35 -11
  523. package/src/commands/ort-merge.ts +124 -23
  524. package/src/commands/ort-recursive.ts +40 -2
  525. package/src/commands/patch-id-command.ts +65 -0
  526. package/src/commands/patch-id.ts +327 -0
  527. package/src/commands/plumbing-command.ts +141 -0
  528. package/src/commands/plumbing-input.ts +87 -0
  529. package/src/commands/promisor-remote-reply.ts +276 -0
  530. package/src/commands/promisor-remote.ts +25 -2
  531. package/src/commands/pull-command.ts +720 -224
  532. package/src/commands/push-command.ts +440 -8
  533. package/src/commands/range-diff/index.ts +3 -0
  534. package/src/commands/range-diff/linear-assignment.ts +203 -0
  535. package/src/commands/range-diff/range-diff-command.ts +433 -0
  536. package/src/commands/range-diff/range-diff.ts +617 -0
  537. package/src/commands/read-tree-command.ts +74 -3
  538. package/src/commands/rebase-command.ts +647 -83
  539. package/src/commands/refs-command.ts +274 -0
  540. package/src/commands/remerge-diff.ts +241 -0
  541. package/src/commands/remote-command.ts +98 -10
  542. package/src/commands/remote-object-info-command.ts +109 -0
  543. package/src/commands/remote-show-command.ts +836 -0
  544. package/src/commands/remote-transport.ts +116 -1
  545. package/src/commands/repack-command.ts +383 -0
  546. package/src/commands/replace-command.ts +816 -0
  547. package/src/commands/replay-command.ts +674 -0
  548. package/src/commands/repo-command.ts +967 -0
  549. package/src/commands/request-pull-command.ts +356 -0
  550. package/src/commands/rerere-command.ts +179 -0
  551. package/src/commands/rerere.ts +925 -0
  552. package/src/commands/reset-command.ts +78 -3
  553. package/src/commands/restore-command.ts +15 -0
  554. package/src/commands/rev-filter/commit-grep.ts +7 -2
  555. package/src/commands/rev-list-command.ts +196 -11
  556. package/src/commands/rev-parse-command.ts +62 -4
  557. package/src/commands/revert-command.ts +62 -2
  558. package/src/commands/revision-range.ts +10 -3
  559. package/src/commands/revision-resolver.ts +44 -3
  560. package/src/commands/sequencer-pick.ts +370 -29
  561. package/src/commands/sequencer-support.ts +164 -2
  562. package/src/commands/serve-repository.ts +65 -0
  563. package/src/commands/session-id.ts +31 -0
  564. package/src/commands/shortlog-command.ts +354 -0
  565. package/src/commands/shortlog.ts +361 -0
  566. package/src/commands/show-branch-command.ts +981 -0
  567. package/src/commands/show-command.ts +3 -2
  568. package/src/commands/show-ref-command.ts +439 -0
  569. package/src/commands/signature-check.ts +37 -5
  570. package/src/commands/signing.ts +122 -16
  571. package/src/commands/stash-apply-command.ts +3 -0
  572. package/src/commands/stash-export-command.ts +397 -0
  573. package/src/commands/status-command.ts +158 -31
  574. package/src/commands/status-format.ts +1 -1
  575. package/src/commands/stripspace-command.ts +118 -0
  576. package/src/commands/submodule-add-command.ts +22 -1
  577. package/src/commands/submodule-auth.ts +61 -6
  578. package/src/commands/submodule-commands.ts +333 -5
  579. package/src/commands/submodule-fetch.ts +789 -0
  580. package/src/commands/submodule-model.ts +9 -1
  581. package/src/commands/submodule-unpack.ts +265 -0
  582. package/src/commands/submodule-update-command.ts +68 -5
  583. package/src/commands/subtree-shift.ts +215 -0
  584. package/src/commands/switch-command.ts +9 -0
  585. package/src/commands/textconv-cache.ts +143 -0
  586. package/src/commands/tree-restore.ts +20 -1
  587. package/src/commands/unpack-objects-command.ts +235 -0
  588. package/src/commands/update-index-command.ts +1016 -0
  589. package/src/commands/uri-protocols.ts +13 -0
  590. package/src/commands/url-parse-command.ts +67 -0
  591. package/src/commands/var-command.ts +219 -0
  592. package/src/commands/worktree-overwrite-checks.ts +5 -0
  593. package/src/errors/command-errors.ts +80 -0
  594. package/src/git-command.ts +218 -2
  595. package/src/git.ts +1033 -80
  596. package/src/guarded-transport-command.ts +176 -0
  597. package/src/index.ts +1 -0
  598. package/src/rename/detect-renames.ts +42 -8
  599. package/src/rename/diffcore-break.ts +166 -0
  600. package/src/rename/index.ts +1 -0
  601. package/src/results/blame-format.ts +268 -43
  602. package/src/results/cherry-pick-result.ts +6 -0
  603. package/src/results/clone-result.ts +6 -0
  604. package/src/results/diff-dirstat.ts +117 -0
  605. package/src/results/diff-entry.ts +24 -0
  606. package/src/results/diff-formatter.ts +8 -4
  607. package/src/results/diff-output.ts +239 -8
  608. package/src/results/diff-pickaxe.ts +1 -1
  609. package/src/results/fetch-result.ts +24 -1
  610. package/src/results/index.ts +2 -0
  611. package/src/results/init-result.ts +10 -1
  612. package/src/results/line-range-hunks.ts +126 -0
  613. package/src/results/merge-result.ts +14 -0
  614. package/src/results/pull-result.ts +7 -0
  615. package/src/results/push-result.ts +10 -0
  616. package/src/results/rebase-result.ts +7 -0
  617. package/src/results/revert-result.ts +6 -0
  618. package/src/results/stash-result.ts +6 -0
  619. package/src/results/status-result.ts +2 -2
  620. package/src/transport-command.ts +216 -4
  621. package/dist/fsck-DLRpbwTj.js +0 -13405
  622. package/dist/results-TB2IJ64h.js +0 -4700
@@ -0,0 +1,61 @@
1
+ /**
2
+ * `git cherry [-v] [<upstream> [<head> [<limit>]]]` (builtin/log.c's cmd_cherry): the commits
3
+ * of `<head>` not in `<upstream>` (merges left out, oldest first), each marked `-` when
4
+ * upstream has a commit making the same change (the same patch-id, see `PatchIds`) and `+`
5
+ * when it has none. A `<limit>` leaves out the commits it reaches too.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * // git cherry -v main topic
10
+ * await git.cherry().setUpstream("main").setHead("topic").setVerbose(true).callText();
11
+ * // "+ 1a2b... Add B.\n- 3c4d... Add C.\n"
12
+ * ```
13
+ */
14
+ import type { ObjectId } from "@statewalker/vcs-core";
15
+ import { GitCommand } from "../git-command.js";
16
+ /** One commit `git cherry` lists. */
17
+ export interface CherryEntry {
18
+ /** `-`: upstream has a commit with the same change; `+`: it has none */
19
+ sign: "+" | "-";
20
+ id: ObjectId;
21
+ /** Its subject (`-v`'s oneline) */
22
+ subject: string;
23
+ }
24
+ /**
25
+ * The commits of a branch not yet upstream, by change rather than by id.
26
+ *
27
+ * Without an upstream, the current branch's (`branch.<name>.merge` of its remote) is taken;
28
+ * without one either, git's usage error is thrown (exit 129). A name that is no commit dies
29
+ * as git's `fatal: unknown commit <name>` (exit 128).
30
+ */
31
+ export declare class CherryCommand extends GitCommand<CherryEntry[]> {
32
+ private upstream?;
33
+ private head;
34
+ private limit?;
35
+ private verbose;
36
+ /** `--abbrev[=<n>]`: undefined for full ids (git's 0), -1 for the default length */
37
+ private abbrev?;
38
+ /** `<upstream>`: where the changes are looked for. */
39
+ setUpstream(upstream: string): this;
40
+ /** `<head>`: the branch whose commits are listed (default HEAD). */
41
+ setHead(head: string): this;
42
+ /** `<limit>`: commits it reaches are not listed (they are still not looked for upstream). */
43
+ setLimit(limit: string): this;
44
+ /** `-v`: each commit's subject after its id. */
45
+ setVerbose(verbose: boolean): this;
46
+ /**
47
+ * `--abbrev[=<n>]`: ids abbreviated to at least `n` digits (at least 4), or to the default
48
+ * length (`core.abbrev`) without `n`; `--no-abbrev` (undefined, the default) prints them
49
+ * whole.
50
+ */
51
+ setAbbrev(abbrev: number | true | undefined): this;
52
+ call(): Promise<CherryEntry[]>;
53
+ /** git cherry's output: `<sign> <id>` per commit, with `-v` its subject after. */
54
+ callText(): Promise<string>;
55
+ private shownId;
56
+ /** add_pending_commit: the commit a name gives (tags peeled), else git's death. */
57
+ private commitNamed;
58
+ /** branch_get_upstream of the current branch, else git's usage error. */
59
+ private defaultUpstream;
60
+ }
61
+ //# sourceMappingURL=cherry-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cherry-command.d.ts","sourceRoot":"","sources":["../../src/commands/cherry-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAU,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG9D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C,qCAAqC;AACrC,MAAM,WAAW,WAAW;IAC1B,wEAAwE;IACxE,IAAI,EAAE,GAAG,GAAG,GAAG,CAAC;IAChB,EAAE,EAAE,QAAQ,CAAC;IACb,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB;AAKD;;;;;;GAMG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,WAAW,EAAE,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,IAAI,CAAU;IACtB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;IACxB,oFAAoF;IACpF,OAAO,CAAC,MAAM,CAAC,CAAS;IAExB,sDAAsD;IACtD,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAIlC;IAED,oEAAoE;IACpE,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED,6FAA6F;IAC7F,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAI5B;IAED,gDAAgD;IAChD,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAMjD;IAEK,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAqDnC;IAED,kFAAkF;IAC5E,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAQhC;YAEa,OAAO;IAOrB,mFAAmF;YACrE,WAAW;IAQzB,yEAAyE;YAC3D,eAAe;CAa9B"}
@@ -34,6 +34,10 @@ export declare class CherryPickCommand extends GitCommand<CherryPickResult> {
34
34
  private mainlineParent?;
35
35
  private strategy;
36
36
  private contentStrategy?;
37
+ private strategyGiven;
38
+ private strategyOptions;
39
+ /** Whose behaviour to follow where git 2.43 and 2.5x differ (default: the hooks') */
40
+ private compatibility?;
37
41
  private ourCommitName?;
38
42
  private reflogPrefix;
39
43
  private operation;
@@ -69,11 +73,29 @@ export declare class CherryPickCommand extends GitCommand<CherryPickResult> {
69
73
  */
70
74
  setMainlineParentNumber(parent: number): this;
71
75
  /**
72
- * Set the merge strategy (only git's merge-ort is run; kept for compatibility).
76
+ * Set the merge strategy (`-s`): merge-ort (RECURSIVE, ORT), RESOLVE (git-merge-resolve) or
77
+ * SUBTREE (git merge-subtree). Given, it is saved in `sequencer/opts` for a run of several
78
+ * commits.
73
79
  *
74
80
  * @param strategy Merge strategy to use
75
81
  */
76
82
  setStrategy(strategy: MergeStrategy): this;
83
+ /**
84
+ * The `-X <option>`s (merge-ort's parse_merge_opt: `ours`, `theirs`, `subtree[=<path>]`,
85
+ * `patience`, `diff-algorithm=<name>`, `ignore-space-change`, `ignore-all-space`,
86
+ * `ignore-space-at-eol`, `ignore-cr-at-eol`, `renormalize`, `no-renames`,
87
+ * `find-renames[=<n>]`, `rename-threshold=<n>`); unknown ones are ignored, as the
88
+ * sequencer ignores them.
89
+ */
90
+ setStrategyOptions(options: readonly string[]): this;
91
+ /**
92
+ * Whose behaviour to follow where git 2.43 and 2.5x differ (a strategy that gives up dies
93
+ * in 2.5x only; 2.43's merge-subtree records no AUTO_MERGE). Default: the hook runner's,
94
+ * else 2.56.
95
+ */
96
+ setCompatibility(version: "2.43" | "2.56"): this;
97
+ /** Adds one `-X <option>` (see {@link setStrategyOptions}). */
98
+ addStrategyOption(option: string): this;
77
99
  /**
78
100
  * Get the merge strategy.
79
101
  */
@@ -190,6 +212,16 @@ export declare class CherryPickCommand extends GitCommand<CherryPickResult> {
190
212
  private checkOptions;
191
213
  /** What the sparse checkout printed while the result was written. */
192
214
  private readonly sparseWarnings;
215
+ /** What rerere printed on stderr (a stopped pick, a `--continue`'s commit) */
216
+ private readonly rerereLines;
217
+ /** `--[no-]rerere-autoupdate` */
218
+ private rerereAutoUpdate?;
219
+ /**
220
+ * `--rerere-autoupdate` (true) / `--no-rerere-autoupdate` (false): whether resolutions
221
+ * rerere replays at a conflict are staged (default `rerere.autoUpdate`); kept for the
222
+ * picks `--continue` makes, refused with `--continue`, `--skip`, `--abort`, `--quit`.
223
+ */
224
+ setRerereAutoUpdate(autoUpdate: boolean): this;
193
225
  private run;
194
226
  }
195
227
  //# sourceMappingURL=cherry-pick-command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cherry-pick-command.d.ts","sourceRoot":"","sources":["../../src/commands/cherry-pick-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,KAAK,oBAAoB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIvE,OAAO,EAKL,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,iBAAkB,SAAQ,UAAU,CAAC,gBAAgB,CAAC;IACjE,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,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AS,GAAG,IAAI,CAIvC;IAED,6DAA6D;IAC7D,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIjC;IAED;;;;;OAKG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED;;;;OAIG;IACH,eAAe,CAAC,YAAY,EAAE,OAAO,GAAG,IAAI,CAI3C;IAED,gGAAgG;IAChG,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAIvC;IAED,2FAA2F;IAC3F,oBAAoB,CAAC,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAIrD;IAED;;;OAGG;IACH,uBAAuB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3C;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAI7C;IAED;;;;OAIG;IACH,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAIzC;IAED;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAIpC;IAED;;;;OAIG;YACW,SAAS;IAyBjB,IAAI,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAatC;IAED,uFAAuF;IACvF,OAAO,CAAC,YAAY;IA0BpB,qEAAqE;IACrE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;IAC/C,8EAA8E;IAC9E,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgB;IAC5C,iCAAiC;IACjC,OAAO,CAAC,gBAAgB,CAAC,CAAU;IAEnC;;;;OAIG;IACH,mBAAmB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAI7C;YAEa,GAAG;CAqDlB"}
@@ -1,4 +1,6 @@
1
1
  import { GitCommand } from "../git-command.js";
2
+ import type { PatchSelector } from "./add-patch/index.js";
3
+ import { type CleanInteractiveResult } from "./clean-interactive.js";
2
4
  /**
3
5
  * Result of a clean operation
4
6
  */
@@ -19,6 +21,8 @@ export interface CleanResult {
19
21
  * remove (git then exits with status 1)
20
22
  */
21
23
  warnings: string[];
24
+ /** With {@link CleanCommand.setInteractive}: what `git clean -i` printed */
25
+ interactive?: CleanInteractiveResult;
22
26
  }
23
27
  /**
24
28
  * Remove untracked files from working tree.
@@ -62,6 +66,9 @@ export declare class CleanCommand extends GitCommand<CleanResult> {
62
66
  private ignoredOnly;
63
67
  private forceNested;
64
68
  private excludePatterns;
69
+ private interactive?;
70
+ private columns?;
71
+ private compatibility;
65
72
  /**
66
73
  * Limit clean to specific paths.
67
74
  *
@@ -120,6 +127,31 @@ export declare class CleanCommand extends GitCommand<CleanResult> {
120
127
  * @param patterns The patterns, in command-line order (later ones win)
121
128
  */
122
129
  setExcludePatterns(patterns: readonly string[]): this;
130
+ /**
131
+ * `git clean -i` (`--interactive`): builtin/clean.c's `interactive_main_loop` over the
132
+ * items to delete before anything is removed. The items are listed in columns
133
+ * (`column.ui`/`column.clean` layout, {@link setColumns} wide), then the "*** Commands ***"
134
+ * menu offers clean, filter by pattern (items matching ignore patterns are kept), select by
135
+ * numbers, ask each ("Remove <item> [y/N]? "), quit and help. Every read git makes from
136
+ * standard input goes to `selector`: the menus as `choose` requests ("What now> ", "Select
137
+ * items to delete>> "), the patterns as a `line`, each question as a `yesno`; undefined is
138
+ * the end of input. What is left is removed as {@link setDryRun} says (git's `-i` alone
139
+ * removes: pass `setDryRun(false)`), and `cleaned` lists it in git's order; the result's
140
+ * `interactive` carries the transcript.
141
+ *
142
+ * @example
143
+ * ```typescript
144
+ * const answers = ["s", "1,3", "", "c"];
145
+ * const result = await git.clean().setDryRun(false)
146
+ * .setInteractive(() => answers.shift()).call();
147
+ * process.stdout.write(result.interactive?.output ?? "");
148
+ * ```
149
+ */
150
+ setInteractive(selector: PatchSelector | undefined): this;
151
+ /** The terminal width `git clean -i` lays its columns out in (git's `term_columns`, 80). */
152
+ setColumns(columns: number): this;
153
+ /** The git version `git clean -i` reproduces (2.43 differs in one warning). */
154
+ setCompatibility(version: "2.43" | "2.56"): this;
123
155
  /**
124
156
  * Execute the clean command, as `git clean -f` (`-d` with `setCleanDirectories(true)`,
125
157
  * `-x` with `setIgnore(false)`, `-X` with `setIgnoredOnly(true)`, `-ff` with
@@ -1 +1 @@
1
- {"version":3,"file":"clean-command.d.ts","sourceRoot":"","sources":["../../src/commands/clean-command.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAgB/C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,4CAA4C;IAC5C,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB;;;OAGG;IACH,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,6DAA6D;IAC7D,MAAM,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,YAAa,SAAQ,UAAU,CAAC,WAAW,CAAC;IACvD,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,eAAe,CAAgB;IAEvC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAIjC;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;;OAKG;IACH,mBAAmB,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAI9C;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;;;OAMG;IACH,cAAc,CAAC,WAAW,EAAE,OAAO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AAC,eAAe,CAAgB;IACvC,OAAO,CAAC,WAAW,CAAC,CAAgB;IACpC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,aAAa,CAA2B;IAEhD;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAIjC;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;;OAKG;IACH,mBAAmB,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAI9C;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;;;OAMG;IACH,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAIzC;IAED;;;;;;OAMG;IACH,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI/C;IAED;;;;;;;;;OASG;IACH,kBAAkB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAIpD;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,cAAc,CAAC,QAAQ,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI,CAIxD;IAED,4FAA4F;IAC5F,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED,+EAA+E;IAC/E,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAED;;;;;;;;;;;;;;;;;OAiBG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CAYjC;IAED;;;;OAIG;YACW,KAAK;IA4EnB;;;;OAIG;YACW,QAAQ;IAoFtB;;;;;;;;;OASG;YACW,aAAa;CAsE5B"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * `git clean -i` (builtin/clean.c's `interactive_main_loop`): the items to delete listed in
3
+ * columns, the "*** Commands ***" menu (clean, filter by pattern, select by numbers, ask
4
+ * each, quit, help) and its actions, each read of standard input answered by a
5
+ * `PatchSelector` (the menus as `choose` requests, the patterns as a `line`, each "Remove
6
+ * ...?" as a `yesno`), and what git prints gathered as its standard output.
7
+ */
8
+ import type { PatchSelector } from "./add-patch/index.js";
9
+ /** What `git clean -i` printed. */
10
+ export interface CleanInteractiveResult {
11
+ /** Standard output, as git prints it: listings, menus, prompts, help */
12
+ output: string;
13
+ }
14
+ /** column.c's layouts (`column.ui`, `column.clean`). */
15
+ export interface ColumnLayout {
16
+ layout: "column" | "row" | "plain";
17
+ dense: boolean;
18
+ }
19
+ /** Options of {@link runCleanInteractive}. */
20
+ export interface CleanInteractiveOptions {
21
+ selector: PatchSelector;
22
+ /** The items to delete, as git lists them (directories with their `/`), in order */
23
+ items: string[];
24
+ /** Whether an item is a directory (`lstat`'s answer for the pattern filter) */
25
+ isDirectory: (item: string) => boolean;
26
+ /** `term_columns()` (default 80: `$COLUMNS`, else the terminal's width) */
27
+ columns?: number;
28
+ /** The layout of the item listing (default `column`, not dense) */
29
+ layout?: ColumnLayout;
30
+ /** `core.quotePath` (default true) */
31
+ quotePath?: boolean;
32
+ /** `core.ignoreCase`: patterns match ignoring case */
33
+ ignoreCase?: boolean;
34
+ /** git 2.43 prints the whole input of a pattern filter that matched nothing */
35
+ compatibility?: "2.43" | "2.56";
36
+ }
37
+ /** Reads `column.ui` / `column.clean` values (the later one wins for each part). */
38
+ export declare function parseColumnLayout(values: readonly string[]): ColumnLayout;
39
+ /**
40
+ * column.c's `print_columns` with the layout always enabled: `indent` before each line,
41
+ * `padding` spaces between cells, `width` the terminal's columns less one.
42
+ */
43
+ export declare function printColumns(list: readonly string[], layout: ColumnLayout, options: {
44
+ indent: string;
45
+ padding: number;
46
+ width: number;
47
+ }): string;
48
+ /**
49
+ * Runs `git clean -i` over the items to delete: the ones left to delete come back with
50
+ * the transcript.
51
+ */
52
+ export declare function runCleanInteractive(options: CleanInteractiveOptions): Promise<{
53
+ items: string[];
54
+ output: string;
55
+ }>;
56
+ //# sourceMappingURL=clean-interactive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clean-interactive.d.ts","sourceRoot":"","sources":["../../src/commands/clean-interactive.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAExE,mCAAmC;AACnC,MAAM,WAAW,sBAAsB;IACrC,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wDAAwD;AACxD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;IACnC,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,8CAA8C;AAC9C,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,aAAa,CAAC;IACxB,oFAAoF;IACpF,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,+EAA+E;IAC/E,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACvC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sDAAsD;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,YAAY,CAWzE;AAKD;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC1D,MAAM,CAyDR;AAmYD;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAE9C"}
@@ -71,6 +71,19 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
71
71
  private noCheckout;
72
72
  private sparse;
73
73
  private remoteName;
74
+ /** `-o`/`--origin` given: `clone.defaultRemoteName` is not read */
75
+ private remoteExplicit;
76
+ /** `-c`/`--config` entries (`key=value`, or `key` for true) */
77
+ private configEntries;
78
+ /** `--revision` (git 2.49+) */
79
+ private revision?;
80
+ /** `--[no-]reject-shallow`; unset: `clone.rejectShallow` */
81
+ private rejectShallow?;
82
+ /** `--server-option` values */
83
+ private serverOptions;
84
+ /** The git version reproduced; default the hooks' */
85
+ private compatibility?;
86
+ private bundleUri?;
74
87
  private cloneAllBranches;
75
88
  private mirror;
76
89
  private singleBranch?;
@@ -85,6 +98,12 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
85
98
  private dissociate;
86
99
  /** `--reference` (required) and `--reference-if-able` paths, in the order given */
87
100
  private references;
101
+ /** `--recurse-submodules[=<pathspec>]` values, in the order given */
102
+ private recurseSubmodules;
103
+ private shallowSubmodules;
104
+ /** `--[no-]also-filter-submodules`; unset: `clone.filterSubmodules` */
105
+ private alsoFilterSubmodules?;
106
+ private remoteSubmodules;
88
107
  /**
89
108
  * The destination directory as `git clone <url> <directory>` names it, for messages only
90
109
  * (the clone goes into the working copy the command was made for). Default: the last
@@ -115,6 +134,18 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
115
134
  * Get the branch being cloned.
116
135
  */
117
136
  getBranch(): string | undefined;
137
+ /**
138
+ * `git clone --bundle-uri=<uri>`: before fetching from the remote, the bundle (or bundle
139
+ * list) at `uri` is downloaded and applied, its refs written under `refs/bundles/`
140
+ * (bundle-uri.c's `fetch_bundle_uri`), so the fetch asks only for what the bundles lack.
141
+ * `uri` is an `http(s)://` URL, a `file://` URL or a path (relative to the worktree top).
142
+ * A failure only warns (`CloneResult.messages`). A list using the `creationToken`
143
+ * heuristic is remembered as `fetch.bundleURI` (later fetches download its new bundles),
144
+ * with `fetch.bundleCreationToken`. Without it, `transfer.bundleURI=true` asks a protocol
145
+ * v2 server for its bundle list (the `bundle-uri` command). Refused with a shallow clone,
146
+ * as git.
147
+ */
148
+ setBundleUri(uri: string): this;
118
149
  /**
119
150
  * Set shallow clone depth.
120
151
  *
@@ -174,13 +205,51 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
174
205
  */
175
206
  isNoCheckout(): boolean;
176
207
  /**
177
- * Set the remote name.
208
+ * Set the remote name (`-o`/`--origin`).
178
209
  *
179
- * Default is "origin".
210
+ * Default `clone.defaultRemoteName` (the `-c` values included), else "origin".
180
211
  *
181
212
  * @param remoteName Remote name
182
213
  */
183
214
  setRemote(remoteName: string): this;
215
+ /**
216
+ * `git clone -c <key>=<value>` (repeatable; `<key>` alone is `true`): each value is added
217
+ * to the new repository's config before anything is fetched (clone.c's `write_config`), so
218
+ * the fetch and the checkout use it: `url.<base>.insteadOf`, `protocol.*`,
219
+ * `fetch.fsckObjects`, `remote.<name>.fetch` (fetched with the clone's own refspec, which
220
+ * is added after it), `core.autocrlf`, `clone.defaultRemoteName`, `clone.rejectShallow`.
221
+ * A key git cannot parse fails the clone before any is written.
222
+ *
223
+ * @example
224
+ * ```ts
225
+ * await git.clone().setURI(url).setConfig(["core.autocrlf=true", "remote.origin.fetch=+refs/pull/*:refs/pull/*"]).call();
226
+ * ```
227
+ */
228
+ setConfig(entries: string[]): this;
229
+ /** Adds one `-c <key>=<value>` entry (see {@link setConfig}). */
230
+ addConfig(entry: string): this;
231
+ /**
232
+ * `git clone --revision=<rev>` (git 2.49+): fetch the history of one ref or commit id and
233
+ * detach HEAD at its commit (a tag peeled); no ref is written for it, no
234
+ * `remote.<name>.fetch` is configured and no tag is followed. A ref name is looked up as
235
+ * `git fetch` looks up a refspec's source; a commit id must be complete. Refused with
236
+ * `--branch` and `--mirror`, and as an unknown option under 2.43 compatibility.
237
+ */
238
+ setRevision(revision: string): this;
239
+ /**
240
+ * `git clone --[no-]reject-shallow`: refuse a shallow source (local or not) with git's
241
+ * "source repository is shallow, reject to clone."; unset, `clone.rejectShallow` decides.
242
+ */
243
+ setRejectShallow(reject: boolean): this;
244
+ /**
245
+ * `git clone --server-option=<option>` (repeatable): sent to the server with each protocol
246
+ * v2 request; they replace `remote.<name>.serverOption` (git 2.5x), which is used without
247
+ * them. A server speaking v0 fails the clone when options were given here (git's "server
248
+ * options require protocol version 2 or later"); configured ones are then dropped.
249
+ */
250
+ setServerOptions(options: string[]): this;
251
+ /** The git version reproduced (default the hook runner's, else 2.56). */
252
+ setCompatibility(compatibility: "2.43" | "2.56"): this;
184
253
  /**
185
254
  * Get the remote name.
186
255
  */
@@ -334,6 +403,30 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
334
403
  * @returns Clone result
335
404
  * @throws InvalidRemoteError if URI is not specified
336
405
  */
406
+ /**
407
+ * `--recurse-submodules[=<pathspec>]` (`--recursive`): `true` is `.` (every submodule), a
408
+ * list the pathspecs given (each written as a `submodule.active` value, sorted, duplicates
409
+ * dropped), `false` none (`--no-recurse-submodules`). After the checkout the submodules
410
+ * are cloned and checked out as `git submodule update --init --require-init --recursive`
411
+ * does (see `SubmoduleUpdateCommand`), its output in {@link CloneResult.submodules}.
412
+ * As in git, submodules are cloned with `GIT_PROTOCOL_FROM_USER=0`: a local URL needs
413
+ * `protocol.file.allow=always`. Credentials and headers reach a submodule's URL only as
414
+ * `SubmoduleUpdateCommand.setCredentials` allows (the clone's own origin).
415
+ */
416
+ setRecurseSubmodules(recurse: boolean | string[]): this;
417
+ /** `--shallow-submodules`: the submodules are cloned with a depth of 1. */
418
+ setShallowSubmodules(shallow: boolean): this;
419
+ /**
420
+ * `--[no-]also-filter-submodules`: the submodules are cloned with this clone's filter
421
+ * ({@link setFilter}); unset, `clone.filterSubmodules` decides. Given true, it needs a
422
+ * filter and {@link setRecurseSubmodules}.
423
+ */
424
+ setAlsoFilterSubmodules(filter: boolean): this;
425
+ /**
426
+ * `--remote-submodules`: each submodule is checked out at its remote-tracking branch
427
+ * (`submodule update --remote --no-fetch`).
428
+ */
429
+ setRemoteSubmodules(remote: boolean): this;
337
430
  call(): Promise<CloneResult>;
338
431
  /**
339
432
  * Called with the working copy a clone reopened with the remote's object format (see
@@ -351,6 +444,18 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
351
444
  */
352
445
  private cloneReopenedAs;
353
446
  private cloneOnce;
447
+ /**
448
+ * clone.c's `git submodule update --require-init --recursive [--depth=1] [--remote
449
+ * --no-fetch] [--filter=<spec>] [--[no-]single-branch]` in the new repository: what it
450
+ * printed and its exit status.
451
+ */
452
+ /**
453
+ * clone.c's bundle step: `--bundle-uri` (`fetch_bundle_uri`, `fetch.bundleURI` stored for a
454
+ * `creationToken` list), else, under `transfer.bundleURI`, the server's list
455
+ * (`transport_get_remote_bundle_uri`, `fetch_bundle_list`); warnings into `messages`.
456
+ */
457
+ private cloneBundles;
458
+ private updateSubmodules;
354
459
  /**
355
460
  * The alternates `git clone` writes before it fetches: each `--reference` (a required one
356
461
  * that is no usable repository fails the clone; an optional one is reported in the returned
@@ -373,7 +478,32 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
373
478
  * resolves to (`git clone . .`). The directory is named as the worktree's top is
374
479
  * ({@link setDirectory}, else its last component, `.` for the root).
375
480
  */
481
+ /** git's "destination path ... already exists and is not an empty directory." */
482
+ private destinationRefused;
376
483
  private refuseNonEmptyDestination;
484
+ /** A local source that is the destination itself is refused as a non-empty destination. */
485
+ private refuseSourceAsDestination;
486
+ /**
487
+ * clone.c's `write_config`: each `-c` entry parsed as `git_config_parse_parameter` (split at
488
+ * the first `=`, no `=` meaning `true`), its key canonical (`git_config_parse_key`), then
489
+ * added to the new repository's config file (`CONFIG_REGEX_NONE`), saved before the fetch.
490
+ * Every entry is checked before the first is written.
491
+ */
492
+ private writeCommandLineConfig;
493
+ /**
494
+ * One config write as git's config writer places it (`repo_config_set_multivar`): through
495
+ * `git config` (`ConfigCommand`) where the config is a file, so a value added to an existing
496
+ * section goes at its end; pending edits are saved first and the config is read again
497
+ * after. `add` is `CONFIG_REGEX_NONE`; `set-empty` replaces an empty value, else adds (the
498
+ * `^$` pattern of `write_refspec_config`).
499
+ */
500
+ private writeConfigValue;
501
+ /**
502
+ * `--revision`'s commit: the fetched object, tags peeled (lookup_commit_or_die, its
503
+ * "is not a commit!" warning added to `messages`); anything else dies as git
504
+ * ("object <id> is a tree, not a commit", "could not parse <name>").
505
+ */
506
+ private revisionCommit;
377
507
  /**
378
508
  * Writes the configuration `git clone` writes (clone.c): `remote.<name>.url`,
379
509
  * `remote.<name>.tagOpt` for `--no-tags` and `--mirror` (git 2.49+), the `remote.<name>.fetch` refspec of what was
@@ -401,6 +531,9 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
401
531
  * `core.checkStat=minimal`.
402
532
  */
403
533
  private checkoutHead;
534
+ /** `git sparse-checkout set` in the new repository (git_sparse_checkout_init), once. */
535
+ private initSparseCheckout;
536
+ private sparseInitialized;
404
537
  /** Whether symlinks are written as links: the worktree can, and `core.symlinks` allows. */
405
538
  private symlinksEnabled;
406
539
  }
@@ -1 +1 @@
1
- {"version":3,"file":"clone-command.d.ts","sourceRoot":"","sources":["../../src/commands/clone-command.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAoB,WAAW,EAAY,MAAM,+BAA+B,CAAC;AAU7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAkC,MAAM,oBAAoB,CAAC;AA2D/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,qBAAa,YA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,EAAE,WAAW,KAAK,IAAI,GAAG,IAAI,CAGxE;IAED,OAAO,CAAC,gBAAgB,CAAC,CAAqC;IAE9D;;;;;;;OAOG;YACW,eAAe;YA+Bf,SAAS;IAyoBvB;;;;OAIG;IACH;;;;OAIG;YACW,YAAY;YAyDZ,gBAAgB;IA0C9B;;;;;;OAMG;YACW,eAAe;IA8B7B,4FAA4F;YAC9E,mBAAmB;IAWjC;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAgCxB;;;;;;OAMG;IACH,iFAAiF;IACjF,OAAO,CAAC,kBAAkB;YAQZ,yBAAyB;IA6BvC,2FAA2F;YAC7E,yBAAyB;IAWvC;;;;;OAKG;YACW,sBAAsB;IAiBpC;;;;;;OAMG;YACW,gBAAgB;IAsC9B;;;;OAIG;YACW,cAAc;IA4B5B;;;;;;OAMG;YACW,WAAW;IA2EzB,4FAA4F;YAC9E,eAAe;IAO7B;;;;;;;;;;;;;;;OAeG;YACW,YAAY;IA0C1B,wFAAwF;YAC1E,kBAAkB;IAKhC,OAAO,CAAC,iBAAiB,CAAS;IAElC,2FAA2F;IAC3F,OAAO,CAAC,eAAe;CAGxB"}
@@ -1,6 +1,7 @@
1
1
  import { type Commit, type ObjectId, type PersonIdent } from "@statewalker/vcs-core";
2
2
  import { type Worktree } from "@statewalker/vcs-working-tree";
3
3
  import { GitCommand } from "../git-command.js";
4
+ import { type PatchCompatibility, type PatchOptions, type PatchResult, type PatchSelector } from "./add-patch/index.js";
4
5
  import { CleanupMode } from "./message-cleanup.js";
5
6
  import { type StatusTextResult, type UntrackedFilesMode } from "./status-command.js";
6
7
  /**
@@ -12,6 +13,11 @@ import { type StatusTextResult, type UntrackedFilesMode } from "./status-command
12
13
  export interface CommitResult extends Commit {
13
14
  /** The ObjectId of the created commit */
14
15
  id: ObjectId;
16
+ /**
17
+ * What rerere printed on stderr after the commit (`Recorded resolution for 'f'.`), absent
18
+ * when it said nothing
19
+ */
20
+ rerereOutput?: string[];
15
21
  }
16
22
  /**
17
23
  * Create a commit from staged changes.
@@ -60,6 +66,8 @@ export interface CommitResult extends Commit {
60
66
  * ```
61
67
  */
62
68
  export declare class CommitCommand extends GitCommand<CommitResult> {
69
+ /** git's `error:` lines that do not stop the commit ({@link getWarnings}) */
70
+ private readonly stderrLines;
63
71
  private message?;
64
72
  private author?;
65
73
  private committer?;
@@ -112,6 +120,12 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
112
120
  private squashFrom?;
113
121
  /** --fixup, parsed when the commit runs */
114
122
  private fixup?;
123
+ /** `-p` / `--patch` */
124
+ private patch;
125
+ private patchSelector?;
126
+ private patchOptions;
127
+ private patchCompatibility;
128
+ private patchResult?;
115
129
  /**
116
130
  * Set the commit message, as git's `commit -m` takes it: its last line is ended and it is
117
131
  * cleaned up (`whitespace` by default, see {@link setCleanupMode}), so `"Fix"` is stored
@@ -305,6 +319,36 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
305
319
  * @throws InvalidArgumentError "fatal: line is badly quoted: <line>"
306
320
  */
307
321
  setPathspecFromFile(content: string | Uint8Array, nul?: boolean): this;
322
+ /**
323
+ * `git commit -p` (`--patch`): the changes between the index and the worktree are offered
324
+ * hunk by hunk as `git add -p` offers them, and the selected hunks are committed along
325
+ * with what is staged already. As git's prepare_index for `--interactive`: the index lock
326
+ * is taken and the refreshed index written into it, the hunks are applied to that
327
+ * temporary index (`GIT_INDEX_FILE` at the lock), and the commit is made from it; the lock
328
+ * becomes the index once HEAD has moved, and on any failure (nothing selected: "no changes
329
+ * added to commit") the index stays as it was. The paths of {@link setOnly} limit the
330
+ * hunks offered. The prompts are answered by {@link setPatchSelector}; what patch mode
331
+ * printed is {@link getPatchResult}'s. Refused with {@link setAll} and
332
+ * {@link setInclude}.
333
+ *
334
+ * @example
335
+ * ```typescript
336
+ * const answers = ["y", "n"];
337
+ * const commit = git.commit().setMessage("Part").setPatch(true)
338
+ * .setPatchSelector(() => answers.shift());
339
+ * await commit.call();
340
+ * process.stdout.write(commit.getPatchResult()?.output ?? "");
341
+ * ```
342
+ */
343
+ setPatch(patch: boolean): this;
344
+ /** Answers the prompts of {@link setPatch} (git's reads from standard input and its editor). */
345
+ setPatchSelector(selector: PatchSelector): this;
346
+ /** `-U<n>` and `--inter-hunk-context=<n>` of {@link setPatch}. */
347
+ setPatchOptions(options: PatchOptions): this;
348
+ /** The git version whose patch-mode prompts {@link setPatch} reproduces (default 2.56). */
349
+ setCompatibility(version: PatchCompatibility): this;
350
+ /** What {@link setPatch}'s selection printed and applied; read after {@link call}. */
351
+ getPatchResult(): PatchResult | undefined;
308
352
  /**
309
353
  * Set whether to auto-stage modified tracked files before committing.
310
354
  *
@@ -508,6 +552,12 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
508
552
  * @throws EmptyCommitError if nothing to commit and allowEmpty is false
509
553
  */
510
554
  call(): Promise<CommitResult>;
555
+ /**
556
+ * `-p` (git's prepare_index for `interactive`): the option checks, then the index lock held
557
+ * and the hunks selected into the index it holds (`interactive_add` with `GIT_INDEX_FILE`
558
+ * at the lock), then the commit from it.
559
+ */
560
+ private commitPatch;
511
561
  /**
512
562
  * `-i <paths>` (git's prepare_index for `also`): the option checks of
513
563
  * parse_and_validate_options and prepare_index, then the index lock held from before the
@@ -519,13 +569,16 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
519
569
  * and `-C`'s commit (read_commit_message), in git's order.
520
570
  */
521
571
  private parseAuthorOptions;
522
- /** A blob's bytes, undefined when it cannot be read. */
523
- private readBlobBytes;
524
572
  /**
525
573
  * `--date` (parse_force_date): the date as `parse_date` reads it, else as `approxidate`
526
574
  * does, refused as git refuses it.
527
575
  */
528
576
  private forcedDate;
577
+ /**
578
+ * git's `error:` lines that did not stop the command (the mailmap's, read for an
579
+ * `--author` that is no `Name <email>`), in order; also after a failure.
580
+ */
581
+ getWarnings(): string[];
529
582
  /**
530
583
  * builtin/commit.c's find_author_by_nickname: the first commit of `rev-list --all -i
531
584
  * --author=<name>` (newest first, the mailmap applied before matching) gives `%aN <%aE>`.
@@ -614,9 +667,12 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
614
667
  /**
615
668
  * After the commit: the merge state removed (MERGE_HEAD, MERGE_MSG, MERGE_MODE,
616
669
  * SQUASH_MSG, AUTO_MERGE), a stopped cherry-pick or revert ended (its sequencer state
617
- * too once it was the last pick), and MERGE_AUTOSTASH applied back, as `git commit`.
670
+ * too once it was the last pick), as `git commit`; MERGE_AUTOSTASH is applied later
671
+ * (`applyMergeAutostash`).
618
672
  */
619
673
  private cleanupAfterCommit;
674
+ /** MERGE_AUTOSTASH applied back and removed (git's `apply_autostash_ref`). */
675
+ private applyMergeAutostash;
620
676
  /**
621
677
  * The index held for a commit that changes it (git's `repo_hold_locked_index`): the
622
678
  * index lock taken now (a staging with an index file), released on failure with the
@@ -1 +1 @@
1
- {"version":3,"file":"commit-command.d.ts","sourceRoot":"","sources":["../../src/commands/commit-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAEX,KAAK,QAAQ,EACb,KAAK,WAAW,EAEjB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAKL,KAAK,QAAQ,EAEd,MAAM,+BAA+B,CAAC;AAcvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AA+B/C,OAAO,EACL,WAAW,EAOZ,MAAM,sBAAsB,CAAC;AAgB9B,OAAO,EAIL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAC;AAc7B;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,yCAAyC;IACzC,EAAE,EAAE,QAAQ,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,YAAY,CAAC;IACzD,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,MAAM,CAAC,CAAc;IAC7B,OAAO,CAAC,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