@statewalker/vcs-commands 0.9.0 → 0.11.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 (468) 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 +144 -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 +28 -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 +54 -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 +60 -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-ipc.d.ts +30 -0
  109. package/dist/commands/fsmonitor-ipc.d.ts.map +1 -0
  110. package/dist/commands/fsmonitor-refresh.d.ts +69 -0
  111. package/dist/commands/fsmonitor-refresh.d.ts.map +1 -0
  112. package/dist/commands/gc-command.d.ts +5 -0
  113. package/dist/commands/gc-command.d.ts.map +1 -1
  114. package/dist/commands/git-hooks.d.ts +32 -0
  115. package/dist/commands/git-hooks.d.ts.map +1 -1
  116. package/dist/commands/git-paths.d.ts +26 -0
  117. package/dist/commands/git-paths.d.ts.map +1 -0
  118. package/dist/commands/grep/grep-command.d.ts +2 -1
  119. package/dist/commands/grep/grep-command.d.ts.map +1 -1
  120. package/dist/commands/history-command.d.ts +156 -0
  121. package/dist/commands/history-command.d.ts.map +1 -0
  122. package/dist/commands/http-config.d.ts +38 -0
  123. package/dist/commands/http-config.d.ts.map +1 -0
  124. package/dist/commands/index-adder.d.ts +12 -1
  125. package/dist/commands/index-adder.d.ts.map +1 -1
  126. package/dist/commands/index-host.d.ts.map +1 -1
  127. package/dist/commands/index.d.ts +45 -1
  128. package/dist/commands/index.d.ts.map +1 -1
  129. package/dist/commands/index.js +6 -5
  130. package/dist/commands/init-command.d.ts.map +1 -1
  131. package/dist/commands/last-modified-command.d.ts +102 -0
  132. package/dist/commands/last-modified-command.d.ts.map +1 -0
  133. package/dist/commands/lfs/go-url.d.ts +43 -0
  134. package/dist/commands/lfs/go-url.d.ts.map +1 -0
  135. package/dist/commands/lfs/index.d.ts +3 -0
  136. package/dist/commands/lfs/index.d.ts.map +1 -0
  137. package/dist/commands/lfs/lfs-config.d.ts +174 -0
  138. package/dist/commands/lfs/lfs-config.d.ts.map +1 -0
  139. package/dist/commands/lfs/lfs-endpoint-command.d.ts +83 -0
  140. package/dist/commands/lfs/lfs-endpoint-command.d.ts.map +1 -0
  141. package/dist/commands/local-transport.d.ts.map +1 -1
  142. package/dist/commands/log-command.d.ts +26 -0
  143. package/dist/commands/log-command.d.ts.map +1 -1
  144. package/dist/commands/log-output.d.ts +28 -1
  145. package/dist/commands/log-output.d.ts.map +1 -1
  146. package/dist/commands/ls-files-command.d.ts +153 -0
  147. package/dist/commands/ls-files-command.d.ts.map +1 -0
  148. package/dist/commands/ls-remote-command.d.ts +5 -0
  149. package/dist/commands/ls-remote-command.d.ts.map +1 -1
  150. package/dist/commands/ls-tree-command.d.ts +105 -0
  151. package/dist/commands/ls-tree-command.d.ts.map +1 -0
  152. package/dist/commands/maintenance-run-command.d.ts +122 -0
  153. package/dist/commands/maintenance-run-command.d.ts.map +1 -0
  154. package/dist/commands/merge-command.d.ts +7 -0
  155. package/dist/commands/merge-command.d.ts.map +1 -1
  156. package/dist/commands/merge-config.d.ts +7 -0
  157. package/dist/commands/merge-config.d.ts.map +1 -1
  158. package/dist/commands/merge-drivers.d.ts +67 -5
  159. package/dist/commands/merge-drivers.d.ts.map +1 -1
  160. package/dist/commands/merge-support.d.ts +6 -0
  161. package/dist/commands/merge-support.d.ts.map +1 -1
  162. package/dist/commands/merge-tree-command.d.ts +122 -0
  163. package/dist/commands/merge-tree-command.d.ts.map +1 -0
  164. package/dist/commands/mktag-command.d.ts +51 -0
  165. package/dist/commands/mktag-command.d.ts.map +1 -0
  166. package/dist/commands/object-store/count-objects-command.d.ts +58 -0
  167. package/dist/commands/object-store/count-objects-command.d.ts.map +1 -0
  168. package/dist/commands/object-store/index.d.ts +5 -0
  169. package/dist/commands/object-store/index.d.ts.map +1 -0
  170. package/dist/commands/object-store/objects-directory.d.ts +12 -0
  171. package/dist/commands/object-store/objects-directory.d.ts.map +1 -0
  172. package/dist/commands/object-store/prune-command.d.ts +38 -0
  173. package/dist/commands/object-store/prune-command.d.ts.map +1 -0
  174. package/dist/commands/object-store/show-index-command.d.ts +23 -0
  175. package/dist/commands/object-store/show-index-command.d.ts.map +1 -0
  176. package/dist/commands/ort-merge.d.ts +24 -0
  177. package/dist/commands/ort-merge.d.ts.map +1 -1
  178. package/dist/commands/patch-id-command.d.ts +30 -0
  179. package/dist/commands/patch-id-command.d.ts.map +1 -0
  180. package/dist/commands/patch-id.d.ts +24 -0
  181. package/dist/commands/patch-id.d.ts.map +1 -1
  182. package/dist/commands/plumbing-command.d.ts +66 -0
  183. package/dist/commands/plumbing-command.d.ts.map +1 -0
  184. package/dist/commands/plumbing-input.d.ts +38 -0
  185. package/dist/commands/plumbing-input.d.ts.map +1 -0
  186. package/dist/commands/promisor-remote-reply.d.ts +35 -0
  187. package/dist/commands/promisor-remote-reply.d.ts.map +1 -0
  188. package/dist/commands/promisor-remote.d.ts.map +1 -1
  189. package/dist/commands/pull-command.d.ts.map +1 -1
  190. package/dist/commands/push-command.d.ts +17 -2
  191. package/dist/commands/push-command.d.ts.map +1 -1
  192. package/dist/commands/rebase-command.d.ts +108 -2
  193. package/dist/commands/rebase-command.d.ts.map +1 -1
  194. package/dist/commands/refs-command.d.ts +81 -0
  195. package/dist/commands/refs-command.d.ts.map +1 -0
  196. package/dist/commands/remote-object-info-command.d.ts +55 -0
  197. package/dist/commands/remote-object-info-command.d.ts.map +1 -0
  198. package/dist/commands/remote-transport.d.ts +40 -3
  199. package/dist/commands/remote-transport.d.ts.map +1 -1
  200. package/dist/commands/repack-command.d.ts +115 -0
  201. package/dist/commands/repack-command.d.ts.map +1 -0
  202. package/dist/commands/replace-command.d.ts +143 -0
  203. package/dist/commands/replace-command.d.ts.map +1 -0
  204. package/dist/commands/replay-command.d.ts +117 -0
  205. package/dist/commands/replay-command.d.ts.map +1 -0
  206. package/dist/commands/repo-command.d.ts +158 -0
  207. package/dist/commands/repo-command.d.ts.map +1 -0
  208. package/dist/commands/request-pull-command.d.ts +82 -0
  209. package/dist/commands/request-pull-command.d.ts.map +1 -0
  210. package/dist/commands/rerere-command.d.ts +36 -0
  211. package/dist/commands/rerere-command.d.ts.map +1 -0
  212. package/dist/commands/rerere.d.ts +102 -0
  213. package/dist/commands/rerere.d.ts.map +1 -0
  214. package/dist/commands/reset-command.d.ts +19 -2
  215. package/dist/commands/reset-command.d.ts.map +1 -1
  216. package/dist/commands/rev-filter/commit-grep.d.ts +3 -1
  217. package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -1
  218. package/dist/commands/rev-list-command.d.ts +3 -0
  219. package/dist/commands/rev-list-command.d.ts.map +1 -1
  220. package/dist/commands/rev-parse-command.d.ts +5 -0
  221. package/dist/commands/rev-parse-command.d.ts.map +1 -1
  222. package/dist/commands/revert-command.d.ts +10 -0
  223. package/dist/commands/revert-command.d.ts.map +1 -1
  224. package/dist/commands/revision-range.d.ts +5 -0
  225. package/dist/commands/revision-range.d.ts.map +1 -1
  226. package/dist/commands/revision-resolver.d.ts +27 -1
  227. package/dist/commands/revision-resolver.d.ts.map +1 -1
  228. package/dist/commands/sequencer-pick.d.ts +18 -0
  229. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  230. package/dist/commands/serve-repository.d.ts +23 -1
  231. package/dist/commands/serve-repository.d.ts.map +1 -1
  232. package/dist/commands/session-id.d.ts +18 -0
  233. package/dist/commands/session-id.d.ts.map +1 -0
  234. package/dist/commands/show-branch-command.d.ts +59 -0
  235. package/dist/commands/show-branch-command.d.ts.map +1 -0
  236. package/dist/commands/show-ref-command.d.ts +112 -0
  237. package/dist/commands/show-ref-command.d.ts.map +1 -0
  238. package/dist/commands/signature-check.d.ts +9 -2
  239. package/dist/commands/signature-check.d.ts.map +1 -1
  240. package/dist/commands/signing.d.ts +30 -2
  241. package/dist/commands/signing.d.ts.map +1 -1
  242. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  243. package/dist/commands/stash-export-command.d.ts +115 -0
  244. package/dist/commands/stash-export-command.d.ts.map +1 -0
  245. package/dist/commands/status-command.d.ts +16 -2
  246. package/dist/commands/status-command.d.ts.map +1 -1
  247. package/dist/commands/stripspace-command.d.ts +44 -0
  248. package/dist/commands/stripspace-command.d.ts.map +1 -0
  249. package/dist/commands/submodule-add-command.d.ts +22 -1
  250. package/dist/commands/submodule-add-command.d.ts.map +1 -1
  251. package/dist/commands/submodule-auth.d.ts +3 -1
  252. package/dist/commands/submodule-auth.d.ts.map +1 -1
  253. package/dist/commands/submodule-commands.d.ts +9 -1
  254. package/dist/commands/submodule-commands.d.ts.map +1 -1
  255. package/dist/commands/submodule-update-command.d.ts +27 -1
  256. package/dist/commands/submodule-update-command.d.ts.map +1 -1
  257. package/dist/commands/tag-command.d.ts.map +1 -1
  258. package/dist/commands/textconv-cache.d.ts +58 -0
  259. package/dist/commands/textconv-cache.d.ts.map +1 -0
  260. package/dist/commands/tree-restore.d.ts +5 -0
  261. package/dist/commands/tree-restore.d.ts.map +1 -1
  262. package/dist/commands/unpack-objects-command.d.ts +47 -0
  263. package/dist/commands/unpack-objects-command.d.ts.map +1 -0
  264. package/dist/commands/update-index-command.d.ts +131 -0
  265. package/dist/commands/update-index-command.d.ts.map +1 -0
  266. package/dist/commands/uri-protocols.d.ts +13 -0
  267. package/dist/commands/uri-protocols.d.ts.map +1 -0
  268. package/dist/commands/url-parse-command.d.ts +30 -0
  269. package/dist/commands/url-parse-command.d.ts.map +1 -0
  270. package/dist/commands/var-command.d.ts +42 -0
  271. package/dist/commands/var-command.d.ts.map +1 -0
  272. package/dist/{commands-CNvli5bl.js → commands-bQQ9OmCh.js} +52514 -44630
  273. package/dist/errors/command-errors.d.ts +33 -0
  274. package/dist/errors/command-errors.d.ts.map +1 -1
  275. package/dist/errors/index.js +39 -1
  276. package/dist/{fsck-CPeDh9fh.js → fsck-BHT9bUS-.js} +184 -143
  277. package/dist/git-command.d.ts +66 -4
  278. package/dist/git-command.d.ts.map +1 -1
  279. package/dist/git.d.ts +532 -1
  280. package/dist/git.d.ts.map +1 -1
  281. package/dist/guarded-transport-command.d.ts +3 -1
  282. package/dist/guarded-transport-command.d.ts.map +1 -1
  283. package/dist/index.js +7 -6
  284. package/dist/maintenance-run-command-Cx2PlGV9.js +13544 -0
  285. package/dist/{remote-transport-CCmBadm-.js → remote-transport-BrQZfyHu.js} +1009 -10
  286. package/dist/results/cherry-pick-result.d.ts +6 -0
  287. package/dist/results/cherry-pick-result.d.ts.map +1 -1
  288. package/dist/results/diff-entry.d.ts +10 -0
  289. package/dist/results/diff-entry.d.ts.map +1 -1
  290. package/dist/results/diff-formatter.d.ts.map +1 -1
  291. package/dist/results/diff-output.d.ts +49 -3
  292. package/dist/results/diff-output.d.ts.map +1 -1
  293. package/dist/results/fetch-result.d.ts +12 -0
  294. package/dist/results/fetch-result.d.ts.map +1 -1
  295. package/dist/results/index.js +2 -2
  296. package/dist/results/merge-result.d.ts +5 -0
  297. package/dist/results/merge-result.d.ts.map +1 -1
  298. package/dist/results/push-result.d.ts +5 -0
  299. package/dist/results/push-result.d.ts.map +1 -1
  300. package/dist/results/rebase-result.d.ts +7 -0
  301. package/dist/results/rebase-result.d.ts.map +1 -1
  302. package/dist/results/revert-result.d.ts +6 -0
  303. package/dist/results/revert-result.d.ts.map +1 -1
  304. package/dist/results/stash-result.d.ts +5 -0
  305. package/dist/results/stash-result.d.ts.map +1 -1
  306. package/dist/{results-BDuEgdLU.js → results-CNHQnU5Y.js} +13707 -10608
  307. package/dist/transport-command.d.ts +79 -1
  308. package/dist/transport-command.d.ts.map +1 -1
  309. package/package.json +13 -13
  310. package/src/commands/add-command.ts +3 -0
  311. package/src/commands/add-patch/patch-backend.ts +4 -1
  312. package/src/commands/add-patch/patch-modes.ts +26 -2
  313. package/src/commands/add-patch/patch-session.ts +6 -0
  314. package/src/commands/am/am-command.ts +193 -22
  315. package/src/commands/apply/index.ts +1 -0
  316. package/src/commands/archive/archive-command.ts +1148 -0
  317. package/src/commands/archive/archive-entry.ts +93 -0
  318. package/src/commands/archive/index.ts +7 -0
  319. package/src/commands/archive/remote-archive-command.ts +140 -0
  320. package/src/commands/archive/tar-archive.ts +207 -0
  321. package/src/commands/archive/tar-commit-id.ts +72 -0
  322. package/src/commands/archive/upload-archive-writer.ts +213 -0
  323. package/src/commands/archive/zip-archive.ts +317 -0
  324. package/src/commands/attributes-source.ts +26 -12
  325. package/src/commands/blame-command.ts +118 -19
  326. package/src/commands/bundle/bundle-create-command.ts +405 -0
  327. package/src/commands/bundle/bundle-format.ts +228 -0
  328. package/src/commands/bundle/bundle-list.ts +276 -0
  329. package/src/commands/bundle/bundle-read-commands.ts +157 -0
  330. package/src/commands/bundle/bundle-support.ts +85 -0
  331. package/src/commands/bundle/bundle-transport.ts +107 -0
  332. package/src/commands/bundle/bundle-uri-host.ts +204 -0
  333. package/src/commands/bundle/bundle-uri.ts +236 -0
  334. package/src/commands/bundle/bundle-verify.ts +152 -0
  335. package/src/commands/bundle/index.ts +14 -0
  336. package/src/commands/cat-file/batch-format.ts +193 -0
  337. package/src/commands/cat-file/cat-file-command.ts +895 -0
  338. package/src/commands/cat-file/index.ts +2 -0
  339. package/src/commands/check-attr-command.ts +333 -0
  340. package/src/commands/check-ignore-command.ts +261 -0
  341. package/src/commands/check-ref-format-command.ts +129 -0
  342. package/src/commands/checkout-command.ts +61 -22
  343. package/src/commands/checkout-index-command.ts +568 -0
  344. package/src/commands/checkout-paths.ts +7 -0
  345. package/src/commands/cherry-pick-command.ts +21 -1
  346. package/src/commands/clone-command.ts +249 -9
  347. package/src/commands/commit-command.ts +22 -4
  348. package/src/commands/config-command.ts +9 -0
  349. package/src/commands/daemon-access-hook.ts +78 -0
  350. package/src/commands/default-branch.ts +118 -1
  351. package/src/commands/diff-command.ts +592 -47
  352. package/src/commands/diff-external.ts +131 -0
  353. package/src/commands/diff-plumbing/diff-pairs-command.ts +193 -0
  354. package/src/commands/diff-plumbing/diff-plumbing-command.ts +424 -0
  355. package/src/commands/diff-plumbing/index.ts +2 -0
  356. package/src/commands/diff-textconv.ts +5 -1
  357. package/src/commands/fast-export/fast-export-command.ts +911 -0
  358. package/src/commands/fast-export/fast-import-command.ts +1553 -0
  359. package/src/commands/fast-export/fast-stream-support.ts +162 -0
  360. package/src/commands/fast-export/index.ts +3 -0
  361. package/src/commands/fetch-command.ts +312 -8
  362. package/src/commands/fetch-multiple-command.ts +4 -1
  363. package/src/commands/format-rev-command.ts +267 -0
  364. package/src/commands/fsck/fsck-command.ts +47 -20
  365. package/src/commands/fsck/fsck-msg-ids.ts +19 -3
  366. package/src/commands/fsck/fsck-pack.ts +2 -2
  367. package/src/commands/fsmonitor-ipc.ts +121 -0
  368. package/src/commands/fsmonitor-refresh.ts +320 -0
  369. package/src/commands/gc-command.ts +10 -0
  370. package/src/commands/git-hooks.ts +123 -6
  371. package/src/commands/git-paths.ts +136 -0
  372. package/src/commands/grep/grep-command.ts +38 -15
  373. package/src/commands/history-command.ts +617 -0
  374. package/src/commands/http-config.ts +139 -0
  375. package/src/commands/index-adder.ts +37 -3
  376. package/src/commands/index-host.ts +6 -1
  377. package/src/commands/index.ts +46 -0
  378. package/src/commands/init-command.ts +14 -0
  379. package/src/commands/last-modified-command.ts +804 -0
  380. package/src/commands/lfs/go-url.ts +370 -0
  381. package/src/commands/lfs/index.ts +2 -0
  382. package/src/commands/lfs/lfs-config.ts +738 -0
  383. package/src/commands/lfs/lfs-endpoint-command.ts +180 -0
  384. package/src/commands/local-transport.ts +252 -4
  385. package/src/commands/log-command.ts +104 -5
  386. package/src/commands/log-output.ts +66 -5
  387. package/src/commands/ls-files-command.ts +1177 -0
  388. package/src/commands/ls-remote-command.ts +6 -0
  389. package/src/commands/ls-tree-command.ts +708 -0
  390. package/src/commands/maintenance-run-command.ts +949 -0
  391. package/src/commands/merge-command.ts +78 -32
  392. package/src/commands/merge-config.ts +23 -1
  393. package/src/commands/merge-drivers.ts +109 -20
  394. package/src/commands/merge-support.ts +29 -5
  395. package/src/commands/merge-tree-command.ts +786 -0
  396. package/src/commands/mktag-command.ts +149 -0
  397. package/src/commands/object-store/count-objects-command.ts +404 -0
  398. package/src/commands/object-store/index.ts +4 -0
  399. package/src/commands/object-store/objects-directory.ts +24 -0
  400. package/src/commands/object-store/prune-command.ts +129 -0
  401. package/src/commands/object-store/show-index-command.ts +151 -0
  402. package/src/commands/ort-merge.ts +92 -25
  403. package/src/commands/patch-id-command.ts +65 -0
  404. package/src/commands/patch-id.ts +218 -0
  405. package/src/commands/plumbing-command.ts +141 -0
  406. package/src/commands/plumbing-input.ts +87 -0
  407. package/src/commands/promisor-remote-reply.ts +276 -0
  408. package/src/commands/promisor-remote.ts +25 -2
  409. package/src/commands/pull-command.ts +2 -0
  410. package/src/commands/push-command.ts +87 -5
  411. package/src/commands/rebase-command.ts +507 -19
  412. package/src/commands/refs-command.ts +274 -0
  413. package/src/commands/remote-object-info-command.ts +109 -0
  414. package/src/commands/remote-transport.ts +116 -1
  415. package/src/commands/repack-command.ts +383 -0
  416. package/src/commands/replace-command.ts +816 -0
  417. package/src/commands/replay-command.ts +674 -0
  418. package/src/commands/repo-command.ts +1066 -0
  419. package/src/commands/request-pull-command.ts +356 -0
  420. package/src/commands/rerere-command.ts +179 -0
  421. package/src/commands/rerere.ts +925 -0
  422. package/src/commands/reset-command.ts +75 -3
  423. package/src/commands/rev-filter/commit-grep.ts +7 -2
  424. package/src/commands/rev-list-command.ts +9 -0
  425. package/src/commands/rev-parse-command.ts +49 -5
  426. package/src/commands/revert-command.ts +21 -1
  427. package/src/commands/revision-range.ts +7 -2
  428. package/src/commands/revision-resolver.ts +97 -14
  429. package/src/commands/sequencer-pick.ts +47 -0
  430. package/src/commands/serve-repository.ts +65 -0
  431. package/src/commands/session-id.ts +31 -0
  432. package/src/commands/show-branch-command.ts +981 -0
  433. package/src/commands/show-command.ts +1 -1
  434. package/src/commands/show-ref-command.ts +439 -0
  435. package/src/commands/signature-check.ts +37 -5
  436. package/src/commands/signing.ts +176 -23
  437. package/src/commands/stash-apply-command.ts +3 -0
  438. package/src/commands/stash-export-command.ts +397 -0
  439. package/src/commands/status-command.ts +74 -8
  440. package/src/commands/stripspace-command.ts +118 -0
  441. package/src/commands/submodule-add-command.ts +40 -2
  442. package/src/commands/submodule-auth.ts +61 -6
  443. package/src/commands/submodule-commands.ts +12 -2
  444. package/src/commands/submodule-update-command.ts +47 -1
  445. package/src/commands/tag-command.ts +33 -11
  446. package/src/commands/textconv-cache.ts +143 -0
  447. package/src/commands/tree-restore.ts +14 -0
  448. package/src/commands/unpack-objects-command.ts +235 -0
  449. package/src/commands/update-index-command.ts +1148 -0
  450. package/src/commands/uri-protocols.ts +13 -0
  451. package/src/commands/url-parse-command.ts +67 -0
  452. package/src/commands/var-command.ts +219 -0
  453. package/src/errors/command-errors.ts +45 -0
  454. package/src/git-command.ts +177 -3
  455. package/src/git.ts +808 -1
  456. package/src/guarded-transport-command.ts +6 -1
  457. package/src/results/cherry-pick-result.ts +6 -0
  458. package/src/results/diff-entry.ts +12 -0
  459. package/src/results/diff-formatter.ts +7 -4
  460. package/src/results/diff-output.ts +117 -11
  461. package/src/results/diff-pickaxe.ts +1 -1
  462. package/src/results/fetch-result.ts +12 -0
  463. package/src/results/merge-result.ts +5 -0
  464. package/src/results/push-result.ts +5 -0
  465. package/src/results/rebase-result.ts +7 -0
  466. package/src/results/revert-result.ts +6 -0
  467. package/src/results/stash-result.ts +6 -0
  468. package/src/transport-command.ts +182 -1
