@statewalker/vcs-commands 0.7.0 → 0.9.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 (568) hide show
  1. package/dist/commands/add-command.d.ts +70 -0
  2. package/dist/commands/add-command.d.ts.map +1 -1
  3. package/dist/commands/add-patch/add-patch.d.ts +7 -0
  4. package/dist/commands/add-patch/add-patch.d.ts.map +1 -1
  5. package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
  6. package/dist/commands/am/am-command.d.ts +102 -1
  7. package/dist/commands/am/am-command.d.ts.map +1 -1
  8. package/dist/commands/am/index.d.ts +1 -0
  9. package/dist/commands/am/index.d.ts.map +1 -1
  10. package/dist/commands/am/mailsplit.d.ts +88 -0
  11. package/dist/commands/am/mailsplit.d.ts.map +1 -0
  12. package/dist/commands/apply/apply-command.d.ts +2 -0
  13. package/dist/commands/apply/apply-command.d.ts.map +1 -1
  14. package/dist/commands/apply/apply-engine.d.ts.map +1 -1
  15. package/dist/commands/apply/apply-parse.d.ts +7 -0
  16. package/dist/commands/apply/apply-parse.d.ts.map +1 -1
  17. package/dist/commands/apply/index.d.ts +1 -1
  18. package/dist/commands/apply/index.d.ts.map +1 -1
  19. package/dist/commands/bisect/bisect-command.d.ts +2 -0
  20. package/dist/commands/bisect/bisect-command.d.ts.map +1 -1
  21. package/dist/commands/blame-command.d.ts +303 -8
  22. package/dist/commands/blame-command.d.ts.map +1 -1
  23. package/dist/commands/blame-ignore.d.ts +48 -0
  24. package/dist/commands/blame-ignore.d.ts.map +1 -0
  25. package/dist/commands/branch-command.d.ts +148 -18
  26. package/dist/commands/branch-command.d.ts.map +1 -1
  27. package/dist/commands/branch-info-command.d.ts +55 -0
  28. package/dist/commands/branch-info-command.d.ts.map +1 -0
  29. package/dist/commands/branch-tracking.d.ts +106 -17
  30. package/dist/commands/branch-tracking.d.ts.map +1 -1
  31. package/dist/commands/branch-upstream-command.d.ts +83 -0
  32. package/dist/commands/branch-upstream-command.d.ts.map +1 -0
  33. package/dist/commands/check-mailmap-command.d.ts +49 -0
  34. package/dist/commands/check-mailmap-command.d.ts.map +1 -0
  35. package/dist/commands/checkout-command.d.ts +26 -3
  36. package/dist/commands/checkout-command.d.ts.map +1 -1
  37. package/dist/commands/checkout-paths.d.ts +4 -0
  38. package/dist/commands/checkout-paths.d.ts.map +1 -1
  39. package/dist/commands/cherry-command.d.ts +61 -0
  40. package/dist/commands/cherry-command.d.ts.map +1 -0
  41. package/dist/commands/cherry-pick-command.d.ts +82 -1
  42. package/dist/commands/cherry-pick-command.d.ts.map +1 -1
  43. package/dist/commands/clean-command.d.ts +44 -0
  44. package/dist/commands/clean-command.d.ts.map +1 -1
  45. package/dist/commands/clean-interactive.d.ts +56 -0
  46. package/dist/commands/clean-interactive.d.ts.map +1 -0
  47. package/dist/commands/clone-command.d.ts +116 -2
  48. package/dist/commands/clone-command.d.ts.map +1 -1
  49. package/dist/commands/commit-command.d.ts +239 -5
  50. package/dist/commands/commit-command.d.ts.map +1 -1
  51. package/dist/commands/commit-reuse.d.ts +33 -0
  52. package/dist/commands/commit-reuse.d.ts.map +1 -0
  53. package/dist/commands/config-command.d.ts +236 -0
  54. package/dist/commands/config-command.d.ts.map +1 -0
  55. package/dist/commands/config-value-types.d.ts +91 -0
  56. package/dist/commands/config-value-types.d.ts.map +1 -0
  57. package/dist/commands/core-config.d.ts +20 -0
  58. package/dist/commands/core-config.d.ts.map +1 -1
  59. package/dist/commands/describe-command.d.ts +71 -64
  60. package/dist/commands/describe-command.d.ts.map +1 -1
  61. package/dist/commands/diff-color-config.d.ts +73 -0
  62. package/dist/commands/diff-color-config.d.ts.map +1 -0
  63. package/dist/commands/diff-command.d.ts +369 -10
  64. package/dist/commands/diff-command.d.ts.map +1 -1
  65. package/dist/commands/fetch-command.d.ts +80 -0
  66. package/dist/commands/fetch-command.d.ts.map +1 -1
  67. package/dist/commands/fetch-multiple-command.d.ts +193 -0
  68. package/dist/commands/fetch-multiple-command.d.ts.map +1 -0
  69. package/dist/commands/fmt-merge-msg-command.d.ts +124 -0
  70. package/dist/commands/fmt-merge-msg-command.d.ts.map +1 -0
  71. package/dist/commands/fork-point.d.ts +38 -0
  72. package/dist/commands/fork-point.d.ts.map +1 -0
  73. package/dist/commands/format-patch-command.d.ts +69 -3
  74. package/dist/commands/format-patch-command.d.ts.map +1 -1
  75. package/dist/commands/fsck/fetch-fsck.d.ts +51 -0
  76. package/dist/commands/fsck/fetch-fsck.d.ts.map +1 -1
  77. package/dist/commands/gc-command.d.ts +8 -0
  78. package/dist/commands/gc-command.d.ts.map +1 -1
  79. package/dist/commands/git-describe.d.ts +81 -4
  80. package/dist/commands/git-describe.d.ts.map +1 -1
  81. package/dist/commands/git-hooks.d.ts +50 -1
  82. package/dist/commands/git-hooks.d.ts.map +1 -1
  83. package/dist/commands/grep/grep-command.d.ts +210 -0
  84. package/dist/commands/grep/grep-command.d.ts.map +1 -0
  85. package/dist/commands/grep/grep-engine.d.ts +218 -0
  86. package/dist/commands/grep/grep-engine.d.ts.map +1 -0
  87. package/dist/commands/grep/index.d.ts +3 -0
  88. package/dist/commands/grep/index.d.ts.map +1 -0
  89. package/dist/commands/index-adder.d.ts +13 -2
  90. package/dist/commands/index-adder.d.ts.map +1 -1
  91. package/dist/commands/index.d.ts +38 -0
  92. package/dist/commands/index.d.ts.map +1 -1
  93. package/dist/commands/index.js +5 -3
  94. package/dist/commands/init-command.d.ts +89 -0
  95. package/dist/commands/init-command.d.ts.map +1 -1
  96. package/dist/commands/interpret-trailers-command.d.ts +90 -0
  97. package/dist/commands/interpret-trailers-command.d.ts.map +1 -0
  98. package/dist/commands/line-log.d.ts +161 -0
  99. package/dist/commands/line-log.d.ts.map +1 -0
  100. package/dist/commands/local-transport.d.ts +36 -5
  101. package/dist/commands/local-transport.d.ts.map +1 -1
  102. package/dist/commands/log-command.d.ts +527 -13
  103. package/dist/commands/log-command.d.ts.map +1 -1
  104. package/dist/commands/log-graph.d.ts +30 -3
  105. package/dist/commands/log-graph.d.ts.map +1 -1
  106. package/dist/commands/log-output.d.ts +199 -6
  107. package/dist/commands/log-output.d.ts.map +1 -1
  108. package/dist/commands/ls-remote-command.d.ts +2 -0
  109. package/dist/commands/ls-remote-command.d.ts.map +1 -1
  110. package/dist/commands/mailmap.d.ts +53 -0
  111. package/dist/commands/mailmap.d.ts.map +1 -1
  112. package/dist/commands/merge-base-command.d.ts +60 -0
  113. package/dist/commands/merge-base-command.d.ts.map +1 -0
  114. package/dist/commands/merge-bases.d.ts +23 -0
  115. package/dist/commands/merge-bases.d.ts.map +1 -1
  116. package/dist/commands/merge-command.d.ts +147 -10
  117. package/dist/commands/merge-command.d.ts.map +1 -1
  118. package/dist/commands/merge-drivers.d.ts +2 -0
  119. package/dist/commands/merge-drivers.d.ts.map +1 -1
  120. package/dist/commands/merge-strategy-options.d.ts +69 -0
  121. package/dist/commands/merge-strategy-options.d.ts.map +1 -0
  122. package/dist/commands/merge-support.d.ts +10 -0
  123. package/dist/commands/merge-support.d.ts.map +1 -1
  124. package/dist/commands/message-cleanup.d.ts +2 -0
  125. package/dist/commands/message-cleanup.d.ts.map +1 -1
  126. package/dist/commands/mv-command.d.ts +4 -0
  127. package/dist/commands/mv-command.d.ts.map +1 -1
  128. package/dist/commands/name-rev-command.d.ts +65 -0
  129. package/dist/commands/name-rev-command.d.ts.map +1 -0
  130. package/dist/commands/name-rev.d.ts +136 -0
  131. package/dist/commands/name-rev.d.ts.map +1 -0
  132. package/dist/commands/notes-command.d.ts.map +1 -1
  133. package/dist/commands/octopus-merge.d.ts +26 -1
  134. package/dist/commands/octopus-merge.d.ts.map +1 -1
  135. package/dist/commands/ort-merge.d.ts +16 -0
  136. package/dist/commands/ort-merge.d.ts.map +1 -1
  137. package/dist/commands/ort-recursive.d.ts.map +1 -1
  138. package/dist/commands/patch-id.d.ts +58 -0
  139. package/dist/commands/patch-id.d.ts.map +1 -1
  140. package/dist/commands/pathspec-file.d.ts +39 -0
  141. package/dist/commands/pathspec-file.d.ts.map +1 -0
  142. package/dist/commands/pathspec.d.ts +3 -0
  143. package/dist/commands/pathspec.d.ts.map +1 -1
  144. package/dist/commands/pretty-format.d.ts +43 -3
  145. package/dist/commands/pretty-format.d.ts.map +1 -1
  146. package/dist/commands/promisor-remote.d.ts.map +1 -1
  147. package/dist/commands/pull-command.d.ts +186 -32
  148. package/dist/commands/pull-command.d.ts.map +1 -1
  149. package/dist/commands/push-command.d.ts +225 -9
  150. package/dist/commands/push-command.d.ts.map +1 -1
  151. package/dist/commands/range-diff/index.d.ts +4 -0
  152. package/dist/commands/range-diff/index.d.ts.map +1 -0
  153. package/dist/commands/range-diff/linear-assignment.d.ts +27 -0
  154. package/dist/commands/range-diff/linear-assignment.d.ts.map +1 -0
  155. package/dist/commands/range-diff/range-diff-command.d.ts +121 -0
  156. package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -0
  157. package/dist/commands/range-diff/range-diff.d.ts +106 -0
  158. package/dist/commands/range-diff/range-diff.d.ts.map +1 -0
  159. package/dist/commands/read-tree-command.d.ts +20 -0
  160. package/dist/commands/read-tree-command.d.ts.map +1 -1
  161. package/dist/commands/rebase-command.d.ts +189 -8
  162. package/dist/commands/rebase-command.d.ts.map +1 -1
  163. package/dist/commands/ref-filter/for-each-ref-command.d.ts +121 -0
  164. package/dist/commands/ref-filter/for-each-ref-command.d.ts.map +1 -0
  165. package/dist/commands/ref-filter/index.d.ts +8 -0
  166. package/dist/commands/ref-filter/index.d.ts.map +1 -0
  167. package/dist/commands/ref-filter/ref-atoms.d.ts +88 -0
  168. package/dist/commands/ref-filter/ref-atoms.d.ts.map +1 -0
  169. package/dist/commands/ref-filter/ref-filter.d.ts +178 -0
  170. package/dist/commands/ref-filter/ref-filter.d.ts.map +1 -0
  171. package/dist/commands/ref-filter/ref-format.d.ts +222 -0
  172. package/dist/commands/ref-filter/ref-format.d.ts.map +1 -0
  173. package/dist/commands/ref-filter/ref-listing-command.d.ts +56 -0
  174. package/dist/commands/ref-filter/ref-listing-command.d.ts.map +1 -0
  175. package/dist/commands/ref-filter/ref-quote.d.ts +20 -0
  176. package/dist/commands/ref-filter/ref-quote.d.ts.map +1 -0
  177. package/dist/commands/ref-filter/version-compare.d.ts +20 -0
  178. package/dist/commands/ref-filter/version-compare.d.ts.map +1 -0
  179. package/dist/commands/reflog-command.d.ts +120 -0
  180. package/dist/commands/reflog-command.d.ts.map +1 -1
  181. package/dist/commands/reflog-walk.d.ts +72 -0
  182. package/dist/commands/reflog-walk.d.ts.map +1 -0
  183. package/dist/commands/remerge-diff.d.ts +59 -0
  184. package/dist/commands/remerge-diff.d.ts.map +1 -0
  185. package/dist/commands/remote-command.d.ts +179 -29
  186. package/dist/commands/remote-command.d.ts.map +1 -1
  187. package/dist/commands/remote-show-command.d.ts +204 -0
  188. package/dist/commands/remote-show-command.d.ts.map +1 -0
  189. package/dist/commands/remote-transport.d.ts +7 -1
  190. package/dist/commands/remote-transport.d.ts.map +1 -1
  191. package/dist/commands/reset-command.d.ts +21 -4
  192. package/dist/commands/reset-command.d.ts.map +1 -1
  193. package/dist/commands/restore-command.d.ts +9 -3
  194. package/dist/commands/restore-command.d.ts.map +1 -1
  195. package/dist/commands/rev-filter/commit-filter.d.ts +95 -0
  196. package/dist/commands/rev-filter/commit-filter.d.ts.map +1 -0
  197. package/dist/commands/rev-filter/commit-grep.d.ts +91 -0
  198. package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -0
  199. package/dist/commands/rev-filter/index.d.ts +3 -0
  200. package/dist/commands/rev-filter/index.d.ts.map +1 -0
  201. package/dist/commands/rev-list-command.d.ts +226 -2
  202. package/dist/commands/rev-list-command.d.ts.map +1 -1
  203. package/dist/commands/revert-command.d.ts +54 -1
  204. package/dist/commands/revert-command.d.ts.map +1 -1
  205. package/dist/commands/revision-range.d.ts +34 -1
  206. package/dist/commands/revision-range.d.ts.map +1 -1
  207. package/dist/commands/revision-resolver.d.ts +15 -0
  208. package/dist/commands/revision-resolver.d.ts.map +1 -1
  209. package/dist/commands/rm-command.d.ts +70 -2
  210. package/dist/commands/rm-command.d.ts.map +1 -1
  211. package/dist/commands/sequencer-pick.d.ts +186 -5
  212. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  213. package/dist/commands/sequencer-support.d.ts +12 -1
  214. package/dist/commands/sequencer-support.d.ts.map +1 -1
  215. package/dist/commands/serve-repository.d.ts +7 -0
  216. package/dist/commands/serve-repository.d.ts.map +1 -1
  217. package/dist/commands/shortlog-command.d.ts +109 -0
  218. package/dist/commands/shortlog-command.d.ts.map +1 -0
  219. package/dist/commands/shortlog.d.ts +151 -0
  220. package/dist/commands/shortlog.d.ts.map +1 -0
  221. package/dist/commands/show-command.d.ts +130 -0
  222. package/dist/commands/show-command.d.ts.map +1 -0
  223. package/dist/commands/show-commit.d.ts +11 -0
  224. package/dist/commands/show-commit.d.ts.map +1 -0
  225. package/dist/commands/signature-check.d.ts +164 -0
  226. package/dist/commands/signature-check.d.ts.map +1 -0
  227. package/dist/commands/signing.d.ts +160 -0
  228. package/dist/commands/signing.d.ts.map +1 -0
  229. package/dist/commands/sparse-checkout-command.d.ts.map +1 -1
  230. package/dist/commands/sparse-index-view.d.ts +45 -0
  231. package/dist/commands/sparse-index-view.d.ts.map +1 -0
  232. package/dist/commands/ssh-signer.d.ts +29 -0
  233. package/dist/commands/ssh-signer.d.ts.map +1 -0
  234. package/dist/commands/ssh-verifier.d.ts +42 -0
  235. package/dist/commands/ssh-verifier.d.ts.map +1 -0
  236. package/dist/commands/stash-apply-command.d.ts +5 -0
  237. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  238. package/dist/commands/stash-branch-command.d.ts +34 -0
  239. package/dist/commands/stash-branch-command.d.ts.map +1 -0
  240. package/dist/commands/stash-create-command.d.ts +17 -0
  241. package/dist/commands/stash-create-command.d.ts.map +1 -1
  242. package/dist/commands/stash-info.d.ts +93 -0
  243. package/dist/commands/stash-info.d.ts.map +1 -0
  244. package/dist/commands/stash-list-command.d.ts +16 -0
  245. package/dist/commands/stash-list-command.d.ts.map +1 -1
  246. package/dist/commands/stash-pop-command.d.ts +39 -0
  247. package/dist/commands/stash-pop-command.d.ts.map +1 -0
  248. package/dist/commands/stash-show-command.d.ts +48 -0
  249. package/dist/commands/stash-show-command.d.ts.map +1 -0
  250. package/dist/commands/stash-store-command.d.ts +29 -0
  251. package/dist/commands/stash-store-command.d.ts.map +1 -0
  252. package/dist/commands/stash-working-tree.d.ts.map +1 -1
  253. package/dist/commands/status-command.d.ts +31 -2
  254. package/dist/commands/status-command.d.ts.map +1 -1
  255. package/dist/commands/status-header.d.ts +5 -0
  256. package/dist/commands/status-header.d.ts.map +1 -1
  257. package/dist/commands/submodule-add-command.d.ts +89 -0
  258. package/dist/commands/submodule-add-command.d.ts.map +1 -0
  259. package/dist/commands/submodule-auth.d.ts +90 -0
  260. package/dist/commands/submodule-auth.d.ts.map +1 -0
  261. package/dist/commands/submodule-commands.d.ts +463 -0
  262. package/dist/commands/submodule-commands.d.ts.map +1 -0
  263. package/dist/commands/submodule-fetch.d.ts +149 -0
  264. package/dist/commands/submodule-fetch.d.ts.map +1 -0
  265. package/dist/commands/submodule-model.d.ts +296 -0
  266. package/dist/commands/submodule-model.d.ts.map +1 -0
  267. package/dist/commands/submodule-unpack.d.ts +120 -0
  268. package/dist/commands/submodule-unpack.d.ts.map +1 -0
  269. package/dist/commands/submodule-update-command.d.ts +206 -0
  270. package/dist/commands/submodule-update-command.d.ts.map +1 -0
  271. package/dist/commands/subtree-shift.d.ts +27 -0
  272. package/dist/commands/subtree-shift.d.ts.map +1 -0
  273. package/dist/commands/switch-command.d.ts +3 -0
  274. package/dist/commands/switch-command.d.ts.map +1 -1
  275. package/dist/commands/tag-command.d.ts +259 -10
  276. package/dist/commands/tag-command.d.ts.map +1 -1
  277. package/dist/commands/trailers.d.ts +218 -17
  278. package/dist/commands/trailers.d.ts.map +1 -1
  279. package/dist/commands/tree-restore.d.ts +7 -0
  280. package/dist/commands/tree-restore.d.ts.map +1 -1
  281. package/dist/commands/verify-command.d.ts +92 -0
  282. package/dist/commands/verify-command.d.ts.map +1 -0
  283. package/dist/commands/worktree-add-command.d.ts +79 -7
  284. package/dist/commands/worktree-add-command.d.ts.map +1 -1
  285. package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
  286. package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
  287. package/dist/commands/worktree-path-rules.d.ts +66 -0
  288. package/dist/commands/worktree-path-rules.d.ts.map +1 -0
  289. package/dist/commands/worktree-remove-command.d.ts +10 -3
  290. package/dist/commands/worktree-remove-command.d.ts.map +1 -1
  291. package/dist/commands/worktree-repair-command.d.ts +15 -2
  292. package/dist/commands/worktree-repair-command.d.ts.map +1 -1
  293. package/dist/commands/worktree-support.d.ts +5 -0
  294. package/dist/commands/worktree-support.d.ts.map +1 -1
  295. package/dist/{commands-DIJ91NnD.js → commands-CNvli5bl.js} +49442 -54941
  296. package/dist/errors/checkout-errors.d.ts +19 -0
  297. package/dist/errors/checkout-errors.d.ts.map +1 -1
  298. package/dist/errors/command-errors.d.ts +25 -0
  299. package/dist/errors/command-errors.d.ts.map +1 -1
  300. package/dist/errors/index.js +85 -3
  301. package/dist/errors/ref-errors.d.ts +19 -0
  302. package/dist/errors/ref-errors.d.ts.map +1 -1
  303. package/dist/errors/worktree-errors.d.ts +6 -1
  304. package/dist/errors/worktree-errors.d.ts.map +1 -1
  305. package/dist/fsck-CPeDh9fh.js +5138 -0
  306. package/dist/git-command.d.ts +58 -2
  307. package/dist/git-command.d.ts.map +1 -1
  308. package/dist/git.d.ts +363 -1
  309. package/dist/git.d.ts.map +1 -1
  310. package/dist/guarded-transport-command.d.ts +82 -0
  311. package/dist/guarded-transport-command.d.ts.map +1 -0
  312. package/dist/index.d.ts +1 -0
  313. package/dist/index.d.ts.map +1 -1
  314. package/dist/index.js +6 -5
  315. package/dist/remote-config/index.d.ts +1 -1
  316. package/dist/remote-config/index.d.ts.map +1 -1
  317. package/dist/remote-config/remote-config-store.d.ts +55 -0
  318. package/dist/remote-config/remote-config-store.d.ts.map +1 -1
  319. package/dist/remote-transport-CCmBadm-.js +1606 -0
  320. package/dist/rename/detect-renames.d.ts +20 -0
  321. package/dist/rename/detect-renames.d.ts.map +1 -1
  322. package/dist/rename/diffcore-break.d.ts +51 -0
  323. package/dist/rename/diffcore-break.d.ts.map +1 -0
  324. package/dist/rename/index.d.ts +1 -0
  325. package/dist/rename/index.d.ts.map +1 -1
  326. package/dist/results/blame-format.d.ts +62 -1
  327. package/dist/results/blame-format.d.ts.map +1 -1
  328. package/dist/results/clone-result.d.ts +9 -0
  329. package/dist/results/clone-result.d.ts.map +1 -1
  330. package/dist/results/combined-diff.d.ts +3 -0
  331. package/dist/results/combined-diff.d.ts.map +1 -1
  332. package/dist/results/diff-check.d.ts +38 -0
  333. package/dist/results/diff-check.d.ts.map +1 -0
  334. package/dist/results/diff-color.d.ts +135 -0
  335. package/dist/results/diff-color.d.ts.map +1 -0
  336. package/dist/results/diff-dirstat.d.ts +36 -0
  337. package/dist/results/diff-dirstat.d.ts.map +1 -0
  338. package/dist/results/diff-entry.d.ts +10 -0
  339. package/dist/results/diff-entry.d.ts.map +1 -1
  340. package/dist/results/diff-formatter.d.ts.map +1 -1
  341. package/dist/results/diff-output.d.ts +103 -1
  342. package/dist/results/diff-output.d.ts.map +1 -1
  343. package/dist/results/diff-pickaxe.d.ts +67 -0
  344. package/dist/results/diff-pickaxe.d.ts.map +1 -0
  345. package/dist/results/diff-words.d.ts +55 -0
  346. package/dist/results/diff-words.d.ts.map +1 -0
  347. package/dist/results/fetch-result.d.ts +12 -1
  348. package/dist/results/fetch-result.d.ts.map +1 -1
  349. package/dist/results/index.d.ts +6 -0
  350. package/dist/results/index.d.ts.map +1 -1
  351. package/dist/results/index.js +2 -2
  352. package/dist/results/init-result.d.ts +8 -1
  353. package/dist/results/init-result.d.ts.map +1 -1
  354. package/dist/results/line-range-hunks.d.ts +27 -0
  355. package/dist/results/line-range-hunks.d.ts.map +1 -0
  356. package/dist/results/merge-result.d.ts +8 -1
  357. package/dist/results/merge-result.d.ts.map +1 -1
  358. package/dist/results/pull-result.d.ts +11 -0
  359. package/dist/results/pull-result.d.ts.map +1 -1
  360. package/dist/results/push-result.d.ts +12 -0
  361. package/dist/results/push-result.d.ts.map +1 -1
  362. package/dist/results/rebase-result.d.ts +2 -0
  363. package/dist/results/rebase-result.d.ts.map +1 -1
  364. package/dist/results/stash-result.d.ts +6 -0
  365. package/dist/results/stash-result.d.ts.map +1 -1
  366. package/dist/results/status-result.d.ts +1 -1
  367. package/dist/results/status-result.d.ts.map +1 -1
  368. package/dist/results-BDuEgdLU.js +46847 -0
  369. package/dist/transport-command.d.ts +14 -0
  370. package/dist/transport-command.d.ts.map +1 -1
  371. package/dist/whitespace/index.d.ts +2 -0
  372. package/dist/whitespace/index.d.ts.map +1 -0
  373. package/dist/whitespace/whitespace-rule.d.ts +94 -0
  374. package/dist/whitespace/whitespace-rule.d.ts.map +1 -0
  375. package/package.json +12 -12
  376. package/src/commands/add-command.ts +293 -17
  377. package/src/commands/add-patch/add-patch.ts +8 -0
  378. package/src/commands/add-patch/patch-backend.ts +20 -2
  379. package/src/commands/am/am-command.ts +400 -46
  380. package/src/commands/am/index.ts +1 -0
  381. package/src/commands/am/mailsplit.ts +326 -0
  382. package/src/commands/apply/apply-command.ts +58 -15
  383. package/src/commands/apply/apply-engine.ts +1 -1
  384. package/src/commands/apply/apply-parse.ts +17 -8
  385. package/src/commands/apply/index.ts +8 -1
  386. package/src/commands/bisect/bisect-command.ts +18 -5
  387. package/src/commands/blame-command.ts +1450 -51
  388. package/src/commands/blame-ignore.ts +307 -0
  389. package/src/commands/branch-command.ts +528 -53
  390. package/src/commands/branch-info-command.ts +150 -0
  391. package/src/commands/branch-tracking.ts +335 -60
  392. package/src/commands/branch-upstream-command.ts +218 -0
  393. package/src/commands/check-mailmap-command.ts +129 -0
  394. package/src/commands/checkout-command.ts +166 -55
  395. package/src/commands/checkout-paths.ts +28 -0
  396. package/src/commands/cherry-command.ts +187 -0
  397. package/src/commands/cherry-pick-command.ts +185 -1
  398. package/src/commands/clean-command.ts +126 -15
  399. package/src/commands/clean-interactive.ts +522 -0
  400. package/src/commands/clone-command.ts +598 -45
  401. package/src/commands/commit-command.ts +925 -74
  402. package/src/commands/commit-reuse.ts +94 -0
  403. package/src/commands/config-command.ts +1256 -0
  404. package/src/commands/config-value-types.ts +358 -0
  405. package/src/commands/core-config.ts +40 -0
  406. package/src/commands/describe-command.ts +341 -254
  407. package/src/commands/diff-color-config.ts +274 -0
  408. package/src/commands/diff-command.ts +1619 -99
  409. package/src/commands/fetch-command.ts +495 -14
  410. package/src/commands/fetch-multiple-command.ts +665 -0
  411. package/src/commands/fmt-merge-msg-command.ts +715 -0
  412. package/src/commands/fork-point.ts +63 -0
  413. package/src/commands/format-patch-command.ts +496 -116
  414. package/src/commands/fsck/fetch-fsck.ts +172 -18
  415. package/src/commands/gc-command.ts +31 -1
  416. package/src/commands/git-describe.ts +460 -201
  417. package/src/commands/git-hooks.ts +123 -3
  418. package/src/commands/grep/grep-command.ts +1077 -0
  419. package/src/commands/grep/grep-engine.ts +1024 -0
  420. package/src/commands/grep/index.ts +2 -0
  421. package/src/commands/index-adder.ts +46 -7
  422. package/src/commands/index.ts +43 -0
  423. package/src/commands/init-command.ts +603 -49
  424. package/src/commands/interpret-trailers-command.ts +256 -0
  425. package/src/commands/line-log.ts +931 -0
  426. package/src/commands/local-transport.ts +109 -10
  427. package/src/commands/log-command.ts +2599 -326
  428. package/src/commands/log-graph.ts +129 -29
  429. package/src/commands/log-output.ts +449 -27
  430. package/src/commands/ls-remote-command.ts +5 -0
  431. package/src/commands/mailmap.ts +155 -0
  432. package/src/commands/merge-base-command.ts +170 -0
  433. package/src/commands/merge-bases.ts +63 -8
  434. package/src/commands/merge-command.ts +601 -95
  435. package/src/commands/merge-drivers.ts +3 -0
  436. package/src/commands/merge-strategy-options.ts +224 -0
  437. package/src/commands/merge-support.ts +115 -22
  438. package/src/commands/message-cleanup.ts +1 -1
  439. package/src/commands/mv-command.ts +6 -3
  440. package/src/commands/name-rev-command.ts +184 -0
  441. package/src/commands/name-rev.ts +762 -0
  442. package/src/commands/notes-command.ts +11 -1
  443. package/src/commands/octopus-merge.ts +35 -11
  444. package/src/commands/ort-merge.ts +41 -7
  445. package/src/commands/ort-recursive.ts +40 -2
  446. package/src/commands/patch-id.ts +109 -0
  447. package/src/commands/pathspec-file.ts +72 -0
  448. package/src/commands/pathspec.ts +14 -2
  449. package/src/commands/pretty-format.ts +103 -19
  450. package/src/commands/promisor-remote.ts +10 -1
  451. package/src/commands/pull-command.ts +734 -221
  452. package/src/commands/push-command.ts +1035 -68
  453. package/src/commands/range-diff/index.ts +3 -0
  454. package/src/commands/range-diff/linear-assignment.ts +203 -0
  455. package/src/commands/range-diff/range-diff-command.ts +433 -0
  456. package/src/commands/range-diff/range-diff.ts +617 -0
  457. package/src/commands/read-tree-command.ts +102 -4
  458. package/src/commands/rebase-command.ts +1074 -194
  459. package/src/commands/ref-filter/for-each-ref-command.ts +298 -0
  460. package/src/commands/ref-filter/index.ts +7 -0
  461. package/src/commands/ref-filter/ref-atoms.ts +581 -0
  462. package/src/commands/ref-filter/ref-filter.ts +651 -0
  463. package/src/commands/ref-filter/ref-format.ts +1070 -0
  464. package/src/commands/ref-filter/ref-listing-command.ts +421 -0
  465. package/src/commands/ref-filter/ref-quote.ts +69 -0
  466. package/src/commands/ref-filter/version-compare.ts +177 -0
  467. package/src/commands/reflog-command.ts +492 -2
  468. package/src/commands/reflog-walk.ts +234 -0
  469. package/src/commands/remerge-diff.ts +241 -0
  470. package/src/commands/remote-command.ts +537 -69
  471. package/src/commands/remote-show-command.ts +836 -0
  472. package/src/commands/remote-transport.ts +9 -1
  473. package/src/commands/reset-command.ts +114 -34
  474. package/src/commands/restore-command.ts +27 -41
  475. package/src/commands/rev-filter/commit-filter.ts +159 -0
  476. package/src/commands/rev-filter/commit-grep.ts +444 -0
  477. package/src/commands/rev-filter/index.ts +2 -0
  478. package/src/commands/rev-list-command.ts +578 -15
  479. package/src/commands/revert-command.ts +123 -1
  480. package/src/commands/revision-range.ts +207 -5
  481. package/src/commands/revision-resolver.ts +23 -8
  482. package/src/commands/rm-command.ts +282 -21
  483. package/src/commands/sequencer-pick.ts +818 -111
  484. package/src/commands/sequencer-support.ts +184 -4
  485. package/src/commands/serve-repository.ts +18 -3
  486. package/src/commands/shortlog-command.ts +354 -0
  487. package/src/commands/shortlog.ts +361 -0
  488. package/src/commands/show-command.ts +491 -0
  489. package/src/commands/show-commit.ts +24 -0
  490. package/src/commands/signature-check.ts +657 -0
  491. package/src/commands/signing.ts +385 -0
  492. package/src/commands/sparse-checkout-command.ts +2 -9
  493. package/src/commands/sparse-checkout-support.ts +2 -2
  494. package/src/commands/sparse-index-view.ts +135 -0
  495. package/src/commands/ssh-signer.ts +199 -0
  496. package/src/commands/ssh-verifier.ts +523 -0
  497. package/src/commands/stash-apply-command.ts +16 -4
  498. package/src/commands/stash-branch-command.ts +88 -0
  499. package/src/commands/stash-create-command.ts +28 -0
  500. package/src/commands/stash-info.ts +243 -0
  501. package/src/commands/stash-list-command.ts +33 -0
  502. package/src/commands/stash-pop-command.ts +83 -0
  503. package/src/commands/stash-show-command.ts +141 -0
  504. package/src/commands/stash-store-command.ts +82 -0
  505. package/src/commands/stash-working-tree.ts +2 -2
  506. package/src/commands/status-command.ts +120 -27
  507. package/src/commands/status-format.ts +1 -1
  508. package/src/commands/status-header.ts +41 -7
  509. package/src/commands/submodule-add-command.ts +509 -0
  510. package/src/commands/submodule-auth.ts +276 -0
  511. package/src/commands/submodule-commands.ts +1835 -0
  512. package/src/commands/submodule-fetch.ts +789 -0
  513. package/src/commands/submodule-model.ts +938 -0
  514. package/src/commands/submodule-unpack.ts +265 -0
  515. package/src/commands/submodule-update-command.ts +1126 -0
  516. package/src/commands/subtree-shift.ts +215 -0
  517. package/src/commands/switch-command.ts +12 -1
  518. package/src/commands/tag-command.ts +876 -64
  519. package/src/commands/trailers.ts +837 -100
  520. package/src/commands/tree-restore.ts +44 -11
  521. package/src/commands/verify-command.ts +235 -0
  522. package/src/commands/worktree-add-command.ts +268 -24
  523. package/src/commands/worktree-overwrite-checks.ts +5 -0
  524. package/src/commands/worktree-path-rules.ts +183 -0
  525. package/src/commands/worktree-remove-command.ts +39 -5
  526. package/src/commands/worktree-repair-command.ts +52 -5
  527. package/src/commands/worktree-support.ts +22 -1
  528. package/src/errors/checkout-errors.ts +29 -0
  529. package/src/errors/command-errors.ts +37 -1
  530. package/src/errors/ref-errors.ts +23 -0
  531. package/src/errors/worktree-errors.ts +8 -1
  532. package/src/git-command.ts +153 -2
  533. package/src/git.ts +550 -1
  534. package/src/guarded-transport-command.ts +171 -0
  535. package/src/index.ts +1 -0
  536. package/src/remote-config/index.ts +2 -0
  537. package/src/remote-config/remote-config-store.ts +101 -0
  538. package/src/rename/detect-renames.ts +42 -8
  539. package/src/rename/diffcore-break.ts +166 -0
  540. package/src/rename/index.ts +1 -0
  541. package/src/results/blame-format.ts +268 -43
  542. package/src/results/clone-result.ts +6 -0
  543. package/src/results/combined-diff.ts +38 -18
  544. package/src/results/diff-check.ts +185 -0
  545. package/src/results/diff-color.ts +868 -0
  546. package/src/results/diff-dirstat.ts +117 -0
  547. package/src/results/diff-entry.ts +12 -0
  548. package/src/results/diff-formatter.ts +1 -0
  549. package/src/results/diff-output.ts +322 -32
  550. package/src/results/diff-pickaxe.ts +304 -0
  551. package/src/results/diff-words.ts +395 -0
  552. package/src/results/fetch-result.ts +12 -1
  553. package/src/results/index.ts +6 -0
  554. package/src/results/init-result.ts +10 -1
  555. package/src/results/line-range-hunks.ts +126 -0
  556. package/src/results/merge-result.ts +9 -0
  557. package/src/results/pull-result.ts +7 -0
  558. package/src/results/push-result.ts +12 -0
  559. package/src/results/rebase-result.ts +3 -0
  560. package/src/results/stash-result.ts +7 -0
  561. package/src/results/status-result.ts +2 -2
  562. package/src/transport-command.ts +34 -3
  563. package/src/whitespace/index.ts +1 -0
  564. package/src/{commands/apply/whitespace.ts → whitespace/whitespace-rule.ts} +173 -23
  565. package/dist/commands/apply/whitespace.d.ts +0 -58
  566. package/dist/commands/apply/whitespace.d.ts.map +0 -1
  567. package/dist/git-command-BGiOJ8Zk.js +0 -7246
  568. package/dist/results-WVlBhVb1.js +0 -2935
