@statewalker/vcs-commands 0.9.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 (460) hide show
  1. package/README.md +1 -1
  2. package/dist/commands/add-command.d.ts.map +1 -1
  3. package/dist/commands/add-patch/patch-backend.d.ts +2 -0
  4. package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
  5. package/dist/commands/add-patch/patch-modes.d.ts +6 -2
  6. package/dist/commands/add-patch/patch-modes.d.ts.map +1 -1
  7. package/dist/commands/add-patch/patch-session.d.ts +4 -0
  8. package/dist/commands/add-patch/patch-session.d.ts.map +1 -1
  9. package/dist/commands/am/am-command.d.ts +41 -2
  10. package/dist/commands/am/am-command.d.ts.map +1 -1
  11. package/dist/commands/apply/index.d.ts +1 -1
  12. package/dist/commands/apply/index.d.ts.map +1 -1
  13. package/dist/commands/archive/archive-command.d.ts +169 -0
  14. package/dist/commands/archive/archive-command.d.ts.map +1 -0
  15. package/dist/commands/archive/archive-entry.d.ts +60 -0
  16. package/dist/commands/archive/archive-entry.d.ts.map +1 -0
  17. package/dist/commands/archive/index.d.ts +8 -0
  18. package/dist/commands/archive/index.d.ts.map +1 -0
  19. package/dist/commands/archive/remote-archive-command.d.ts +56 -0
  20. package/dist/commands/archive/remote-archive-command.d.ts.map +1 -0
  21. package/dist/commands/archive/tar-archive.d.ts +31 -0
  22. package/dist/commands/archive/tar-archive.d.ts.map +1 -0
  23. package/dist/commands/archive/tar-commit-id.d.ts +13 -0
  24. package/dist/commands/archive/tar-commit-id.d.ts.map +1 -0
  25. package/dist/commands/archive/upload-archive-writer.d.ts +48 -0
  26. package/dist/commands/archive/upload-archive-writer.d.ts.map +1 -0
  27. package/dist/commands/archive/zip-archive.d.ts +42 -0
  28. package/dist/commands/archive/zip-archive.d.ts.map +1 -0
  29. package/dist/commands/attributes-source.d.ts +10 -0
  30. package/dist/commands/attributes-source.d.ts.map +1 -1
  31. package/dist/commands/blame-command.d.ts +43 -1
  32. package/dist/commands/blame-command.d.ts.map +1 -1
  33. package/dist/commands/bundle/bundle-create-command.d.ts +67 -0
  34. package/dist/commands/bundle/bundle-create-command.d.ts.map +1 -0
  35. package/dist/commands/bundle/bundle-format.d.ts +89 -0
  36. package/dist/commands/bundle/bundle-format.d.ts.map +1 -0
  37. package/dist/commands/bundle/bundle-list.d.ts +92 -0
  38. package/dist/commands/bundle/bundle-list.d.ts.map +1 -0
  39. package/dist/commands/bundle/bundle-read-commands.d.ts +81 -0
  40. package/dist/commands/bundle/bundle-read-commands.d.ts.map +1 -0
  41. package/dist/commands/bundle/bundle-support.d.ts +32 -0
  42. package/dist/commands/bundle/bundle-support.d.ts.map +1 -0
  43. package/dist/commands/bundle/bundle-transport.d.ts +38 -0
  44. package/dist/commands/bundle/bundle-transport.d.ts.map +1 -0
  45. package/dist/commands/bundle/bundle-uri-host.d.ts +43 -0
  46. package/dist/commands/bundle/bundle-uri-host.d.ts.map +1 -0
  47. package/dist/commands/bundle/bundle-uri.d.ts +55 -0
  48. package/dist/commands/bundle/bundle-uri.d.ts.map +1 -0
  49. package/dist/commands/bundle/bundle-verify.d.ts +63 -0
  50. package/dist/commands/bundle/bundle-verify.d.ts.map +1 -0
  51. package/dist/commands/bundle/index.d.ts +14 -0
  52. package/dist/commands/bundle/index.d.ts.map +1 -0
  53. package/dist/commands/cat-file/batch-format.d.ts +58 -0
  54. package/dist/commands/cat-file/batch-format.d.ts.map +1 -0
  55. package/dist/commands/cat-file/cat-file-command.d.ts +135 -0
  56. package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -0
  57. package/dist/commands/cat-file/index.d.ts +3 -0
  58. package/dist/commands/cat-file/index.d.ts.map +1 -0
  59. package/dist/commands/check-attr-command.d.ts +66 -0
  60. package/dist/commands/check-attr-command.d.ts.map +1 -0
  61. package/dist/commands/check-ignore-command.d.ts +58 -0
  62. package/dist/commands/check-ignore-command.d.ts.map +1 -0
  63. package/dist/commands/check-ref-format-command.d.ts +60 -0
  64. package/dist/commands/check-ref-format-command.d.ts.map +1 -0
  65. package/dist/commands/checkout-command.d.ts.map +1 -1
  66. package/dist/commands/checkout-index-command.d.ts +96 -0
  67. package/dist/commands/checkout-index-command.d.ts.map +1 -0
  68. package/dist/commands/cherry-pick-command.d.ts +10 -0
  69. package/dist/commands/cherry-pick-command.d.ts.map +1 -1
  70. package/dist/commands/clone-command.d.ts +19 -0
  71. package/dist/commands/clone-command.d.ts.map +1 -1
  72. package/dist/commands/commit-command.d.ts +9 -1
  73. package/dist/commands/commit-command.d.ts.map +1 -1
  74. package/dist/commands/config-command.d.ts +2 -0
  75. package/dist/commands/config-command.d.ts.map +1 -1
  76. package/dist/commands/daemon-access-hook.d.ts +36 -0
  77. package/dist/commands/daemon-access-hook.d.ts.map +1 -0
  78. package/dist/commands/default-branch.d.ts +42 -0
  79. package/dist/commands/default-branch.d.ts.map +1 -1
  80. package/dist/commands/diff-command.d.ts +132 -5
  81. package/dist/commands/diff-command.d.ts.map +1 -1
  82. package/dist/commands/diff-external.d.ts +43 -0
  83. package/dist/commands/diff-external.d.ts.map +1 -0
  84. package/dist/commands/diff-plumbing/diff-pairs-command.d.ts +27 -0
  85. package/dist/commands/diff-plumbing/diff-pairs-command.d.ts.map +1 -0
  86. package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts +129 -0
  87. package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts.map +1 -0
  88. package/dist/commands/diff-plumbing/index.d.ts +3 -0
  89. package/dist/commands/diff-plumbing/index.d.ts.map +1 -0
  90. package/dist/commands/diff-textconv.d.ts +5 -1
  91. package/dist/commands/diff-textconv.d.ts.map +1 -1
  92. package/dist/commands/fast-export/fast-export-command.d.ts +135 -0
  93. package/dist/commands/fast-export/fast-export-command.d.ts.map +1 -0
  94. package/dist/commands/fast-export/fast-import-command.d.ts +182 -0
  95. package/dist/commands/fast-export/fast-import-command.d.ts.map +1 -0
  96. package/dist/commands/fast-export/fast-stream-support.d.ts +64 -0
  97. package/dist/commands/fast-export/fast-stream-support.d.ts.map +1 -0
  98. package/dist/commands/fast-export/index.d.ts +4 -0
  99. package/dist/commands/fast-export/index.d.ts.map +1 -0
  100. package/dist/commands/fetch-command.d.ts +65 -0
  101. package/dist/commands/fetch-command.d.ts.map +1 -1
  102. package/dist/commands/fetch-multiple-command.d.ts.map +1 -1
  103. package/dist/commands/format-rev-command.d.ts +58 -0
  104. package/dist/commands/format-rev-command.d.ts.map +1 -0
  105. package/dist/commands/fsck/fsck-command.d.ts.map +1 -1
  106. package/dist/commands/fsck/fsck-msg-ids.d.ts +18 -3
  107. package/dist/commands/fsck/fsck-msg-ids.d.ts.map +1 -1
  108. package/dist/commands/fsmonitor-refresh.d.ts +69 -0
  109. package/dist/commands/fsmonitor-refresh.d.ts.map +1 -0
  110. package/dist/commands/gc-command.d.ts +5 -0
  111. package/dist/commands/gc-command.d.ts.map +1 -1
  112. package/dist/commands/git-hooks.d.ts +32 -0
  113. package/dist/commands/git-hooks.d.ts.map +1 -1
  114. package/dist/commands/git-paths.d.ts +26 -0
  115. package/dist/commands/git-paths.d.ts.map +1 -0
  116. package/dist/commands/grep/grep-command.d.ts +2 -1
  117. package/dist/commands/grep/grep-command.d.ts.map +1 -1
  118. package/dist/commands/history-command.d.ts +156 -0
  119. package/dist/commands/history-command.d.ts.map +1 -0
  120. package/dist/commands/http-config.d.ts +38 -0
  121. package/dist/commands/http-config.d.ts.map +1 -0
  122. package/dist/commands/index-adder.d.ts +12 -1
  123. package/dist/commands/index-adder.d.ts.map +1 -1
  124. package/dist/commands/index-host.d.ts.map +1 -1
  125. package/dist/commands/index.d.ts +44 -1
  126. package/dist/commands/index.d.ts.map +1 -1
  127. package/dist/commands/index.js +6 -5
  128. package/dist/commands/init-command.d.ts.map +1 -1
  129. package/dist/commands/last-modified-command.d.ts +102 -0
  130. package/dist/commands/last-modified-command.d.ts.map +1 -0
  131. package/dist/commands/lfs/go-url.d.ts +43 -0
  132. package/dist/commands/lfs/go-url.d.ts.map +1 -0
  133. package/dist/commands/lfs/index.d.ts +3 -0
  134. package/dist/commands/lfs/index.d.ts.map +1 -0
  135. package/dist/commands/lfs/lfs-config.d.ts +174 -0
  136. package/dist/commands/lfs/lfs-config.d.ts.map +1 -0
  137. package/dist/commands/lfs/lfs-endpoint-command.d.ts +83 -0
  138. package/dist/commands/lfs/lfs-endpoint-command.d.ts.map +1 -0
  139. package/dist/commands/local-transport.d.ts.map +1 -1
  140. package/dist/commands/log-command.d.ts +26 -0
  141. package/dist/commands/log-command.d.ts.map +1 -1
  142. package/dist/commands/log-output.d.ts +22 -1
  143. package/dist/commands/log-output.d.ts.map +1 -1
  144. package/dist/commands/ls-files-command.d.ts +153 -0
  145. package/dist/commands/ls-files-command.d.ts.map +1 -0
  146. package/dist/commands/ls-remote-command.d.ts +5 -0
  147. package/dist/commands/ls-remote-command.d.ts.map +1 -1
  148. package/dist/commands/ls-tree-command.d.ts +105 -0
  149. package/dist/commands/ls-tree-command.d.ts.map +1 -0
  150. package/dist/commands/maintenance-run-command.d.ts +122 -0
  151. package/dist/commands/maintenance-run-command.d.ts.map +1 -0
  152. package/dist/commands/merge-command.d.ts +7 -0
  153. package/dist/commands/merge-command.d.ts.map +1 -1
  154. package/dist/commands/merge-config.d.ts +7 -0
  155. package/dist/commands/merge-config.d.ts.map +1 -1
  156. package/dist/commands/merge-drivers.d.ts +67 -5
  157. package/dist/commands/merge-drivers.d.ts.map +1 -1
  158. package/dist/commands/merge-support.d.ts +6 -0
  159. package/dist/commands/merge-support.d.ts.map +1 -1
  160. package/dist/commands/merge-tree-command.d.ts +122 -0
  161. package/dist/commands/merge-tree-command.d.ts.map +1 -0
  162. package/dist/commands/mktag-command.d.ts +51 -0
  163. package/dist/commands/mktag-command.d.ts.map +1 -0
  164. package/dist/commands/object-store/count-objects-command.d.ts +58 -0
  165. package/dist/commands/object-store/count-objects-command.d.ts.map +1 -0
  166. package/dist/commands/object-store/index.d.ts +5 -0
  167. package/dist/commands/object-store/index.d.ts.map +1 -0
  168. package/dist/commands/object-store/objects-directory.d.ts +12 -0
  169. package/dist/commands/object-store/objects-directory.d.ts.map +1 -0
  170. package/dist/commands/object-store/prune-command.d.ts +38 -0
  171. package/dist/commands/object-store/prune-command.d.ts.map +1 -0
  172. package/dist/commands/object-store/show-index-command.d.ts +23 -0
  173. package/dist/commands/object-store/show-index-command.d.ts.map +1 -0
  174. package/dist/commands/ort-merge.d.ts +24 -0
  175. package/dist/commands/ort-merge.d.ts.map +1 -1
  176. package/dist/commands/patch-id-command.d.ts +30 -0
  177. package/dist/commands/patch-id-command.d.ts.map +1 -0
  178. package/dist/commands/patch-id.d.ts +24 -0
  179. package/dist/commands/patch-id.d.ts.map +1 -1
  180. package/dist/commands/plumbing-command.d.ts +66 -0
  181. package/dist/commands/plumbing-command.d.ts.map +1 -0
  182. package/dist/commands/plumbing-input.d.ts +38 -0
  183. package/dist/commands/plumbing-input.d.ts.map +1 -0
  184. package/dist/commands/promisor-remote-reply.d.ts +35 -0
  185. package/dist/commands/promisor-remote-reply.d.ts.map +1 -0
  186. package/dist/commands/promisor-remote.d.ts.map +1 -1
  187. package/dist/commands/pull-command.d.ts.map +1 -1
  188. package/dist/commands/push-command.d.ts +17 -2
  189. package/dist/commands/push-command.d.ts.map +1 -1
  190. package/dist/commands/rebase-command.d.ts +108 -2
  191. package/dist/commands/rebase-command.d.ts.map +1 -1
  192. package/dist/commands/refs-command.d.ts +81 -0
  193. package/dist/commands/refs-command.d.ts.map +1 -0
  194. package/dist/commands/remote-object-info-command.d.ts +55 -0
  195. package/dist/commands/remote-object-info-command.d.ts.map +1 -0
  196. package/dist/commands/remote-transport.d.ts +40 -3
  197. package/dist/commands/remote-transport.d.ts.map +1 -1
  198. package/dist/commands/repack-command.d.ts +115 -0
  199. package/dist/commands/repack-command.d.ts.map +1 -0
  200. package/dist/commands/replace-command.d.ts +143 -0
  201. package/dist/commands/replace-command.d.ts.map +1 -0
  202. package/dist/commands/replay-command.d.ts +117 -0
  203. package/dist/commands/replay-command.d.ts.map +1 -0
  204. package/dist/commands/repo-command.d.ts +136 -0
  205. package/dist/commands/repo-command.d.ts.map +1 -0
  206. package/dist/commands/request-pull-command.d.ts +82 -0
  207. package/dist/commands/request-pull-command.d.ts.map +1 -0
  208. package/dist/commands/rerere-command.d.ts +36 -0
  209. package/dist/commands/rerere-command.d.ts.map +1 -0
  210. package/dist/commands/rerere.d.ts +102 -0
  211. package/dist/commands/rerere.d.ts.map +1 -0
  212. package/dist/commands/rev-filter/commit-grep.d.ts +3 -1
  213. package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -1
  214. package/dist/commands/rev-list-command.d.ts +3 -0
  215. package/dist/commands/rev-list-command.d.ts.map +1 -1
  216. package/dist/commands/rev-parse-command.d.ts +9 -0
  217. package/dist/commands/rev-parse-command.d.ts.map +1 -1
  218. package/dist/commands/revert-command.d.ts +10 -0
  219. package/dist/commands/revert-command.d.ts.map +1 -1
  220. package/dist/commands/revision-range.d.ts +5 -0
  221. package/dist/commands/revision-range.d.ts.map +1 -1
  222. package/dist/commands/revision-resolver.d.ts +12 -0
  223. package/dist/commands/revision-resolver.d.ts.map +1 -1
  224. package/dist/commands/sequencer-pick.d.ts +18 -0
  225. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  226. package/dist/commands/serve-repository.d.ts +23 -1
  227. package/dist/commands/serve-repository.d.ts.map +1 -1
  228. package/dist/commands/session-id.d.ts +18 -0
  229. package/dist/commands/session-id.d.ts.map +1 -0
  230. package/dist/commands/show-branch-command.d.ts +59 -0
  231. package/dist/commands/show-branch-command.d.ts.map +1 -0
  232. package/dist/commands/show-ref-command.d.ts +112 -0
  233. package/dist/commands/show-ref-command.d.ts.map +1 -0
  234. package/dist/commands/signature-check.d.ts +9 -2
  235. package/dist/commands/signature-check.d.ts.map +1 -1
  236. package/dist/commands/signing.d.ts +22 -1
  237. package/dist/commands/signing.d.ts.map +1 -1
  238. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  239. package/dist/commands/stash-export-command.d.ts +115 -0
  240. package/dist/commands/stash-export-command.d.ts.map +1 -0
  241. package/dist/commands/status-command.d.ts +2 -1
  242. package/dist/commands/status-command.d.ts.map +1 -1
  243. package/dist/commands/stripspace-command.d.ts +44 -0
  244. package/dist/commands/stripspace-command.d.ts.map +1 -0
  245. package/dist/commands/submodule-add-command.d.ts +10 -1
  246. package/dist/commands/submodule-add-command.d.ts.map +1 -1
  247. package/dist/commands/submodule-auth.d.ts +3 -1
  248. package/dist/commands/submodule-auth.d.ts.map +1 -1
  249. package/dist/commands/submodule-commands.d.ts +9 -1
  250. package/dist/commands/submodule-commands.d.ts.map +1 -1
  251. package/dist/commands/submodule-update-command.d.ts +13 -1
  252. package/dist/commands/submodule-update-command.d.ts.map +1 -1
  253. package/dist/commands/textconv-cache.d.ts +58 -0
  254. package/dist/commands/textconv-cache.d.ts.map +1 -0
  255. package/dist/commands/tree-restore.d.ts +5 -0
  256. package/dist/commands/tree-restore.d.ts.map +1 -1
  257. package/dist/commands/unpack-objects-command.d.ts +47 -0
  258. package/dist/commands/unpack-objects-command.d.ts.map +1 -0
  259. package/dist/commands/update-index-command.d.ts +110 -0
  260. package/dist/commands/update-index-command.d.ts.map +1 -0
  261. package/dist/commands/uri-protocols.d.ts +13 -0
  262. package/dist/commands/uri-protocols.d.ts.map +1 -0
  263. package/dist/commands/url-parse-command.d.ts +30 -0
  264. package/dist/commands/url-parse-command.d.ts.map +1 -0
  265. package/dist/commands/var-command.d.ts +42 -0
  266. package/dist/commands/var-command.d.ts.map +1 -0
  267. package/dist/{commands-CNvli5bl.js → commands-Mlo1dxQN.js} +52078 -44471
  268. package/dist/errors/command-errors.d.ts +33 -0
  269. package/dist/errors/command-errors.d.ts.map +1 -1
  270. package/dist/errors/index.js +39 -1
  271. package/dist/{fsck-CPeDh9fh.js → fsck-CrhVMNIH.js} +184 -143
  272. package/dist/git-command.d.ts +58 -2
  273. package/dist/git-command.d.ts.map +1 -1
  274. package/dist/git.d.ts +532 -1
  275. package/dist/git.d.ts.map +1 -1
  276. package/dist/guarded-transport-command.d.ts +3 -1
  277. package/dist/guarded-transport-command.d.ts.map +1 -1
  278. package/dist/index.js +7 -6
  279. package/dist/maintenance-run-command-Bw21HEkH.js +13539 -0
  280. package/dist/{remote-transport-CCmBadm-.js → remote-transport-Bu4PGSMD.js} +1009 -10
  281. package/dist/results/cherry-pick-result.d.ts +6 -0
  282. package/dist/results/cherry-pick-result.d.ts.map +1 -1
  283. package/dist/results/diff-entry.d.ts +10 -0
  284. package/dist/results/diff-entry.d.ts.map +1 -1
  285. package/dist/results/diff-formatter.d.ts.map +1 -1
  286. package/dist/results/diff-output.d.ts +49 -3
  287. package/dist/results/diff-output.d.ts.map +1 -1
  288. package/dist/results/fetch-result.d.ts +12 -0
  289. package/dist/results/fetch-result.d.ts.map +1 -1
  290. package/dist/results/index.js +2 -2
  291. package/dist/results/merge-result.d.ts +5 -0
  292. package/dist/results/merge-result.d.ts.map +1 -1
  293. package/dist/results/push-result.d.ts +5 -0
  294. package/dist/results/push-result.d.ts.map +1 -1
  295. package/dist/results/rebase-result.d.ts +7 -0
  296. package/dist/results/rebase-result.d.ts.map +1 -1
  297. package/dist/results/revert-result.d.ts +6 -0
  298. package/dist/results/revert-result.d.ts.map +1 -1
  299. package/dist/results/stash-result.d.ts +5 -0
  300. package/dist/results/stash-result.d.ts.map +1 -1
  301. package/dist/{results-BDuEgdLU.js → results-ERo9vELd.js} +28511 -25685
  302. package/dist/transport-command.d.ts +79 -1
  303. package/dist/transport-command.d.ts.map +1 -1
  304. package/package.json +12 -12
  305. package/src/commands/add-command.ts +3 -0
  306. package/src/commands/add-patch/patch-backend.ts +4 -1
  307. package/src/commands/add-patch/patch-modes.ts +26 -2
  308. package/src/commands/add-patch/patch-session.ts +6 -0
  309. package/src/commands/am/am-command.ts +163 -8
  310. package/src/commands/apply/index.ts +1 -0
  311. package/src/commands/archive/archive-command.ts +1148 -0
  312. package/src/commands/archive/archive-entry.ts +93 -0
  313. package/src/commands/archive/index.ts +7 -0
  314. package/src/commands/archive/remote-archive-command.ts +140 -0
  315. package/src/commands/archive/tar-archive.ts +207 -0
  316. package/src/commands/archive/tar-commit-id.ts +72 -0
  317. package/src/commands/archive/upload-archive-writer.ts +213 -0
  318. package/src/commands/archive/zip-archive.ts +317 -0
  319. package/src/commands/attributes-source.ts +26 -12
  320. package/src/commands/blame-command.ts +118 -19
  321. package/src/commands/bundle/bundle-create-command.ts +405 -0
  322. package/src/commands/bundle/bundle-format.ts +228 -0
  323. package/src/commands/bundle/bundle-list.ts +276 -0
  324. package/src/commands/bundle/bundle-read-commands.ts +157 -0
  325. package/src/commands/bundle/bundle-support.ts +85 -0
  326. package/src/commands/bundle/bundle-transport.ts +107 -0
  327. package/src/commands/bundle/bundle-uri-host.ts +204 -0
  328. package/src/commands/bundle/bundle-uri.ts +236 -0
  329. package/src/commands/bundle/bundle-verify.ts +152 -0
  330. package/src/commands/bundle/index.ts +14 -0
  331. package/src/commands/cat-file/batch-format.ts +193 -0
  332. package/src/commands/cat-file/cat-file-command.ts +857 -0
  333. package/src/commands/cat-file/index.ts +2 -0
  334. package/src/commands/check-attr-command.ts +333 -0
  335. package/src/commands/check-ignore-command.ts +261 -0
  336. package/src/commands/check-ref-format-command.ts +129 -0
  337. package/src/commands/checkout-command.ts +39 -21
  338. package/src/commands/checkout-index-command.ts +568 -0
  339. package/src/commands/checkout-paths.ts +7 -0
  340. package/src/commands/cherry-pick-command.ts +21 -1
  341. package/src/commands/clone-command.ts +208 -7
  342. package/src/commands/commit-command.ts +22 -4
  343. package/src/commands/config-command.ts +9 -0
  344. package/src/commands/daemon-access-hook.ts +78 -0
  345. package/src/commands/default-branch.ts +99 -1
  346. package/src/commands/diff-command.ts +573 -46
  347. package/src/commands/diff-external.ts +131 -0
  348. package/src/commands/diff-plumbing/diff-pairs-command.ts +193 -0
  349. package/src/commands/diff-plumbing/diff-plumbing-command.ts +424 -0
  350. package/src/commands/diff-plumbing/index.ts +2 -0
  351. package/src/commands/diff-textconv.ts +5 -1
  352. package/src/commands/fast-export/fast-export-command.ts +911 -0
  353. package/src/commands/fast-export/fast-import-command.ts +1553 -0
  354. package/src/commands/fast-export/fast-stream-support.ts +162 -0
  355. package/src/commands/fast-export/index.ts +3 -0
  356. package/src/commands/fetch-command.ts +312 -8
  357. package/src/commands/fetch-multiple-command.ts +4 -1
  358. package/src/commands/format-rev-command.ts +251 -0
  359. package/src/commands/fsck/fsck-command.ts +47 -20
  360. package/src/commands/fsck/fsck-msg-ids.ts +19 -3
  361. package/src/commands/fsck/fsck-pack.ts +2 -2
  362. package/src/commands/fsmonitor-refresh.ts +315 -0
  363. package/src/commands/gc-command.ts +10 -0
  364. package/src/commands/git-hooks.ts +123 -6
  365. package/src/commands/git-paths.ts +136 -0
  366. package/src/commands/grep/grep-command.ts +38 -15
  367. package/src/commands/history-command.ts +617 -0
  368. package/src/commands/http-config.ts +139 -0
  369. package/src/commands/index-adder.ts +37 -3
  370. package/src/commands/index-host.ts +6 -1
  371. package/src/commands/index.ts +45 -0
  372. package/src/commands/init-command.ts +14 -0
  373. package/src/commands/last-modified-command.ts +804 -0
  374. package/src/commands/lfs/go-url.ts +370 -0
  375. package/src/commands/lfs/index.ts +2 -0
  376. package/src/commands/lfs/lfs-config.ts +738 -0
  377. package/src/commands/lfs/lfs-endpoint-command.ts +180 -0
  378. package/src/commands/local-transport.ts +252 -4
  379. package/src/commands/log-command.ts +104 -5
  380. package/src/commands/log-output.ts +55 -5
  381. package/src/commands/ls-files-command.ts +1177 -0
  382. package/src/commands/ls-remote-command.ts +6 -0
  383. package/src/commands/ls-tree-command.ts +684 -0
  384. package/src/commands/maintenance-run-command.ts +949 -0
  385. package/src/commands/merge-command.ts +78 -32
  386. package/src/commands/merge-config.ts +23 -1
  387. package/src/commands/merge-drivers.ts +109 -20
  388. package/src/commands/merge-support.ts +29 -5
  389. package/src/commands/merge-tree-command.ts +786 -0
  390. package/src/commands/mktag-command.ts +149 -0
  391. package/src/commands/object-store/count-objects-command.ts +404 -0
  392. package/src/commands/object-store/index.ts +4 -0
  393. package/src/commands/object-store/objects-directory.ts +24 -0
  394. package/src/commands/object-store/prune-command.ts +129 -0
  395. package/src/commands/object-store/show-index-command.ts +151 -0
  396. package/src/commands/ort-merge.ts +92 -25
  397. package/src/commands/patch-id-command.ts +65 -0
  398. package/src/commands/patch-id.ts +218 -0
  399. package/src/commands/plumbing-command.ts +141 -0
  400. package/src/commands/plumbing-input.ts +87 -0
  401. package/src/commands/promisor-remote-reply.ts +276 -0
  402. package/src/commands/promisor-remote.ts +25 -2
  403. package/src/commands/pull-command.ts +2 -0
  404. package/src/commands/push-command.ts +87 -5
  405. package/src/commands/rebase-command.ts +507 -19
  406. package/src/commands/refs-command.ts +274 -0
  407. package/src/commands/remote-object-info-command.ts +109 -0
  408. package/src/commands/remote-transport.ts +116 -1
  409. package/src/commands/repack-command.ts +383 -0
  410. package/src/commands/replace-command.ts +816 -0
  411. package/src/commands/replay-command.ts +674 -0
  412. package/src/commands/repo-command.ts +967 -0
  413. package/src/commands/request-pull-command.ts +356 -0
  414. package/src/commands/rerere-command.ts +179 -0
  415. package/src/commands/rerere.ts +925 -0
  416. package/src/commands/rev-filter/commit-grep.ts +7 -2
  417. package/src/commands/rev-list-command.ts +9 -0
  418. package/src/commands/rev-parse-command.ts +62 -4
  419. package/src/commands/revert-command.ts +21 -1
  420. package/src/commands/revision-range.ts +7 -2
  421. package/src/commands/revision-resolver.ts +44 -3
  422. package/src/commands/sequencer-pick.ts +47 -0
  423. package/src/commands/serve-repository.ts +65 -0
  424. package/src/commands/session-id.ts +31 -0
  425. package/src/commands/show-branch-command.ts +981 -0
  426. package/src/commands/show-command.ts +1 -1
  427. package/src/commands/show-ref-command.ts +439 -0
  428. package/src/commands/signature-check.ts +37 -5
  429. package/src/commands/signing.ts +122 -16
  430. package/src/commands/stash-apply-command.ts +3 -0
  431. package/src/commands/stash-export-command.ts +397 -0
  432. package/src/commands/status-command.ts +43 -6
  433. package/src/commands/stripspace-command.ts +118 -0
  434. package/src/commands/submodule-add-command.ts +22 -1
  435. package/src/commands/submodule-auth.ts +61 -6
  436. package/src/commands/submodule-commands.ts +12 -2
  437. package/src/commands/submodule-update-command.ts +29 -0
  438. package/src/commands/textconv-cache.ts +143 -0
  439. package/src/commands/tree-restore.ts +14 -0
  440. package/src/commands/unpack-objects-command.ts +235 -0
  441. package/src/commands/update-index-command.ts +1016 -0
  442. package/src/commands/uri-protocols.ts +13 -0
  443. package/src/commands/url-parse-command.ts +67 -0
  444. package/src/commands/var-command.ts +219 -0
  445. package/src/errors/command-errors.ts +45 -0
  446. package/src/git-command.ts +131 -1
  447. package/src/git.ts +808 -1
  448. package/src/guarded-transport-command.ts +6 -1
  449. package/src/results/cherry-pick-result.ts +6 -0
  450. package/src/results/diff-entry.ts +12 -0
  451. package/src/results/diff-formatter.ts +7 -4
  452. package/src/results/diff-output.ts +117 -11
  453. package/src/results/diff-pickaxe.ts +1 -1
  454. package/src/results/fetch-result.ts +12 -0
  455. package/src/results/merge-result.ts +5 -0
  456. package/src/results/push-result.ts +5 -0
  457. package/src/results/rebase-result.ts +7 -0
  458. package/src/results/revert-result.ts +6 -0
  459. package/src/results/stash-result.ts +6 -0
  460. package/src/transport-command.ts +182 -1