@@ -0,0 +1,48 @@
1
+ /**
2
+ * git's `upload-archive--writer` (builtin/upload-archive.c, archive.c's `write_archive` with
3
+ * `remote = 1`): `git archive` run in a served repository with the arguments a
4
+ * `git archive --remote` client sent, its stdout, stderr and exit status handed to the
5
+ * upload-archive protocol (vcs-transport `serveUploadArchive`).
6
+ */
7
+ import type { UploadArchiveOutput, UploadArchiveWriter } from "@statewalker/vcs-transport";
8
+ import type { OpenedRepository, WorkingCopy } from "@statewalker/vcs-working-tree";
9
+ import { ArchiveCommand } from "./archive-command.js";
10
+ /** Options of {@link runArchiveWriter}. */
11
+ export interface ArchiveWriterOptions {
12
+ /** `uploadarchive.allowUnreachable`: any tree-ish, not only one a ref names (default false) */
13
+ allowUnreachable?: boolean;
14
+ /** Prepares the command before it runs (a tar filter runner, the git version followed) */
15
+ configure?: (command: ArchiveCommand) => void;
16
+ }
17
+ /**
18
+ * Runs `git archive <args>` as upload-archive's writer runs it in `workingCopy` (a
19
+ * repository's, its worktree never read): git's options parsed from `args`, only formats
20
+ * served remotely, a tree-ish only by ref unless `allowUnreachable`. Never throws: git's
21
+ * deaths are its stderr and exit status.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const { stdout, exitCode } = await runArchiveWriter(workingCopy, ["--format=zip", "HEAD"]);
26
+ * ```
27
+ */
28
+ export declare function runArchiveWriter(workingCopy: WorkingCopy, args: readonly string[], options?: ArchiveWriterOptions): Promise<UploadArchiveOutput>;
29
+ /**
30
+ * {@link runArchiveWriter} for an opened repository (`Worktree.openRepository`), as git's
31
+ * upload-archive serves it: in its git directory (no worktree), `uploadarchive.allowUnreachable`
32
+ * read from its configuration. Undefined for a repository without worktrees to open (a
33
+ * key-value or SQL store).
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const writer = uploadArchiveWriterOf(opened);
38
+ * if (writer) await serveUploadArchive(duplex, writer);
39
+ * ```
40
+ */
41
+ export declare function uploadArchiveWriterOf(repository: OpenedRepository, options?: Pick<ArchiveWriterOptions, "configure">): UploadArchiveWriter | undefined;
42
+ /**
43
+ * Applies `git archive`'s arguments to `command` as archive.c's `parse_archive_args` reads
44
+ * them in a writer (`--remote`, `--exec` and `--output` refused): options anywhere before
45
+ * `--`, the first other argument the tree-ish, the rest paths. True for `--list`.
46
+ */
47
+ export declare function applyArchiveArgs(command: ArchiveCommand, args: readonly string[]): boolean;
48
+ //# sourceMappingURL=upload-archive-writer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-archive-writer.d.ts","sourceRoot":"","sources":["../../../src/commands/archive/upload-archive-writer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAGnF,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAItD,2CAA2C;AAC3C,MAAM,WAAW,oBAAoB;IACnC,+FAA+F;IAC/F,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,0FAA0F;IAC1F,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CAC/C;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,mBAAmB,CAAC,CAwB9B;AASD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,gBAAgB,EAC5B,OAAO,GAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAM,GACpD,mBAAmB,GAAG,SAAS,CAYjC;AAkBD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CA0F1F"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * git's zip writer (archive-zip.c): a local header with the extended-timestamp extra field
3
+ * per entry, the content deflated (raw deflate) unless storing it is smaller, streamed blobs
4
+ * with a data descriptor, zip64 records past the 32-bit limits, the central directory, and
5
+ * the commit id as the archive's comment.
6
+ */
7
+ import { type ArchiveEntry, type ArchiveSettings, type ArchiveWriter } from "./archive-entry.js";
8
+ /** Options of {@link ZipArchiveWriter}. */
9
+ export interface ZipArchiveOptions extends ArchiveSettings {
10
+ /**
11
+ * The local time zone's offset east of UTC in minutes at a time in seconds (git's
12
+ * `localtime_r` for the DOS date and time); default the host's
13
+ */
14
+ localTzOffset?: (time: number) => number;
15
+ /** The hex length of object ids (the comment's length), default 40 */
16
+ hexLength?: number;
17
+ /** Receives git's warnings (`path is not valid UTF-8`) */
18
+ onWarning?: (message: string) => void;
19
+ }
20
+ /** git's `dos_time`: the DOS date and time of `time` in local time. */
21
+ export declare function dosTime(time: number, localTzOffset?: (time: number) => number): {
22
+ date: number;
23
+ time: number;
24
+ };
25
+ /** Writes git's zip archive (`git archive --format=zip`). */
26
+ export declare class ZipArchiveWriter implements ArchiveWriter {
27
+ private readonly settings;
28
+ private readonly out;
29
+ private readonly dir;
30
+ private readonly le;
31
+ private readonly dirLe;
32
+ private entries;
33
+ private maxCreatorVersion;
34
+ private readonly dosDate;
35
+ private readonly dosTimeOfDay;
36
+ constructor(settings: ZipArchiveOptions);
37
+ /** `write_zip_entry`. */
38
+ entry(entry: ArchiveEntry): string | undefined;
39
+ /** `write_zip_trailer`. */
40
+ finish(): Uint8Array;
41
+ }
42
+ //# sourceMappingURL=zip-archive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zip-archive.d.ts","sourceRoot":"","sources":["../../../src/commands/archive/zip-archive.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,aAAa,EAOnB,MAAM,oBAAoB,CAAC;AAU5B,2CAA2C;AAC3C,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAyCD,uEAAuE;AACvE,wBAAgB,OAAO,CACrB,IAAI,EAAE,MAAM,EACZ,aAAa,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAuD,GACvF;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAOhC;AAED,6DAA6D;AAC7D,qBAAa,gBAAiB,YAAW,aAAa;IAUxC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IATrC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAyB;IAC7C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAwB;IAC5C,OAAO,CAAC,QAAQ,CAAC,EAAE,CAA0B;IAC7C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA0B;IAChD,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,iBAAiB,CAAK;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IAEtC,YAA6B,QAAQ,EAAE,iBAAiB,EAIvD;IAED,yBAAyB;IACzB,KAAK,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CA8J7C;IAED,2BAA2B;IAC3B,MAAM,IAAI,UAAU,CAkCnB;CACF"}
@@ -22,5 +22,15 @@ export declare function bareAttributesResolver(o: {
22
22
  trees: Trees;
23
23
  blobs: Blobs;
24
24
  revisions: () => RevisionResolver;
25
+ /**
26
+ * The tree read as the index (git's `GIT_ATTR_INDEX` over an index unpacked from it, as
27
+ * `git archive` reads one): its files replace any attribute source
28
+ */
29
+ indexTree?: string;
30
+ /**
31
+ * The tree the in-tree files are read from instead of the attribute source's (`git
32
+ * check-attr --source`); the index tree still wins
33
+ */
34
+ sourceTree?: string;
25
35
  }): AttributesResolver;