@@ -0,0 +1,463 @@
1
+ /**
2
+ * `git submodule init`, `deinit`, `sync`, `set-url`, `set-branch` and `foreach`
3
+ * (builtin/submodule--helper.c), over the submodule model of `submodule-model.ts`.
4
+ *
5
+ * Each command gives what git prints (`stdout`, `stderr`) and its exit status; where git dies
6
+ * (`fatal:`, exit 128; a usage error, 129) the command throws {@link SubmoduleCommandError},
7
+ * whose `result` holds what was printed before.
8
+ */
9
+ import { type ObjectId } from "@statewalker/vcs-core";
10
+ import type { GitTransportRegistry } from "@statewalker/vcs-transport";
11
+ import { type FilesApi } from "@statewalker/vcs-utils/files";
12
+ import type { GitHostEnvironment, WorkingCopy } from "@statewalker/vcs-working-tree";
13
+ import { GitApiError } from "../errors/index.js";
14
+ import { GitCommand } from "../git-command.js";
15
+ import { SubmoduleModel, type SubmoduleSettings } from "./submodule-model.js";
16
+ /** How {@link SubmoduleCommandBase.cloneSubmodule} clones (submodule--helper's `clone`). */
17
+ export interface SubmoduleCloneOptions {
18
+ /** `--depth=<n>` */
19
+ depth?: number;
20
+ /** `--reference <repository>`s */
21
+ references?: string[];
22
+ /** `--require-init`: a non-empty directory at the path is refused */
23
+ requireInit?: boolean;
24
+ /** `--filter=<spec>` */
25
+ filter?: string;
26
+ /** `--single-branch` (true) / `--no-single-branch` (false) */
27
+ singleBranch?: boolean;
28
+ /**
29
+ * The transports and timeout the clone reaches its remote with. No credentials or headers
30
+ * are taken: a submodule's URL comes from the repository's content, so they are attached
31
+ * by the transports themselves, per URL and origin (`guardSubmoduleTransports`).
32
+ */
33
+ transports?: GitTransportRegistry;
34
+ timeout?: number;
35
+ }
36
+ /** What a submodule command printed, and its exit status. */
37
+ export interface SubmoduleCommandResult {
38
+ stdout: string;
39
+ stderr: string;
40
+ /** 0, or 1 where git returns 1 without dying (a pathspec that matched nothing) */
41
+ exitCode: number;
42
+ }
43
+ /**
44
+ * A submodule command died as git dies: `message` is git's last lines (`fatal: ...`, or
45
+ * `error: ...` and the usage), `result` what it printed before them.
46
+ */
47
+ export declare class SubmoduleCommandError extends GitApiError {
48
+ readonly result: SubmoduleCommandResult;
49
+ constructor(message: string, result: SubmoduleCommandResult, exitCode?: number);
50
+ }
51
+ /** One gitlink of the index (submodule--helper.c's `module_list` entry). */
52
+ export interface SubmoduleListEntry {
53
+ path: string;
54
+ /** The commit the index records */
55
+ id: ObjectId;
56
+ /** The entry's stage (0 unless the path is unmerged: git lists its first gitlink stage) */
57
+ stage: number;
58
+ }
59
+ /**
60
+ * The variables git clears for a submodule's child process (`local_repo_env`, config kept).
61
+ *
62
+ * @internal
63
+ */
64
+ export declare const SUBMODULE_UNSET_ENV: string[];
65
+ /** git's `sq_quote_buf`: `'...'`, a `'` or `!` inside written as `'\''` / `'\!'`. */
66
+ export declare function shellQuote(text: string): string;
67
+ /** Where `<path>/.git` leads (setup.c's `resolve_gitdir_gently`). */
68
+ interface ResolvedGitdir {
69
+ /**
70
+ * The repository directory as a physical FilesApi path (links followed); null when a gitfile
71
+ * or a `.git` link leads beyond the FilesApi
72
+ */
73
+ gitDir: string | null;
74
+ kind: "directory" | "gitfile";
75
+ }
76
+ /** setup.c's `READ_GITFILE_ERR_*` codes. */
77
+ type GitfileError = "missing" | "stat-failed" | "is-a-dir" | "not-a-file" | "too-large" | "read-failed" | "invalid-format" | "no-path" | "not-a-repo";
78
+ /**
79
+ * The parts every submodule command shares: output, the index's gitlinks, the model.
80
+ *
81
+ * @internal
82
+ */
83
+ export declare abstract class SubmoduleCommandBase extends GitCommand<SubmoduleCommandResult> {
84
+ protected quiet: boolean;
85
+ protected superPrefix: string;
86
+ protected compatibility: "2.43" | "2.56";
87
+ protected out: SubmoduleCommandResult;
88
+ private modelLoad?;
89
+ /** The `.gitmodules` warnings were printed already (by a command run before this one) */
90
+ protected modelWarningsShown: boolean;
91
+ /** `-q` / `--quiet`: leave out the progress lines. */
92
+ setQuiet(quiet: boolean): this;
93
+ /**
94
+ * The git version whose behaviour is reproduced where versions differ (default 2.56):
95
+ * `sync` looks up a submodule's remote by its URL first in 2.5x only.
96
+ */
97
+ setCompatibility(version: "2.43" | "2.56"): this;
98
+ /** @internal git's `--super-prefix`: what nested submodules' display paths start with. */
99
+ setSuperPrefix(prefix: string): this;
100
+ /** git's `validate_submodule_path`: dies (its `error:` line, exit 128) on a symlinked path. */
101
+ protected validatePath(path: string): Promise<void>;
102
+ protected displayPath(path: string): string;
103
+ /** Dies as git does: what was printed so far, then `message`. */
104
+ protected die(message: string, exitCode?: number): never;
105
+ /** The submodule model, read (and its warnings printed) when first asked for. */
106
+ protected model(): Promise<SubmoduleModel>;
107
+ /** Reads `.gitmodules` again on the next {@link model} (`repo_read_gitmodules`). */
108
+ protected forgetModel(): void;
109
+ /**
110
+ * git's `module_list_compute`: the index's gitlinks matching the pathspec, each once, in
111
+ * index order; a pathspec element matching nothing (whatever it matched: files count)
112
+ * gives git's error and exit status 1, and an empty list.
113
+ */
114
+ protected moduleList(paths: readonly string[]): Promise<SubmoduleListEntry[] | undefined>;
115
+ /** `git config <key> <value>` in the repository's own file (`repo_config_set_gently`). */
116
+ protected setConfig(key: string, value: string): Promise<void>;
117
+ /** The FilesApi path of a worktree path. */
118
+ protected filesPath(path: string): string;
119
+ protected kindOf(path: string): Promise<string | undefined>;
120
+ /** git's `stat(2)` kind of a worktree path: symbolic links on the way followed. */
121
+ protected kindThroughLinks(path: string): Promise<string | undefined>;
122
+ /** git's `config_set_in_gitmodules_file_gently` (`value` undefined unsets). */
123
+ protected setInGitmodules(key: string, value: string | undefined): Promise<boolean>;
124
+ /** The working copy of the populated submodule at `path`, undefined when not populated. */
125
+ protected openSubmodule(path: string): Promise<WorkingCopy | undefined>;
126
+ /**
127
+ * submodule--helper.c's `sync_submodule`: an active submodule's URL registered again from
128
+ * `.gitmodules` (resolved against the superproject's remote), and, when it is populated,
129
+ * written to the submodule's default remote (resolved from the submodule's place).
130
+ */
131
+ protected syncSubmodule(path: string, recursive: boolean): Promise<void>;
132
+ /**
133
+ * submodule--helper.c's `get_default_remote_submodule`: in git 2.5x the submodule's
134
+ * remote whose URL is the one `.gitmodules` gives, else (and always in 2.43) its default
135
+ * remote.
136
+ */
137
+ protected defaultRemoteOfSubmodule(sub: SubmoduleSettings, inner: WorkingCopy): Promise<string>;
138
+ /**
139
+ * submodule--helper.c's `create_default_gitdir_config`: the first of git's candidates for
140
+ * the submodule's git directory that no other submodule's `gitdir` names (the plain name,
141
+ * then its RFC 3986 encodings, with a digit appended, then the hash of the name) written to
142
+ * `submodule.<name>.gitdir`, unless that is set.
143
+ */
144
+ protected createDefaultGitdirConfig(name: string): Promise<void>;
145
+ /**
146
+ * submodule--helper.c's `clone_submodule`: `git clone --no-checkout --separate-git-dir
147
+ * <gitdir> -- <url> <path>` with `GIT_PROTOCOL_FROM_USER=0` (or, with the git directory
148
+ * kept, its index dropped), then `connect_work_tree_and_git_dir`.
149
+ */
150
+ protected cloneSubmodule(path: string, realrepo: string, gitDir: string, gitFiles: FilesApi, kept: boolean, options?: SubmoduleCloneOptions): Promise<void>;
151
+ /**
152
+ * submodule.c's `absorb_git_dir_into_superproject`: the submodule at `path` whose
153
+ * repository is a `.git` directory in its worktree gets it moved into the superproject's
154
+ * git directory (`.git/modules/<name>`, or `submodule.<name>.gitdir` under
155
+ * `extensions.submodulePathConfig`) and a gitfile in its place; one whose gitfile names no
156
+ * repository (its superproject's git directory moved under it) is connected again to
157
+ * where the repository now lives; nothing for one not populated. Then the same in its own
158
+ * submodules (`--super-prefix=<path>/`), as git's child `submodule--helper absorbgitdirs`.
159
+ */
160
+ protected absorbGitDirIntoSuperproject(path: string): Promise<void>;
161
+ protected filesOrFail(): FilesApi;
162
+ /**
163
+ * submodule.c's `relocate_single_git_dir_into_superproject`: the `.git` directory moved
164
+ * (git's `rename`, its result checked before anything else changes) to the submodule's
165
+ * place in the superproject's git directory, then the gitfile written and `core.worktree`
166
+ * set (`connect_work_tree_and_git_dir`). A gitfile needs no migration.
167
+ */
168
+ private relocateSingleGitDir;
169
+ /** `submodule_name_to_gitdir`, its deaths (and 2.43's refusal to move) as git's. */
170
+ private submoduleGitDir;
171
+ /**
172
+ * dir.c's `connect_work_tree_and_git_dir` (no nested ones): the gitfile at `<path>/.git`
173
+ * naming `gitDir` relative to the worktree, then `core.worktree` in `<gitDir>/config`
174
+ * naming the worktree relative to it (the directory created when missing, as git's
175
+ * `safe_create_leading_directories` of the config file).
176
+ */
177
+ protected connectWorkTreeAndGitDir(path: string, gitDir: string): Promise<void>;
178
+ /** git's child `submodule--helper absorbgitdirs --super-prefix=<prefix><path>/` there. */
179
+ private absorbNested;
180
+ /**
181
+ * setup.c's `resolve_gitdir_gently` of `<path>/.git`: a `.git` directory that is a
182
+ * repository, else what `read_gitfile_gently` makes of it (the repository a gitfile names,
183
+ * `gitDir` null when it lies beyond this FilesApi, or git's error code).
184
+ */
185
+ protected resolveGitdirGently(path: string): Promise<ResolvedGitdir | {
186
+ error: GitfileError;
187
+ }>;
188
+ /**
189
+ * worktree.c's `submodule_uses_worktrees`: whether the submodule's common git directory
190
+ * (its `commondir`) has anything in `worktrees/`.
191
+ */
192
+ private usesWorktrees;
193
+ /** git's `real_pathdup` of a FilesApi path: its host path, links resolved where possible. */
194
+ private realHostPath;
195
+ protected append(result: SubmoduleCommandResult): void;
196
+ protected start(): void;
197
+ protected finish(): SubmoduleCommandResult;
198
+ }
199
+ /** Flags of {@link SubmoduleHeadMover.moveHead} (submodule.c's `SUBMODULE_MOVE_HEAD_*`). */
200
+ export interface SubmoduleMoveHeadFlags {
201
+ /** `SUBMODULE_MOVE_HEAD_DRY_RUN`: only check (`read-tree -n`), change nothing */
202
+ dryRun?: boolean;
203
+ /** `SUBMODULE_MOVE_HEAD_FORCE`: local changes are thrown away (`read-tree --reset`) */
204
+ force?: boolean;
205
+ }
206
+ /**
207
+ * submodule.c's `submodule_move_head` for the unpack-trees runs of a superproject
208
+ * (`checkout`, `switch`, `reset`, `restore`, `read-tree` with `--recurse-submodules`): the
209
+ * submodule at a path moved from one commit to another (`null` for none: a submodule coming
210
+ * into existence or going away) by its own `read-tree --recurse-submodules` (in-process, the
211
+ * nested submodules moved the same way), its HEAD then detached at the new commit, or, for
212
+ * one going away, its gitfile removed, its directory if empty and its `core.worktree` unset.
213
+ * Its `error:` lines collect in the output ({@link takeStderr}); git's deaths throw
214
+ * `SubmoduleCommandError`. Not a command of its own.
215
+ *
216
+ * @internal
217
+ */
218
+ export declare class SubmoduleHeadMover extends SubmoduleCommandBase {
219
+ constructor(workingCopy: WorkingCopy, superPrefix: string);
220
+ call(): Promise<SubmoduleCommandResult>;
221
+ /** What was printed since the last call (git's immediate `error:` lines). */
222
+ takeStderr(): string;
223
+ /** `repo_read_gitmodules` again (after `.gitmodules` was checked out). */
224
+ reload(): void;
225
+ /** `submodule_from_ce` of a gitlink at `path`: `.gitmodules` names a submodule there. */
226
+ isSubmodule(path: string): Promise<boolean>;
227
+ /** git's `file_exists` (`lstat`) of a worktree path. */
228
+ exists(path: string): Promise<boolean>;
229
+ /** The kind of what `lstat` finds at a worktree path (`symlink` for a link). */
230
+ kind(path: string): Promise<string | undefined>;
231
+ /**
232
+ * A submodule path that is a symbolic link to a repository: git's stat follows it, finds the
233
+ * submodule populated and dies in `validate_submodule_path` before any change.
234
+ */
235
+ validateLinked(path: string): Promise<void>;
236
+ /** `is_submodule_populated_gently` (with an error pointer: never dies). */
237
+ populated(path: string): Promise<boolean>;
238
+ /** Whether `<path>/.git` is a repository directory (not absorbed into the superproject). */
239
+ hasGitDirectory(path: string): Promise<boolean>;
240
+ /** `submodule_move_head`; false where git's returns an error (its lines in the output). */
241
+ moveHead(path: string, oldHead: string | null, newHead: string | null, flags?: SubmoduleMoveHeadFlags): Promise<boolean>;
242
+ /**
243
+ * `is_submodule_populated_gently`: `<path>/.git` names a repository. Without `gentle`
244
+ * (no error code pointer) the gitfile errors `read_gitfile_error_die` dies on are deaths.
245
+ */
246
+ private populatedGently;
247
+ /** `submodule_has_dirty_index`: `git diff-index --quiet --cached HEAD` there fails. */
248
+ private hasDirtyIndex;
249
+ /**
250
+ * `submodule_uses_gitfile`: `<path>/.git` is a gitfile, and so is every populated nested
251
+ * submodule's (`submodule foreach --recursive test -f .git`).
252
+ */
253
+ private usesGitfile;
254
+ /**
255
+ * dir.c's `connect_work_tree_and_git_dir(path, gitDir, 1)`: the gitfile and `core.worktree`,
256
+ * then the same for every nested submodule `.gitmodules` names and that is active
257
+ * (`connect_wt_gitdir_in_nested`), populated or not.
258
+ */
259
+ private connectRecursively;
260
+ /**
261
+ * git's child `read-tree --super-prefix=<prefix><path>/ ...` in the submodule
262
+ * (`prepare_submodule_repo_env`: its own `.git`), `null` trees being the empty tree; its
263
+ * error lines go to the output. False when it failed.
264
+ */
265
+ private readTreeIn;
266
+ /** `git update-ref HEAD --no-deref <id>` in the submodule. */
267
+ private detachHead;
268
+ }
269
+ /**
270
+ * `git submodule init [-q] [<path>...]`: each submodule of the index (matching the paths)
271
+ * registered in `.git/config` from `.gitmodules`: `submodule.<name>.active` unless already
272
+ * active, its URL (a relative one resolved against the superproject's default remote, else
273
+ * its own directory with git's warning) unless one is registered, its update strategy unless
274
+ * one is set, and under `extensions.submodulePathConfig` its `submodule.<name>.gitdir`. With
275
+ * no paths and `submodule.active` set, only the active submodules.
276
+ *
277
+ * @example
278
+ * ```typescript
279
+ * const { stderr } = await git.submoduleInit().call();
280
+ * // "Submodule 'lib' (https://example.com/lib) registered for path 'lib'\n"
281
+ * ```
282
+ */
283
+ export declare class SubmoduleInitCommand extends SubmoduleCommandBase {
284
+ private readonly paths;
285
+ /** A path (pathspec element) limiting the submodules. */
286
+ addPath(path: string): this;
287
+ call(): Promise<SubmoduleCommandResult>;
288
+ private initSubmodule;
289
+ }
290
+ /**
291
+ * `git submodule deinit [-q] [-f] (--all | <path>...)`: each submodule's worktree emptied
292
+ * (a `.git` directory first absorbed into `.git/modules/<name>`, local changes refused
293
+ * without `-f` as `git rm -n` refuses them), its repository's `core.worktree` unset, an empty
294
+ * directory left, and its `submodule.<name>` section removed from `.git/config`.
295
+ *
296
+ * @example
297
+ * ```typescript
298
+ * const { stdout } = await git.submoduleDeinit().addPath("lib").call();
299
+ * // "Cleared directory 'lib'\nSubmodule 'lib' (../lib) unregistered for path 'lib'\n"
300
+ * ```
301
+ */
302
+ export declare class SubmoduleDeinitCommand extends SubmoduleCommandBase {
303
+ private readonly paths;
304
+ private force;
305
+ private all;
306
+ /** A path (pathspec element) naming the submodules to deinitialize. */
307
+ addPath(path: string): this;
308
+ /** `-f`: remove the worktrees even with local changes. */
309
+ setForce(force: boolean): this;
310
+ /** `--all`: every submodule (no path may be given). */
311
+ setAll(all: boolean): this;
312
+ call(): Promise<SubmoduleCommandResult>;
313
+ private deinitSubmodule;
314
+ /**
315
+ * Whether the configuration holds a `submodule.<name>.*` variable (git runs `git config
316
+ * --get-regexp 'submodule.<name>\.'`; the name is compared as a string, never compiled
317
+ * into a pattern: a name from `.gitmodules` is untrusted).
318
+ */
319
+ private registered;
320
+ /** submodule.c's `submodule_unset_core_worktree`. */
321
+ private unsetCoreWorktree;
322
+ }
323
+ /**
324
+ * `git submodule absorbgitdirs [-q] [<path>...]` (submodule--helper's `absorbgitdirs`): each
325
+ * submodule of the index (matching the paths) whose repository is a `.git` directory in its
326
+ * worktree gets it moved into the superproject's git directory (`.git/modules/<name>`, or
327
+ * `submodule.<name>.gitdir` under `extensions.submodulePathConfig`), a gitfile and
328
+ * `core.worktree` linking the two, then the same for its own submodules, at every depth.
329
+ * git prints each move on stderr whatever `-q` says.
330
+ *
331
+ * @example
332
+ * ```typescript
333
+ * const { stderr } = await git.submoduleAbsorbGitDirs().call();
334
+ * // "Migrating git directory of 'lib' from\n'/w/sup/lib/.git' to\n'/w/sup/.git/modules/lib'\n"
335
+ * ```
336
+ */
337
+ export declare class SubmoduleAbsorbGitDirsCommand extends SubmoduleCommandBase {
338
+ private readonly paths;
339
+ /** A path (pathspec element) limiting the submodules. */
340
+ addPath(path: string): this;
341
+ call(): Promise<SubmoduleCommandResult>;
342
+ /**
343
+ * @internal `absorb_git_dir_into_superproject` of the submodule at `path` alone (no
344
+ * pathspec, no module list), as `git rm` runs it before removing a submodule.
345
+ */
346
+ callForPath(path: string): Promise<SubmoduleCommandResult>;
347
+ }
348
+ /**
349
+ * `git submodule sync [-q] [--recursive] [<path>...]`: each active submodule's URL
350
+ * registered again in `.git/config` from `.gitmodules`, and written to the default remote of
351
+ * a populated submodule (a relative URL resolved from the submodule's own place; in git 2.5x
352
+ * the remote already naming that URL first). `--recursive` goes on in each populated
353
+ * submodule's own submodules.
354
+ *
355
+ * @example
356
+ * ```typescript
357
+ * const { stdout } = await git.submoduleSync().setRecursive(true).call();
358
+ * // "Synchronizing submodule url for 'lib'\nSynchronizing submodule url for 'lib/nested'\n"
359
+ * ```
360
+ */
361
+ export declare class SubmoduleSyncCommand extends SubmoduleCommandBase {
362
+ private readonly paths;
363
+ private recursive;
364
+ /** A path (pathspec element) limiting the submodules. */
365
+ addPath(path: string): this;
366
+ /** `--recursive`: sync nested submodules too. */
367
+ setRecursive(recursive: boolean): this;
368
+ call(): Promise<SubmoduleCommandResult>;
369
+ }
370
+ /**
371
+ * `git submodule set-url [-q] <path> <newurl>`: the submodule's `url` in `.gitmodules` set
372
+ * (the file is not staged), then synced as `git submodule sync` does.
373
+ *
374
+ * @example
375
+ * ```typescript
376
+ * await git.submoduleSetUrl().setPath("lib").setUrl("../new-lib").call();
377
+ * ```
378
+ */
379
+ export declare class SubmoduleSetUrlCommand extends SubmoduleCommandBase {
380
+ private path?;
381
+ private url?;
382
+ setPath(path: string): this;
383
+ setUrl(url: string): this;
384
+ call(): Promise<SubmoduleCommandResult>;
385
+ }
386
+ /**
387
+ * `git submodule set-branch (-b <branch> | -d) <path>`: the submodule's `branch` in
388
+ * `.gitmodules` set, or removed with `-d` (exit status 1 when there was none).
389
+ *
390
+ * @example
391
+ * ```typescript
392
+ * await git.submoduleSetBranch().setPath("lib").setBranch("stable").call();
393
+ * ```
394
+ */
395
+ export declare class SubmoduleSetBranchCommand extends SubmoduleCommandBase {
396
+ private path?;
397
+ private branch?;
398
+ private useDefault;
399
+ setPath(path: string): this;
400
+ /** `-b <branch>`. */
401
+ setBranch(branch: string): this;
402
+ /** `-d`: back to the default (the setting removed). */
403
+ setDefault(useDefault: boolean): this;
404
+ call(): Promise<SubmoduleCommandResult>;
405
+ }
406
+ /** What a {@link SubmoduleForeachCommand} callback is given (git's variables). */
407
+ export interface SubmoduleForeachContext {
408
+ /** `$name`: the submodule's name in `.gitmodules` */
409
+ name: string;
410
+ /** `$sm_path`: its path in the superproject running the command */
411
+ path: string;
412
+ /** `$displaypath`: its path from the top superproject */
413
+ displayPath: string;
414
+ /** `$sha1`: the commit the superproject's index records */
415
+ sha1: ObjectId;
416
+ /** `$toplevel`: the host path of the superproject running the command */
417
+ toplevel: string | undefined;
418
+ /** The submodule's working copy */
419
+ workingCopy: WorkingCopy;
420
+ }
421
+ /** A callback run in each submodule in place of a command. */
422
+ export type SubmoduleForeachCallback = (context: SubmoduleForeachContext) => Promise<SubmoduleForeachOutcome | undefined | void>;
423
+ /** What a callback reports back: a non-zero `exitCode` stops the walk as git dies. */
424
+ export interface SubmoduleForeachOutcome {
425
+ exitCode?: number;
426
+ stdout?: string;
427
+ stderr?: string;
428
+ }
429
+ /**
430
+ * `git submodule foreach [-q] [--recursive] <command>`: in each populated submodule (index
431
+ * order), `Entering '<displaypath>'` and the command, run through the host's command runner
432
+ * (`GitHostEnvironment.hookRunner`) as git runs it: one argument through the shell with
433
+ * `$name`, `$sm_path`, `$displaypath`, `$sha1`, `$toplevel` (and `$path`) set, several as
434
+ * an argument list; `GIT_DIR=.git` and the repository variables cleared. A callback may take
435
+ * the command's place. A command that fails stops the walk (git's "run_command returned
436
+ * non-zero status"); `--recursive` runs it in nested submodules after their parent.
437
+ *
438
+ * @example
439
+ * ```typescript
440
+ * await git.submoduleForeach().setCommand(["git pull"]).call();
441
+ * await git.submoduleForeach().setCallback(async ({ name, sha1 }) => {
442
+ * console.log(name, sha1);
443
+ * }).call();
444
+ * ```
445
+ */
446
+ export declare class SubmoduleForeachCommand extends SubmoduleCommandBase {
447
+ private command;
448
+ private callback?;
449
+ private recursive;
450
+ /** The command and its arguments (git's `<command>...`). */
451
+ setCommand(command: string[]): this;
452
+ /** A callback run in place of a command. */
453
+ setCallback(callback: SubmoduleForeachCallback): this;
454
+ /** `--recursive`: nested submodules too. */
455
+ setRecursive(recursive: boolean): this;
456
+ call(): Promise<SubmoduleCommandResult>;
457
+ /** The command in the submodule, through the host's runner; its exit status. */
458
+ private runCommand;
459
+ }
460
+ /** The environment with `GIT_PROTOCOL_FROM_USER=0` (git-submodule.sh exports it). */
461
+ export declare function notFromUser(environment: GitHostEnvironment): GitHostEnvironment;
462
+ export {};
463
+ //# sourceMappingURL=submodule-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submodule-commands.d.ts","sourceRoot":"","sources":["../../src/commands/submodule-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAY,KAAK,QAAQ,EAAkB,MAAM,uBAAuB,CAAC;AAEhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,EAAE,KAAK,QAAQ,EAAgC,MAAM,8BAA8B,CAAC;AAE3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAErF,OAAO,EAAE,WAAW,EAAiB,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAc/C,OAAO,EAYL,cAAc,EACd,KAAK,iBAAiB,EAUvB,MAAM,sBAAsB,CAAC;AAE9B,4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AI,CAIpD;IAED,4CAA4C;IAC5C,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAIrC;IAEK,IAAI,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAoD5C;IAED,gFAAgF;YAClE,UAAU;CAkCzB;AAOD,qFAAqF;AACrF,wBAAgB,WAAW,CAAC,WAAW,EAAE,kBAAkB,GAAG,kBAAkB,CAI/E"}
@@ -0,0 +1,149 @@
1
+ /**
2
+ * `git fetch --recurse-submodules` (submodule.c `fetch_submodules`,
3
+ * `calculate_changed_submodule_paths`, `collect_changed_submodules`, `get_next_submodule`,
4
+ * `fetch_finish`): after the superproject's fetch, which submodules are fetched, in git's
5
+ * order, with git's lines. The fetches themselves are the caller's (a `FetchCommand` in the
6
+ * submodule, given by {@link SubmoduleFetchOptions.runFetch}), so this module knows nothing
7
+ * of transports or credentials.
8
+ *
9
+ * Submodules are fetched one after another: git's `submodule.fetchJobs` / `-j` only change
10
+ * how many run at once, and with one job git's output is this order.
11
+ */
12
+ import { type ObjectId } from "@statewalker/vcs-core";
13
+ import type { WorkingCopy } from "@statewalker/vcs-working-tree";
14
+ import { GitCommand } from "../git-command.js";
15
+ import type { FetchResult } from "../results/fetch-result.js";
16
+ /**
17
+ * How far a fetch recurses into submodules (git's `RECURSE_SUBMODULES_ON`, `_ON_DEMAND`,
18
+ * `_OFF`): every populated submodule, only those whose recorded commits the fetch brought
19
+ * changes to, or none.
20
+ */
21
+ export type FetchRecurseSubmodules = "yes" | "on-demand" | "no";
22
+ /**
23
+ * git's `parse_fetch_recurse_submodules_arg`: a boolean, or `on-demand`; anything else dies
24
+ * `bad <key> argument: <value>`. A variable without a value is true.
25
+ */
26
+ export declare function parseFetchRecurseSubmodules(key: string, value: string | undefined): FetchRecurseSubmodules;
27
+ /** One fetch {@link fetchSubmodules} asks for (git's child `git fetch`). */
28
+ export interface SubmoduleFetchTask {
29
+ /** The submodule's repository */
30
+ workingCopy: WorkingCopy;
31
+ /** `--recurse-submodules-default`: the child's own default */
32
+ defaultMode: "yes" | "on-demand";
33
+ /** `--submodule-prefix` of the child: the path its nested submodules are shown under */
34
+ prefix: string;
35
+ /** git runs the child with `--work-tree=.` (a submodule only the fetched history records) */
36
+ workTreeDot?: boolean;
37
+ /** For the fetch of missing commits: the remote and the commits named on its command line */
38
+ remote?: string;
39
+ commits?: ObjectId[];
40
+ }
41
+ /** What a submodule's fetch did: git's stderr text and whether it exited 0. */
42
+ export interface SubmoduleFetchRun {
43
+ text: string;
44
+ ok: boolean;
45
+ result?: FetchResult;
46
+ }
47
+ /** What {@link fetchSubmodules} needs from the superproject's fetch. */
48
+ export interface SubmoduleFetchOptions {
49
+ /** `config.recurse_submodules` (the command line, else the configuration); undefined: none */
50
+ commandLine?: FetchRecurseSubmodules;
51
+ /** `--recurse-submodules-default` (on-demand for a fetch run by hand) */
52
+ defaultMode: "yes" | "on-demand";
53
+ /** `--submodule-prefix` */
54
+ prefix: string;
55
+ /** `-q`: no `Fetching submodule` lines */
56
+ quiet: boolean;
57
+ /** Every ref's value before the fetch stored its refs (`ref_tips_before_fetch`) */
58
+ tipsBefore: readonly ObjectId[];
59
+ /** The ref map's new values (`ref_tips_after_fetch`) */
60
+ tipsAfter: readonly ObjectId[];
61
+ compatibility: "2.43" | "2.56";
62
+ /** Runs one child fetch */
63
+ runFetch(task: SubmoduleFetchTask): Promise<SubmoduleFetchRun>;
64
+ }
65
+ /** What the recursion printed (git's stderr), whether it failed, and each child's result. */
66
+ export interface SubmoduleFetchOutcome {
67
+ output: string;
68
+ failed: boolean;
69
+ /** The results by submodule path (the first fetch of each) */
70
+ results: Map<string, FetchResult>;
71
+ }
72
+ /**
73
+ * The repository questions the recursion asks, as git's `the_repository` and the submodule
74
+ * repositories answer them.
75
+ *
76
+ * @internal
77
+ */
78
+ export declare class SubmoduleFetchRepository extends GitCommand<never> {
79
+ call(): Promise<never>;
80
+ /** Every ref's value under `refs/` (`refs_for_each_ref`), symbolic refs resolved. */
81
+ refTips(): Promise<Map<string, ObjectId>>;
82
+ /** HEAD's full ref name (`refs/heads/x`), `HEAD` when detached, undefined when unreadable. */
83
+ headRef(): Promise<string | undefined>;
84
+ /** HEAD's commit, if any. */
85
+ head(): Promise<ObjectId | undefined>;
86
+ /** The commit an id names through tags, undefined for anything else. */
87
+ peelToCommit(id: ObjectId): Promise<ObjectId | undefined>;
88
+ /** The type of a non-commit object here, undefined when absent (or a commit). */
89
+ objectTypeOf(id: ObjectId): Promise<"tag" | "tree" | "blob" | undefined>;
90
+ hasCommit(id: ObjectId): Promise<boolean>;
91
+ private commit;
92
+ /**
93
+ * The commits `include --not exclude` lists, in the order git's default (limited) revision
94
+ * walk returns them: commits popped newest first by committer date, those an excluded
95
+ * commit reaches dropped.
96
+ */
97
+ walk(include: readonly ObjectId[], exclude: readonly ObjectId[]): Promise<ObjectId[]>;
98
+ /**
99
+ * The gitlinks a commit's combined diff against its parents records (`diff_tree_combined`):
100
+ * none for a root commit; for a merge, the paths that differ from every parent.
101
+ */
102
+ changedGitlinks(id: ObjectId): Promise<Map<string, ObjectId>>;
103
+ private entries;
104
+ private diffGitlinks;
105
+ /** Whether every commit exists here and a ref (or HEAD) reaches it (`rev-list --not --all`). */
106
+ reachesAll(commits: readonly ObjectId[]): Promise<boolean>;
107
+ /** Whether every commit exists here and one of `tips` reaches it. */
108
+ reachesAllFrom(commits: readonly ObjectId[], tips: readonly ObjectId[]): Promise<boolean>;
109
+ /** The values of the refs below `prefix` (`--remotes`, `--remotes=<name>`). */
110
+ refTipsUnder(prefix: string): Promise<ObjectId[]>;
111
+ /** git's DEFAULT_ABBREV abbreviation of an id of this repository. */
112
+ abbreviate(id: ObjectId): Promise<string>;
113
+ /** The gitlinks of the index, in index order (`cache_nr` loop). */
114
+ indexGitlinks(): Promise<string[]>;
115
+ /** `is_submodule_populated_gently`: `<path>/.git` names a repository. */
116
+ populated(path: string): Promise<boolean>;
117
+ /** `is_empty_dir(<worktree>/<path>/)`: a directory without entries (missing: not empty). */
118
+ emptyDirectory(path: string): Promise<boolean>;
119
+ /** Whether `<git dir>/modules/` exists and holds something (`repo_has_absorbed_submodules`). */
120
+ hasAbsorbedSubmodules(): Promise<boolean>;
121
+ /** The submodule's repository (`repo_submodule_init`: `<path>/.git`, else `modules/<name>`). */
122
+ open(path: string, name: string | undefined): Promise<WorkingCopy | undefined>;
123
+ /** Whether the repository has a worktree (a bare one's working copy refuses to give one). */
124
+ hasWorktree(): boolean;
125
+ }
126
+ /**
127
+ * submodule.c's `fetch_submodules`: the submodules to fetch, each fetched (see the module's
128
+ * notes), and git's lines: `Fetching submodule <prefix><path>` before each fetch of the
129
+ * index's submodules, `... at commit <abbrev>` for one only the fetched history records,
130
+ * `Could not access submodule ...`, a second fetch of the recorded commits still missing
131
+ * (`<remote> <commit>...`), and `Errors during submodule fetch:` with each failed one.
132
+ *
133
+ * @throws GitApiError where git dies (a symlinked submodule path, a bad
134
+ * `submodule.<name>.fetchRecurseSubmodules`)
135
+ */
136
+ export declare function fetchSubmodules(workingCopy: WorkingCopy, options: SubmoduleFetchOptions): Promise<SubmoduleFetchOutcome>;
137
+ /**
138
+ * submodule.c's `find_unpushed_submodules`: the paths (sorted) of the submodules whose
139
+ * commits recorded by `commits --not --remotes=<remote>` are in the submodule but on none of
140
+ * its remote-tracking refs (a submodule with none is left alone, as one lacking the commits).
141
+ * `warn` gets git's collision warnings.
142
+ */
143
+ export declare function findUnpushedSubmodules(workingCopy: WorkingCopy, commits: readonly ObjectId[], remoteName: string, warn: (line: string) => void): Promise<string[]>;
144
+ /**
145
+ * submodule.c's `submodule_touches_in_range`: how many submodules the commits `include --not
146
+ * exclude` record new commits for (0 when `.gitmodules` names none).
147
+ */
148
+ export declare function submoduleTouchesInRange(workingCopy: WorkingCopy, exclude: ObjectId | undefined, include: ObjectId): Promise<number>;
149
+ //# sourceMappingURL=submodule-fetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submodule-fetch.d.ts","sourceRoot":"","sources":["../../src/commands/submodule-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