@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,296 @@
1
+ /**
2
+ * The submodule configuration git's submodule-config.c and submodule.c read: the
3
+ * `.gitmodules` file (from the worktree, the index, HEAD or a commit, with git's precedence
4
+ * and checks), the `submodule.<name>.*` settings of the repository's configuration over it,
5
+ * the lookups by name and by path, a submodule's git directory (`.git/modules/<name>`, or
6
+ * `submodule.<name>.gitdir` under `extensions.submodulePathConfig`) and whether it is
7
+ * active. The submodule commands (`init`, `deinit`, `sync`, `set-url`, `set-branch`,
8
+ * `foreach`) are built on it.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * const model = await SubmoduleModel.load(workingCopy);
13
+ * const sub = model.fromPath("libs/lib"); // { name: "lib", path: "libs/lib", url: "../lib" }
14
+ * model.isActive("libs/lib"); // submodule.lib.active, submodule.active, or a url in .git/config
15
+ * await model.gitDirOf("lib"); // ".git/modules/lib"
16
+ * ```
17
+ */
18
+ import { type ObjectId } from "@statewalker/vcs-core";
19
+ import { GitWorkingCopyConfig } from "@statewalker/vcs-store-files";
20
+ import type { FilesApi } from "@statewalker/vcs-utils/files";
21
+ import { type WorkingCopy } from "@statewalker/vcs-working-tree";
22
+ import { GitApiError } from "../errors/index.js";
23
+ import { RemoteConfigStore } from "../remote-config/index.js";
24
+ import { type SubmoduleIgnoreMode } from "./submodule-config.js";
25
+ /** How `git submodule update` brings a submodule to its recorded commit (`submodule.<name>.update`). */
26
+ export type SubmoduleUpdateType = "checkout" | "rebase" | "merge" | "none" | "command";
27
+ /** An update strategy (git's `struct submodule_update_strategy`). */
28
+ export interface SubmoduleUpdateStrategy {
29
+ type: SubmoduleUpdateType;
30
+ /** The command of `!<command>` */
31
+ command?: string;
32
+ }
33
+ /** `submodule.<name>.fetchRecurseSubmodules` as git parses it. */
34
+ export type SubmoduleFetchRecurse = "on" | "off" | "on-demand";
35
+ /** One submodule of a `.gitmodules` (git's `struct submodule`). */
36
+ export interface SubmoduleSettings {
37
+ name: string;
38
+ path?: string;
39
+ url?: string;
40
+ branch?: string;
41
+ ignore?: SubmoduleIgnoreMode;
42
+ update?: SubmoduleUpdateStrategy;
43
+ fetchRecurseSubmodules?: SubmoduleFetchRecurse;
44
+ /** `submodule.<name>.shallow` */
45
+ shallow?: boolean;
46
+ }
47
+ /** git's `parse_submodule_update_strategy`: undefined for a value it refuses. */
48
+ export declare function parseSubmoduleUpdateStrategy(value: string): SubmoduleUpdateStrategy | undefined;
49
+ /** git's `submodule_update_type_to_string`. */
50
+ export declare function submoduleUpdateTypeName(strategy: SubmoduleUpdateStrategy): string;
51
+ /** Where a `.gitmodules` was read from. */
52
+ export type GitmodulesSource = {
53
+ kind: "worktree";
54
+ } | {
55
+ kind: "index";
56
+ id: ObjectId;
57
+ } | {
58
+ kind: "head";
59
+ id: ObjectId;
60
+ } | {
61
+ kind: "commit";
62
+ commit: ObjectId;
63
+ id: ObjectId;
64
+ } | {
65
+ kind: "none";
66
+ };
67
+ /** How {@link Gitmodules.parse} reads a `.gitmodules` text. */
68
+ export interface GitmodulesParseOptions {
69
+ /**
70
+ * The commit the text was read from: git then keeps the first value of each setting
71
+ * (`overwrite = 0`) and warns `<commit>:.gitmodules, multiple configurations found for
72
+ * ...`; without one (the worktree's file, the index's or HEAD's blob) the last one wins.
73
+ */
74
+ commit?: ObjectId;
75
+ /** How git names the text in its "bad config line" errors (default `file .gitmodules`) */
76
+ origin?: string;
77
+ }
78
+ /**
79
+ * A parsed `.gitmodules` (git's submodule cache for one `.gitmodules`): the submodules by
80
+ * name and by path, and the warnings git printed while it read them.
81
+ */
82
+ export declare class Gitmodules {
83
+ /** git's `warning:` lines, in order */
84
+ readonly warnings: string[];
85
+ /**
86
+ * The variables that name no submodule (`fetch.recurseSubmodules`, `submodule.fetchJobs`),
87
+ * in the file's order, as `fetch_config_from_gitmodules` reads them
88
+ */
89
+ readonly settings: {
90
+ key: string;
91
+ value: string | undefined;
92
+ }[];
93
+ private readonly names;
94
+ private readonly paths;
95
+ /** The submodules, in the order their names first appear. */
96
+ list(): SubmoduleSettings[];
97
+ /** git's `submodule_from_name`. */
98
+ byName(name: string): SubmoduleSettings | undefined;
99
+ /** git's `submodule_from_path`: the submodule the last `path` setting named `path` gave. */
100
+ byPath(path: string): SubmoduleSettings | undefined;
101
+ /**
102
+ * git's `parse_config` over each `submodule.<name>.<item>` variable of a `.gitmodules`:
103
+ * a suspicious name (empty, a `..` component) is ignored with git's warning, a `path` or
104
+ * `url` starting with `-` too, an unknown `ignore` value warns, an update strategy that
105
+ * is not `checkout`, `rebase`, `merge` or `none` (a `!command` included) and a bad
106
+ * `fetchRecurseSubmodules` or `shallow` fail as git dies.
107
+ *
108
+ * @throws InvalidConfigError where git dies reading the file
109
+ */
110
+ static parse(text: string | Uint8Array, options?: GitmodulesParseOptions): Promise<Gitmodules>;
111
+ }
112
+ /** How {@link SubmoduleModel.load} reads the configuration. */
113
+ export interface SubmoduleModelOptions {
114
+ /** Read this commit's `.gitmodules` instead of the worktree's (git's `treeish_name`) */
115
+ commit?: ObjectId;
116
+ }
117
+ /**
118
+ * The submodules of a working copy: its `.gitmodules` (see {@link Gitmodules}) with the
119
+ * `submodule.<name>.*` settings of its configuration over it.
120
+ */
121
+ export declare class SubmoduleModel {
122
+ private readonly workingCopy;
123
+ /** The parsed `.gitmodules` (empty when there is none) */
124
+ readonly gitmodules: Gitmodules;
125
+ /** Where it was read from */
126
+ readonly source: GitmodulesSource;
127
+ private constructor();
128
+ /**
129
+ * Reads the working copy's `.gitmodules` (see {@link GitmodulesSourceReader}) and parses
130
+ * it as git does.
131
+ *
132
+ * @throws InvalidConfigError where git dies reading it (a bad line, an invalid update strategy)
133
+ */
134
+ static load(workingCopy: WorkingCopy, options?: SubmoduleModelOptions): Promise<SubmoduleModel>;
135
+ /** The repository's configuration (its whole chain). */
136
+ get config(): RemoteConfigStore;
137
+ /** git's `submodule_from_path`. */
138
+ fromPath(path: string): SubmoduleSettings | undefined;
139
+ /** git's `submodule_from_name`. */
140
+ fromName(name: string): SubmoduleSettings | undefined;
141
+ /**
142
+ * A setting of the repository's configuration, the last value as written: undefined when
143
+ * unset, `null` for a variable without `=`.
144
+ */
145
+ configText(key: string): string | null | undefined;
146
+ /**
147
+ * The URL the repository's configuration registers for the submodule
148
+ * (`submodule.<name>.url`, set by `init`), undefined when it is not registered.
149
+ */
150
+ registeredUrl(name: string): string | undefined;
151
+ /** The URL to fetch the submodule from: the registered one, else `.gitmodules`'. */
152
+ url(name: string): string | undefined;
153
+ /** `submodule.<name>.update` of the configuration, else of `.gitmodules`. */
154
+ update(name: string): SubmoduleUpdateStrategy | undefined;
155
+ /** `submodule.<name>.branch` of the configuration, else of `.gitmodules`. */
156
+ branch(name: string): string | undefined;
157
+ /**
158
+ * git's `is_submodule_active`: the submodule `.gitmodules` maps `path` to is active when
159
+ * `submodule.<name>.active` says so; without it, when one of the `submodule.active`
160
+ * pathspecs matches its path; without those, when the configuration registers a URL for it.
161
+ *
162
+ * @throws InvalidConfigError for a `submodule.<name>.active` that is no boolean
163
+ */
164
+ isActive(path: string): boolean;
165
+ /**
166
+ * git's `submodule_name_to_gitdir`: where the repository of the submodule `name` lives,
167
+ * as a path of the working copy's FilesApi: `<git dir>/modules/<name>` (`modules/` is kept per
168
+ * worktree: a linked worktree's are in `worktrees/<id>/modules/`), or under
169
+ * `extensions.submodulePathConfig` the `submodule.<name>.gitdir` setting (relative to the
170
+ * worktree top). The place is checked as git checks it (`validate_submodule_git_dir`):
171
+ * a legacy git directory inside another submodule's (`modules/hippo/hooks` while
172
+ * `modules/hippo` is a repository: CVE-2019-1387), or an encoded one that names a nested
173
+ * place or another submodule's, is refused.
174
+ *
175
+ * @throws SubmoduleGitDirError where git dies: no `submodule.<name>.gitdir` under the
176
+ * extension, or a git directory the check refuses
177
+ */
178
+ gitDirOf(name: string): Promise<string | undefined>;
179
+ private get worktreeRoot();
180
+ /** A FilesApi path as git names it from the worktree top (`.git/modules/x`). */
181
+ shownPath(path: string): string;
182
+ }
183
+ /**
184
+ * A submodule's git directory git refuses to create or use (`submodule_name_to_gitdir`
185
+ * dying): `message` is git's lines; `refusal` the `error:` lines of the check alone.
186
+ */
187
+ export declare class SubmoduleGitDirError extends GitApiError {
188
+ readonly refusal: readonly string[];
189
+ constructor(message: string, refusal?: readonly string[]);
190
+ }
191
+ /** `path` relative to `from` (FilesApi paths). */
192
+ export declare function relativeFilesPath(from: string, path: string): string;
193
+ /**
194
+ * git's `validate_submodule_git_dir` of the git directory `gitDir` (a FilesApi path) of the
195
+ * submodule `name`: the `error:` lines of a refusal (none for the encoded layout, which git
196
+ * refuses silently), undefined when the place is fine.
197
+ *
198
+ * - Legacy layout (`validate_submodule_legacy_git_dir`): no leading directory of `gitDir`
199
+ * within the name (`modules/hippo` of `modules/hippo/hooks`) may be a repository.
200
+ * - `extensions.submodulePathConfig` (`validate_submodule_encoded_git_dir`): the part after
201
+ * the last `/modules/` holds no `/`, and an existing repository there is no other
202
+ * submodule's `gitdir` (case-folding conflicts are not checked).
203
+ */
204
+ export declare function validateSubmoduleGitDir(workingCopy: WorkingCopy, gitDir: string, name: string, options: {
205
+ encoded: boolean;
206
+ }): Promise<string[] | undefined>;
207
+ /**
208
+ * git's `validate_submodule_path` (2.5x): the `error:` line refusing a submodule path whose
209
+ * leading component, or itself, is a symbolic link, undefined when none is. Missing
210
+ * components are fine. Read with the FilesApi's `lstat`, else the worktree's entries.
211
+ */
212
+ export declare function validateSubmodulePath(workingCopy: WorkingCopy, path: string): Promise<string | undefined>;
213
+ /** Whether the repository's format has `extensions.submodulePathConfig` (git 2.52 and later). */
214
+ export declare function submodulePathConfigOf(workingCopy: WorkingCopy): Promise<boolean>;
215
+ /**
216
+ * A FilesApi path with every symbolic link on it followed, as `realpath(3)` resolves a host
217
+ * path (the last component too, a dangling link to where it points), through the FilesApi's
218
+ * `lstat`/`readlink`: the physical path the FilesApi can then act on, since it never acts
219
+ * through a link itself. Undefined where a link leads beyond the FilesApi's root (`..` above
220
+ * it, an absolute target outside its `rootDirectory`) or more than 40 links are met (ELOOP).
221
+ * Without `lstat`/`readlink` the path is returned as it is.
222
+ */
223
+ export declare function physicalFilesPath(files: FilesApi, path: string): Promise<string | undefined>;
224
+ /**
225
+ * {@link physicalFilesPath}, telling why a path does not resolve: `"loop"` past 40 links
226
+ * (the ELOOP `stat(2)` and `open(2)` fail with), `"outside"` where a link leads beyond the
227
+ * FilesApi's root.
228
+ */
229
+ export declare function resolveFilesLinks(files: FilesApi, path: string): Promise<string | "loop" | "outside">;
230
+ /** The kind of the entry itself at `path` (a link as `symlink`), where the FilesApi tells it. */
231
+ export declare function lstatKind(files: FilesApi, path: string): Promise<string | undefined>;
232
+ /**
233
+ * git's `safe_create_leading_directories` for the FilesApi path `path`: each leading
234
+ * component (never `path` itself) that `stat(2)` finds a directory, links followed, is kept;
235
+ * a missing one is created, only below the last real directory; anything else refuses, with
236
+ * nothing created at or past it: a file in the way, a link whose target is missing (git's
237
+ * `mkdir` fails there with EEXIST: the target of a dangling link is never created), a link
238
+ * leading beyond the FilesApi or looping. True when every leading directory is there.
239
+ */
240
+ export declare function safeCreateLeadingDirectories(files: FilesApi, path: string): Promise<boolean>;
241
+ /** Whether the directory holding the physical FilesApi path `path` is there (a real one). */
242
+ export declare function parentIsDirectory(files: FilesApi, path: string): Promise<boolean>;
243
+ /** `path` joined to `base` with `.` and `..` resolved (FilesApi paths). */
244
+ export declare function joinFilesPath(base: string, path: string): string;
245
+ /** git's `url_is_local_not_ssh`. */
246
+ export declare function urlIsLocalNotSsh(url: string): boolean;
247
+ /** A URL starting with `./` or `../` (either separator): one relative to the superproject's remote. */
248
+ export declare function isRelativeSubmoduleUrl(url: string): boolean;
249
+ /**
250
+ * git's `relative_url` (remote.c): `url` (`../sub`, `./sub`) resolved against the
251
+ * superproject's remote URL `remoteUrl`, then, when the remote URL is itself relative,
252
+ * prefixed with `upPath` (the way from a submodule's directory back to the superproject's).
253
+ * A URL that is not relative is returned as it is.
254
+ *
255
+ * @throws GitApiError "cannot strip one component off url" where git dies
256
+ *
257
+ * @example
258
+ * ```typescript
259
+ * relativeUrl("https://example.com/org/super", "../lib"); // "https://example.com/org/lib"
260
+ * relativeUrl("user@host:repo", "../sub"); // "user@host:sub"
261
+ * relativeUrl("../super", "../sub", "../"); // "../../sub"
262
+ * ```
263
+ */
264
+ export declare function relativeUrl(remoteUrl: string, url: string, upPath?: string): string;
265
+ /** git's `get_up_path`: one `../` per component of `path`. */
266
+ export declare function upPathOf(path: string): string;
267
+ /** The host's path of the working copy's worktree top (git's `xgetcwd()` there). */
268
+ export declare function worktreeHostPath(workingCopy: WorkingCopy): Promise<string | undefined>;
269
+ /** git's `repo_default_remote`: HEAD's branch's remote, the only remote, else `origin`. */
270
+ export declare function defaultRemoteOf(workingCopy: WorkingCopy): Promise<string>;
271
+ /**
272
+ * git 2.5x's `repo_remote_from_url`: the first remote (in configuration order) one of whose
273
+ * URLs is `url` (rewritten by `insteadOf`), undefined when none is.
274
+ */
275
+ export declare function remoteFromUrl(workingCopy: WorkingCopy, url: string): string | undefined;
276
+ /**
277
+ * builtin/submodule--helper.c's `resolve_relative_url`: `url` resolved against the URL of
278
+ * the working copy's default remote; without one, against the worktree's own directory, with
279
+ * git's warning (unless `quiet`) added to `warnings`.
280
+ */
281
+ export declare function resolveRelativeUrl(workingCopy: WorkingCopy, url: string, upPath: string | undefined, options?: {
282
+ quiet?: boolean;
283
+ warnings?: string[];
284
+ }): Promise<string>;
285
+ /**
286
+ * A config file of the working copy's FilesApi opened for editing (git's
287
+ * `git_config_set_in_file`): `.gitmodules`, a submodule's `config`.
288
+ */
289
+ export declare function openConfigFile(workingCopy: WorkingCopy, path: string): Promise<GitWorkingCopyConfig | undefined>;
290
+ /**
291
+ * git's `git_config_set_in_file_gently` of one variable (`value` undefined unsets it):
292
+ * false when there was nothing to unset (git's `CONFIG_NOTHING_SET`) or no such file to
293
+ * write.
294
+ */
295
+ export declare function setInConfigFile(workingCopy: WorkingCopy, path: string, key: string, value: string | undefined): Promise<boolean>;
296
+ //# sourceMappingURL=submodule-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submodule-model.d.ts","sourceRoot":"","sources":["../../src/commands/submodule-model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAGL,oBAAoB,EAErB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,QAAQ,EAAiB,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEhF,OAAO,EAAE,WAAW,EAAsB,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAK9D,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAExF,wGAAwG;AACxG,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAEvF,qEAAqE;AACrE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,kEAAkE;AAClE,MAAM,MAAM,qBAAqB,GAAG,IAAI,GAAG,KAAK,GAAG,WAAW,CAAC;AAE/D,mEAAmE;AACnE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAA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AAC3F,wBAAsB,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAG/E;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIvF;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,GACrD,OAAO,CAAC,MAAM,CAAC,CAcjB;AAKD;;;GAGG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAM3C;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,OAAO,CAAC,OAAO,CAAC,CASlB"}
@@ -0,0 +1,120 @@
1
+ /**
2
+ * unpack-trees' submodule support (`--recurse-submodules`, `submodule.recurse`): the checks
3
+ * `check_submodule_move_head` makes in `verify_uptodate_1`, `verify_absent_1` and
4
+ * `merged_entry`, and the moves entry.c's `checkout_entry` and `unlink_entry` make in
5
+ * `check_updates`, for the commands that switch a superproject's index and worktree
6
+ * (checkout, switch, reset, read-tree, restore).
7
+ */
8
+ import { type ObjectId } from "@statewalker/vcs-core";
9
+ import type { WorkingCopy, Worktree } from "@statewalker/vcs-working-tree";
10
+ /** An index or tree entry as the checks see it. */
11
+ interface Entry {
12
+ objectId: ObjectId;
13
+ mode: number;
14
+ }
15
+ /**
16
+ * Whether a command recurses into submodules: `--[no-]recurse-submodules` when given, else
17
+ * `submodule.recurse` (git's `config_update_recurse_submodules`).
18
+ */
19
+ export declare function recursesIntoSubmodules(workingCopy: WorkingCopy, given: boolean | undefined): boolean;
20
+ /**
21
+ * One unpack-trees run's submodule handling. The checks run before anything is written and
22
+ * record what they refuse ({@link rejected}, git's `ERROR_WOULD_LOSE_SUBMODULE`) with the
23
+ * lines the submodules' own read-tree printed ({@link lines}); the moves run with the
24
+ * worktree update, removals first, then (`.gitmodules` read again) the checkouts.
25
+ */
26
+ export declare class SubmoduleUnpack {
27
+ private readonly workingCopy;
28
+ /** unpack-trees' `o->reset`: the checks pass `SUBMODULE_MOVE_HEAD_FORCE` */
29
+ readonly reset: boolean;
30
+ /** git's `--super-prefix` of the run (its plain messages name paths with it) */
31
+ readonly superPrefix: string;
32
+ /** The lines printed while checking or moving (the child read-trees' errors, git's `error:`) */
33
+ readonly lines: string[];
34
+ /** The paths refused as `Cannot update submodule` (ERROR_WOULD_LOSE_SUBMODULE) */
35
+ readonly rejected: string[];
36
+ private moverLoad?;
37
+ private loadedMover?;
38
+ /** submodule-commands.ts, loaded when first needed (it imports the commands this serves) */
39
+ private commands?;
40
+ private constructor();
41
+ /**
42
+ * The run's submodule handling, or undefined when the command does not recurse. The
43
+ * `.gitmodules` the run starts with is read here, before anything changes it (git reads it
44
+ * before its removals: `load_gitmodules_file`).
45
+ */
46
+ static start(workingCopy: WorkingCopy, options: {
47
+ recurse: boolean;
48
+ reset: boolean;
49
+ superPrefix?: string;
50
+ }): Promise<SubmoduleUnpack | undefined>;
51
+ private m;
52
+ /** `submodule_from_ce`: a gitlink `.gitmodules` (as read now) names. */
53
+ isSubmodule(path: string, entry: Entry | undefined): Promise<boolean>;
54
+ /** `file_exists`. */
55
+ exists(path: string): Promise<boolean>;
56
+ /** Whether the submodule at `path` keeps its repository in its worktree (`.git` directory). */
57
+ hasGitDirectory(path: string): Promise<boolean>;
58
+ /**
59
+ * `check_submodule_move_head` (a dry run): whether the submodule at `path` could move from
60
+ * `oldHead` to `newHead`; a refusal is recorded. True when refused.
61
+ */
62
+ refuses(path: string, oldHead: string | null, newHead: string | null): Promise<boolean>;
63
+ /**
64
+ * `verify_uptodate_1` of the index entry `entry` at `path`: undefined when it is not a
65
+ * submodule there (the file checks apply), else whether it is refused (its HEAD cannot move
66
+ * to the recorded commit: local changes, a dirty index).
67
+ */
68
+ notUptodate(path: string, entry: Entry): Promise<boolean | undefined>;
69
+ /**
70
+ * `merged_entry`'s check of the entry `next` replacing `old` (none for a new path): the
71
+ * submodule there must be able to move. True when refused.
72
+ */
73
+ mergedRefuses(path: string, old: Entry | undefined, next: Entry): Promise<boolean>;
74
+ /**
75
+ * `verify_absent_1` of a new entry `next` at `path` (with an update, without
76
+ * `UNPACK_RESET_OVERWRITE_UNTRACKED`): undefined when not a submodule (the untracked-file
77
+ * checks apply), else whether it is refused.
78
+ */
79
+ absentRefuses(path: string, next: Entry): Promise<boolean | undefined>;
80
+ /** `load_gitmodules_file` after `.gitmodules` was checked out. */
81
+ reload(): void;
82
+ /**
83
+ * `unlink_entry` of a gitlink `entry` leaving the index: the submodule moved to nothing
84
+ * (forced), then its directory removed when empty.
85
+ */
86
+ unlink(worktree: Worktree, path: string, entry: Entry): Promise<void>;
87
+ /** `unlink_entry`'s move of a submodule leaving the index (forced), without the rmdir. */
88
+ moveAway(path: string, entry: Entry): Promise<void>;
89
+ /**
90
+ * `checkout_entry` of the gitlink `entry` (check_updates' `state.force`): an existing
91
+ * submodule moved to its commit (forced), a missing or unpopulated one checked out there.
92
+ * False when the move failed.
93
+ */
94
+ checkout(worktree: Worktree, path: string, entry: Entry): Promise<boolean>;
95
+ /**
96
+ * The refusal git prints for the recorded submodules, in porcelain form (`Cannot update
97
+ * submodule:` and the list) or plain (`Submodule '<path>' cannot checkout new HEAD.`).
98
+ */
99
+ refusalLines(plain: boolean): string[];
100
+ /** The lines printed so far, as one text (each line ended). */
101
+ printed(): string;
102
+ /**
103
+ * A plain (read-tree, reset) refusal of `path`: what the submodules printed, then
104
+ * unpack-trees' own lines (`not uptodate` too when `verify_uptodate` refused it).
105
+ */
106
+ plainRefusal(path: string, notUptodate: boolean): string;
107
+ /**
108
+ * A worktree file or link replacing the submodule at `path`: refused where its repository
109
+ * is a `.git` directory in it (a deliberate divergence: git's `checkout_entry` removes the
110
+ * whole directory, the submodule's only copy of its history included); else the directory
111
+ * goes, untracked files and all, as git's `remove_subtree`. True when refused.
112
+ */
113
+ fileReplacesRefuses(path: string, old: Entry): Promise<boolean>;
114
+ /** git's `remove_subtree` of a submodule's directory a file replaces. */
115
+ removeForFile(worktree: Worktree, path: string, old: Entry): Promise<void>;
116
+ /** Runs a move, its printed lines kept; git's deaths propagate. */
117
+ private run;
118
+ }
119
+ export {};
120
+ //# sourceMappingURL=submodule-unpack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submodule-unpack.d.ts","sourceRoot":"","sources":["../../src/commands/submodule-unpack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAM3E,mDAAmD;AACnD,UAAU,KAAK;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,OAAO,GAAG,SAAS,GACzB,OAAO,CAIT;AAED;;;;;GAKG;AACH,qBAAa,eAAe;IAYxB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,OAAO;IACvB,gFAAgF;IAChF,QAAQ,CAAC,WAAW,EAAE,MAAM;IAf9B,gGAAgG;IAChG,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,kFAAkF;IAClF,QAAQ,CAAC,QAAQ,EAAE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,SAAS,CAAC,CAG3E;IAED,kEAAkE;IAClE,MAAM,IAAI,IAAI,CAEb;IAED;;;OAGG;IACG,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAK1E;IAED,0FAA0F;IACpF,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAGxD;IAED;;;;OAIG;IACG,QAAQ,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAuB/E;IAED;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAUrC;IAED,+DAA+D;IAC/D,OAAO,IAAI,MAAM,CAEhB;IAED;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,CAMvD;IAED;;;;;OAKG;IACG,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAKpE;IAED,yEAAyE;IACnE,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAK/E;IAED,mEAAmE;YACrD,GAAG;CAclB"}
@@ -0,0 +1,206 @@
1
+ import { type Credentials, type GitTransportRegistry } from "@statewalker/vcs-transport";
2
+ import { type CredentialsForUrl, type HeadersForUrl, type SubmoduleAuthFor } from "./submodule-auth.js";
3
+ import { SubmoduleCommandBase, type SubmoduleCommandResult } from "./submodule-commands.js";
4
+ /** The update strategies `submodule update` takes on its command line. */
5
+ export type SubmoduleUpdateMode = "checkout" | "merge" | "rebase";
6
+ /**
7
+ * `git submodule update [--init] [--remote] [-N] [-f] [--checkout|--merge|--rebase]
8
+ * [--recursive] [--depth <n>] [--[no-]recommend-shallow] [--reference <repo>] [<path>...]`:
9
+ * each active submodule of the index (matching the paths) brought to the commit the index
10
+ * records. One not yet cloned is cloned into `.git/modules/<name>` first (or its kept git
11
+ * directory reconnected), and is then checked out detached at that commit; one already there
12
+ * is updated by its strategy (the command line's, else `submodule.<name>.update` of the
13
+ * configuration, else of `.gitmodules`, else `checkout`): `checkout -q` (`-f` when just
14
+ * cloned or forced), `rebase`, `merge`, `none` (skipped) or, from the configuration only,
15
+ * `!<command>` run through the host's command runner with the commit appended. A commit the
16
+ * submodule lacks is fetched first (`fetch`, then `fetch <remote> <commit>`).
17
+ *
18
+ * `--remote` takes the commit from the submodule's remote-tracking branch instead
19
+ * (`submodule.<name>.branch`, `.` for the superproject's branch, default `HEAD`), fetched
20
+ * first unless `--no-fetch`. `--init` runs `submodule init` first; `--recursive` goes on in
21
+ * each submodule's own submodules. Fetches and clones go through the transports given here;
22
+ * credentials and headers reach only the URLs they are given for (see {@link setCredentials},
23
+ * {@link setCredentialsForUrl}): `.gitmodules` is repository content, and can name any host.
24
+ *
25
+ * Output, refusals and the exit status are git's (stdout, stderr); where git returns 128
26
+ * the command throws {@link SubmoduleCommandError}.
27
+ *
28
+ * @example
29
+ * ```typescript
30
+ * const { stdout } = await git.submoduleUpdate().setInit(true).setRecursive(true).call();
31
+ * // "Submodule path 'lib': checked out '1a2b...'\n"
32
+ * ```
33
+ */
34
+ export declare class SubmoduleUpdateCommand extends SubmoduleCommandBase {
35
+ private readonly paths;
36
+ private init;
37
+ private remote;
38
+ private recursive;
39
+ private noFetch;
40
+ private force;
41
+ private mode?;
42
+ private depth;
43
+ private recommendShallow?;
44
+ private references;
45
+ private requireInit;
46
+ /** `--filter=<spec>` of the clones */
47
+ private filter?;
48
+ /** `--[no-]single-branch` of the clones */
49
+ private singleBranch?;
50
+ private transports?;
51
+ private credentials?;
52
+ private headers?;
53
+ private readonly credentialOrigins;
54
+ private credentialsFor?;
55
+ private headersFor?;
56
+ /** Set once at the top superproject, handed to nested updates unchanged */
57
+ private authPolicy?;
58
+ private timeout?;
59
+ /** A path (pathspec element) limiting the submodules; uninitialized ones are then reported. */
60
+ addPath(path: string): this;
61
+ /** `--init`: `submodule init` the submodules first. */
62
+ setInit(init: boolean): this;
63
+ /** `--require-init`: `--init`, refusing to clone into a non-empty directory. */
64
+ setRequireInit(requireInit: boolean): this;
65
+ /** `--remote`: the commit of the submodule's remote-tracking branch. */
66
+ setRemote(remote: boolean): this;
67
+ /** `--recursive`: nested submodules too. */
68
+ setRecursive(recursive: boolean): this;
69
+ /** `-N` / `--no-fetch`: never fetch. */
70
+ setNoFetch(noFetch: boolean): this;
71
+ /** `-f`: run the update even at the recorded commit; checkout with `-f`. */
72
+ setForce(force: boolean): this;
73
+ /** `--checkout`, `--merge` or `--rebase`: the strategy for every submodule. */
74
+ setMode(mode: SubmoduleUpdateMode | undefined): this;
75
+ /** `--depth <n>`: shallow clones and fetches. */
76
+ setDepth(depth: number): this;
77
+ /**
78
+ * `--[no-]recommend-shallow`: whether a clone honours `submodule.<name>.shallow` (depth 1);
79
+ * by default it does.
80
+ */
81
+ setRecommendShallow(recommend: boolean): this;
82
+ /** `--filter=<spec>`: partial clones of the submodules (`CloneCommand.setFilter`). */
83
+ setFilter(spec: string | undefined): this;
84
+ /** `--[no-]single-branch`: how the submodules are cloned (`CloneCommand.setSingleBranch`). */
85
+ setSingleBranch(singleBranch: boolean | undefined): this;
86
+ /** `--reference <repository>`: borrow objects in clones. */
87
+ addReference(reference: string): this;
88
+ /** The transports clones and fetches reach non-local URLs through. */
89
+ setTransports(transports: GitTransportRegistry): this;
90
+ /**
91
+ * Credentials for clones and fetches of the trusted origins only: those named with
92
+ * {@link addCredentialOrigin}, or, when none is named, the origin (scheme, host, port) of
93
+ * the superproject's own remote, against which relative submodule URLs resolve. A
94
+ * submodule (at any depth) whose URL names another origin gets none; a local path or
95
+ * `file:` URL has no origin and gets none either. Use {@link setCredentialsForUrl} to
96
+ * decide per URL.
97
+ */
98
+ setCredentials(credentials: Credentials): this;
99
+ /** HTTP headers for clones and fetches of the trusted origins only (as {@link setCredentials}). */
100
+ setHeaders(headers: Record<string, string>): this;
101
+ /**
102
+ * An origin the static credentials and headers are for: a URL whose `<scheme>://<host>[:<port>]`
103
+ * is taken (`https://git.example.com`, or any URL of that host). Once one is named, the
104
+ * superproject's remote is no longer trusted by default.
105
+ */
106
+ addCredentialOrigin(url: string): this;
107
+ /**
108
+ * Asked with the URL of each clone and fetch (after `insteadOf`, at any depth, git's
109
+ * credential helpers' per-URL match): its credentials, or undefined for the static ones'
110
+ * rule ({@link setCredentials}).
111
+ */
112
+ setCredentialsForUrl(provider: CredentialsForUrl): this;
113
+ /** Asked with the URL of each clone and fetch: its headers (as {@link setCredentialsForUrl}). */
114
+ setHeadersForUrl(provider: HeadersForUrl): this;
115
+ /** @internal The top superproject's policy, for a nested update. */
116
+ setAuthPolicy(policy: SubmoduleAuthFor): this;
117
+ private guarded?;
118
+ /**
119
+ * The transports clones and fetches go through: the given ones (default
120
+ * `createDefaultTransports()`) with every connector attaching the policy's credentials and
121
+ * headers itself, per URL and origin (`guardSubmoduleTransports`); the commands are given
122
+ * none, so nothing else can send them anywhere.
123
+ */
124
+ private guardedTransports;
125
+ /** The policy: inherited, else built from the setters and the superproject's remote. */
126
+ private auth;
127
+ /** The timeout of clones and fetches, in milliseconds. */
128
+ setTimeout(timeout: number): this;
129
+ call(): Promise<SubmoduleCommandResult>;
130
+ /** git returned 128 after its `fatal:` line: thrown as git's death, that line the message. */
131
+ private dieWithLastLine;
132
+ /** `module_update`'s `--init`: `submodule init` of the same paths. */
133
+ private runInit;
134
+ private warnMissing;
135
+ /**
136
+ * `update_submodules`' clone pass: each submodule looked at (`prepare_to_clone_next_submodule`),
137
+ * those without a `.git` cloned; a failed clone retried once after the others, undefined
138
+ * when it fails again (git's quickstop).
139
+ */
140
+ private cloneAll;
141
+ /** git's `prepare_to_clone_next_submodule`: the record and URL, undefined when skipped. */
142
+ private prepare;
143
+ /**
144
+ * Whether a worktree path exists as `stat` sees it: symbolic links on the way followed
145
+ * (relative ones, inside the storage; an absolute target counts as missing).
146
+ */
147
+ private existsThroughLinks;
148
+ /** submodule--helper's `clone` child: false when it failed (its lines printed). */
149
+ private clone;
150
+ /** The submodule's working copy, opened as git-submodule.sh runs its children. */
151
+ private openInner;
152
+ /** submodule--helper.c's `ensure_core_worktree`. */
153
+ private ensureCoreWorktree;
154
+ /** `update_submodules`' second pass for one submodule: its exit code (0 when done). */
155
+ private updateRecord;
156
+ /** die_message: git's `fatal:` line printed, 128 returned. */
157
+ private fatal;
158
+ /** submodule--helper.c's `remote_submodule_branch`: the branch, or an exit code. */
159
+ private remoteBranch;
160
+ /** submodule--helper.c's `fetch_in_submodule`: `git fetch [--quiet] [--depth] [<remote> <id>]`. */
161
+ private fetchIn;
162
+ /** submodule--helper.c's `run_update_procedure`. */
163
+ private runUpdateProcedure;
164
+ /** submodule--helper.c's `run_update_command`. */
165
+ private runUpdateCommand;
166
+ /** `git rebase [--quiet] <id>` in the submodule. */
167
+ private rebase;
168
+ /** `git merge [--quiet] <id>` in the submodule: its stdout, the diffstat included. */
169
+ private merge;
170
+ /** `git diff --stat --summary <from> <to>`, as git merge prints it after a merge. */
171
+ private diffstat;
172
+ /** `!command`: `sh -c '<command> "$@"' <command> <id>` in the submodule. */
173
+ private runCommand;
174
+ /** `submodule--helper update --recursive --super-prefix=<dp>/ ...` in the submodule. */
175
+ private recurse;
176
+ }
177
+ /**
178
+ * `git submodule status [-q] [--cached] [--recursive] [<path>...]`: one line per submodule
179
+ * of the index, `<state><commit> <path>[ (<name>)]`: `-` not initialized or not checked out,
180
+ * `+` its HEAD (with `--cached`, the index's commit) is not the commit the index records,
181
+ * `U` unmerged (a null id), else a space; the name is the first of `describe`, `describe
182
+ * --tags`, `describe --contains` and `describe --all --always` that answers in the
183
+ * submodule. `--recursive` lists each checked-out submodule's own submodules after it.
184
+ *
185
+ * @example
186
+ * ```typescript
187
+ * const { stdout } = await git.submoduleStatus().call();
188
+ * // " 1a2b3c... lib (v1.0-2-g1a2b3c4)\n"
189
+ * ```
190
+ */
191
+ export declare class SubmoduleStatusCommand extends SubmoduleCommandBase {
192
+ private readonly paths;
193
+ private cached;
194
+ private recursive;
195
+ /** A path (pathspec element) limiting the submodules. */
196
+ addPath(path: string): this;
197
+ /** `--cached`: the index's commit for a submodule whose HEAD moved. */
198
+ setCached(cached: boolean): this;
199
+ /** `--recursive`: nested submodules too. */
200
+ setRecursive(recursive: boolean): this;
201
+ call(): Promise<SubmoduleCommandResult>;
202
+ private statusOne;
203
+ /** submodule--helper.c's `print_status`. */
204
+ private print;
205
+ }
206
+ //# sourceMappingURL=submodule-update-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submodule-update-command.d.ts","sourceRoot":"","sources":["../../src/commands/submodule-update-command.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAiBpC,OAAO,EACL,KAAK,iBAAiB,EAGtB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,oBAAoB,EAEpB,KAAK,sBAAsB,EAG5B,MAAM,yBAAyB,CAAC;AAcjC,0EAA0E;AAC1E,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AA+IlE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,sBAAuB,SAAQ,oBAAoB;IAC9D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,KAAK,CAAS;IACtB,OA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