26
36
  //# sourceMappingURL=attributes-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attributes-source.d.ts","sourceRoot":"","sources":["../../src/commands/attributes-source.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EACL,kBAAkB,EAClB,KAAK,wBAAwB,EAM7B,KAAK,WAAW,EAEjB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI/D;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,gBAAgB,GAC/B,wBAAwB,CAU1B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE;IACxC,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,MAAM,gBAAgB,CAAC;CACnC,GAAG,kBAAkB,CA0CrB"}
1
+ {"version":3,"file":"attributes-source.d.ts","sourceRoot":"","sources":["../../src/commands/attributes-source.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EACL,kBAAkB,EAClB,KAAK,wBAAwB,EAM7B,KAAK,WAAW,EAEjB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI/D;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,gBAAgB,GAC/B,wBAAwB,CAU1B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE;IACxC,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,MAAM,gBAAgB,CAAC;IAClC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,kBAAkB,CA8CrB"}
@@ -184,6 +184,13 @@ export interface BlameContentsOptions {
184
184
  * standard input, the index entry's mode at the path, else `100644`
185
185
  */
186
186
  mode?: number;
187
+ /**
188
+ * The file's bytes as read, before the clean filters made `content` of them: what a
189
+ * textconv converts (git converts the file as it lies, then cleans the output with the
190
+ * blamed path's attributes); default `content`. Standard input (`name` `-`) is never
191
+ * converted.
192
+ */
193
+ file?: Uint8Array;
187
194
  }
188
195
  /**
189
196
  * Annotate each line of a file with the commit that last changed it.
@@ -246,6 +253,10 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
246
253
  /** `--reverse`: the commit whose lines are followed forward */
247
254
  private reverseFrom?;
248
255
  private firstParent;
256
+ /** `--textconv` / `--no-textconv` (git's blame converts by default) */
257
+ private textconv;
258
+ /** The diff command whose textconv (and its caches) blame's reads go through */
259
+ private textconvDiff?;
249
260
  /** The buffer blamed instead of the start commit's file (`--contents`) */
250
261
  private contents?;
251
262
  /** Commits older than this (committer time, seconds) are boundaries (`--since`) */
@@ -267,7 +278,10 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
267
278
  private finalStarts;
268
279
  private finalAlnum;
269
280
  private originSeq;
270
- /** Files looked in for copies, interned, the most recently used last (`copySourceText`) */
281
+ /**
282
+ * Files looked in for copies, interned, the most recently used last (`copySourceText`),
283
+ * by `copyKey`
284
+ */
271
285
  private copySources;
272
286
  private copySourceBytes;
273
287
  /** Line hashes of the files looked in for copies (null: over the big file threshold) */
@@ -391,6 +405,14 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
391
405
  * `no such path '<path>' in HEAD` when neither a parent nor the index has the path
392
406
  */
393
407
  setContents(content: Uint8Array, options?: BlameContentsOptions): this;
408
+ /**
409
+ * `--textconv` (the default) / `--no-textconv`: every version of a regular file is read
410
+ * through its `diff.<driver>.textconv` (blame.c's textconv_object, with the runner the
411
+ * host installed, `installTextconvRunner`), a blob through the driver's notes cache
412
+ * (`diff.<driver>.cachetextconv`); the `--contents` file too, unless read from standard
413
+ * input, without the cache.
414
+ */
415
+ setTextconv(on: boolean): this;
394
416
  /**
395
417
  * Stop at commits older than `timestamp` (seconds, committer time; `--since`): they and
396
418
  * their ancestors are boundaries, as git's `revs->max_age`
@@ -555,6 +577,26 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
555
577
  private isBig;
556
578
  /** A blob's size, the `--contents` buffer's too */
557
579
  private blobSize;
580
+ /** The textconv runner blame reads through, if textconv is on and the host installed one */
581
+ private textconvRunner;
582
+ private textconvDiffCommand;
583
+ /**
584
+ * The key of a file looked in for copies: its blob, and with textconv its path and mode
585
+ * too (the path's driver decides the converted content)
586
+ */
587
+ private copyKey;
588
+ /**
589
+ * blame.c's fill_origin_blob: a version of the file as blame compares it, the blob
590
+ * through the path's textconv (textconv_object, the driver's cache keyed by the blob)
591
+ * when one applies; the `--contents` buffer as it was made
592
+ */
593
+ private originBlob;
594
+ /**
595
+ * fake_working_tree_commit's textconv: the `--contents` file (the working tree's at
596
+ * `path`, or the named one; never standard input) through its textconv, the output then
597
+ * cleaned as git's convert_to_git cleans it for `path`; undefined when none applies
598
+ */
599
+ private textconvContents;
558
600
  /**
559
601
  * A blob's content; `shared` (for content only read here) takes a single chunk as it
560
602
  * comes (a resolved pack object) instead of copying it
@@ -1 +1 @@
1
- {"version":3,"file":"blame-command.d.ts","sourceRoot":"","sources":["../../src/commands/blame-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,EAKL,KAAK,kBAAkB,EAEvB,KAAK,cAAc,EACnB,KAAK,YAAY,EAGlB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;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AAsG;YACxF,WAAW;IAezB,+BAA+B;IAC/B,OAAO,CAAC,cAAc;IAWtB,2BAA2B;IAC3B,OAAO,CAAC,WAAW;IAgBnB;;;OAGG;YACW,iBAAiB;IA8C/B,mFAAmF;YACrE,UAAU;IAcxB,mFAAmF;YACrE,UAAU;IAyCxB,2FAA2F;IAC3F,OAAO,CAAC,SAAS;YAyBH,KAAK;YAgBL,aAAa;IAK3B;;;;OAIG;IACH,OAAO,CAAC,YAAY;IASpB,gFAAgF;YAClE,KAAK;IAInB,mDAAmD;YACrC,QAAQ;IAKtB,4FAA4F;IAC5F,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,mBAAmB;IAK3B;;;OAGG;IACH,OAAO,CAAC,OAAO;IAIf;;;;OAIG;YACW,UAAU;IAgBxB;;;;OAIG;YACW,gBAAgB;IAsB9B;;;OAGG;YACW,QAAQ;IAsBtB,6CAA6C;YAC/B,MAAM;YAiBN,YAAY;CAW3B"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * `git bundle create` (bundle.c's `create_bundle`): the commits the rev-list arguments name,
3
+ * their objects in a pack, behind a header listing the refs named and the boundary commits
4
+ * the pack needs.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * // git bundle create repo.bundle --all
9
+ * const { bundle } = await git.bundleCreate().addArgument("--all").call();
10
+ * // git bundle create --version=3 incr.bundle v1..main
11
+ * await git.bundleCreate().setVersion(3).addArgument("v1..main").call();
12
+ * // echo main | git bundle create stdin.bundle --stdin
13
+ * await git.bundleCreate().addArgument("--stdin").setStdin("main\n").call();
14
+ * ```
15
+ */
16
+ import { GitCommand } from "../../git-command.js";
17
+ import { type BundleHeader } from "./bundle-format.js";
18
+ import type { BundleCommandResult } from "./bundle-verify.js";
19
+ /** What {@link BundleCreateCommand} made. */
20
+ export interface BundleCreateResult extends BundleCommandResult {
21
+ /** The bundle's bytes (header and pack); undefined when git dies or fails */
22
+ bundle?: Uint8Array;
23
+ /** Its header */
24
+ header?: BundleHeader;
25
+ }
26
+ /**
27
+ * `git bundle create [--version=<n>] <file> <git-rev-list-args>`: the arguments are read as
28
+ * `setup_revisions` reads them (revisions, ranges, `--all`, `--branches`, `--tags`, `--not`,
29
+ * `--stdin`, `--ignore-missing`, `-<n>`/`-n`/`--max-count`, `--since`/`--after`,
30
+ * `--until`/`--before`, `--first-parent`, `--no-merges`, `--objects`, `--filter=<spec>`), the
31
+ * walk lists the commits and its boundary (`-<id> <subject>` lines, the pack's thin bases), each
32
+ * positive argument naming exactly one ref becomes a ref line (`HEAD` named as such, a branch by
33
+ * its full name; a commit the rev-list options left out is skipped with git's warning, a tag
34
+ * outside `--since`/`--until` dropped), and the pack holds what the positive arguments reach
35
+ * but the boundary and negative ones do not. Without refs git refuses (`Refusing to create
36
+ * empty bundle.`, exit 128).
37
+ *
38
+ * The version is 2 unless `setVersion(3)`, a SHA-256 repository or a filter asks for 3
39
+ * (`@object-format=`, `@filter=`). The bundle is returned (`result.bundle`); writing it (git's
40
+ * lock file, `-` for stdout) is the caller's. Progress (`--progress`, `-q`) is not printed.
41
+ */
42
+ export declare class BundleCreateCommand extends GitCommand<BundleCreateResult> {
43
+ private version?;
44
+ private readonly args;
45
+ private stdin?;
46
+ private compatibility?;
47
+ /**
48
+ * The git version to follow (default: the hook runner's, else 2.56): 2.43 drops only later
49
+ * arguments naming the same object by the same name (`object_array_remove_duplicates`), so
50
+ * `--all main` lists refs/heads/main twice; 2.56 writes each ref once.
51
+ */
52
+ setCompatibility(version: "2.43" | "2.56"): this;
53
+ /** `--version=<n>`: 2 or 3; git refuses other numbers and 2 for a SHA-256 repository. */
54
+ setVersion(version: number): this;
55
+ /** One of `<git-rev-list-args>`, as on git's command line. */
56
+ addArgument(arg: string): this;
57
+ /** What `--stdin` reads (git's standard input). */
58
+ setStdin(text: string): this;
59
+ call(): Promise<BundleCreateResult>;
60
+ /** The type of the object `id` names. */
61
+ private objectTypeOf;
62
+ /** bundle.c's `is_tag_in_date_range`: the tagger's date within `--since`/`--until`. */
63
+ private tagInDateRange;
64
+ /** The usage text git prints for a bad option (exit 129). */
65
+ static usage(): string;
66
+ }
67
+ //# sourceMappingURL=bundle-create-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle-create-command.d.ts","sourceRoot":"","sources":["../../../src/commands/bundle/bundle-create-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKlD,OAAO,EACL,KAAK,YAAY,EAIlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,6CAA6C;AAC7C,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,6EAA6E;IAC7E,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,iBAAiB;IACjB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAOD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,kBAAkB,CAAC;IACrE,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IACrC,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,aAAa,CAAC,CAAkB;IAExC;;;;OAIG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAED,yFAAyF;IACzF,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED,8DAA8D;IAC9D,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI7B;IAED,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI3B;IAEK,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAmQxC;IAED,yCAAyC;YAC3B,YAAY;IAQ1B,uFAAuF;YACzE,cAAc;IAY5B,6DAA6D;IAC7D,MAAM,CAAC,KAAK,IAAI,MAAM,CAErB;CACF"}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * git's bundle files (bundle.c, `Documentation/gitformat-bundle.adoc`): a header naming the
3
+ * refs the bundle carries and the commits it needs, then a pack.
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * // # v3 git bundle
8
+ * // @object-format=sha256
9
+ * // -<id> <subject> (a prerequisite)
10
+ * // <id> refs/heads/main (a ref)
11
+ * // (an empty line, then the pack)
12
+ * const header = parseBundleHeader(bytes);
13
+ * if (header.ok) for (const ref of header.header.references) console.log(ref.id, ref.name);
14
+ * ```
15
+ */
16
+ import { type ObjectFormat } from "@statewalker/vcs-utils/hash";
17
+ /** The first line of a v2 bundle. */
18
+ export declare const V2_BUNDLE_SIGNATURE = "# v2 git bundle\n";
19
+ /** The first line of a v3 bundle (capabilities may follow). */
20
+ export declare const V3_BUNDLE_SIGNATURE = "# v3 git bundle\n";
21
+ /** A ref a bundle carries (`<id> <refname>`). */
22
+ export interface BundleRef {
23
+ readonly id: string;
24
+ readonly name: string;
25
+ }
26
+ /** A commit a bundle needs (`-<id> <subject>`): its pack is thin against it. */
27
+ export interface BundlePrerequisite {
28
+ readonly id: string;
29
+ /** What follows the id on its line (the commit's subject), trimmed; never printed by git */
30
+ readonly comment: string;
31
+ }
32
+ /** A bundle's header (git's `struct bundle_header`). */
33
+ export interface BundleHeader {
34
+ readonly version: 2 | 3;
35
+ /** The `@object-format=` capability's hash (v3), else SHA-1 */
36
+ readonly objectFormat: ObjectFormat;
37
+ /** The `@filter=` capability's spec (v3): the pack is a partial clone's */
38
+ readonly filter?: string;
39
+ readonly prerequisites: readonly BundlePrerequisite[];
40
+ readonly references: readonly BundleRef[];
41
+ }
42
+ /** {@link parseBundleHeader}'s answer. */
43
+ export type ParsedBundleHeader = {
44
+ readonly ok: true;
45
+ readonly header: BundleHeader;
46
+ /** Where the pack starts (after the header's empty line; the end when it has none) */
47
+ readonly packOffset: number;
48
+ } | {
49
+ readonly ok: false;
50
+ /**
51
+ * git's `error:` line, without the prefix, where it reports one (a bad signature is
52
+ * reported by name: `'<name>' does not look like a v2 or v3 bundle file`)
53
+ */
54
+ readonly error: string;
55
+ /** The signature was not a bundle's (git's `is_bundle` is false) */
56
+ readonly notABundle: boolean;
57
+ };
58
+ /**
59
+ * bundle.c's `read_bundle_header_fd`: the signature, then lines up to an empty one (or the
60
+ * end): v3 capabilities (`@object-format=`, `@filter=`), prerequisites (`-<id>` optionally
61
+ * followed by a space and a comment) and refs (`<id> <name>`), each line right-trimmed.
62
+ * `name` is how a bad signature is reported (git's `report_path`).
63
+ *
64
+ * @example
65
+ * ```typescript
66
+ * const parsed = parseBundleHeader(bytes, "repo.bundle");
67
+ * if (!parsed.ok) console.error(`error: ${parsed.error}`);
68
+ * ```
69
+ */
70
+ export declare function parseBundleHeader(bytes: Uint8Array, name?: string): ParsedBundleHeader;
71
+ /**
72
+ * The header `create_bundle` writes: the signature (v3 with `@object-format=` and, for a
73
+ * filtered bundle, `@filter=`), `-<id> <comment>` per prerequisite, `<id> <name>` per ref,
74
+ * then the empty line the pack follows.
75
+ *
76
+ * @example
77
+ * ```typescript
78
+ * const bytes = encodeBundleHeader({ version: 2, objectFormat: SHA1_OBJECT_FORMAT,
79
+ * prerequisites: [], references: [{ id, name: "refs/heads/main" }] });
80
+ * ```
81
+ */
82
+ export declare function encodeBundleHeader(header: BundleHeader): Uint8Array;
83
+ /**
84
+ * bundle.c's `list_refs`: `<id> <name>` per ref, only those named in `names` when any are
85
+ * (exact names, as `git bundle list-heads <file> <refname>...` and `unbundle` take them).
86
+ * A prerequisite is listed with an empty name (`<id> `), as `git bundle verify` prints it.
87
+ */
88
+ export declare function listBundleRefs(refs: readonly (BundleRef | BundlePrerequisite)[], names?: readonly string[]): string;
89
+ //# sourceMappingURL=bundle-format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle-format.d.ts","sourceRoot":"","sources":["../../../src/commands/bundle/bundle-format.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AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,SAAa,GAAG,kBAAkB,CAkF1F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,UAAU,CAqBnE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,SAAS,CAAC,SAAS,GAAG,kBAAkB,CAAC,EAAE,EACjD,KAAK,GAAE,SAAS,MAAM,EAAO,GAC5B,MAAM,CAQR"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Bundle lists (bundle-uri.c): what a bundle URI or a server's `bundle-uri` answer describes.
3
+ * A list has a version (1), a mode (`all`: every bundle is needed; `any`: one is enough), an
4
+ * optional heuristic (`creationToken`: bundles ordered by a number, fetched newest first and
5
+ * applied oldest first) and bundles by id, each with a URI resolved against the list's own URI.
6
+ *
7
+ * Lists come in two shapes: the `key=value` lines of a v2 `bundle-uri` answer
8
+ * ({@link parseBundleListLine}, `bundle_uri_parse_line`) and a git config file a bundle URI
9
+ * serves instead of a bundle ({@link parseBundleListConfig}, `bundle_uri_parse_config_format`).
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const list = new BundleList("https://example.com/repo");
14
+ * parseBundleListLine(list, "bundle.one.uri=one.bundle");
15
+ * printBundleList(list); // "[bundle]\n\tversion = 1\n\tmode = all\n[bundle \"one\"]\n..."
16
+ * ```
17
+ */
18
+ /** One bundle of a list (`struct remote_bundle_info`). */
19
+ export interface RemoteBundleInfo {
20
+ /** The `<id>` of `bundle.<id>.*` */
21
+ readonly id: string;
22
+ /** `bundle.<id>.uri`, resolved against the list's base URI */
23
+ uri?: string;
24
+ /** `bundle.<id>.creationToken` (0 when unset or unparsable) */
25
+ creationToken: bigint;
26
+ /** The downloaded bytes (undefined: not tried yet; null: the download failed) */
27
+ file?: Uint8Array | null;
28
+ /** Applied, or given up on (`unbundled`) */
29
+ unbundled?: boolean;
30
+ }
31
+ /**
32
+ * A bundle list (`struct bundle_list`). Its bundles iterate in the order of git's hashmap
33
+ * (hashmap.c keyed by `strhash` of the id: 64 buckets growing fourfold past 80% load, each new
34
+ * entry first in its bucket), which decides the order bundles are downloaded and applied in.
35
+ */
36
+ export declare class BundleList {
37
+ version: number;
38
+ mode: "all" | "any";
39
+ heuristic?: "creationToken";
40
+ /** The URI relative bundle URIs resolve against */
41
+ baseURI?: string;
42
+ private table;
43
+ private count;
44
+ constructor(baseURI?: string);
45
+ /** The bundle `id` names (`hashmap_get_entry`), the first added on duplicates. */
46
+ get(id: string): RemoteBundleInfo | undefined;
47
+ /** Adds a bundle (`hashmap_add`: duplicates allowed). */
48
+ add(info: RemoteBundleInfo): void;
49
+ /** The bundles in git's iteration order (`for_all_bundles_in_list`). */
50
+ bundles(): RemoteBundleInfo[];
51
+ get size(): number;
52
+ }
53
+ /** What went wrong parsing a list: git's `error:`/`warning:` lines, in order. */
54
+ export interface BundleListMessages {
55
+ readonly lines: string[];
56
+ }
57
+ /**
58
+ * `bundle_list_update`: applies `bundle.<key>` = `value` (`value` undefined for a key written
59
+ * without `=`). Returns false where git returns -1 (a key outside `bundle.`, a version other
60
+ * than 1, an unknown mode, a second `uri`, a missing value: the last with git's `error:` line).
61
+ *
62
+ * @throws GitApiError git's `cannot strip one component off url` death of a relative URI
63
+ * climbing above the base
64
+ */
65
+ export declare function updateBundleList(list: BundleList, key: string, value: string | undefined, messages: string[]): boolean;
66
+ /**
67
+ * `bundle_uri_parse_line`: one `key=value` line of a `bundle-uri` answer applied to `list`.
68
+ * Returns git's `error:` line for a malformed line (empty, no `=`, an empty key or value),
69
+ * `""` for a line {@link updateBundleList} refuses, undefined when it was taken.
70
+ */
71
+ export declare function parseBundleListLine(list: BundleList, line: string, messages?: string[]): string | undefined;
72
+ /**
73
+ * `strbuf_strip_file_from_path`: the URI up to and including its last `/` (all of it when it
74
+ * has none).
75
+ */
76
+ export declare function stripFileFromPath(uri: string): string;
77
+ /**
78
+ * `bundle_uri_parse_config_format`: a list in git's config format, downloaded from `uri`
79
+ * (`name` is how git names the file in its `bad config line` error). The list's base URI is
80
+ * `uri` without its file name unless it has one already. Returns false where git returns
81
+ * nonzero (a line git's parser refuses, a key `bundle_list_update` refuses, a bundle without a
82
+ * URI), with git's lines in `messages`.
83
+ *
84
+ * @throws GitApiError a relative URI climbing above the base (git dies)
85
+ */
86
+ export declare function parseBundleListConfig(uri: string, bytes: Uint8Array, name: string, list: BundleList, messages: string[]): Promise<boolean>;
87
+ /**
88
+ * `print_bundle_list`: the list as a config file (the bundles in iteration order, a bundle
89
+ * without a URI as `# uri = (missing)`).
90
+ */
91
+ export declare function printBundleList(list: BundleList): string;
92
+ //# sourceMappingURL=bundle-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle-list.d.ts","sourceRoot":"","sources":["../../../src/commands/bundle/bundle-list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH,0DAA0D;AAC1D,MAAM,WAAW,gBAAgB;IAC/B,oCAAoC;IACpC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,aAAa,EAAE,MAAM,CAAC;IACtB,iFAAiF;IACjF,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AASD;;;;GAIG;AACH,qBAAa,UAAU;IACrB,OAAO,SAAK;IACZ,IAAI,EAAE,KAAK,GAAG,KAAK,CAAS;IAC5B,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,KAAK,CAGX;IACF,OAAO,CAAC,KAAK,CAAK;IAElB,YAAY,OAAO,CAAC,EAAE,MAAM,EAE3B;IAED,kFAAkF;IAClF,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAK5C;IAED,yDAAyD;IACzD,GAAG,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAYhC;IAED,wEAAwE;IACxE,OAAO,IAAI,gBAAgB,EAAE,CAE5B;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF;AAED,iFAAiF;AACjF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CA2DT;AAWD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE,MAAM,EAAO,GACtB,MAAM,GAAG,SAAS,CAUpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,OAAO,CAAC,CA8BlB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CASxD"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * `git bundle verify`, `git bundle list-heads` and `git bundle unbundle` (builtin/bundle.c):
3
+ * a bundle read, checked against the repository, listed, or its pack stored.
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * const bytes = await readFile(files, "repo.bundle");
8
+ * // git bundle verify repo.bundle
9
+ * const { exitCode, stdout, stderr } = await git.bundleVerify().setBundle(bytes, "repo.bundle").call();
10
+ * // git bundle list-heads repo.bundle refs/heads/main
11
+ * await git.bundleListHeads().setBundle(bytes).addRefName("refs/heads/main").call();
12
+ * // git bundle unbundle repo.bundle (then update refs from the printed list)
13
+ * const { refs } = await git.bundleUnbundle().setBundle(bytes).call();
14
+ * ```
15
+ */
16
+ import type { BundleHeader, BundleRef } from "./bundle-format.js";
17
+ import { BundleCommandBase } from "./bundle-support.js";
18
+ import { type BundleCommandResult, type BundleInput } from "./bundle-verify.js";
19
+ /** What a bundle command read. */
20
+ export interface BundleReadResult extends BundleCommandResult {
21
+ /** The bundle's header, once it was read */
22
+ header?: BundleHeader;
23
+ }
24
+ /** What `git bundle unbundle` did. */
25
+ export interface BundleUnbundleResult extends BundleReadResult {
26
+ /** The refs listed on stdout (all, or those named) */
27
+ refs: BundleRef[];
28
+ /** The pack stored (when the store keeps packs) */
29
+ packId?: string;
30
+ }
31
+ /** The setters every bundle reader takes. */
32
+ declare abstract class BundleReadCommand<T> extends BundleCommandBase<T> {
33
+ protected input?: BundleInput;
34
+ protected name: string;
35
+ protected readonly refNames: string[];
36
+ /**
37
+ * The bundle's bytes, and the name git reports it by (its path as given; `<stdin>` for
38
+ * `-`, the default).
39
+ */
40
+ setBundle(bundle: BundleInput, name?: string): this;
41
+ /** `[<refname>...]`: only these refs are listed (exact names). */
42
+ addRefName(name: string): this;
43
+ protected read(): Promise<{
44
+ ok: true;
45
+ bundle: import("./bundle-verify.js").OpenedBundle;
46
+ } | {
47
+ ok: false;
48
+ error: string;
49
+ }>;
50
+ }
51
+ /**
52
+ * `git bundle verify [-q] <file>`: the header read, every prerequisite present and connected
53
+ * to the refs (`error: Repository lacks these prerequisite commits:` and one `error: <id> `
54
+ * line per missing one, or `error: some prerequisite commits exist in the object store, but
55
+ * are not connected to the repository's history`; exit 1), what the bundle holds on stdout
56
+ * (unless quiet) and `<file> is okay` on stderr.
57
+ */
58
+ export declare class BundleVerifyCommand extends BundleReadCommand<BundleReadResult> {
59
+ private quiet;
60
+ /** `-q` / `--quiet`: no details on stdout, no line per missing prerequisite. */
61
+ setQuiet(quiet: boolean): this;
62
+ call(): Promise<BundleReadResult>;
63
+ }
64
+ /**
65
+ * `git bundle list-heads <file> [<refname>...]`: the bundle's refs, `<id> <name>` each
66
+ * (only those named). It reads no repository (git runs it outside one).
67
+ */
68
+ export declare class BundleListHeadsCommand extends BundleReadCommand<BundleReadResult> {
69
+ call(): Promise<BundleReadResult>;
70
+ }
71
+ /**
72
+ * `git bundle unbundle <file> [<refname>...]`: the bundle verified as `verify` does (its
73
+ * lines on failure, exit 1), its pack stored (kept as a pack, a filtered bundle's marked as a
74
+ * promisor pack, `from-bundle`), then its refs listed on stdout. No ref is written: the
75
+ * caller updates them from the list (as git's porcelain does).
76
+ */
77
+ export declare class BundleUnbundleCommand extends BundleReadCommand<BundleUnbundleResult> {
78
+ call(): Promise<BundleUnbundleResult>;
79
+ }
80
+ export {};
81
+ //# sourceMappingURL=bundle-read-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle-read-commands.d.ts","sourceRoot":"","sources":["../../../src/commands/bundle/bundle-read-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGjB,MAAM,oBAAoB,CAAC;AAE5B,kCAAkC;AAClC,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,4CAA4C;IAC5C,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,sCAAsC;AACtC,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,sDAAsD;IACtD,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,6CAA6C;AAC7C,uBAAe,iBAAiB,CAAC,CAAC,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IAC9D,SAAS,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAC9B,SAAS,CAAC,IAAI,SAAa;IAC3B,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAM;IAE3C;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,SAAY,GAAG,IAAI,CAKrD;IAED,kEAAkE;IAClE,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI7B;IAED,UAAgB,IAAI;;;;;;OAOnB;CACF;AAED;;;;;;GAMG;AACH,qBAAa,mBAAoB,SAAQ,iBAAiB,CAAC,gBAAgB,CAAC;IAC1E,OAAO,CAAC,KAAK,CAAS;IAEtB,gFAAgF;IAChF,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAEK,IAAI,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAkBtC;CACF;AAED;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,iBAAiB,CAAC,gBAAgB,CAAC;IACvE,IAAI,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAUtC;CACF;AAED;;;;;GAKG;AACH,qBAAa,qBAAsB,SAAQ,iBAAiB,CAAC,oBAAoB,CAAC;IAC1E,IAAI,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAkB1C;CACF"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * What the bundle commands share: bundle.c's `verify_bundle` and `unbundle` over the
3
+ * command's repository.
4
+ */
5
+ import { type ObjectId } from "@statewalker/vcs-core";
6
+ import { GitCommand } from "../../git-command.js";
7
+ import type { BundleHeader } from "./bundle-format.js";
8
+ import { type OpenedBundle, type VerifyBundleOptions } from "./bundle-verify.js";
9
+ /** The commands reading a bundle against the repository. */
10
+ export declare abstract class BundleCommandBase<T> extends GitCommand<T> {
11
+ /**
12
+ * bundle.c's `verify_bundle` against this repository (see {@link verifyBundleIn}).
13
+ */
14
+ protected verifyBundle(header: BundleHeader, options?: VerifyBundleOptions): Promise<{
15
+ ok: boolean;
16
+ stdout: string;
17
+ stderr: string;
18
+ }>;
19
+ /**
20
+ * bundle.c's `unbundle`: the bundle verified (git's lines on failure), then its pack
21
+ * indexed and kept (`index-pack --fix-thin --stdin`), a filtered bundle's marked as a
22
+ * promisor pack (`--promisor=from-bundle`).
23
+ */
24
+ protected unbundleInto(bundle: OpenedBundle, options?: VerifyBundleOptions): Promise<{
25
+ ok: boolean;
26
+ stderr: string;
27
+ packId?: string;
28
+ }>;
29
+ /** What `rev-list --all` starts from: every ref's value and HEAD's. */
30
+ protected allRefValues(): Promise<ObjectId[]>;
31
+ }
32
+ //# sourceMappingURL=bundle-support.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle-support.d.ts","sourceRoot":"","sources":["../../../src/commands/bundle/bundle-support.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA2B,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG/E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAkB,MAAM,oBAAoB,CAAC;AAEjG,4DAA4D;AAC5D,8BAAsB,iBAAiB,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IAC9D;;OAEG;IACH,UAAgB,YAAY,CAC1B,MAAM,EAAE,YAAY,EACpB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAU1D;IAED;;;;OAIG;IACH,UAAgB,YAAY,CAC1B,MAAM,EAAE,YAAY,EACpB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CA2B3D;IAED,uEAAuE;IACvE,UAAgB,YAAY,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAalD;CACF"}