@@ -0,0 +1,81 @@
1
+ /**
2
+ * `git refs` (builtin/refs.c, git 2.46+): `migrate`, `verify` and `exists` here; `list` is
3
+ * `git for-each-ref` (`Git.refsList`, a `ForEachRefCommand`) and `optimize` is `git pack-refs`
4
+ * (`Git.refsOptimize`, a `PackRefsCommand`), as git's subcommands call the same code.
5
+ */
6
+ import { PlumbingCommand } from "./plumbing-command.js";
7
+ /**
8
+ * `git refs migrate --ref-format=<format> [--dry-run] [--no-reflog]`: the refs and reflogs
9
+ * copied into the other ref storage (vcs-store-files `migrateRefStorage`: the new storage is
10
+ * written beside the old one in `<git dir>/ref_migration.XXXXXX`, then swapped in; a dry run
11
+ * leaves it there and says where). git's messages and exit statuses: `usage: missing
12
+ * --ref-format=<format>` (129), `error: unknown ref storage format '<f>'`, `error: repository
13
+ * already uses '<f>' format`, `error: migrating repositories with worktrees is not supported
14
+ * yet` (255).
15
+ *
16
+ * Once the repository's storage was switched, the ref store of the working copy this command
17
+ * ran on (the old format's) is retired (`retireRefStore`): every later use of it, and every
18
+ * command of a `Git` over it, throws, so open the repository again after a migration.
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * const { exitCode, stderr } = await git.refsMigrate().setRefFormat("reftable").call();
23
+ * ```
24
+ */
25
+ export declare class RefsMigrateCommand extends PlumbingCommand {
26
+ private format?;
27
+ private dryRun;
28
+ private noReflog;
29
+ private suffix?;
30
+ /** `--ref-format=<format>`: `files` or `reftable` */
31
+ setRefFormat(format: string): this;
32
+ /** `--dry-run`: write the migrated refs into the migration directory only */
33
+ setDryRun(dryRun: boolean): this;
34
+ /** `--no-reflog`: drop the reflogs */
35
+ setNoReflog(noReflog: boolean): this;
36
+ /** The migration directory's suffix (mkdtemp's `XXXXXX`; random by default) */
37
+ setDirectorySuffix(suffix: () => string): this;
38
+ protected run(): Promise<number>;
39
+ }
40
+ /**
41
+ * `git refs verify [--strict] [--verbose]` (git 2.47+): the ref database's consistency, for
42
+ * the main worktree and each linked one (vcs-store-files `verifyRefStorage`: loose refs by
43
+ * name and content, root refs, packed-refs, or each reftable's name and refs). Findings go
44
+ * to stderr as `error: <path>: <msg-id>: <message>` or `warning: ...` by their severity
45
+ * (`fsck.<msg-id>`, `--strict`); the exit status is 255 when an error was reported.
46
+ *
47
+ * @example
48
+ * ```typescript
49
+ * const { exitCode, stderr } = await git.refsVerify().setStrict(true).call();
50
+ * ```
51
+ */
52
+ export declare class RefsVerifyCommand extends PlumbingCommand {
53
+ private strict;
54
+ private verbose;
55
+ /** `--strict`: warnings count as errors */
56
+ setStrict(strict: boolean): this;
57
+ /** `--verbose`: git's `Checking ...` lines */
58
+ setVerbose(verbose: boolean): this;
59
+ protected run(): Promise<number>;
60
+ /** The `fsck.*` settings in config order (git_fsck_config), keys as git spells them. */
61
+ private fsckConfig;
62
+ }
63
+ /**
64
+ * `git refs exists <ref>` (git 2.52+): whether the ref exists, a symbolic one not followed
65
+ * (`show-ref --exists`): exit 0, 2 with `error: reference does not exist`, 1 when it cannot be
66
+ * read (`error: failed to look up reference: ...`).
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * const { exitCode } = await git.refsExists().setRef("refs/heads/main").call();
71
+ * ```
72
+ */
73
+ export declare class RefsExistsCommand extends PlumbingCommand {
74
+ private refs;
75
+ /** The ref to look up (git takes exactly one) */
76
+ setRef(ref: string): this;
77
+ /** Adds an argument (more than one is git's death) */
78
+ addArgument(arg: string): this;
79
+ protected run(): Promise<number>;
80
+ }
81
+ //# sourceMappingURL=refs-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refs-command.d.ts","sourceRoot":"","sources":["../../src/commands/refs-command.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAgBH,OAAO,EAAE,eAAe,EAAiB,MAAM,uBAAuB,CAAC;AAqBvE;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,kBAAmB,SAAQ,eAAe;IACrD,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,MAAM,CAAC,CAAe;IAE9B,qDAAqD;IACrD,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIjC;IAED,6EAA6E;IAC7E,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED,sCAAsC;IACtC,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAInC;IAED,+EAA+E;IAC/E,kBAAkB,CAAC,MAAM,EAAE,MAAM,MAAM,GAAG,IAAI,CAI7C;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAgDrC;CACF;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,iBAAkB,SAAQ,eAAe;IACpD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;IAExB,2CAA2C;IAC3C,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED,8CAA8C;IAC9C,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAwCrC;IAED,wFAAwF;IACxF,OAAO,CAAC,UAAU;CAInB;AAaD;;;;;;;;;GASG;AACH,qBAAa,iBAAkB,SAAQ,eAAe;IACpD,OAAO,CAAC,IAAI,CAAgB;IAE5B,iDAAiD;IACjD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAIxB;IAED,sDAAsD;IACtD,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI7B;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAWrC;CACF"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * The size and type of objects a remote holds, asked without fetching them: protocol v2's
3
+ * `object-info` (git 2.56's `transport_fetch_object_info`, which `git cat-file
4
+ * --batch-command`'s `remote-object-info` runs).
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * const info = await git.remoteObjectInfo()
9
+ * .setRemote("origin")
10
+ * .addObjectId(blobId)
11
+ * .call();
12
+ * info.objects[0]; // { id: blobId, missing: false, size: 11, type: "blob" }
13
+ * ```
14
+ */
15
+ import { type ObjectInfoAnswer, type ObjectInfoEntry } from "@statewalker/vcs-transport";
16
+ import { TransportCommand } from "../transport-command.js";
17
+ /** What {@link RemoteObjectInfoCommand} answers. */
18
+ export interface RemoteObjectInfoResult extends ObjectInfoAnswer {
19
+ /** The URL asked (the remote's, or the one given, `insteadOf` applied) */
20
+ uri: string;
21
+ }
22
+ export type { ObjectInfoEntry as RemoteObjectInfoEntry };
23
+ /**
24
+ * A remote that has no upload-pack to ask (a bundle): git's `transport_get` gives it no
25
+ * `smart_options`, and cat-file dies `failed to get object info from the remote: <remote>`.
26
+ */
27
+ export declare class RemoteObjectInfoUnsupportedError extends Error {
28
+ readonly remote: string;
29
+ constructor(remote: string);
30
+ }
31
+ /**
32
+ * `object-info` against a remote (a configured name or a URL, as git's `remote_get`):
33
+ * sizes and types are asked only when wanted and advertised by the server, the ids always,
34
+ * so an object the server lacks is reported `missing` either way.
35
+ *
36
+ * @throws ObjectInfoError (vcs-transport) where git dies: `object-info requires protocol v2`,
37
+ * `object-info capability is not enabled on the server`, a malformed answer
38
+ * @throws RemoteObjectInfoUnsupportedError for a bundle remote
39
+ */
40
+ export declare class RemoteObjectInfoCommand extends TransportCommand<RemoteObjectInfoResult> {
41
+ private remote?;
42
+ private readonly ids;
43
+ private wantSize;
44
+ private wantType;
45
+ /** The remote: a configured remote's name, or a URL or path. */
46
+ setRemote(remote: string): this;
47
+ /** Adds an object to ask about (a full hex id of the repository's format). */
48
+ addObjectId(id: string): this;
49
+ /** Whether sizes are wanted (default true; cat-file: its format has `%(objectsize)`). */
50
+ setSize(size: boolean): this;
51
+ /** Whether types are wanted (default true; cat-file: its format has `%(objecttype)`). */
52
+ setType(type: boolean): this;
53
+ call(): Promise<RemoteObjectInfoResult>;
54
+ }
55
+ //# sourceMappingURL=remote-object-info-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-object-info-command.d.ts","sourceRoot":"","sources":["../../src/commands/remote-object-info-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3D,oDAAoD;AACpD,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D,0EAA0E;IAC1E,GAAG,EAAE,MAAM,CAAC;CACb;AAED,YAAY,EAAE,eAAe,IAAI,qBAAqB,EAAE,CAAC;AAEzD;;;GAGG;AACH,qBAAa,gCAAiC,SAAQ,KAAK;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM;IAAnC,YAAqB,MAAM,EAAE,MAAM,EAGlC;CACF;AAED;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,SAAQ,gBAAgB,CAAC,sBAAsB,CAAC;IACnF,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,QAAQ,CAAQ;IAExB,gEAAgE;IAChE,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED,8EAA8E;IAC9E,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAI5B;IAED,yFAAyF;IACzF,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED,yFAAyF;IACzF,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAEK,IAAI,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAoB5C;CACF"}
@@ -5,9 +5,10 @@
5
5
  * process, see `local-transport.ts`); anything else goes to the connector the transport
