@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.
- package/dist/commands/add-command.d.ts +70 -0
- package/dist/commands/add-command.d.ts.map +1 -1
- package/dist/commands/add-patch/add-patch.d.ts +7 -0
- package/dist/commands/add-patch/add-patch.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
- package/dist/commands/am/am-command.d.ts +102 -1
- package/dist/commands/am/am-command.d.ts.map +1 -1
- package/dist/commands/am/index.d.ts +1 -0
- package/dist/commands/am/index.d.ts.map +1 -1
- package/dist/commands/am/mailsplit.d.ts +88 -0
- package/dist/commands/am/mailsplit.d.ts.map +1 -0
- package/dist/commands/apply/apply-command.d.ts +2 -0
- package/dist/commands/apply/apply-command.d.ts.map +1 -1
- package/dist/commands/apply/apply-engine.d.ts.map +1 -1
- package/dist/commands/apply/apply-parse.d.ts +7 -0
- package/dist/commands/apply/apply-parse.d.ts.map +1 -1
- package/dist/commands/apply/index.d.ts +1 -1
- package/dist/commands/apply/index.d.ts.map +1 -1
- package/dist/commands/bisect/bisect-command.d.ts +2 -0
- package/dist/commands/bisect/bisect-command.d.ts.map +1 -1
- package/dist/commands/blame-command.d.ts +303 -8
- package/dist/commands/blame-command.d.ts.map +1 -1
- package/dist/commands/blame-ignore.d.ts +48 -0
- package/dist/commands/blame-ignore.d.ts.map +1 -0
- package/dist/commands/branch-command.d.ts +148 -18
- package/dist/commands/branch-command.d.ts.map +1 -1
- package/dist/commands/branch-info-command.d.ts +55 -0
- package/dist/commands/branch-info-command.d.ts.map +1 -0
- package/dist/commands/branch-tracking.d.ts +106 -17
- package/dist/commands/branch-tracking.d.ts.map +1 -1
- package/dist/commands/branch-upstream-command.d.ts +83 -0
- package/dist/commands/branch-upstream-command.d.ts.map +1 -0
- package/dist/commands/check-mailmap-command.d.ts +49 -0
- package/dist/commands/check-mailmap-command.d.ts.map +1 -0
- package/dist/commands/checkout-command.d.ts +26 -3
- package/dist/commands/checkout-command.d.ts.map +1 -1
- package/dist/commands/checkout-paths.d.ts +4 -0
- package/dist/commands/checkout-paths.d.ts.map +1 -1
- package/dist/commands/cherry-command.d.ts +61 -0
- package/dist/commands/cherry-command.d.ts.map +1 -0
- package/dist/commands/cherry-pick-command.d.ts +82 -1
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clean-command.d.ts +44 -0
- package/dist/commands/clean-command.d.ts.map +1 -1
- package/dist/commands/clean-interactive.d.ts +56 -0
- package/dist/commands/clean-interactive.d.ts.map +1 -0
- package/dist/commands/clone-command.d.ts +116 -2
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +239 -5
- package/dist/commands/commit-command.d.ts.map +1 -1
- package/dist/commands/commit-reuse.d.ts +33 -0
- package/dist/commands/commit-reuse.d.ts.map +1 -0
- package/dist/commands/config-command.d.ts +236 -0
- package/dist/commands/config-command.d.ts.map +1 -0
- package/dist/commands/config-value-types.d.ts +91 -0
- package/dist/commands/config-value-types.d.ts.map +1 -0
- package/dist/commands/core-config.d.ts +20 -0
- package/dist/commands/core-config.d.ts.map +1 -1
- package/dist/commands/describe-command.d.ts +71 -64
- package/dist/commands/describe-command.d.ts.map +1 -1
- package/dist/commands/diff-color-config.d.ts +73 -0
- package/dist/commands/diff-color-config.d.ts.map +1 -0
- package/dist/commands/diff-command.d.ts +369 -10
- package/dist/commands/diff-command.d.ts.map +1 -1
- package/dist/commands/fetch-command.d.ts +80 -0
- package/dist/commands/fetch-command.d.ts.map +1 -1
- package/dist/commands/fetch-multiple-command.d.ts +193 -0
- package/dist/commands/fetch-multiple-command.d.ts.map +1 -0
- package/dist/commands/fmt-merge-msg-command.d.ts +124 -0
- package/dist/commands/fmt-merge-msg-command.d.ts.map +1 -0
- package/dist/commands/fork-point.d.ts +38 -0
- package/dist/commands/fork-point.d.ts.map +1 -0
- package/dist/commands/format-patch-command.d.ts +69 -3
- package/dist/commands/format-patch-command.d.ts.map +1 -1
- package/dist/commands/fsck/fetch-fsck.d.ts +51 -0
- package/dist/commands/fsck/fetch-fsck.d.ts.map +1 -1
- package/dist/commands/gc-command.d.ts +8 -0
- package/dist/commands/gc-command.d.ts.map +1 -1
- package/dist/commands/git-describe.d.ts +81 -4
- package/dist/commands/git-describe.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +50 -1
- package/dist/commands/git-hooks.d.ts.map +1 -1
- package/dist/commands/grep/grep-command.d.ts +210 -0
- package/dist/commands/grep/grep-command.d.ts.map +1 -0
- package/dist/commands/grep/grep-engine.d.ts +218 -0
- package/dist/commands/grep/grep-engine.d.ts.map +1 -0
- package/dist/commands/grep/index.d.ts +3 -0
- package/dist/commands/grep/index.d.ts.map +1 -0
- package/dist/commands/index-adder.d.ts +13 -2
- package/dist/commands/index-adder.d.ts.map +1 -1
- package/dist/commands/index.d.ts +38 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +5 -3
- package/dist/commands/init-command.d.ts +89 -0
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/interpret-trailers-command.d.ts +90 -0
- package/dist/commands/interpret-trailers-command.d.ts.map +1 -0
- package/dist/commands/line-log.d.ts +161 -0
- package/dist/commands/line-log.d.ts.map +1 -0
- package/dist/commands/local-transport.d.ts +36 -5
- package/dist/commands/local-transport.d.ts.map +1 -1
- package/dist/commands/log-command.d.ts +527 -13
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-graph.d.ts +30 -3
- package/dist/commands/log-graph.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +199 -6
- package/dist/commands/log-output.d.ts.map +1 -1
- package/dist/commands/ls-remote-command.d.ts +2 -0
- package/dist/commands/ls-remote-command.d.ts.map +1 -1
- package/dist/commands/mailmap.d.ts +53 -0
- package/dist/commands/mailmap.d.ts.map +1 -1
- package/dist/commands/merge-base-command.d.ts +60 -0
- package/dist/commands/merge-base-command.d.ts.map +1 -0
- package/dist/commands/merge-bases.d.ts +23 -0
- package/dist/commands/merge-bases.d.ts.map +1 -1
- package/dist/commands/merge-command.d.ts +147 -10
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-drivers.d.ts +2 -0
- package/dist/commands/merge-drivers.d.ts.map +1 -1
- package/dist/commands/merge-strategy-options.d.ts +69 -0
- package/dist/commands/merge-strategy-options.d.ts.map +1 -0
- package/dist/commands/merge-support.d.ts +10 -0
- package/dist/commands/merge-support.d.ts.map +1 -1
- package/dist/commands/message-cleanup.d.ts +2 -0
- package/dist/commands/message-cleanup.d.ts.map +1 -1
- package/dist/commands/mv-command.d.ts +4 -0
- package/dist/commands/mv-command.d.ts.map +1 -1
- package/dist/commands/name-rev-command.d.ts +65 -0
- package/dist/commands/name-rev-command.d.ts.map +1 -0
- package/dist/commands/name-rev.d.ts +136 -0
- package/dist/commands/name-rev.d.ts.map +1 -0
- package/dist/commands/notes-command.d.ts.map +1 -1
- package/dist/commands/octopus-merge.d.ts +26 -1
- package/dist/commands/octopus-merge.d.ts.map +1 -1
- package/dist/commands/ort-merge.d.ts +16 -0
- package/dist/commands/ort-merge.d.ts.map +1 -1
- package/dist/commands/ort-recursive.d.ts.map +1 -1
- package/dist/commands/patch-id.d.ts +58 -0
- package/dist/commands/patch-id.d.ts.map +1 -1
- package/dist/commands/pathspec-file.d.ts +39 -0
- package/dist/commands/pathspec-file.d.ts.map +1 -0
- package/dist/commands/pathspec.d.ts +3 -0
- package/dist/commands/pathspec.d.ts.map +1 -1
- package/dist/commands/pretty-format.d.ts +43 -3
- package/dist/commands/pretty-format.d.ts.map +1 -1
- package/dist/commands/promisor-remote.d.ts.map +1 -1
- package/dist/commands/pull-command.d.ts +186 -32
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +225 -9
- package/dist/commands/push-command.d.ts.map +1 -1
- package/dist/commands/range-diff/index.d.ts +4 -0
- package/dist/commands/range-diff/index.d.ts.map +1 -0
- package/dist/commands/range-diff/linear-assignment.d.ts +27 -0
- package/dist/commands/range-diff/linear-assignment.d.ts.map +1 -0
- package/dist/commands/range-diff/range-diff-command.d.ts +121 -0
- package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -0
- package/dist/commands/range-diff/range-diff.d.ts +106 -0
- package/dist/commands/range-diff/range-diff.d.ts.map +1 -0
- package/dist/commands/read-tree-command.d.ts +20 -0
- package/dist/commands/read-tree-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +189 -8
- package/dist/commands/rebase-command.d.ts.map +1 -1
- package/dist/commands/ref-filter/for-each-ref-command.d.ts +121 -0
- package/dist/commands/ref-filter/for-each-ref-command.d.ts.map +1 -0
- package/dist/commands/ref-filter/index.d.ts +8 -0
- package/dist/commands/ref-filter/index.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-atoms.d.ts +88 -0
- package/dist/commands/ref-filter/ref-atoms.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-filter.d.ts +178 -0
- package/dist/commands/ref-filter/ref-filter.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-format.d.ts +222 -0
- package/dist/commands/ref-filter/ref-format.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-listing-command.d.ts +56 -0
- package/dist/commands/ref-filter/ref-listing-command.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-quote.d.ts +20 -0
- package/dist/commands/ref-filter/ref-quote.d.ts.map +1 -0
- package/dist/commands/ref-filter/version-compare.d.ts +20 -0
- package/dist/commands/ref-filter/version-compare.d.ts.map +1 -0
- package/dist/commands/reflog-command.d.ts +120 -0
- package/dist/commands/reflog-command.d.ts.map +1 -1
- package/dist/commands/reflog-walk.d.ts +72 -0
- package/dist/commands/reflog-walk.d.ts.map +1 -0
- package/dist/commands/remerge-diff.d.ts +59 -0
- package/dist/commands/remerge-diff.d.ts.map +1 -0
- package/dist/commands/remote-command.d.ts +179 -29
- package/dist/commands/remote-command.d.ts.map +1 -1
- package/dist/commands/remote-show-command.d.ts +204 -0
- package/dist/commands/remote-show-command.d.ts.map +1 -0
- package/dist/commands/remote-transport.d.ts +7 -1
- package/dist/commands/remote-transport.d.ts.map +1 -1
- package/dist/commands/reset-command.d.ts +21 -4
- package/dist/commands/reset-command.d.ts.map +1 -1
- package/dist/commands/restore-command.d.ts +9 -3
- package/dist/commands/restore-command.d.ts.map +1 -1
- package/dist/commands/rev-filter/commit-filter.d.ts +95 -0
- package/dist/commands/rev-filter/commit-filter.d.ts.map +1 -0
- package/dist/commands/rev-filter/commit-grep.d.ts +91 -0
- package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -0
- package/dist/commands/rev-filter/index.d.ts +3 -0
- package/dist/commands/rev-filter/index.d.ts.map +1 -0
- package/dist/commands/rev-list-command.d.ts +226 -2
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +54 -1
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +34 -1
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/revision-resolver.d.ts +15 -0
- package/dist/commands/revision-resolver.d.ts.map +1 -1
- package/dist/commands/rm-command.d.ts +70 -2
- package/dist/commands/rm-command.d.ts.map +1 -1
- package/dist/commands/sequencer-pick.d.ts +186 -5
- package/dist/commands/sequencer-pick.d.ts.map +1 -1
- package/dist/commands/sequencer-support.d.ts +12 -1
- package/dist/commands/sequencer-support.d.ts.map +1 -1
- package/dist/commands/serve-repository.d.ts +7 -0
- package/dist/commands/serve-repository.d.ts.map +1 -1
- package/dist/commands/shortlog-command.d.ts +109 -0
- package/dist/commands/shortlog-command.d.ts.map +1 -0
- package/dist/commands/shortlog.d.ts +151 -0
- package/dist/commands/shortlog.d.ts.map +1 -0
- package/dist/commands/show-command.d.ts +130 -0
- package/dist/commands/show-command.d.ts.map +1 -0
- package/dist/commands/show-commit.d.ts +11 -0
- package/dist/commands/show-commit.d.ts.map +1 -0
- package/dist/commands/signature-check.d.ts +164 -0
- package/dist/commands/signature-check.d.ts.map +1 -0
- package/dist/commands/signing.d.ts +160 -0
- package/dist/commands/signing.d.ts.map +1 -0
- package/dist/commands/sparse-checkout-command.d.ts.map +1 -1
- package/dist/commands/sparse-index-view.d.ts +45 -0
- package/dist/commands/sparse-index-view.d.ts.map +1 -0
- package/dist/commands/ssh-signer.d.ts +29 -0
- package/dist/commands/ssh-signer.d.ts.map +1 -0
- package/dist/commands/ssh-verifier.d.ts +42 -0
- package/dist/commands/ssh-verifier.d.ts.map +1 -0
- package/dist/commands/stash-apply-command.d.ts +5 -0
- package/dist/commands/stash-apply-command.d.ts.map +1 -1
- package/dist/commands/stash-branch-command.d.ts +34 -0
- package/dist/commands/stash-branch-command.d.ts.map +1 -0
- package/dist/commands/stash-create-command.d.ts +17 -0
- package/dist/commands/stash-create-command.d.ts.map +1 -1
- package/dist/commands/stash-info.d.ts +93 -0
- package/dist/commands/stash-info.d.ts.map +1 -0
- package/dist/commands/stash-list-command.d.ts +16 -0
- package/dist/commands/stash-list-command.d.ts.map +1 -1
- package/dist/commands/stash-pop-command.d.ts +39 -0
- package/dist/commands/stash-pop-command.d.ts.map +1 -0
- package/dist/commands/stash-show-command.d.ts +48 -0
- package/dist/commands/stash-show-command.d.ts.map +1 -0
- package/dist/commands/stash-store-command.d.ts +29 -0
- package/dist/commands/stash-store-command.d.ts.map +1 -0
- package/dist/commands/stash-working-tree.d.ts.map +1 -1
- package/dist/commands/status-command.d.ts +31 -2
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/status-header.d.ts +5 -0
- package/dist/commands/status-header.d.ts.map +1 -1
- package/dist/commands/submodule-add-command.d.ts +89 -0
- package/dist/commands/submodule-add-command.d.ts.map +1 -0
- package/dist/commands/submodule-auth.d.ts +90 -0
- package/dist/commands/submodule-auth.d.ts.map +1 -0
- package/dist/commands/submodule-commands.d.ts +463 -0
- package/dist/commands/submodule-commands.d.ts.map +1 -0
- package/dist/commands/submodule-fetch.d.ts +149 -0
- package/dist/commands/submodule-fetch.d.ts.map +1 -0
- package/dist/commands/submodule-model.d.ts +296 -0
- package/dist/commands/submodule-model.d.ts.map +1 -0
- package/dist/commands/submodule-unpack.d.ts +120 -0
- package/dist/commands/submodule-unpack.d.ts.map +1 -0
- package/dist/commands/submodule-update-command.d.ts +206 -0
- package/dist/commands/submodule-update-command.d.ts.map +1 -0
- package/dist/commands/subtree-shift.d.ts +27 -0
- package/dist/commands/subtree-shift.d.ts.map +1 -0
- package/dist/commands/switch-command.d.ts +3 -0
- package/dist/commands/switch-command.d.ts.map +1 -1
- package/dist/commands/tag-command.d.ts +259 -10
- package/dist/commands/tag-command.d.ts.map +1 -1
- package/dist/commands/trailers.d.ts +218 -17
- package/dist/commands/trailers.d.ts.map +1 -1
- package/dist/commands/tree-restore.d.ts +7 -0
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/verify-command.d.ts +92 -0
- package/dist/commands/verify-command.d.ts.map +1 -0
- package/dist/commands/worktree-add-command.d.ts +79 -7
- package/dist/commands/worktree-add-command.d.ts.map +1 -1
- package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
- package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
- package/dist/commands/worktree-path-rules.d.ts +66 -0
- package/dist/commands/worktree-path-rules.d.ts.map +1 -0
- package/dist/commands/worktree-remove-command.d.ts +10 -3
- package/dist/commands/worktree-remove-command.d.ts.map +1 -1
- package/dist/commands/worktree-repair-command.d.ts +15 -2
- package/dist/commands/worktree-repair-command.d.ts.map +1 -1
- package/dist/commands/worktree-support.d.ts +5 -0
- package/dist/commands/worktree-support.d.ts.map +1 -1
- package/dist/{commands-DIJ91NnD.js → commands-CNvli5bl.js} +49442 -54941
- package/dist/errors/checkout-errors.d.ts +19 -0
- package/dist/errors/checkout-errors.d.ts.map +1 -1
- package/dist/errors/command-errors.d.ts +25 -0
- package/dist/errors/command-errors.d.ts.map +1 -1
- package/dist/errors/index.js +85 -3
- package/dist/errors/ref-errors.d.ts +19 -0
- package/dist/errors/ref-errors.d.ts.map +1 -1
- package/dist/errors/worktree-errors.d.ts +6 -1
- package/dist/errors/worktree-errors.d.ts.map +1 -1
- package/dist/fsck-CPeDh9fh.js +5138 -0
- package/dist/git-command.d.ts +58 -2
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +363 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/guarded-transport-command.d.ts +82 -0
- package/dist/guarded-transport-command.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/remote-config/index.d.ts +1 -1
- package/dist/remote-config/index.d.ts.map +1 -1
- package/dist/remote-config/remote-config-store.d.ts +55 -0
- package/dist/remote-config/remote-config-store.d.ts.map +1 -1
- package/dist/remote-transport-CCmBadm-.js +1606 -0
- package/dist/rename/detect-renames.d.ts +20 -0
- package/dist/rename/detect-renames.d.ts.map +1 -1
- package/dist/rename/diffcore-break.d.ts +51 -0
- package/dist/rename/diffcore-break.d.ts.map +1 -0
- package/dist/rename/index.d.ts +1 -0
- package/dist/rename/index.d.ts.map +1 -1
- package/dist/results/blame-format.d.ts +62 -1
- package/dist/results/blame-format.d.ts.map +1 -1
- package/dist/results/clone-result.d.ts +9 -0
- package/dist/results/clone-result.d.ts.map +1 -1
- package/dist/results/combined-diff.d.ts +3 -0
- package/dist/results/combined-diff.d.ts.map +1 -1
- package/dist/results/diff-check.d.ts +38 -0
- package/dist/results/diff-check.d.ts.map +1 -0
- package/dist/results/diff-color.d.ts +135 -0
- package/dist/results/diff-color.d.ts.map +1 -0
- package/dist/results/diff-dirstat.d.ts +36 -0
- package/dist/results/diff-dirstat.d.ts.map +1 -0
- package/dist/results/diff-entry.d.ts +10 -0
- package/dist/results/diff-entry.d.ts.map +1 -1
- package/dist/results/diff-formatter.d.ts.map +1 -1
- package/dist/results/diff-output.d.ts +103 -1
- package/dist/results/diff-output.d.ts.map +1 -1
- package/dist/results/diff-pickaxe.d.ts +67 -0
- package/dist/results/diff-pickaxe.d.ts.map +1 -0
- package/dist/results/diff-words.d.ts +55 -0
- package/dist/results/diff-words.d.ts.map +1 -0
- package/dist/results/fetch-result.d.ts +12 -1
- package/dist/results/fetch-result.d.ts.map +1 -1
- package/dist/results/index.d.ts +6 -0
- package/dist/results/index.d.ts.map +1 -1
- package/dist/results/index.js +2 -2
- package/dist/results/init-result.d.ts +8 -1
- package/dist/results/init-result.d.ts.map +1 -1
- package/dist/results/line-range-hunks.d.ts +27 -0
- package/dist/results/line-range-hunks.d.ts.map +1 -0
- package/dist/results/merge-result.d.ts +8 -1
- package/dist/results/merge-result.d.ts.map +1 -1
- package/dist/results/pull-result.d.ts +11 -0
- package/dist/results/pull-result.d.ts.map +1 -1
- package/dist/results/push-result.d.ts +12 -0
- package/dist/results/push-result.d.ts.map +1 -1
- package/dist/results/rebase-result.d.ts +2 -0
- package/dist/results/rebase-result.d.ts.map +1 -1
- package/dist/results/stash-result.d.ts +6 -0
- package/dist/results/stash-result.d.ts.map +1 -1
- package/dist/results/status-result.d.ts +1 -1
- package/dist/results/status-result.d.ts.map +1 -1
- package/dist/results-BDuEgdLU.js +46847 -0
- package/dist/transport-command.d.ts +14 -0
- package/dist/transport-command.d.ts.map +1 -1
- package/dist/whitespace/index.d.ts +2 -0
- package/dist/whitespace/index.d.ts.map +1 -0
- package/dist/whitespace/whitespace-rule.d.ts +94 -0
- package/dist/whitespace/whitespace-rule.d.ts.map +1 -0
- package/package.json +12 -12
- package/src/commands/add-command.ts +293 -17
- package/src/commands/add-patch/add-patch.ts +8 -0
- package/src/commands/add-patch/patch-backend.ts +20 -2
- package/src/commands/am/am-command.ts +400 -46
- package/src/commands/am/index.ts +1 -0
- package/src/commands/am/mailsplit.ts +326 -0
- package/src/commands/apply/apply-command.ts +58 -15
- package/src/commands/apply/apply-engine.ts +1 -1
- package/src/commands/apply/apply-parse.ts +17 -8
- package/src/commands/apply/index.ts +8 -1
- package/src/commands/bisect/bisect-command.ts +18 -5
- package/src/commands/blame-command.ts +1450 -51
- package/src/commands/blame-ignore.ts +307 -0
- package/src/commands/branch-command.ts +528 -53
- package/src/commands/branch-info-command.ts +150 -0
- package/src/commands/branch-tracking.ts +335 -60
- package/src/commands/branch-upstream-command.ts +218 -0
- package/src/commands/check-mailmap-command.ts +129 -0
- package/src/commands/checkout-command.ts +166 -55
- package/src/commands/checkout-paths.ts +28 -0
- package/src/commands/cherry-command.ts +187 -0
- package/src/commands/cherry-pick-command.ts +185 -1
- package/src/commands/clean-command.ts +126 -15
- package/src/commands/clean-interactive.ts +522 -0
- package/src/commands/clone-command.ts +598 -45
- package/src/commands/commit-command.ts +925 -74
- package/src/commands/commit-reuse.ts +94 -0
- package/src/commands/config-command.ts +1256 -0
- package/src/commands/config-value-types.ts +358 -0
- package/src/commands/core-config.ts +40 -0
- package/src/commands/describe-command.ts +341 -254
- package/src/commands/diff-color-config.ts +274 -0
- package/src/commands/diff-command.ts +1619 -99
- package/src/commands/fetch-command.ts +495 -14
- package/src/commands/fetch-multiple-command.ts +665 -0
- package/src/commands/fmt-merge-msg-command.ts +715 -0
- package/src/commands/fork-point.ts +63 -0
- package/src/commands/format-patch-command.ts +496 -116
- package/src/commands/fsck/fetch-fsck.ts +172 -18
- package/src/commands/gc-command.ts +31 -1
- package/src/commands/git-describe.ts +460 -201
- package/src/commands/git-hooks.ts +123 -3
- package/src/commands/grep/grep-command.ts +1077 -0
- package/src/commands/grep/grep-engine.ts +1024 -0
- package/src/commands/grep/index.ts +2 -0
- package/src/commands/index-adder.ts +46 -7
- package/src/commands/index.ts +43 -0
- package/src/commands/init-command.ts +603 -49
- package/src/commands/interpret-trailers-command.ts +256 -0
- package/src/commands/line-log.ts +931 -0
- package/src/commands/local-transport.ts +109 -10
- package/src/commands/log-command.ts +2599 -326
- package/src/commands/log-graph.ts +129 -29
- package/src/commands/log-output.ts +449 -27
- package/src/commands/ls-remote-command.ts +5 -0
- package/src/commands/mailmap.ts +155 -0
- package/src/commands/merge-base-command.ts +170 -0
- package/src/commands/merge-bases.ts +63 -8
- package/src/commands/merge-command.ts +601 -95
- package/src/commands/merge-drivers.ts +3 -0
- package/src/commands/merge-strategy-options.ts +224 -0
- package/src/commands/merge-support.ts +115 -22
- package/src/commands/message-cleanup.ts +1 -1
- package/src/commands/mv-command.ts +6 -3
- package/src/commands/name-rev-command.ts +184 -0
- package/src/commands/name-rev.ts +762 -0
- package/src/commands/notes-command.ts +11 -1
- package/src/commands/octopus-merge.ts +35 -11
- package/src/commands/ort-merge.ts +41 -7
- package/src/commands/ort-recursive.ts +40 -2
- package/src/commands/patch-id.ts +109 -0
- package/src/commands/pathspec-file.ts +72 -0
- package/src/commands/pathspec.ts +14 -2
- package/src/commands/pretty-format.ts +103 -19
- package/src/commands/promisor-remote.ts +10 -1
- package/src/commands/pull-command.ts +734 -221
- package/src/commands/push-command.ts +1035 -68
- package/src/commands/range-diff/index.ts +3 -0
- package/src/commands/range-diff/linear-assignment.ts +203 -0
- package/src/commands/range-diff/range-diff-command.ts +433 -0
- package/src/commands/range-diff/range-diff.ts +617 -0
- package/src/commands/read-tree-command.ts +102 -4
- package/src/commands/rebase-command.ts +1074 -194
- package/src/commands/ref-filter/for-each-ref-command.ts +298 -0
- package/src/commands/ref-filter/index.ts +7 -0
- package/src/commands/ref-filter/ref-atoms.ts +581 -0
- package/src/commands/ref-filter/ref-filter.ts +651 -0
- package/src/commands/ref-filter/ref-format.ts +1070 -0
- package/src/commands/ref-filter/ref-listing-command.ts +421 -0
- package/src/commands/ref-filter/ref-quote.ts +69 -0
- package/src/commands/ref-filter/version-compare.ts +177 -0
- package/src/commands/reflog-command.ts +492 -2
- package/src/commands/reflog-walk.ts +234 -0
- package/src/commands/remerge-diff.ts +241 -0
- package/src/commands/remote-command.ts +537 -69
- package/src/commands/remote-show-command.ts +836 -0
- package/src/commands/remote-transport.ts +9 -1
- package/src/commands/reset-command.ts +114 -34
- package/src/commands/restore-command.ts +27 -41
- package/src/commands/rev-filter/commit-filter.ts +159 -0
- package/src/commands/rev-filter/commit-grep.ts +444 -0
- package/src/commands/rev-filter/index.ts +2 -0
- package/src/commands/rev-list-command.ts +578 -15
- package/src/commands/revert-command.ts +123 -1
- package/src/commands/revision-range.ts +207 -5
- package/src/commands/revision-resolver.ts +23 -8
- package/src/commands/rm-command.ts +282 -21
- package/src/commands/sequencer-pick.ts +818 -111
- package/src/commands/sequencer-support.ts +184 -4
- package/src/commands/serve-repository.ts +18 -3
- package/src/commands/shortlog-command.ts +354 -0
- package/src/commands/shortlog.ts +361 -0
- package/src/commands/show-command.ts +491 -0
- package/src/commands/show-commit.ts +24 -0
- package/src/commands/signature-check.ts +657 -0
- package/src/commands/signing.ts +385 -0
- package/src/commands/sparse-checkout-command.ts +2 -9
- package/src/commands/sparse-checkout-support.ts +2 -2
- package/src/commands/sparse-index-view.ts +135 -0
- package/src/commands/ssh-signer.ts +199 -0
- package/src/commands/ssh-verifier.ts +523 -0
- package/src/commands/stash-apply-command.ts +16 -4
- package/src/commands/stash-branch-command.ts +88 -0
- package/src/commands/stash-create-command.ts +28 -0
- package/src/commands/stash-info.ts +243 -0
- package/src/commands/stash-list-command.ts +33 -0
- package/src/commands/stash-pop-command.ts +83 -0
- package/src/commands/stash-show-command.ts +141 -0
- package/src/commands/stash-store-command.ts +82 -0
- package/src/commands/stash-working-tree.ts +2 -2
- package/src/commands/status-command.ts +120 -27
- package/src/commands/status-format.ts +1 -1
- package/src/commands/status-header.ts +41 -7
- package/src/commands/submodule-add-command.ts +509 -0
- package/src/commands/submodule-auth.ts +276 -0
- package/src/commands/submodule-commands.ts +1835 -0
- package/src/commands/submodule-fetch.ts +789 -0
- package/src/commands/submodule-model.ts +938 -0
- package/src/commands/submodule-unpack.ts +265 -0
- package/src/commands/submodule-update-command.ts +1126 -0
- package/src/commands/subtree-shift.ts +215 -0
- package/src/commands/switch-command.ts +12 -1
- package/src/commands/tag-command.ts +876 -64
- package/src/commands/trailers.ts +837 -100
- package/src/commands/tree-restore.ts +44 -11
- package/src/commands/verify-command.ts +235 -0
- package/src/commands/worktree-add-command.ts +268 -24
- package/src/commands/worktree-overwrite-checks.ts +5 -0
- package/src/commands/worktree-path-rules.ts +183 -0
- package/src/commands/worktree-remove-command.ts +39 -5
- package/src/commands/worktree-repair-command.ts +52 -5
- package/src/commands/worktree-support.ts +22 -1
- package/src/errors/checkout-errors.ts +29 -0
- package/src/errors/command-errors.ts +37 -1
- package/src/errors/ref-errors.ts +23 -0
- package/src/errors/worktree-errors.ts +8 -1
- package/src/git-command.ts +153 -2
- package/src/git.ts +550 -1
- package/src/guarded-transport-command.ts +171 -0
- package/src/index.ts +1 -0
- package/src/remote-config/index.ts +2 -0
- package/src/remote-config/remote-config-store.ts +101 -0
- package/src/rename/detect-renames.ts +42 -8
- package/src/rename/diffcore-break.ts +166 -0
- package/src/rename/index.ts +1 -0
- package/src/results/blame-format.ts +268 -43
- package/src/results/clone-result.ts +6 -0
- package/src/results/combined-diff.ts +38 -18
- package/src/results/diff-check.ts +185 -0
- package/src/results/diff-color.ts +868 -0
- package/src/results/diff-dirstat.ts +117 -0
- package/src/results/diff-entry.ts +12 -0
- package/src/results/diff-formatter.ts +1 -0
- package/src/results/diff-output.ts +322 -32
- package/src/results/diff-pickaxe.ts +304 -0
- package/src/results/diff-words.ts +395 -0
- package/src/results/fetch-result.ts +12 -1
- package/src/results/index.ts +6 -0
- package/src/results/init-result.ts +10 -1
- package/src/results/line-range-hunks.ts +126 -0
- package/src/results/merge-result.ts +9 -0
- package/src/results/pull-result.ts +7 -0
- package/src/results/push-result.ts +12 -0
- package/src/results/rebase-result.ts +3 -0
- package/src/results/stash-result.ts +7 -0
- package/src/results/status-result.ts +2 -2
- package/src/transport-command.ts +34 -3
- package/src/whitespace/index.ts +1 -0
- package/src/{commands/apply/whitespace.ts → whitespace/whitespace-rule.ts} +173 -23
- package/dist/commands/apply/whitespace.d.ts +0 -58
- package/dist/commands/apply/whitespace.d.ts.map +0 -1
- package/dist/git-command-BGiOJ8Zk.js +0 -7246
- 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,4FAA4F;AAC5F,MAAM,WAAW,qBAAqB;IACpC,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,6DAA6D;AAC7D,MAAM,WAAW,sBAAsB;IACrC,MAAM,EA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D,WAAW,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,IAAI,EAAE,QAAQ,CAAC;IACf,yEAAyE;IACzE,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,8DAA8D;AAC9D,MAAM,MAAM,wBAAwB,GAAG,CACrC,OAAO,EAAE,uBAAuB,KAE7B,OAAO,CAAC,uBAAuB,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC;AAEzD,sFAAsF;AACtF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,uBAAwB,SAAQ,oBAAoB;IAC/D,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,QAAQ,CAAC,CAA2B;IAC5C,OAAO,CAAC,SAAS,CAAS;IAE1B,4DAA4D;IAC5D,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAIlC;IAED,4CAA4C;IAC5C,WAAW,CAAC,QAAQ,EAAE,wBAAwB,GAAG,IAAI,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-fetch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAGjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAY9D;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,WAAW,GAAG,IAAI,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,sBAAsB,CAMxB;AAED,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IACjC,iCAAiC;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,8DAA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