6
6
  * registry names for it (smart HTTP by default).
7
7
  */
8
- import { type Credentials, type GitConnectRequest, type GitService, type GitSession, type GitTransportConnector, type GitTransportRegistry, type GitUrl, type ReceivePackConnection, type UploadPackConnection } from "@statewalker/vcs-transport";
8
+ import { type Credentials, type GitConnectRequest, type GitService, type GitSession, type GitTransportConnector, type GitTransportRegistry, type GitUrl, type HttpClientSettings, type HttpCredentialHelper, type ReceivePackConnection, type UploadPackConnection } from "@statewalker/vcs-transport";
9
9
  import type { GitHostEnvironment, OpenedRepository, WorkingCopy } from "@statewalker/vcs-working-tree";
10
10
  import { RemoteConfigStore } from "../remote-config/index.js";
11
+ import { type BundleRemote } from "./bundle/bundle-transport.js";
11
12
  import type { HookSession } from "./git-hooks.js";
12
13
  import { type ReceivePackHost } from "./local-transport.js";
13
14
  /** A remote URL resolved to the transport that reaches it. */
@@ -23,12 +24,22 @@ export type ResolvedRemote = {
23
24
  parsed: GitUrl;
24
25
  connector: GitTransportConnector;
25
26
  };
26
- /** A resolved remote, its local repository opened. */
27
+ /**
28
+ * A resolved remote, its local repository opened; a local path naming a bundle file is a
29
+ * bundle remote (transport.c's `bundle_vtable`, see `bundle-transport.ts`).
30
+ */
27
31
  export type PreparedRemote = (Extract<ResolvedRemote, {
28
32
  kind: "local";
29
33
  }> & {
30
34
  repository: OpenedRepository;
31
- }) | Extract<ResolvedRemote, {
35
+ }) | {
36
+ kind: "bundle";
37
+ /** The URL as given (rewritten) */
38
+ url: string;
39
+ /** The bundle file's path, as given */
40
+ path: string;
41
+ remote: BundleRemote;
42
+ } | Extract<ResolvedRemote, {
32
43
  kind: "connector";
33
44
  }>;
34
45
  /** What {@link resolveRemote} reads: the configuration, the environment and the registry. */
@@ -78,6 +89,17 @@ export declare function resolveRemote(url: string, context: RemoteResolutionCont
78
89
  export declare function prepareRemote(workingCopy: WorkingCopy, url: string, transports: GitTransportRegistry): Promise<PreparedRemote>;
79
90
  /** A resolved remote with its local repository opened ({@link prepareRemote}'s second half). */
80
91
  export declare function openResolvedRemote(workingCopy: WorkingCopy, resolved: ResolvedRemote): Promise<PreparedRemote>;
92
+ /**
93
+ * transport_get's `url_is_local_not_ssh(url) && is_file(url) && is_bundle(url, 1)`: a path
94
+ * (not a `file://` URL) to a regular file whose header reads as a bundle's, with what checks
95
+ * it against `workingCopy` (the repository fetching); undefined for anything else.
96
+ */
97
+ export declare function openBundleRemote(workingCopy: WorkingCopy, url: string, path: string): Promise<BundleRemote | undefined>;
98
+ /**
99
+ * A bundle's bytes as a remote of `workingCopy` (the repository fetching): undefined when
100
+ * they do not read as a bundle. `name` is how git reports it (its path as given).
101
+ */
102
+ export declare function bundleRemoteOf(workingCopy: WorkingCopy, bytes: Uint8Array, name: string): BundleRemote | undefined;
81
103
  /** The resolution context of a working copy: its configuration and host environment. */
82
104
  export declare function remoteContextOf(workingCopy: WorkingCopy, transports: GitTransportRegistry): RemoteResolutionContext;
83
105
  /** How a remote command talks to a remote reached through a connector. */
@@ -91,13 +113,28 @@ export interface RemoteSessionOptions {
91
113
  streamRequestBody?: boolean;
92
114
  /** `protocol.version` ({@link protocolVersionOf}) */
93
115
  protocolVersion: 0 | 1 | 2;
116
+ /** git's `http.*` settings for a remote's URL (`http.<url>.*`) */
117
+ httpSettings?: (url: string) => HttpClientSettings;
118
+ /** Asked for HTTP credentials after a 401 */
119
+ credentialHelper?: HttpCredentialHelper;
94
120
  /**
95
121
  * The program the remote runs for the service (git's `--upload-pack` / `--receive-pack`,
96
122
  * `remote.<name>.uploadpack` / `receivepack`); connectors that run one (ssh, git://) use it
97
123
  */
98
124
  program?: string;
99
125
  signal?: AbortSignal;
126
+ /** Dumb HTTP: whether an alternate of the scheme may be used ({@link httpSessionSettings}) */
127
+ alternateAllowed?: (scheme: string) => boolean;
128
+ /** HTTP: `$GIT_SMART_HTTP` (false: the dumb protocol) */
129
+ smartHttp?: boolean;
100
130
  }
131
+ /**
132
+ * The dumb-HTTP settings a session takes from the configuration and the environment
133
+ * (`http.followRedirects` and the other `http.*` keys come with `httpSettings`): which
134
+ * alternates a dumb fetch may use (http-walker's `is_transport_allowed(<scheme>, 0)`: as a
135
+ * transport not from the user) and `$GIT_SMART_HTTP`.
136
+ */
137
+ export declare function httpSessionSettings(workingCopy: WorkingCopy): Pick<RemoteSessionOptions, "alternateAllowed" | "smartHttp">;
101
138
  /**
102
139
  * Runs `run` over a session the remote's connector opens for `service` (the request's
103
140
  * protocol version as git_connect asks for it: v0 for receive-pack when v2 is configured); a
@@ -1 +1 @@
1
- {"version":3,"file":"remote-transport.d.ts","sourceRoot":"","sources":["../../src/commands/remote-transport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,K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AAc,EACtB,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,CAAC,UAAU,EAAE,oBAAoB,KAAK,OAAO,CAAC,CAAC,CAAC,GACpD,OAAO,CAAC,CAAC,CAAC,CAmBZ;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAC3C,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,CAAC,UAAU,EAAE,qBAAqB,KAAK,OAAO,CAAC,CAAC,CAAC,EACtD,KAAK,CAAC,EAAE,WAAW,EACnB,gBAAgB,CAAC,EAAE,WAAW;AAC9B,uFAAuF;AACvF,KAAK,GAAE;IAAE,IAAI,CAAC,EAAE,eAAe,CAAC;IAAC,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAAO,GACzE,OAAO,CAAC,CAAC,CAAC,CAyBZ"}
@@ -0,0 +1,115 @@
1
+ import { type RepackResult } from "@statewalker/vcs-store-files";
2
+ import { GitCommand } from "../git-command.js";
3
+ /** What `git repack` did. */
4
+ export interface RepackCommandResult {
5
+ /** The store's repack (the new pack, the packs and loose objects removed), null when nothing was written. */
6
+ repack: RepackResult | null;
7
+ /** git's stdout: `Nothing new to pack.` when no pack was written (unless `--quiet`). */
8
+ output: string[];
9
+ /** git's warnings (`disabling bitmap writing, ...`), and the alternates' read errors. */
10
+ warnings: string[];
11
+ }
12
+ /**
13
+ * `git repack` (builtin/repack.c) over a files repository: the store's `repack` with git's
14
+ * options and their defaults from the configuration (`repack.useDeltaIslands`,
15
+ * `repack.updateServerInfo`, `repack.writeBitmaps`, `repack.packKeptObjects`, `pack.*`).
16
+ *
17
+ * Without `-a`/`-A`/`--cruft`/`--geometric` it packs the reachable loose objects into a new
18
+ * pack (`-d` then removes those loose copies). The objects of a path whose `delta` attribute is
19
+ * unset (`-delta` in `.gitattributes` or `info/attributes`) are never searched for a delta.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * await git.repack().setAll(true).setDeleteRedundant(true).call(); // git repack -a -d
24
+ * await git.repack().setGeometric(2).setDeleteRedundant(true).setWriteMidx(true).call();
25
+ * ```
26
+ */
27
+ export declare class RepackCommand extends GitCommand<RepackCommandResult> {
28
+ /** git's repack reads the objects as stored, never through replace refs. */
29
+ protected readsReplacedObjects(): boolean;
30
+ private _all;
31
+ private _loosen;
32
+ private _delete;
33
+ private _cruft;
34
+ private _cruftExpiration?;
35
+ private _maxCruftSize?;
36
+ private _local;
37
+ private _keepUnreachable;
38
+ private _unpackUnreachable?;
39
+ private _reuseDeltas;
40
+ private _reuseObjects;
41
+ private _writeBitmaps?;
42
+ private _writeMidx;
43
+ private _geometric?;
44
+ private _filter?;
45
+ private _keepPacks;
46
+ private _packKeptObjects?;
47
+ private _updateServerInfo?;
48
+ private _window?;
49
+ private _depth?;
50
+ private _deltaIslands?;
51
+ private _quiet;
52
+ /** `-a`: everything reachable into one pack (with `-d`, the other packs go). */
53
+ setAll(all: boolean): this;
54
+ /**
55
+ * `-A`: as `-a`, and with `-d` the unreachable objects of the removed packs are written
56
+ * loose (all of them, or those younger than `setUnpackUnreachable`'s date).
57
+ */
58
+ setLoosenUnreachable(loosen: boolean): this;
59
+ /** `-d`: remove the packs the new one makes redundant, then the loose objects packed. */
60
+ setDeleteRedundant(deleteRedundant: boolean): this;
61
+ /** `--cruft`: unreachable objects into a cruft pack (needs `-d` here). */
62
+ setCruft(cruft: boolean): this;
63
+ /** `--cruft-expiration=<approxidate>`: cruft objects older than this are dropped. */
64
+ setCruftExpiration(expiration: string): this;
65
+ /** `--max-cruft-size=<bytes>`. */
66
+ setMaxCruftSize(bytes: number): this;
67
+ /** `-l`: leave out what alternates hold. */
68
+ setLocal(local: boolean): this;
69
+ /**
70
+ * `-k` (`--keep-unreachable`): with `-a -d`, the unreachable objects of the replaced packs
71
+ * and the loose ones go into the new pack instead of being dropped.
72
+ */
73
+ setKeepUnreachable(keep: boolean): this;
74
+ /** `--unpack-unreachable=<approxidate>`: with `-A`, only objects newer than this are loosened. */
75
+ setUnpackUnreachable(when: string): this;
76
+ /** `-f` (false): search every delta again instead of copying stored ones. */
77
+ setReuseDeltas(reuse: boolean): this;
78
+ /** `-F` (false): recompress every object (no stored entry copied). */
79
+ setReuseObjects(reuse: boolean): this;
80
+ /** `-b`/`--no-write-bitmap-index` (default `repack.writeBitmaps`, bare repositories with `-a`). */
81
+ setWriteBitmaps(write: boolean): this;
82
+ /** `-m` (`--write-midx`): a multi-pack-index over the packs that stay. */
83
+ setWriteMidx(write: boolean): this;
84
+ /** `--geometric=<factor>` (`-g`): roll small packs up into a geometric progression. */
85
+ setGeometric(factor: number): this;
86
+ /** `--filter=<spec>` (with `-a`): filtered-out objects go into a pack of their own. */
87
+ setFilter(spec: string): this;
88
+ /** `--keep-pack=<name>`: packs treated as kept (repeatable). */
89
+ addKeepPack(name: string): this;
90
+ /** `--pack-kept-objects`: with `-a`, pack the objects of `.keep` packs too. */
91
+ setPackKeptObjects(pack: boolean): this;
92
+ /** `-n` (false): do not run `update-server-info` (default `repack.updateServerInfo`, true). */
93
+ setUpdateServerInfo(update: boolean): this;
94
+ /** `--window=<n>`. */
95
+ setWindow(window: number): this;
96
+ /** `--depth=<n>`. */
97
+ setDepth(depth: number): this;
98
+ /** `-i` (`--delta-islands`, default `repack.useDeltaIslands`): `pack.island` restricts deltas. */
99
+ setDeltaIslands(islands: boolean): this;
100
+ /** `-q`: no `Nothing new to pack.` line. */
101
+ setQuiet(quiet: boolean): this;
102
+ /** The repository's files backend: its FilesApi, common git directory and history. */
103
+ private filesRepository;
104
+ /** A boolean of the configuration, `fallback` when unset. */
105
+ private configBool;
106
+ /** The `delta` attribute's check (git's `no_try_delta`), when the repository has a worktree. */
107
+ private noDeltaCheck;
108
+ /**
109
+ * Run the repack.
110
+ *
111
+ * @throws GitApiError for git's refusals (`--geometric` with `-a`, `-k` with `-A`, `--cruft`)
112
+ */
113
+ call(): Promise<RepackCommandResult>;
114
+ }
115
+ //# sourceMappingURL=repack-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repack-command.d.ts","sourceRoot":"","sources":["../../src/commands/repack-command.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C,6BAA6B;AAC7B,MAAM,WAAW,mBAAmB;IAClC,6GAA6G;IAC7G,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IAC5B,wFAAwF;IACxF,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,yFAAyF;IACzF,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,mBAAmB,CAAC;IAChE,4EAA4E;IAC5E,UAAmB,oBAAoB,IAAI,OAAO,CAEjD;IAED,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,gBAAgB,CAAC,CAAS;IAClC,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,kBAAkB,CAAC,CAAS;IACpC,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,aAAa,CAAQ;IAC7B,OAAO,CAAC,aAAa,CAAC,CAAU;IAChC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,gBAAgB,CAAC,CAAU;IACnC,OAAO,CAAC,iBAAiB,CAAC,CAAU;IACpC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC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,IAAI,EAAE,OAAO,GAAG,IAAI,CAItC;IAED,+FAA+F;IAC/F,mBAAmB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAIzC;IAED,sBAAsB;IACtB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED,qBAAqB;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAI5B;IAED,kGAAkG;IAClG,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAItC;IAED,4CAA4C;IAC5C,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED,sFAAsF;YACxE,eAAe;IAU7B,6DAA6D;IAC7D,OAAO,CAAC,UAAU;IAKlB,gGAAgG;IAChG,OAAO,CAAC,YAAY;IAgBpB;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAmHzC;CACF"}
@@ -0,0 +1,143 @@
1
+ /**
2
+ * `git replace` (builtin/replace.c): replace refs created (`<object> <replacement>`), listed
3
+ * (`-l [<pattern>]`, `--format=short|medium|long`), deleted (`-d`), made by editing an object
4
+ * (`--edit`, `--raw`), by changing a commit's parents (`--graft`) and from the grafts file
5
+ * (`--convert-graft-file`, which removes `info/grafts` once every graft converted).
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * // git replace --graft HEAD~2
10
+ * await git.replace().setMode("graft").addArgument("HEAD~2").call();
11
+ * // git replace --format=medium
12
+ * const { stdout } = await git.replace().setFormat("medium").callOutput();
13
+ * // git replace --convert-graft-file
14
+ * const { exitCode, stderr } = await git.replace().setMode("convert-graft-file").call();
15
+ * ```
16
+ */
17
+ import type { CommandCommits } from "../git-command.js";
18
+ import { PlumbingCommand } from "./plumbing-command.js";
19
+ /** git replace's command modes (OPT_CMDMODE); unset: list without arguments, else replace. */
20
+ export type ReplaceMode = "list" | "delete" | "edit" | "graft" | "convert-graft-file" | "replace";
21
+ /**
22
+ * The editor of `--edit`: the path git would edit (`REPLACE_EDITOBJ` in the git directory)
23
+ * and the object as exported (`cat-file -p`, or the raw content with `--raw`). It returns the
24
+ * edited content (bytes or text), or nothing to keep it as it was. A {@link GitApiError} it
25
+ * throws gives its message lines before git's `error: editing object file failed`.
26
+ */
27
+ export type ReplaceEditor = (path: string, content: Uint8Array) => Promise<Uint8Array | string | undefined | undefined>;
28
+ /**
29
+ * `git replace`. Results are git's stdout ({@link setStdout}, {@link callOutput}), stderr and
30
+ * exit status: 255 where git returns an `error()` (a refused replacement, a bogus format), 1
31
+ * when `-d` or `--convert-graft-file` failed for some names or lines; usage errors are thrown
32
+ * as {@link PlumbingError} with git's `fatal:` line and status 129 (the usage text is the
33
+ * CLI's), and a malformed edited object as git's death (128).
34
+ *
35
+ * Replace refs are not applied to the objects it reads (git's `disable_replace_refs`). The
36
+ * names are read under `GIT_REPLACE_REF_BASE` (default `refs/replace/`). `--edit` exports and
37
+ * imports in-process (cat-file and mktree), handing the content to {@link setEditor} rather
38
+ * than writing `REPLACE_EDITOBJ`; without an editor the object stays as it was (git's
39
+ * `GIT_EDITOR=:`), which git refuses as the same object. `--convert-graft-file` converts
40
+ * `info/grafts` (a `GIT_GRAFT_FILE` elsewhere is refused): each line becomes a replace ref
41
+ * (a graft changing nothing is a warning), and the file is removed only when every line
42
+ * converted, else git's warning lists the lines left (exit 1). To roll a conversion back,
43
+ * delete the replace refs (`-d`); the grafts can be written again from the replacements'
44
+ * parents (`git replace --format=medium`, then `<commit> <parent>...` per replacement).
45
+ */
46
+ export declare class ReplaceCommand extends PlumbingCommand {
47
+ private mode?;
48
+ private conflict?;
49
+ private readonly args;
50
+ private force;
51
+ private raw;
52
+ private format?;
53
+ private editor?;
54
+ private compatibility;
55
+ /** The grafts file as git loads it on the first commit parse (prepare_commit_graft) */
56
+ private graftsLoad?;
57
+ /** Whether the grafts file was loaded (a commit was parsed) */
58
+ private graftsLoaded;
59
+ /** Commit objects git holds in memory: the grafts' commits, parsed commits' grafted parents */
60
+ private readonly knownCommits;
61
+ private convertingGraftFile;
62
+ /** The command mode (`-l`, `-d`, `-e`, `-g`, `--convert-graft-file`); one per command. */
63
+ setMode(mode: ReplaceMode): this;
64
+ /** Arguments: objects, a commit and its new parents, or a listing pattern. */
65
+ addArgument(...args: string[]): this;
66
+ /** `-f`/`--force`: an existing replace ref is overwritten, types are not checked. */
67
+ setForce(force: boolean): this;
68
+ /** `--raw`: `--edit` hands the raw content, not `cat-file -p`'s. */
69
+ setRaw(raw: boolean): this;
70
+ /** `--format=<short|medium|long>` of the listing. */
71
+ setFormat(format: string): this;
72
+ /** The editor of `--edit` (see {@link ReplaceEditor}). */
73
+ setEditor(editor: ReplaceEditor): this;
74
+ /**
75
+ * The git version whose behaviour to follow (default 2.56): 2.5x reports a missing object
76
+ * the grafts file names as a commit (`Could not read <id>`), and words the advice on the
77
+ * grafts file as `git config set`.
78
+ */
79
+ setCompatibility(version: "2.43" | "2.56"): this;
80
+ /** git replace reads every object as stored (`disable_replace_refs`). */
81
+ protected readsReplacedObjects(): boolean;
82
+ /**
83
+ * The commits revisions are resolved through (`HEAD~1`, `HEAD^{tree}`): as stored, with
84
+ * the grafts file's parents, each load being git's commit parse, which loads the grafts
85
+ * file and gives its advice on the first one (prepare_commit_graft).
86
+ */
87
+ protected get walkCommits(): CommandCommits;
88
+ private get replaceRefBase();
89
+ protected run(): Promise<number>;
90
+ /** Prints `error: <message>` and fails the step. */
91
+ private fail;
92
+ /** repo_get_oid with replace refs off; undefined when it names nothing. */
93
+ private getOid;
94
+ /** odb_read_object_info: the object's type, undefined when it is missing. */
95
+ private typeOf;
96
+ /** The object's content as stored. */
97
+ private readObject;
98
+ /** Writes an object (odb_write_object). */
99
+ private writeObject;
100
+ /** A replace ref's current value (refs_read_ref), undefined when there is none. */
101
+ private readRef;
102
+ /** `git replace -l [<pattern>]` (list_replace_refs) */
103
+ private list;
104
+ /** `git replace -d <object>...` (for_each_replace_name + delete_replace_ref) */
105
+ private deleteNames;
106
+ /** check_ref_valid: the replace ref's name and its current value (null when none). */
107
+ private checkRefValid;
108
+ /** replace_object_oid */
109
+ private replaceObjectOid;
110
+ /** `git replace <object> <replacement>` (replace_object) */
111
+ private replaceObject;
112
+ /** `git replace --edit <object>` (edit_and_replace) */
113
+ private editAndReplace;
114
+ /** export_object: `cat-file -p` (or `cat-file <type>` with `--raw`) of the object. */
115
+ private exportObject;
116
+ /** import_object: mktree for a pretty-printed tree, else the content format-checked. */
117
+ private importObject;
118
+ /** builtin/mktree.c over the edited text (no `--missing`, no `-z`, no `--batch`). */
119
+ private mktree;
120
+ /**
121
+ * `git replace --graft <commit> [<parent>...]` (create_graft); with `gentle` (the grafts
122
+ * file's lines) a graft that changes nothing is a warning. Returns whether it failed.
123
+ */
124
+ private createGraft;
125
+ /**
126
+ * lookup_commit_reference: tags peeled to a commit; git's `object <id> is a <type>, not a
127
+ * commit` for another type, undefined (silently) for a missing object.
128
+ */
129
+ private lookupCommitReference;
130
+ /**
131
+ * A commit was parsed: the first parse loads the grafts file (prepare_commit_graft, with
132
+ * its deprecation advice unless converting it), which makes each graft's commit known; a
133
+ * grafted commit's parse makes its grafted parents known.
134
+ */
135
+ private commitParsed;
136
+ /** The grafts file's grafts; undefined when there is none. */
137
+ private readGraftFile;
138
+ /** advice.graftFileDeprecated, as git words it. */
139
+ private adviseGraftFile;
140
+ /** `git replace --convert-graft-file` (convert_graft_file) */
141
+ private convertGraftFile;
142
+ }
143
+ //# sourceMappingURL=replace-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-command.d.ts","sourceRoot":"","sources":["../../src/commands/replace-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AASH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOxD,OAAO,EAAE,eAAe,EAAiB,MAAM,uBAAuB,CAAC;AAEvE,8FAA8F;AAC9F,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,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MAAM,GAAG,IAAI,CAI/C;IAED,yEAAyE;IACzE,UAAmB,oBAAoB,IAAI,OAAO,CAEjD;IAED;;;;OAIG;IACH,cAAuB,WAAW,IAAI,cAAc,CAWnD;IAED,OAAO,KAAK,cAAc,GAEzB;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CA8CrC;IAED,oDAAoD;IACpD,OAAO,CAAC,IAAI;IAKZ,2EAA2E;YAC7D,MAAM;IAMpB,6EAA6E;YAC/D,MAAM;IAMpB,sCAAsC;YACxB,UAAU;IAUxB,2CAA2C;YAC7B,WAAW;IAMzB,mFAAmF;YACrE,OAAO;IAKrB,uDAAuD;YACzC,IAAI;IA6ClB,gFAAgF;YAClE,WAAW;IA2BzB,sFAAsF;YACxE,aAAa;IAO3B,yBAAyB;YACX,gBAAgB;IAoB9B,4DAA4D;YAC9C,aAAa;IAQ3B,uDAAuD;YACzC,cAAc;IAwB5B,sFAAsF;YACxE,YAAY;IAkB1B,wFAAwF;YAC1E,YAAY;IAyC1B,qFAAqF;YACvE,MAAM;IA0DpB;;;OAGG;YACW,WAAW;IA2DzB;;;OAGG;YACW,qBAAqB;IAiBnC;;;;OAIG;YACW,YAAY;IAc1B,8DAA8D;YAChD,aAAa;IAM3B,mDAAmD;IACnD,OAAO,CAAC,eAAe;IAsBvB,8DAA8D;YAChD,gBAAgB;CAmC/B"}
@@ -0,0 +1,117 @@
1
+ /**
2
+ * `git replay` (builtin/replay.c, replay.c): replays a range of commits onto a new base with
3
+ * merge-ort in memory, writing only objects, then updates the refs the range named (or prints
4
+ * `update-ref --stdin` lines). The worktree and the index are never touched, so it runs in
5
+ * bare repositories too.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * // git replay --ref-action=print --onto main topic1..topic2
10
+ * const { stdout, exitCode } = await git
11
+ * .replay()
12
+ * .setOnto("main")
13
+ * .setRefAction("print")
14
+ * .addRevision("topic1..topic2")
15
+ * .callOutput();
16
+ * // stdout: "update refs/heads/topic2 <new> <old>\n"; exitCode: 0 clean, 1 conflicted
17
+ *
18
+ * // git replay --advance main topic1..topic2 (cherry-picks onto main and moves main)
19
+ * await git.replay().setAdvance("main").addRevision("topic1..topic2").call();
20
+ * ```
21
+ *
22
+ * The modes: `--onto <newbase>` replays onto a commit and moves the branches the positive
23
+ * revisions name (`--contained`: every local branch at a replayed commit, and a detached HEAD
24
+ * there); `--advance <branch>` replays onto the branch and moves it; `--revert <branch>`
25
+ * reverts the range newest first on the branch (git's `Revert "<subject>"` messages, the
26
+ * current user as author); `--ref <ref>` moves that ref instead. `--linearize` drops merge
27
+ * commits (without it a merge in the range dies). Commits that become empty are dropped.
28
+ * Each replayed commit keeps the original's author, message and extra headers (not its
29
+ * signature) with the current committer. The refs move in one transaction with reflog
30
+ * `replay --onto <id>` / `replay --advance <branch>` / `replay --revert <branch>`, unless
31
+ * `--ref-action=print` (or `replay.refAction=print`) prints `update <ref> <new> <old>` lines.
32
+ * A conflict exits 1 with no output.
33
+ *
34
+ * Version differences (`setCompatibility`): `git replay` is 2.44+. Up to 2.52 it always
35
+ * prints (no `--ref-action`), stops at a root commit, keeps commits that become empty,
36
+ * updates no detached HEAD, prints the lines of the commits replayed before a conflict, and
37
+ * words some refusals otherwise (`option --onto or --advance is mandatory`, `cannot advance
38
+ * target with multiple sources ...`); 2.53 adds `--ref-action` and ref updates. 2.54 adds
39
+ * `--revert`, `--ref`, root commits and dropped empty commits; 2.56 `--linearize`.
40
+ *
41
+ * The message is read as git's `repo_logmsg_reencode` reads it: a commit with an `encoding`
42
+ * header has its message re-encoded to UTF-8 (the header dropped, as every replayed commit's
43
+ * `encoding` is `i18n.commitEncoding`'s, written only when that is not UTF-8). Divergences: an
44
+ * `i18n.logOutputEncoding` other than UTF-8 keeps the message as stored (Web encoders write
45
+ * UTF-8 only); a detached HEAD updated with branches moves after them in
46
+ * a transaction of its own (a batch of HEAD with other refs is not atomic in our stores).
47
+ */
48
+ import { PlumbingCommand } from "./plumbing-command.js";
49
+ import { RevListCommand } from "./rev-list-command.js";
50
+ /** The git versions whose `git replay` ours follows (see the module documentation). */
51
+ export type ReplayCompatibility = "2.52" | "2.53" | "2.56";
52
+ /** `--ref-action`: update the refs (one transaction) or print `update-ref --stdin` lines. */
53
+ export type ReplayRefAction = "update" | "print";
54
+ /** `git replay`: see the module documentation. */
55
+ export declare class ReplayCommand extends PlumbingCommand {
56
+ private onto?;
57
+ private advance?;
58
+ private revert?;
59
+ private ref?;
60
+ private refAction?;
61
+ private contained;
62
+ private linearize;
63
+ private readonly revisions;
64
+ private readonly walkSteps;
65
+ private compatibility;
66
+ /** `--onto <newbase>`: replay onto this commit-ish, moving the branches of the range. */
67
+ setOnto(revision: string): this;
68
+ /** `--advance <branch>`: replay onto the branch and move it to the result. */
69
+ setAdvance(branch: string): this;
70
+ /** `--revert <branch>` (2.54+): revert the range, newest first, on the branch. */
71
+ setRevert(branch: string): this;
72
+ /** `--ref <ref>` (2.54+): the fully qualified ref to move instead. */
73
+ setRef(ref: string): this;
74
+ /** `--ref-action <mode>` (2.53+): `update` (the default) or `print`; others die. */
75
+ setRefAction(mode: ReplayRefAction | string): this;
76
+ /** `--contained`: move every branch at a replayed commit (with `--onto` only). */
77
+ setContained(contained: boolean): this;
78
+ /** `--linearize` (2.56+): drop merge commits, replaying the rest as one line. */
79
+ setLinearize(linearize: boolean): this;
80
+ /**
81
+ * A revision argument (`a..b`, `^a`, `a^!`, `--branches`, `--not`...), as
82
+ * `git rev-list` reads it.
83
+ */
84
+ addRevision(revision: string): this;
85
+ /** Other rev-list options of the walk (`--ancestry-path=<commit>`: `addAncestryPath`). */
86
+ configureWalk(step: (walk: RevListCommand) => void): this;
87
+ /** The git version to follow (default 2.56; see the module documentation). */
88
+ setCompatibility(version: ReplayCompatibility): this;
89
+ protected run(): Promise<number>;
90
+ /** get_ref_action_mode: the option, else `replay.refAction`, else `update`. */
91
+ private refActionMode;
92
+ /** peel_committish: the commit a commit-ish names, or git's death for the option. */
93
+ private peelCommittish;
94
+ /**
95
+ * get_name_decoration for each commit, the local branches and (`withHead`, a detached HEAD)
96
+ * HEAD: load_ref_decorations adds refs in name order, then HEAD, each in front of the
97
+ * commit's list.
98
+ */
99
+ private localDecorations;
100
+ /**
101
+ * pick_regular_commit: merges the commit's change onto `base` (reverted: its inverse) and
102
+ * writes the result commit; undefined on a conflict, `base` itself when the change is
103
+ * already there (2.54+).
104
+ */
105
+ private pick;
106
+ /** create_commit: the original's author, message and extra headers on the new tree. */
107
+ private createCommit;
108
+ /** The object's content as stored. */
109
+ private readObject;
110
+ /** The refs moved in one transaction (a detached HEAD in a second one: see the module). */
111
+ private applyUpdates;
112
+ /** The stores the merge reads: a missing tree is merge-ort's `Could not read`. */
113
+ private mergeStores;
114
+ /** The worktree, none in a bare repository (its attributes are read from it). */
115
+ private worktreeOrNone;
116
+ }
117
+ //# sourceMappingURL=replay-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay-command.d.ts","sourceRoot":"","sources":["../../src/commands/replay-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAmBH,OAAO,EAAE,eAAe,EAAiB,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,uFAAuF;AACvF,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3D,6FAA6F;AAC7F,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,CAAC;AAqBjD,kDAAkD;AAClD,qBAAa,aAAc,SAAQ,eAAe;IAChD,OAAO,CAAC,IAAI,CAAC,CAAS;IACtB,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,GAAG,CAAC,CAAS;IACrB,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,SAAS,CAAS;IA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