@statewalker/vcs-commands 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commands/add-command.d.ts +32 -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 +2 -0
- package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-modes.d.ts +6 -2
- package/dist/commands/add-patch/patch-modes.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-session.d.ts +4 -0
- package/dist/commands/add-patch/patch-session.d.ts.map +1 -1
- package/dist/commands/am/am-command.d.ts +88 -2
- package/dist/commands/am/am-command.d.ts.map +1 -1
- 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-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/archive/archive-command.d.ts +169 -0
- package/dist/commands/archive/archive-command.d.ts.map +1 -0
- package/dist/commands/archive/archive-entry.d.ts +60 -0
- package/dist/commands/archive/archive-entry.d.ts.map +1 -0
- package/dist/commands/archive/index.d.ts +8 -0
- package/dist/commands/archive/index.d.ts.map +1 -0
- package/dist/commands/archive/remote-archive-command.d.ts +56 -0
- package/dist/commands/archive/remote-archive-command.d.ts.map +1 -0
- package/dist/commands/archive/tar-archive.d.ts +31 -0
- package/dist/commands/archive/tar-archive.d.ts.map +1 -0
- package/dist/commands/archive/tar-commit-id.d.ts +13 -0
- package/dist/commands/archive/tar-commit-id.d.ts.map +1 -0
- package/dist/commands/archive/upload-archive-writer.d.ts +48 -0
- package/dist/commands/archive/upload-archive-writer.d.ts.map +1 -0
- package/dist/commands/archive/zip-archive.d.ts +42 -0
- package/dist/commands/archive/zip-archive.d.ts.map +1 -0
- package/dist/commands/attributes-source.d.ts +10 -0
- package/dist/commands/attributes-source.d.ts.map +1 -1
- package/dist/commands/blame-command.d.ts +345 -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/bundle/bundle-create-command.d.ts +67 -0
- package/dist/commands/bundle/bundle-create-command.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-format.d.ts +89 -0
- package/dist/commands/bundle/bundle-format.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-list.d.ts +92 -0
- package/dist/commands/bundle/bundle-list.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-read-commands.d.ts +81 -0
- package/dist/commands/bundle/bundle-read-commands.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-support.d.ts +32 -0
- package/dist/commands/bundle/bundle-support.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-transport.d.ts +38 -0
- package/dist/commands/bundle/bundle-transport.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-uri-host.d.ts +43 -0
- package/dist/commands/bundle/bundle-uri-host.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-uri.d.ts +55 -0
- package/dist/commands/bundle/bundle-uri.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-verify.d.ts +63 -0
- package/dist/commands/bundle/bundle-verify.d.ts.map +1 -0
- package/dist/commands/bundle/index.d.ts +14 -0
- package/dist/commands/bundle/index.d.ts.map +1 -0
- package/dist/commands/cat-file/batch-format.d.ts +58 -0
- package/dist/commands/cat-file/batch-format.d.ts.map +1 -0
- package/dist/commands/cat-file/cat-file-command.d.ts +135 -0
- package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -0
- package/dist/commands/cat-file/index.d.ts +3 -0
- package/dist/commands/cat-file/index.d.ts.map +1 -0
- package/dist/commands/check-attr-command.d.ts +66 -0
- package/dist/commands/check-attr-command.d.ts.map +1 -0
- package/dist/commands/check-ignore-command.d.ts +58 -0
- package/dist/commands/check-ignore-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/check-ref-format-command.d.ts +60 -0
- package/dist/commands/check-ref-format-command.d.ts.map +1 -0
- package/dist/commands/checkout-command.d.ts +7 -0
- package/dist/commands/checkout-command.d.ts.map +1 -1
- package/dist/commands/checkout-index-command.d.ts +96 -0
- package/dist/commands/checkout-index-command.d.ts.map +1 -0
- 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 +33 -1
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clean-command.d.ts +32 -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 +135 -2
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +59 -3
- package/dist/commands/commit-command.d.ts.map +1 -1
- package/dist/commands/config-command.d.ts +2 -0
- package/dist/commands/config-command.d.ts.map +1 -1
- package/dist/commands/daemon-access-hook.d.ts +36 -0
- package/dist/commands/daemon-access-hook.d.ts.map +1 -0
- package/dist/commands/default-branch.d.ts +42 -0
- package/dist/commands/default-branch.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-command.d.ts +249 -10
- package/dist/commands/diff-command.d.ts.map +1 -1
- package/dist/commands/diff-external.d.ts +43 -0
- package/dist/commands/diff-external.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/diff-pairs-command.d.ts +27 -0
- package/dist/commands/diff-plumbing/diff-pairs-command.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts +129 -0
- package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/index.d.ts +3 -0
- package/dist/commands/diff-plumbing/index.d.ts.map +1 -0
- package/dist/commands/diff-textconv.d.ts +5 -1
- package/dist/commands/diff-textconv.d.ts.map +1 -1
- package/dist/commands/fast-export/fast-export-command.d.ts +135 -0
- package/dist/commands/fast-export/fast-export-command.d.ts.map +1 -0
- package/dist/commands/fast-export/fast-import-command.d.ts +182 -0
- package/dist/commands/fast-export/fast-import-command.d.ts.map +1 -0
- package/dist/commands/fast-export/fast-stream-support.d.ts +64 -0
- package/dist/commands/fast-export/fast-stream-support.d.ts.map +1 -0
- package/dist/commands/fast-export/index.d.ts +4 -0
- package/dist/commands/fast-export/index.d.ts.map +1 -0
- package/dist/commands/fetch-command.d.ts +125 -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/format-patch-command.d.ts +28 -2
- package/dist/commands/format-patch-command.d.ts.map +1 -1
- package/dist/commands/format-rev-command.d.ts +58 -0
- package/dist/commands/format-rev-command.d.ts.map +1 -0
- package/dist/commands/fsck/fsck-command.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-msg-ids.d.ts +18 -3
- package/dist/commands/fsck/fsck-msg-ids.d.ts.map +1 -1
- package/dist/commands/fsmonitor-refresh.d.ts +69 -0
- package/dist/commands/fsmonitor-refresh.d.ts.map +1 -0
- package/dist/commands/gc-command.d.ts +5 -0
- package/dist/commands/gc-command.d.ts.map +1 -1
- package/dist/commands/git-describe.d.ts +77 -4
- package/dist/commands/git-describe.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +47 -1
- package/dist/commands/git-hooks.d.ts.map +1 -1
- package/dist/commands/git-paths.d.ts +26 -0
- package/dist/commands/git-paths.d.ts.map +1 -0
- package/dist/commands/grep/grep-command.d.ts +2 -1
- package/dist/commands/grep/grep-command.d.ts.map +1 -1
- package/dist/commands/history-command.d.ts +156 -0
- package/dist/commands/history-command.d.ts.map +1 -0
- package/dist/commands/http-config.d.ts +38 -0
- package/dist/commands/http-config.d.ts.map +1 -0
- package/dist/commands/index-adder.d.ts +12 -1
- package/dist/commands/index-adder.d.ts.map +1 -1
- package/dist/commands/index-host.d.ts.map +1 -1
- package/dist/commands/index.d.ts +56 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +6 -3
- package/dist/commands/init-command.d.ts +89 -0
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/last-modified-command.d.ts +102 -0
- package/dist/commands/last-modified-command.d.ts.map +1 -0
- package/dist/commands/lfs/go-url.d.ts +43 -0
- package/dist/commands/lfs/go-url.d.ts.map +1 -0
- package/dist/commands/lfs/index.d.ts +3 -0
- package/dist/commands/lfs/index.d.ts.map +1 -0
- package/dist/commands/lfs/lfs-config.d.ts +174 -0
- package/dist/commands/lfs/lfs-config.d.ts.map +1 -0
- package/dist/commands/lfs/lfs-endpoint-command.d.ts +83 -0
- package/dist/commands/lfs/lfs-endpoint-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.map +1 -1
- package/dist/commands/log-command.d.ts +261 -6
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-graph.d.ts +4 -2
- package/dist/commands/log-graph.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +88 -2
- package/dist/commands/log-output.d.ts.map +1 -1
- package/dist/commands/ls-files-command.d.ts +153 -0
- package/dist/commands/ls-files-command.d.ts.map +1 -0
- package/dist/commands/ls-remote-command.d.ts +5 -0
- package/dist/commands/ls-remote-command.d.ts.map +1 -1
- package/dist/commands/ls-tree-command.d.ts +105 -0
- package/dist/commands/ls-tree-command.d.ts.map +1 -0
- package/dist/commands/mailmap.d.ts +24 -1
- package/dist/commands/mailmap.d.ts.map +1 -1
- package/dist/commands/maintenance-run-command.d.ts +122 -0
- package/dist/commands/maintenance-run-command.d.ts.map +1 -0
- package/dist/commands/merge-command.d.ts +58 -1
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-config.d.ts +7 -0
- package/dist/commands/merge-config.d.ts.map +1 -1
- package/dist/commands/merge-drivers.d.ts +69 -5
- 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 +16 -0
- package/dist/commands/merge-support.d.ts.map +1 -1
- package/dist/commands/merge-tree-command.d.ts +122 -0
- package/dist/commands/merge-tree-command.d.ts.map +1 -0
- package/dist/commands/message-cleanup.d.ts +2 -0
- package/dist/commands/message-cleanup.d.ts.map +1 -1
- package/dist/commands/mktag-command.d.ts +51 -0
- package/dist/commands/mktag-command.d.ts.map +1 -0
- 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 +110 -22
- package/dist/commands/name-rev.d.ts.map +1 -1
- package/dist/commands/object-store/count-objects-command.d.ts +58 -0
- package/dist/commands/object-store/count-objects-command.d.ts.map +1 -0
- package/dist/commands/object-store/index.d.ts +5 -0
- package/dist/commands/object-store/index.d.ts.map +1 -0
- package/dist/commands/object-store/objects-directory.d.ts +12 -0
- package/dist/commands/object-store/objects-directory.d.ts.map +1 -0
- package/dist/commands/object-store/prune-command.d.ts +38 -0
- package/dist/commands/object-store/prune-command.d.ts.map +1 -0
- package/dist/commands/object-store/show-index-command.d.ts +23 -0
- package/dist/commands/object-store/show-index-command.d.ts.map +1 -0
- 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 +40 -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-command.d.ts +30 -0
- package/dist/commands/patch-id-command.d.ts.map +1 -0
- package/dist/commands/patch-id.d.ts +82 -0
- package/dist/commands/patch-id.d.ts.map +1 -1
- package/dist/commands/plumbing-command.d.ts +66 -0
- package/dist/commands/plumbing-command.d.ts.map +1 -0
- package/dist/commands/plumbing-input.d.ts +38 -0
- package/dist/commands/plumbing-input.d.ts.map +1 -0
- package/dist/commands/promisor-remote-reply.d.ts +35 -0
- package/dist/commands/promisor-remote-reply.d.ts.map +1 -0
- package/dist/commands/promisor-remote.d.ts.map +1 -1
- package/dist/commands/pull-command.d.ts +182 -38
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +82 -2
- 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 +14 -0
- package/dist/commands/read-tree-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +129 -4
- package/dist/commands/rebase-command.d.ts.map +1 -1
- package/dist/commands/refs-command.d.ts +81 -0
- package/dist/commands/refs-command.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 +41 -0
- package/dist/commands/remote-command.d.ts.map +1 -1
- package/dist/commands/remote-object-info-command.d.ts +55 -0
- package/dist/commands/remote-object-info-command.d.ts.map +1 -0
- 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 +40 -3
- package/dist/commands/remote-transport.d.ts.map +1 -1
- package/dist/commands/repack-command.d.ts +115 -0
- package/dist/commands/repack-command.d.ts.map +1 -0
- package/dist/commands/replace-command.d.ts +143 -0
- package/dist/commands/replace-command.d.ts.map +1 -0
- package/dist/commands/replay-command.d.ts +117 -0
- package/dist/commands/replay-command.d.ts.map +1 -0
- package/dist/commands/repo-command.d.ts +136 -0
- package/dist/commands/repo-command.d.ts.map +1 -0
- package/dist/commands/request-pull-command.d.ts +82 -0
- package/dist/commands/request-pull-command.d.ts.map +1 -0
- package/dist/commands/rerere-command.d.ts +36 -0
- package/dist/commands/rerere-command.d.ts.map +1 -0
- package/dist/commands/rerere.d.ts +102 -0
- package/dist/commands/rerere.d.ts.map +1 -0
- package/dist/commands/reset-command.d.ts +19 -1
- package/dist/commands/reset-command.d.ts.map +1 -1
- package/dist/commands/restore-command.d.ts +7 -0
- package/dist/commands/restore-command.d.ts.map +1 -1
- package/dist/commands/rev-filter/commit-grep.d.ts +3 -1
- package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -1
- package/dist/commands/rev-list-command.d.ts +78 -3
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/rev-parse-command.d.ts +9 -0
- package/dist/commands/rev-parse-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +32 -1
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +7 -0
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/revision-resolver.d.ts +12 -0
- package/dist/commands/revision-resolver.d.ts.map +1 -1
- package/dist/commands/sequencer-pick.d.ts +120 -1
- package/dist/commands/sequencer-pick.d.ts.map +1 -1
- package/dist/commands/sequencer-support.d.ts +10 -1
- package/dist/commands/sequencer-support.d.ts.map +1 -1
- package/dist/commands/serve-repository.d.ts +23 -1
- package/dist/commands/serve-repository.d.ts.map +1 -1
- package/dist/commands/session-id.d.ts +18 -0
- package/dist/commands/session-id.d.ts.map +1 -0
- 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-branch-command.d.ts +59 -0
- package/dist/commands/show-branch-command.d.ts.map +1 -0
- package/dist/commands/show-ref-command.d.ts +112 -0
- package/dist/commands/show-ref-command.d.ts.map +1 -0
- package/dist/commands/signature-check.d.ts +9 -2
- package/dist/commands/signature-check.d.ts.map +1 -1
- package/dist/commands/signing.d.ts +22 -1
- package/dist/commands/signing.d.ts.map +1 -1
- package/dist/commands/stash-apply-command.d.ts.map +1 -1
- package/dist/commands/stash-export-command.d.ts +115 -0
- package/dist/commands/stash-export-command.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +33 -3
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/stripspace-command.d.ts +44 -0
- package/dist/commands/stripspace-command.d.ts.map +1 -0
- package/dist/commands/submodule-add-command.d.ts +10 -1
- package/dist/commands/submodule-add-command.d.ts.map +1 -1
- package/dist/commands/submodule-auth.d.ts +3 -1
- package/dist/commands/submodule-auth.d.ts.map +1 -1
- package/dist/commands/submodule-commands.d.ts +99 -3
- package/dist/commands/submodule-commands.d.ts.map +1 -1
- 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 +8 -0
- package/dist/commands/submodule-model.d.ts.map +1 -1
- 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 +21 -1
- package/dist/commands/submodule-update-command.d.ts.map +1 -1
- 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/textconv-cache.d.ts +58 -0
- package/dist/commands/textconv-cache.d.ts.map +1 -0
- package/dist/commands/tree-restore.d.ts +5 -0
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/unpack-objects-command.d.ts +47 -0
- package/dist/commands/unpack-objects-command.d.ts.map +1 -0
- package/dist/commands/update-index-command.d.ts +110 -0
- package/dist/commands/update-index-command.d.ts.map +1 -0
- package/dist/commands/uri-protocols.d.ts +13 -0
- package/dist/commands/uri-protocols.d.ts.map +1 -0
- package/dist/commands/url-parse-command.d.ts +30 -0
- package/dist/commands/url-parse-command.d.ts.map +1 -0
- package/dist/commands/var-command.d.ts +42 -0
- package/dist/commands/var-command.d.ts.map +1 -0
- package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
- package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
- package/dist/{commands-ISM52N0n.js → commands-Mlo1dxQN.js} +56133 -70269
- package/dist/errors/command-errors.d.ts +58 -0
- package/dist/errors/command-errors.d.ts.map +1 -1
- package/dist/errors/index.js +67 -1
- package/dist/fsck-CrhVMNIH.js +5179 -0
- package/dist/git-command.d.ts +89 -3
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +628 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/guarded-transport-command.d.ts +84 -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 +7 -5
- package/dist/maintenance-run-command-Bw21HEkH.js +13539 -0
- package/dist/remote-transport-Bu4PGSMD.js +2605 -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/cherry-pick-result.d.ts +6 -0
- package/dist/results/cherry-pick-result.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/diff-dirstat.d.ts +36 -0
- package/dist/results/diff-dirstat.d.ts.map +1 -0
- package/dist/results/diff-entry.d.ts +20 -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 +67 -3
- package/dist/results/diff-output.d.ts.map +1 -1
- package/dist/results/fetch-result.d.ts +24 -1
- package/dist/results/fetch-result.d.ts.map +1 -1
- package/dist/results/index.d.ts +2 -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 +13 -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 +10 -0
- package/dist/results/push-result.d.ts.map +1 -1
- package/dist/results/rebase-result.d.ts +7 -0
- package/dist/results/rebase-result.d.ts.map +1 -1
- package/dist/results/revert-result.d.ts +6 -0
- package/dist/results/revert-result.d.ts.map +1 -1
- package/dist/results/stash-result.d.ts +5 -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-ERo9vELd.js +49673 -0
- package/dist/transport-command.d.ts +93 -1
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/commands/add-command.ts +118 -0
- package/src/commands/add-patch/add-patch.ts +8 -0
- package/src/commands/add-patch/patch-backend.ts +24 -3
- package/src/commands/add-patch/patch-modes.ts +26 -2
- package/src/commands/add-patch/patch-session.ts +6 -0
- package/src/commands/am/am-command.ts +301 -12
- package/src/commands/apply/apply-command.ts +52 -9
- package/src/commands/apply/apply-parse.ts +10 -0
- package/src/commands/apply/index.ts +9 -1
- package/src/commands/archive/archive-command.ts +1148 -0
- package/src/commands/archive/archive-entry.ts +93 -0
- package/src/commands/archive/index.ts +7 -0
- package/src/commands/archive/remote-archive-command.ts +140 -0
- package/src/commands/archive/tar-archive.ts +207 -0
- package/src/commands/archive/tar-commit-id.ts +72 -0
- package/src/commands/archive/upload-archive-writer.ts +213 -0
- package/src/commands/archive/zip-archive.ts +317 -0
- package/src/commands/attributes-source.ts +26 -12
- package/src/commands/blame-command.ts +1551 -53
- package/src/commands/blame-ignore.ts +307 -0
- package/src/commands/bundle/bundle-create-command.ts +405 -0
- package/src/commands/bundle/bundle-format.ts +228 -0
- package/src/commands/bundle/bundle-list.ts +276 -0
- package/src/commands/bundle/bundle-read-commands.ts +157 -0
- package/src/commands/bundle/bundle-support.ts +85 -0
- package/src/commands/bundle/bundle-transport.ts +107 -0
- package/src/commands/bundle/bundle-uri-host.ts +204 -0
- package/src/commands/bundle/bundle-uri.ts +236 -0
- package/src/commands/bundle/bundle-verify.ts +152 -0
- package/src/commands/bundle/index.ts +14 -0
- package/src/commands/cat-file/batch-format.ts +193 -0
- package/src/commands/cat-file/cat-file-command.ts +857 -0
- package/src/commands/cat-file/index.ts +2 -0
- package/src/commands/check-attr-command.ts +333 -0
- package/src/commands/check-ignore-command.ts +261 -0
- package/src/commands/check-mailmap-command.ts +129 -0
- package/src/commands/check-ref-format-command.ts +129 -0
- package/src/commands/checkout-command.ts +131 -28
- package/src/commands/checkout-index-command.ts +568 -0
- package/src/commands/checkout-paths.ts +35 -0
- package/src/commands/cherry-command.ts +187 -0
- package/src/commands/cherry-pick-command.ts +63 -2
- package/src/commands/clean-command.ts +92 -12
- package/src/commands/clean-interactive.ts +522 -0
- package/src/commands/clone-command.ts +803 -50
- package/src/commands/commit-command.ts +202 -51
- package/src/commands/config-command.ts +9 -0
- package/src/commands/daemon-access-hook.ts +78 -0
- package/src/commands/default-branch.ts +99 -1
- package/src/commands/describe-command.ts +341 -254
- package/src/commands/diff-command.ts +1186 -99
- package/src/commands/diff-external.ts +131 -0
- package/src/commands/diff-plumbing/diff-pairs-command.ts +193 -0
- package/src/commands/diff-plumbing/diff-plumbing-command.ts +424 -0
- package/src/commands/diff-plumbing/index.ts +2 -0
- package/src/commands/diff-textconv.ts +5 -1
- package/src/commands/fast-export/fast-export-command.ts +911 -0
- package/src/commands/fast-export/fast-import-command.ts +1553 -0
- package/src/commands/fast-export/fast-stream-support.ts +162 -0
- package/src/commands/fast-export/index.ts +3 -0
- package/src/commands/fetch-command.ts +665 -14
- package/src/commands/fetch-multiple-command.ts +668 -0
- package/src/commands/format-patch-command.ts +189 -77
- package/src/commands/format-rev-command.ts +251 -0
- package/src/commands/fsck/fsck-command.ts +47 -20
- package/src/commands/fsck/fsck-msg-ids.ts +19 -3
- package/src/commands/fsck/fsck-pack.ts +2 -2
- package/src/commands/fsmonitor-refresh.ts +315 -0
- package/src/commands/gc-command.ts +10 -0
- package/src/commands/git-describe.ts +456 -217
- package/src/commands/git-hooks.ts +165 -9
- package/src/commands/git-paths.ts +136 -0
- package/src/commands/grep/grep-command.ts +38 -15
- package/src/commands/history-command.ts +617 -0
- package/src/commands/http-config.ts +139 -0
- package/src/commands/index-adder.ts +37 -3
- package/src/commands/index-host.ts +6 -1
- package/src/commands/index.ts +62 -0
- package/src/commands/init-command.ts +617 -49
- package/src/commands/last-modified-command.ts +804 -0
- package/src/commands/lfs/go-url.ts +370 -0
- package/src/commands/lfs/index.ts +2 -0
- package/src/commands/lfs/lfs-config.ts +738 -0
- package/src/commands/lfs/lfs-endpoint-command.ts +180 -0
- package/src/commands/line-log.ts +931 -0
- package/src/commands/local-transport.ts +252 -4
- package/src/commands/log-command.ts +1518 -182
- package/src/commands/log-graph.ts +6 -3
- package/src/commands/log-output.ts +228 -15
- package/src/commands/ls-files-command.ts +1177 -0
- package/src/commands/ls-remote-command.ts +6 -0
- package/src/commands/ls-tree-command.ts +684 -0
- package/src/commands/mailmap.ts +41 -5
- package/src/commands/maintenance-run-command.ts +949 -0
- package/src/commands/merge-command.ts +351 -47
- package/src/commands/merge-config.ts +23 -1
- package/src/commands/merge-drivers.ts +112 -20
- package/src/commands/merge-strategy-options.ts +224 -0
- package/src/commands/merge-support.ts +130 -26
- package/src/commands/merge-tree-command.ts +786 -0
- package/src/commands/message-cleanup.ts +1 -1
- package/src/commands/mktag-command.ts +149 -0
- package/src/commands/name-rev-command.ts +184 -0
- package/src/commands/name-rev.ts +700 -109
- package/src/commands/object-store/count-objects-command.ts +404 -0
- package/src/commands/object-store/index.ts +4 -0
- package/src/commands/object-store/objects-directory.ts +24 -0
- package/src/commands/object-store/prune-command.ts +129 -0
- package/src/commands/object-store/show-index-command.ts +151 -0
- package/src/commands/octopus-merge.ts +35 -11
- package/src/commands/ort-merge.ts +124 -23
- package/src/commands/ort-recursive.ts +40 -2
- package/src/commands/patch-id-command.ts +65 -0
- package/src/commands/patch-id.ts +327 -0
- package/src/commands/plumbing-command.ts +141 -0
- package/src/commands/plumbing-input.ts +87 -0
- package/src/commands/promisor-remote-reply.ts +276 -0
- package/src/commands/promisor-remote.ts +25 -2
- package/src/commands/pull-command.ts +720 -224
- package/src/commands/push-command.ts +440 -8
- 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 +74 -3
- package/src/commands/rebase-command.ts +647 -83
- package/src/commands/refs-command.ts +274 -0
- package/src/commands/remerge-diff.ts +241 -0
- package/src/commands/remote-command.ts +98 -10
- package/src/commands/remote-object-info-command.ts +109 -0
- package/src/commands/remote-show-command.ts +836 -0
- package/src/commands/remote-transport.ts +116 -1
- package/src/commands/repack-command.ts +383 -0
- package/src/commands/replace-command.ts +816 -0
- package/src/commands/replay-command.ts +674 -0
- package/src/commands/repo-command.ts +967 -0
- package/src/commands/request-pull-command.ts +356 -0
- package/src/commands/rerere-command.ts +179 -0
- package/src/commands/rerere.ts +925 -0
- package/src/commands/reset-command.ts +78 -3
- package/src/commands/restore-command.ts +15 -0
- package/src/commands/rev-filter/commit-grep.ts +7 -2
- package/src/commands/rev-list-command.ts +196 -11
- package/src/commands/rev-parse-command.ts +62 -4
- package/src/commands/revert-command.ts +62 -2
- package/src/commands/revision-range.ts +10 -3
- package/src/commands/revision-resolver.ts +44 -3
- package/src/commands/sequencer-pick.ts +370 -29
- package/src/commands/sequencer-support.ts +164 -2
- package/src/commands/serve-repository.ts +65 -0
- package/src/commands/session-id.ts +31 -0
- package/src/commands/shortlog-command.ts +354 -0
- package/src/commands/shortlog.ts +361 -0
- package/src/commands/show-branch-command.ts +981 -0
- package/src/commands/show-command.ts +3 -2
- package/src/commands/show-ref-command.ts +439 -0
- package/src/commands/signature-check.ts +37 -5
- package/src/commands/signing.ts +122 -16
- package/src/commands/stash-apply-command.ts +3 -0
- package/src/commands/stash-export-command.ts +397 -0
- package/src/commands/status-command.ts +158 -31
- package/src/commands/status-format.ts +1 -1
- package/src/commands/stripspace-command.ts +118 -0
- package/src/commands/submodule-add-command.ts +22 -1
- package/src/commands/submodule-auth.ts +61 -6
- package/src/commands/submodule-commands.ts +333 -5
- package/src/commands/submodule-fetch.ts +789 -0
- package/src/commands/submodule-model.ts +9 -1
- package/src/commands/submodule-unpack.ts +265 -0
- package/src/commands/submodule-update-command.ts +68 -5
- package/src/commands/subtree-shift.ts +215 -0
- package/src/commands/switch-command.ts +9 -0
- package/src/commands/textconv-cache.ts +143 -0
- package/src/commands/tree-restore.ts +20 -1
- package/src/commands/unpack-objects-command.ts +235 -0
- package/src/commands/update-index-command.ts +1016 -0
- package/src/commands/uri-protocols.ts +13 -0
- package/src/commands/url-parse-command.ts +67 -0
- package/src/commands/var-command.ts +219 -0
- package/src/commands/worktree-overwrite-checks.ts +5 -0
- package/src/errors/command-errors.ts +80 -0
- package/src/git-command.ts +218 -2
- package/src/git.ts +1033 -80
- package/src/guarded-transport-command.ts +176 -0
- package/src/index.ts +1 -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/cherry-pick-result.ts +6 -0
- package/src/results/clone-result.ts +6 -0
- package/src/results/diff-dirstat.ts +117 -0
- package/src/results/diff-entry.ts +24 -0
- package/src/results/diff-formatter.ts +8 -4
- package/src/results/diff-output.ts +239 -8
- package/src/results/diff-pickaxe.ts +1 -1
- package/src/results/fetch-result.ts +24 -1
- package/src/results/index.ts +2 -0
- package/src/results/init-result.ts +10 -1
- package/src/results/line-range-hunks.ts +126 -0
- package/src/results/merge-result.ts +14 -0
- package/src/results/pull-result.ts +7 -0
- package/src/results/push-result.ts +10 -0
- package/src/results/rebase-result.ts +7 -0
- package/src/results/revert-result.ts +6 -0
- package/src/results/stash-result.ts +6 -0
- package/src/results/status-result.ts +2 -2
- package/src/transport-command.ts +216 -4
- package/dist/fsck-DLRpbwTj.js +0 -13405
- package/dist/results-TB2IJ64h.js +0 -4700
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The common shape of git's listing plumbing (`cat-file`, `ls-files`, `ls-tree`, `show-ref`):
|
|
3
|
+
* stdout is bytes written to a sink as git writes them (`setStdout`), stderr is git's text,
|
|
4
|
+
* and the exit status is git's, so a CLI shim over the library can print what git prints.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* // git show-ref --verify refs/heads/main
|
|
9
|
+
* const { stdout, stderr, exitCode } = await git.showRef().setVerify(true).addPattern("refs/heads/main").callOutput();
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
import { GitApiError } from "../errors/index.js";
|
|
13
|
+
import { GitCommand } from "../git-command.js";
|
|
14
|
+
/** Where a plumbing command writes its stdout: each chunk is the caller's to keep. */
|
|
15
|
+
export type ByteSink = (chunk: Uint8Array) => void | Promise<void>;
|
|
16
|
+
/** How a plumbing command ended when it did not die. */
|
|
17
|
+
export interface PlumbingResult {
|
|
18
|
+
/** git's exit status (0, or 1 where git reports a miss without dying) */
|
|
19
|
+
exitCode: number;
|
|
20
|
+
/** git's stderr (warnings and `error:` lines it printed and went on past) */
|
|
21
|
+
stderr: string;
|
|
22
|
+
}
|
|
23
|
+
/** {@link PlumbingResult} with stdout collected, deaths included. */
|
|
24
|
+
export interface PlumbingOutput extends PlumbingResult {
|
|
25
|
+
/** Everything written to stdout, also before a death */
|
|
26
|
+
stdout: Uint8Array;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A death of a plumbing command: git's stderr lines (`fatal: ...`, with the lines before it)
|
|
30
|
+
* as the message, its exit status in `exitCode` (128 by default).
|
|
31
|
+
*/
|
|
32
|
+
export declare class PlumbingError extends GitApiError {
|
|
33
|
+
constructor(message: string, exitCode?: number);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The base of the listing plumbing commands: {@link run} writes through {@link write} and
|
|
37
|
+
* {@link warn}; {@link call} gives the exit status and stderr, {@link callOutput} also
|
|
38
|
+
* collects stdout and turns a death into its output.
|
|
39
|
+
*/
|
|
40
|
+
export declare abstract class PlumbingCommand extends GitCommand<PlumbingResult> {
|
|
41
|
+
private sink?;
|
|
42
|
+
private stderrText;
|
|
43
|
+
/** Where stdout goes (default: discarded unless {@link callOutput} collects it). */
|
|
44
|
+
setStdout(sink: ByteSink): this;
|
|
45
|
+
/** The command's work: write stdout, add stderr, return the exit status. */
|
|
46
|
+
protected abstract run(): Promise<number>;
|
|
47
|
+
/**
|
|
48
|
+
* Writes bytes or text to stdout. Text is encoded as a git path ({@link encodeGitPath}):
|
|
49
|
+
* UTF-8, with the bytes a path read from a tree or the index escapes (U+DC80..U+DCFF)
|
|
50
|
+
* written back as they were, so names that are not UTF-8 keep their bytes.
|
|
51
|
+
*/
|
|
52
|
+
protected write(chunk: Uint8Array | string): Promise<void>;
|
|
53
|
+
/** Adds a line (its newline added) to stderr. */
|
|
54
|
+
protected warn(line: string): void;
|
|
55
|
+
/** What was written to stderr so far. */
|
|
56
|
+
getStderr(): string;
|
|
57
|
+
/**
|
|
58
|
+
* Runs the command.
|
|
59
|
+
*
|
|
60
|
+
* @throws PlumbingError (or another GitApiError) where git dies
|
|
61
|
+
*/
|
|
62
|
+
call(): Promise<PlumbingResult>;
|
|
63
|
+
/** Runs the command, collecting stdout; a death is returned as its stderr and status. */
|
|
64
|
+
callOutput(): Promise<PlumbingOutput>;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=plumbing-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plumbing-command.d.ts","sourceRoot":"","sources":["../../src/commands/plumbing-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,sFAAsF;AACtF,MAAM,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnE,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAC;IACjB,6EAA6E;IAC7E,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qEAAqE;AACrE,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,wDAAwD;IACxD,MAAM,EAAE,UAAU,CAAC;CACpB;AAED;;;GAGG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C,YAAY,OAAO,EAAE,MAAM,EAAE,QAAQ,SAAM,EAG1C;CACF;AAUD;;;;GAIG;AACH,8BAAsB,eAAgB,SAAQ,UAAU,CAAC,cAAc,CAAC;IACtE,OAAO,CAAC,IAAI,CAAC,CAAW;IACxB,OAAO,CAAC,UAAU,CAAM;IAExB,oFAAoF;IACpF,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAI9B;IAED,4EAA4E;IAC5E,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE1C;;;;OAIG;IACH,UAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAG/D;IAED,iDAAiD;IACjD,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAEjC;IAED,yCAAyC;IACzC,SAAS,IAAI,MAAM,CAElB;IAED;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,CAepC;IAED,yFAAyF;IACnF,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC,CAyB1C;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the plumbing commands reading paths or entries from stdin share: `git check-attr` and
|
|
3
|
+
* `git check-ignore`'s `--stdin` records (lines, a line starting with `"` unquoted as a C
|
|
4
|
+
* string, or NUL-terminated with `-z`) and their paths read against the current directory
|
|
5
|
+
* (`prefix_path`); `update-index --stdin`/`--index-info` and `checkout-index --stdin` lines
|
|
6
|
+
* (git's `strbuf_getline_lf` / `strbuf_getline_nul` and `unquote_c_style`).
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* `--stdin`'s records: `strbuf_getline_lf` lines (only the LF dropped), each starting with
|
|
10
|
+
* `"` unquoted (`unquote_c_style`, anything after the closing quote ignored), or with `nul`
|
|
11
|
+
* NUL-terminated records taken as they are. Undefined at the first line git cannot unquote
|
|
12
|
+
* (`fatal: line is badly quoted`), with the records before it.
|
|
13
|
+
*/
|
|
14
|
+
export declare function inputRecords(input: Uint8Array, nul: boolean): {
|
|
15
|
+
records: string[];
|
|
16
|
+
badlyQuoted: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* git's `prefix_path`: `path` read against the current directory `prefix` (`""` at the top,
|
|
20
|
+
* else ending with `/`) and normalized, an absolute path against `top` (the worktree's host
|
|
21
|
+
* directory, `prefixPathGently`); undefined when it leaves the worktree.
|
|
22
|
+
*/
|
|
23
|
+
export declare function prefixPath(prefix: string, path: string, top: string | undefined): string | undefined;
|
|
24
|
+
/** A current directory as `prefixPath` takes it: `""`, or the path with one trailing `/`. */
|
|
25
|
+
export declare function directoryPrefix(dir: string): string;
|
|
26
|
+
/** The lines of `input` (LF- or, with `nul`, NUL-separated; a last empty one dropped). */
|
|
27
|
+
export declare function inputLines(input: string | Uint8Array, nul: boolean): string[];
|
|
28
|
+
/**
|
|
29
|
+
* `unquote_c_style` of a line starting with `"` (what follows the closing quote ignored);
|
|
30
|
+
* undefined when it is badly quoted.
|
|
31
|
+
*/
|
|
32
|
+
export declare function unquoteLine(line: string): string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* `--stdin`'s paths: {@link inputLines}, each LF-separated line starting with `"`
|
|
35
|
+
* unquoted; `badlyQuoted` is thrown for one that cannot be.
|
|
36
|
+
*/
|
|
37
|
+
export declare function inputPaths(input: string | Uint8Array, nul: boolean, badlyQuoted: () => never): string[];
|
|
38
|
+
//# sourceMappingURL=plumbing-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plumbing-input.d.ts","sourceRoot":"","sources":["../../src/commands/plumbing-input.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,UAAU,EACjB,GAAG,EAAE,OAAO,GACX;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,WAAW,EAAE,OAAO,CAAA;CAAE,CAgB7C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB,MAAM,GAAG,SAAS,CAEpB;AAED,6FAA6F;AAC7F,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGnD;AAED,0FAA0F;AAC1F,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,EAAE,CAK7E;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE5D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,GAAG,UAAU,EAC1B,GAAG,EAAE,OAAO,EACZ,WAAW,EAAE,MAAM,KAAK,GACvB,MAAM,EAAE,CAIV"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The client side of the v2 `promisor-remote` capability (git 2.49+, promisor-remote.c's
|
|
3
|
+
* `filter_promisor_remote` and `promisor_remote_reply`): which promisor remotes a server
|
|
4
|
+
* advertises the client accepts (`promisor.acceptFromServer`: `None`, `KnownUrl`, `KnownName`,
|
|
5
|
+
* `All`; `promisor.checkFields`), what it stores of them (`promisor.storeFields`: the
|
|
6
|
+
* `partialCloneFilter` and `token` of a remote it already has), and which remotes its lazy
|
|
7
|
+
* fetches then try first ({@link acceptedPromisorRemotes}).
|
|
8
|
+
*
|
|
9
|
+
* Not yet: `promisor.acceptFromServerUrl` (2.56: remotes created from an advertised URL) and
|
|
10
|
+
* `--filter=auto`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // [promisor] acceptFromServer = knownUrl; [remote "lop"] url = file:///lop; promisor = true
|
|
15
|
+
* const reply = promisorRemoteReplyOf(workingCopy, (line) => stderr.push(line));
|
|
16
|
+
* await reply("name=lop,url=file:///lop"); // "lop": sent as `promisor-remote=lop`
|
|
17
|
+
* acceptedPromisorRemotes(workingCopy); // Set { "lop" }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
import { type PromisorRemoteReply } from "@statewalker/vcs-transport";
|
|
21
|
+
import type { WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
22
|
+
/**
|
|
23
|
+
* The promisor remotes a server's `promisor-remote` advertisement made this repository
|
|
24
|
+
* accept (git's `promisor_remote.accepted`, kept for the process): its lazy fetches try them
|
|
25
|
+
* before the other promisor remotes.
|
|
26
|
+
*/
|
|
27
|
+
export declare function acceptedPromisorRemotes(workingCopy: WorkingCopy): ReadonlySet<string>;
|
|
28
|
+
/**
|
|
29
|
+
* The answer of `workingCopy` to a server's `promisor-remote` capability, given to
|
|
30
|
+
* `fetchFromConnection` (`FetchClientOptions.promisorRemote`). `stderr` gets git's lines
|
|
31
|
+
* (warnings, `Storing new filter from server ...`), each without its newline. Each call reads
|
|
32
|
+
* the configuration afresh: a stored field is not stored (nor told) again.
|
|
33
|
+
*/
|
|
34
|
+
export declare function promisorRemoteReplyOf(workingCopy: WorkingCopy, stderr: (line: string) => void): PromisorRemoteReply;
|
|
35
|
+
//# sourceMappingURL=promisor-remote-reply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promisor-remote-reply.d.ts","sourceRoot":"","sources":["../../src/commands/promisor-remote-reply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAGL,KAAK,mBAAmB,EAEzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAcjE;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,CAErF;AAUD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,mBAAmB,CAwFrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promisor-remote.d.ts","sourceRoot":"","sources":["../../src/commands/promisor-remote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,WAAW,EAKhB,KAAK,oBAAoB,
|
|
1
|
+
{"version":3,"file":"promisor-remote.d.ts","sourceRoot":"","sources":["../../src/commands/promisor-remote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,WAAW,EAKhB,KAAK,oBAAoB,EAE1B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAK9D,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,GAAG,cAAc,EAAE,CAsC1E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,IAAI,CASN;AAED,wCAAwC;AACxC,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAEnE;AAED,sEAAsE;AACtE,MAAM,WAAW,sBAAsB;IACrC,iFAAiF;IACjF,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED,wFAAwF;AACxF,eAAO,MAAM,2BAA2B,uEAC8B,CAAC;AAEvE;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,OAAO,GAAE,sBAA2B,GACnC,eAAe,CAyJjB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,WAAW,EACxB,OAAO,GAAE,sBAA2B,GACnC,cAAc,GAAG,SAAS,CAI5B;AAED,oEAAoE;AACpE,wBAAgB,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,cAAc,GAAG,SAAS,CAM/E"}
|
|
@@ -1,28 +1,39 @@
|
|
|
1
1
|
import type { FilesApi } from "@statewalker/vcs-core";
|
|
2
|
+
import { GuardedTransportCommand } from "../guarded-transport-command.js";
|
|
2
3
|
import { FastForwardMode, type MergeStrategy } from "../results/merge-result.js";
|
|
3
4
|
import type { PullResult } from "../results/pull-result.js";
|
|
4
|
-
import {
|
|
5
|
+
import type { CommitEditor } from "./commit-command.js";
|
|
5
6
|
import { TagOption } from "./fetch-command.js";
|
|
7
|
+
import { type CleanupMode } from "./message-cleanup.js";
|
|
8
|
+
import { type FetchRecurseSubmodules } from "./submodule-fetch.js";
|
|
6
9
|
/**
|
|
7
10
|
* Pull changes from a remote repository.
|
|
8
11
|
*
|
|
9
|
-
* Equivalent to `git pull`
|
|
12
|
+
* Equivalent to `git pull`: git's fetch (`git fetch [<remote> [<refspec>...]]`, the
|
|
13
|
+
* configured refspecs when none is given), then the `FETCH_HEAD` entries marked for merge
|
|
14
|
+
* merged into the current branch (`git merge FETCH_HEAD`), rebased onto (`--rebase`,
|
|
15
|
+
* `pull.rebase`), or branched off on an unborn branch (pull.c's `pull_into_void`). The
|
|
16
|
+
* options pull passes to git's merge, rebase and fetch are passed on the same way.
|
|
10
17
|
*
|
|
11
|
-
*
|
|
18
|
+
* Credentials and headers follow `GuardedTransportCommand`'s rule: {@link setCredentials} and
|
|
19
|
+
* {@link setHeaders} go only to the origins named with `addCredentialOrigin`, else to the
|
|
20
|
+
* default remote's origin (`branch.<name>.remote`, a name or a URL) while every remote the
|
|
21
|
+
* pull reaches has it, or to the URL given to {@link setRemote} when it names no configured
|
|
22
|
+
* remote; per-URL providers
|
|
23
|
+
* (`setCredentialsForUrl`, `setHeadersForUrl`) answer for their URL's origin; a redirect to
|
|
24
|
+
* another origin carries none. `--all` runs `FetchMultipleCommand` (git's fetch_multiple).
|
|
12
25
|
*
|
|
13
26
|
* @example
|
|
14
27
|
* ```typescript
|
|
15
|
-
* // Pull
|
|
28
|
+
* // Pull the current branch's upstream (branch.<name>.remote / .merge)
|
|
16
29
|
* const result = await git.pull().call();
|
|
17
30
|
*
|
|
18
|
-
* //
|
|
31
|
+
* // git pull --no-rebase --squash upstream main
|
|
19
32
|
* const result = await git.pull()
|
|
20
33
|
* .setRemote("upstream")
|
|
21
|
-
* .
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* const result = await git.pull()
|
|
25
|
-
* .setRemoteBranchName("develop")
|
|
34
|
+
* .setRemoteBranchName("main")
|
|
35
|
+
* .setRebase(false)
|
|
36
|
+
* .setSquash(true)
|
|
26
37
|
* .call();
|
|
27
38
|
*
|
|
28
39
|
* // Pull with rebase (`git pull --rebase`; without the option, pull.rebase decides)
|
|
@@ -31,15 +42,42 @@ import { TagOption } from "./fetch-command.js";
|
|
|
31
42
|
* .call();
|
|
32
43
|
* ```
|
|
33
44
|
*/
|
|
34
|
-
export declare class PullCommand extends
|
|
45
|
+
export declare class PullCommand extends GuardedTransportCommand<PullResult> {
|
|
35
46
|
private remote;
|
|
36
47
|
/** Whether the remote was named (it is then in the reflog action). */
|
|
37
48
|
private remoteGiven;
|
|
38
|
-
|
|
49
|
+
/** The refspecs after the remote (`git pull <remote> <refspec>...`) */
|
|
50
|
+
private refSpecs;
|
|
39
51
|
/** `--rebase` / `--no-rebase`; undefined: branch.<name>.rebase, then pull.rebase */
|
|
40
52
|
private rebase?;
|
|
41
53
|
/** `--verify-signatures` / `--no-verify-signatures`, passed to the merge */
|
|
42
54
|
private verifySignatures?;
|
|
55
|
+
/** `--autostash` / `--no-autostash`; undefined: pull.autoStash, then rebase.autoStash */
|
|
56
|
+
private autoStash?;
|
|
57
|
+
private strategy?;
|
|
58
|
+
private strategyOptions;
|
|
59
|
+
private fastForwardMode?;
|
|
60
|
+
private tagOption?;
|
|
61
|
+
private repositoryFiles?;
|
|
62
|
+
private squash?;
|
|
63
|
+
private commit?;
|
|
64
|
+
private edit?;
|
|
65
|
+
private editor?;
|
|
66
|
+
private log?;
|
|
67
|
+
private signoff?;
|
|
68
|
+
private cleanupMode?;
|
|
69
|
+
private cleanupArg?;
|
|
70
|
+
private noVerify?;
|
|
71
|
+
private allowUnrelatedHistories;
|
|
72
|
+
private all;
|
|
73
|
+
private prune?;
|
|
74
|
+
private depth?;
|
|
75
|
+
private deepen?;
|
|
76
|
+
private unshallow;
|
|
77
|
+
private force;
|
|
78
|
+
private compatibility?;
|
|
79
|
+
private dryRun;
|
|
80
|
+
private recurseSubmodules?;
|
|
43
81
|
/**
|
|
44
82
|
* `--verify-signatures` (true) / `--no-verify-signatures` (false), passed to the merge as
|
|
45
83
|
* git's pull passes it (see `MergeCommand.setVerifySignatures`; undefined: the merge's
|
|
@@ -48,12 +86,6 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
48
86
|
* `--verify-signatures` with git's warning.
|
|
49
87
|
*/
|
|
50
88
|
setVerifySignatures(verify: boolean | undefined): this;
|
|
51
|
-
/** `--autostash` / `--no-autostash`; undefined: pull.autoStash, then rebase.autoStash */
|
|
52
|
-
private autoStash?;
|
|
53
|
-
private strategy?;
|
|
54
|
-
private fastForwardMode?;
|
|
55
|
-
private tagOption?;
|
|
56
|
-
private repositoryFiles?;
|
|
57
89
|
/**
|
|
58
90
|
* The files of the repository, for the fetch to write the commit-graph
|
|
59
91
|
* `fetch.writeCommitGraph` asks for (see `FetchCommand.setRepositoryFiles`).
|
|
@@ -63,9 +95,8 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
63
95
|
gitDir?: string;
|
|
64
96
|
}): this;
|
|
65
97
|
/**
|
|
66
|
-
* Set the remote to pull from
|
|
67
|
-
*
|
|
68
|
-
* Default is "origin".
|
|
98
|
+
* Set the remote to pull from: a configured remote's name, a path or a URL (git's
|
|
99
|
+
* `<repository>`). Default: the current branch's `branch.<name>.remote`, else `origin`.
|
|
69
100
|
*
|
|
70
101
|
* @param remote Remote name
|
|
71
102
|
*/
|
|
@@ -75,20 +106,28 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
75
106
|
*/
|
|
76
107
|
getRemote(): string;
|
|
77
108
|
/**
|
|
78
|
-
* Set the remote branch to pull.
|
|
109
|
+
* Set the remote branch to pull (one refspec, `git pull <remote> <branch>`).
|
|
79
110
|
*
|
|
80
|
-
* If not set,
|
|
111
|
+
* If not set, the remote's configured refspecs are fetched and the current branch's
|
|
112
|
+
* `branch.<name>.merge` is merged.
|
|
81
113
|
*
|
|
82
114
|
* @param branch Remote branch name
|
|
83
115
|
*/
|
|
84
116
|
setRemoteBranchName(branch: string): this;
|
|
85
117
|
/**
|
|
86
|
-
* Get the remote branch name.
|
|
118
|
+
* Get the remote branch name (the first refspec).
|
|
87
119
|
*/
|
|
88
120
|
getRemoteBranchName(): string | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* The refspecs to fetch (`git pull <remote> <refspec>...`): what they fetch is merged, two
|
|
123
|
+
* or more heads as an octopus.
|
|
124
|
+
*/
|
|
125
|
+
setRefSpecs(...refSpecs: string[]): this;
|
|
89
126
|
/**
|
|
90
127
|
* Set whether to use rebase instead of merge (`--rebase` / `--no-rebase`). Without it the
|
|
91
|
-
* configuration decides, as in git: `branch.<name>.rebase`, else `pull.rebase`, else merge
|
|
128
|
+
* configuration decides, as in git: `branch.<name>.rebase`, else `pull.rebase`, else merge
|
|
129
|
+
* (a pull that cannot fast-forward then refuses unless `pull.ff` or a fast-forward mode
|
|
130
|
+
* is given: git's "Need to specify how to reconcile divergent branches.").
|
|
92
131
|
* Only this option puts `--rebase` in the reflog lines (git's are the command line's).
|
|
93
132
|
*
|
|
94
133
|
* @param rebase Whether to use rebase
|
|
@@ -106,13 +145,20 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
106
145
|
*/
|
|
107
146
|
setAutoStash(autoStash: boolean): this;
|
|
108
147
|
/**
|
|
109
|
-
* Set the merge strategy.
|
|
148
|
+
* Set the merge strategy (`-s <strategy>`, passed to the merge or the rebase).
|
|
110
149
|
*
|
|
111
150
|
* @param strategy Merge strategy
|
|
112
151
|
*/
|
|
113
152
|
setStrategy(strategy: MergeStrategy): this;
|
|
114
153
|
/**
|
|
115
|
-
*
|
|
154
|
+
* `-X <option>` for each option (passed to the merge or the rebase, see
|
|
155
|
+
* `MergeCommand.setStrategyOptions`).
|
|
156
|
+
*/
|
|
157
|
+
setStrategyOptions(options: readonly string[]): this;
|
|
158
|
+
/**
|
|
159
|
+
* Set the fast-forward mode (`--ff`, `--no-ff`, `--ff-only`; default `pull.ff`). With
|
|
160
|
+
* `--ff-only` a pull whose branches diverged dies before merging or rebasing (git's
|
|
161
|
+
* `die_ff_impossible`), and one that can fast-forward merges even when a rebase is asked.
|
|
116
162
|
*
|
|
117
163
|
* @param mode Fast-forward mode
|
|
118
164
|
*/
|
|
@@ -122,7 +168,7 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
122
168
|
*/
|
|
123
169
|
getFastForwardMode(): FastForwardMode | undefined;
|
|
124
170
|
/**
|
|
125
|
-
* Set the specification of annotated tag behavior during fetch.
|
|
171
|
+
* Set the specification of annotated tag behavior during fetch (`--tags`, `--no-tags`).
|
|
126
172
|
*
|
|
127
173
|
* @param tagOption Tag option
|
|
128
174
|
*/
|
|
@@ -131,14 +177,102 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
131
177
|
* Get the tag option.
|
|
132
178
|
*/
|
|
133
179
|
getTagOpt(): TagOption | undefined;
|
|
180
|
+
/** `--squash` / `--no-squash`, passed to the merge (see `MergeCommand.setSquash`). */
|
|
181
|
+
setSquash(squash: boolean): this;
|
|
182
|
+
/** `--commit` / `--no-commit`, passed to the merge (see `MergeCommand.setCommit`). */
|
|
183
|
+
setCommit(commit: boolean): this;
|
|
184
|
+
/**
|
|
185
|
+
* `--edit` / `--no-edit`, passed to the merge: with `--edit` the merge commit's message
|
|
186
|
+
* goes through the editor ({@link setEditor}; see `MergeCommand.setEdit`). Without either
|
|
187
|
+
* the merge does not edit (git's default without a terminal).
|
|
188
|
+
*/
|
|
189
|
+
setEdit(edit: boolean): this;
|
|
190
|
+
/** The editor `--edit` runs over MERGE_MSG (git's `GIT_EDITOR`; see `CommitCommand.setEditor`). */
|
|
191
|
+
setEditor(editor: CommitEditor): this;
|
|
192
|
+
/**
|
|
193
|
+
* `--log[=<n>]` / `--no-log`, passed to the merge (see `MergeCommand.setLog`): true is
|
|
194
|
+
* `--log`, a number `--log=<n>`, false `--no-log`.
|
|
195
|
+
*/
|
|
196
|
+
setLog(log: boolean | number): this;
|
|
197
|
+
/**
|
|
198
|
+
* `--signoff` / `--no-signoff`, passed to the merge, or to the rebase of a rebasing pull.
|
|
199
|
+
*/
|
|
200
|
+
setSignoff(signoff: boolean): this;
|
|
201
|
+
/**
|
|
202
|
+
* `--cleanup=<mode>`, passed to the merge. A mode git does not know dies before the fetch
|
|
203
|
+
* (`Invalid cleanup mode <mode>`).
|
|
204
|
+
*/
|
|
205
|
+
setCleanupMode(mode: CleanupMode | string): this;
|
|
206
|
+
/** `--no-verify` (true) / `--verify` (false), passed to the merge. */
|
|
207
|
+
setNoVerify(noVerify: boolean): this;
|
|
208
|
+
/** `--allow-unrelated-histories`, passed to the merge. */
|
|
209
|
+
setAllowUnrelatedHistories(allow: boolean): this;
|
|
210
|
+
/**
|
|
211
|
+
* `--all`: fetch every remote (but those with `remote.<name>.skipDefaultUpdate`), each
|
|
212
|
+
* appending to FETCH_HEAD as git's `fetch --all` does, then merge what the current
|
|
213
|
+
* branch's upstream marked for merge. Takes no remote or refspec.
|
|
214
|
+
*/
|
|
215
|
+
setAll(all: boolean): this;
|
|
216
|
+
/** `--prune` / `--no-prune`, passed to the fetch (`FetchCommand.setRemoveDeletedRefs`). */
|
|
217
|
+
setPrune(prune: boolean): this;
|
|
218
|
+
/** `--depth=<n>`, passed to the fetch. */
|
|
219
|
+
setDepth(depth: number): this;
|
|
220
|
+
/** `--deepen=<n>`, passed to the fetch (`FetchCommand.setDeepen`). */
|
|
221
|
+
setDeepen(deepen: number): this;
|
|
222
|
+
/** `--unshallow`, passed to the fetch. */
|
|
223
|
+
setUnshallow(unshallow: boolean): this;
|
|
224
|
+
/**
|
|
225
|
+
* The git version whose advice text the refusals follow (2.43: `hint: ` before an empty
|
|
226
|
+
* line, `git config advice.<name> false`); default the hooks' compatibility.
|
|
227
|
+
*/
|
|
228
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
229
|
+
/** `--force`, passed to the fetch (`FetchCommand.setForceUpdate`). */
|
|
230
|
+
setForce(force: boolean): this;
|
|
231
|
+
/**
|
|
232
|
+
* `--dry-run`: the fetch only shows what it would do (`FetchCommand.setDryRun`), and
|
|
233
|
+
* nothing is merged or rebased.
|
|
234
|
+
*/
|
|
235
|
+
setDryRun(dryRun: boolean): this;
|
|
236
|
+
/**
|
|
237
|
+
* `--recurse-submodules[=yes|on-demand|no]` / `--no-recurse-submodules` (true is `yes`,
|
|
238
|
+
* false `no`): passed to the fetch (`FetchCommand.setRecurseSubmodules`), and, unless
|
|
239
|
+
* `no`, once the merge or rebase succeeded the submodules are updated as `git submodule
|
|
240
|
+
* update --recursive --checkout` (`--rebase` for a rebasing pull) does, its output in
|
|
241
|
+
* {@link PullResult.submodules}. Unset, `submodule.recurse` decides (the fetch reads its
|
|
242
|
+
* own configuration). A rebasing pull that would recurse refuses local commits that
|
|
243
|
+
* record submodule changes (`cannot rebase with locally recorded submodule modifications`).
|
|
244
|
+
*/
|
|
245
|
+
setRecurseSubmodules(recurse: boolean | FetchRecurseSubmodules): this;
|
|
134
246
|
/**
|
|
135
247
|
* Execute the pull operation.
|
|
136
248
|
*
|
|
137
249
|
* @returns Pull result with fetch and merge results
|
|
138
|
-
* @throws NoHeadError if HEAD is
|
|
139
|
-
* @throws
|
|
250
|
+
* @throws NoHeadError if HEAD is detached and no refspec is given
|
|
251
|
+
* @throws GitApiError with git's stderr where git's pull dies (exit 128, or 1 when nothing
|
|
252
|
+
* fetched is to be merged)
|
|
140
253
|
*/
|
|
141
254
|
call(): Promise<PullResult>;
|
|
255
|
+
/** pull.c's `submodule.recurse`: a boolean (on or off), undefined when unset. */
|
|
256
|
+
private configRecurseSubmodules;
|
|
257
|
+
/** `git submodule update --recursive --checkout|--rebase`: its output and exit status. */
|
|
258
|
+
private updateSubmodules;
|
|
259
|
+
/**
|
|
260
|
+
* git's advise() lines (`hint:`, 2.43's `hint: ` before an empty line), the
|
|
261
|
+
* `advise_if_enabled` hint naming `advice.<name>` when given, then the `fatal:` line.
|
|
262
|
+
*/
|
|
263
|
+
private advice;
|
|
264
|
+
/**
|
|
265
|
+
* The pull's command line as git's reflog action spells it (`pull` and its arguments), in
|
|
266
|
+
* a fixed order since our options have none.
|
|
267
|
+
*/
|
|
268
|
+
private commandLine;
|
|
269
|
+
/**
|
|
270
|
+
* run_fetch: `git fetch [<options>] <remote> [<refspec>...]` with the pull's options, over
|
|
271
|
+
* the guarded transports (the credentials and headers go only where they are for).
|
|
272
|
+
*/
|
|
273
|
+
private fetchCommand;
|
|
274
|
+
/** Whether MERGE_HEAD exists (pull.c's `file_exists(git_path_merge_head())`). */
|
|
275
|
+
private mergeInProgress;
|
|
142
276
|
/**
|
|
143
277
|
* pull.c after its fetch: when the fetch moved the checked-out branch itself
|
|
144
278
|
* (`--update-head-ok`, a branches remote named after it), the index and worktree still at
|
|
@@ -151,22 +285,32 @@ export declare class PullCommand extends TransportCommand<PullResult> {
|
|
|
151
285
|
*/
|
|
152
286
|
private fastForwardMovedHead;
|
|
153
287
|
/**
|
|
154
|
-
* pull.c's `get_merge_heads`: the
|
|
155
|
-
*
|
|
288
|
+
* pull.c's `get_merge_heads`: the FETCH_HEAD entries not marked `not-for-merge`, with the
|
|
289
|
+
* file's text (what `git merge FETCH_HEAD` gives fmt-merge-msg).
|
|
290
|
+
*/
|
|
291
|
+
private mergeHeadsFromFetchHead;
|
|
292
|
+
/**
|
|
293
|
+
* pull.c's `die_no_merge_candidates`: why nothing fetched is to be merged.
|
|
156
294
|
*
|
|
157
|
-
* @throws GitApiError with
|
|
295
|
+
* @throws GitApiError with git's lines (exit 1)
|
|
158
296
|
*/
|
|
159
|
-
private
|
|
297
|
+
private dieNoMergeCandidates;
|
|
160
298
|
private config;
|
|
299
|
+
/**
|
|
300
|
+
* git's config_get_ff: `pull.ff` (false `--no-ff`, true `--ff`, `only` `--ff-only`).
|
|
301
|
+
*
|
|
302
|
+
* @throws GitApiError for any other value (`invalid value for 'pull.ff'`)
|
|
303
|
+
*/
|
|
304
|
+
private configFastForward;
|
|
161
305
|
/**
|
|
162
306
|
* git's config_get_rebase: `branch.<name>.rebase`, else `pull.rebase`; any value other
|
|
163
|
-
* than false (`true`, `merges`, `interactive`) rebases.
|
|
307
|
+
* than false (`true`, `merges`, `interactive`) rebases. Undefined when neither is set.
|
|
164
308
|
*/
|
|
165
309
|
private configRebase;
|
|
166
310
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
311
|
+
* Whether `ancestor` is an ancestor of `commit` (git's repo_is_descendant_of), by git's
|
|
312
|
+
* date-ordered paint walk, which stops once the sides meet.
|
|
169
313
|
*/
|
|
170
|
-
private
|
|
314
|
+
private isAncestor;
|
|
171
315
|
}
|
|
172
316
|
//# sourceMappingURL=pull-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pull-command.d.ts","sourceRoot":"","sources":["../../src/commands/pull-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"pull-command.d.ts","sourceRoot":"","sources":["../../src/commands/pull-command.ts"],"names":[],"mappings":"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"}
|
|
@@ -51,6 +51,24 @@ export declare class PushCommand extends TransportCommand<PushResult> {
|
|
|
51
51
|
/** `--[no-]signed[=if-asked]` (undefined: `push.gpgSign`) */
|
|
52
52
|
private signed?;
|
|
53
53
|
private noVerify;
|
|
54
|
+
/** `--recurse-submodules=<mode>`; unset: the configuration's */
|
|
55
|
+
private recurseSubmodules?;
|
|
56
|
+
/** `--recurse-submodules=only-is-on-demand`: a superproject's push of this submodule */
|
|
57
|
+
private recurseFromSuperproject;
|
|
58
|
+
/**
|
|
59
|
+
* `--recurse-submodules=check|on-demand|only|no` (`--no-recurse-submodules` is `no`):
|
|
60
|
+
* before the refs are sent, the submodules whose recorded commits (in the commits pushed,
|
|
61
|
+
* not on the remote's tracking refs) are on none of the submodule's remote-tracking refs
|
|
62
|
+
* are `check`ed (the push dies listing them), pushed first (`on-demand`: `git push` in each,
|
|
63
|
+
* to the remote and refspecs given here when the remote is configured; then checked again
|
|
64
|
+
* unless a dry run), or pushed alone (`only`: the superproject's refs are not sent). Unset,
|
|
65
|
+
* `push.recurseSubmodules` and `submodule.recurse` (on-demand or no) decide, in config
|
|
66
|
+
* order. What the submodules' pushes printed is {@link PushResult.submoduleOutput}.
|
|
67
|
+
* A bare repository never recurses.
|
|
68
|
+
*/
|
|
69
|
+
setRecurseSubmodules(mode: PushRecurseSubmodules | boolean): this;
|
|
70
|
+
/** @internal `--recurse-submodules=only-is-on-demand`: run by a superproject's push. */
|
|
71
|
+
setRecurseFromSuperproject(child: boolean): this;
|
|
54
72
|
/** `--no-verify`: the pre-push hook does not run. */
|
|
55
73
|
setNoVerify(noVerify: boolean): this;
|
|
56
74
|
private thin;
|
|
@@ -203,8 +221,9 @@ export declare class PushCommand extends TransportCommand<PushResult> {
|
|
|
203
221
|
* certificate; undefined (the default) leaves it to `push.gpgSign` (a boolean or
|
|
204
222
|
* `if-asked`). A server that takes no certificate refuses a signed push (`fatal: the
|
|
205
223
|
* receiving end does not support --signed push`) and gets an `if-asked` one unsigned,
|
|
206
|
-
* with git's warning ({@link PushResult.warnings}).
|
|
207
|
-
*
|
|
224
|
+
* with git's warning ({@link PushResult.warnings}). The certificate is signed through the
|
|
225
|
+
* host's signer as `commit -S` signs (`gpg.format`, `user.signingKey`); without a signer, or
|
|
226
|
+
* when it fails, the push dies as git does when gpg cannot sign (`error: gpg failed to sign
|
|
208
227
|
* the data:`, `fatal: failed to sign the push certificate`, exit 128:
|
|
209
228
|
* {@link SigningFailedError}), before anything is sent.
|
|
210
229
|
*/
|
|
@@ -214,6 +233,14 @@ export declare class PushCommand extends TransportCommand<PushResult> {
|
|
|
214
233
|
* `push.gpgSign` (a boolean or `if-asked`, case-insensitive; another value signs nothing).
|
|
215
234
|
*/
|
|
216
235
|
private pushCertMode;
|
|
236
|
+
/**
|
|
237
|
+
* send-pack's `generate_push_cert` through the host's signer (`sign_buffer` with the default
|
|
238
|
+
* key, as `push --signed` signs): the pusher is `get_signing_key_id()`, the date now in the
|
|
239
|
+
* local zone (git's `datestamp`: never `GIT_COMMITTER_DATE`), the pushee the URL without its
|
|
240
|
+
* credentials. A failed signing dies as git: gpg's lines, `fatal: failed to sign the push
|
|
241
|
+
* certificate`, exit 128.
|
|
242
|
+
*/
|
|
243
|
+
private pushCertSigner;
|
|
217
244
|
/**
|
|
218
245
|
* Whether atomic push is enabled.
|
|
219
246
|
*/
|
|
@@ -315,6 +342,39 @@ export declare class PushCommand extends TransportCommand<PushResult> {
|
|
|
315
342
|
* @throws InvalidRemoteError if remote cannot be resolved
|
|
316
343
|
*/
|
|
317
344
|
call(): Promise<PushResult>;
|
|
345
|
+
/**
|
|
346
|
+
* builtin/push.c's `recurse_submodules`: `push.recurseSubmodules` and `submodule.recurse`
|
|
347
|
+
* in config order, then the command line; undefined for none (`no`). A superproject's push
|
|
348
|
+
* of this submodule takes `only` as `on-demand`, with git's warning.
|
|
349
|
+
*/
|
|
350
|
+
private pushRecursion;
|
|
351
|
+
/** git's `-q`: never set here (the report is the caller's to print) */
|
|
352
|
+
private readonly quietOutput;
|
|
353
|
+
/**
|
|
354
|
+
* transport.c's submodule steps of `transport_push`: `push_unpushed_submodules` for
|
|
355
|
+
* on-demand and only, then the `find_unpushed_submodules` check for check (and on-demand
|
|
356
|
+
* and only unless a dry run); `only` then stops the push ({@link SubmodulesOnlyPushed}).
|
|
357
|
+
*/
|
|
358
|
+
private pushSubmodulesFirst;
|
|
359
|
+
/** The submodule's repository at `path` (populated). */
|
|
360
|
+
private openSubmodulePath;
|
|
361
|
+
/**
|
|
362
|
+
* submodule.c's `push_submodule`: `git push --recurse-submodules=only-is-on-demand
|
|
363
|
+
* [--dry-run] [--push-option=...] [<remote> <refspec>...]` in the submodule, when it has
|
|
364
|
+
* remote-tracking refs; false when that push failed.
|
|
365
|
+
*/
|
|
366
|
+
private pushSubmodule;
|
|
367
|
+
/**
|
|
368
|
+
* The transports a submodule's push goes through: a submodule's URL is repository content,
|
|
369
|
+
* so this push's credentials and headers go only to its own remote's origin.
|
|
370
|
+
*/
|
|
371
|
+
private submoduleTransports;
|
|
372
|
+
/**
|
|
373
|
+
* `git submodule--helper push-check <head> <remote> <refspec>...` in the submodule: its
|
|
374
|
+
* `fatal:` line when the remote is not configured there or a refspec's source names no
|
|
375
|
+
* single ref (`HEAD` only when the submodule is on the superproject's branch).
|
|
376
|
+
*/
|
|
377
|
+
private submodulePushCheck;
|
|
318
378
|
/**
|
|
319
379
|
* transport.c's pre-push hook: told the remote's name (its URL when pushed to by URL) and
|
|
320
380
|
* URL, with a `<local ref> <local id> <remote ref> <remote id>` line on stdin for each ref
|
|
@@ -329,6 +389,12 @@ export declare class PushCommand extends TransportCommand<PushResult> {
|
|
|
329
389
|
* only says what it would set. git's stdout lines.
|
|
330
390
|
*/
|
|
331
391
|
private setUpstreams;
|
|
392
|
+
/**
|
|
393
|
+
* get_commons_through_negotiation: `git fetch --negotiate-only --negotiation-tip=<id>...
|
|
394
|
+
* <url>` run as git's child, its acknowledged commits the commons; its warnings (stderr)
|
|
395
|
+
* passed on, and no commons when it fails (git's "push negotiation failed").
|
|
396
|
+
*/
|
|
397
|
+
private negotiateCommons;
|
|
332
398
|
/**
|
|
333
399
|
* remote.c's `is_reachable_in_reflog` for `--force-if-includes`: whether the remote's value
|
|
334
400
|
* (peeled to a commit) is the new value of an entry of the local ref's reflog (the local ref
|
|
@@ -417,4 +483,18 @@ export declare class PushCommand extends TransportCommand<PushResult> {
|
|
|
417
483
|
*/
|
|
418
484
|
private trackingRefMapper;
|
|
419
485
|
}
|
|
486
|
+
/**
|
|
487
|
+
* builtin/push.c's `--recurse-submodules` modes (git's `RECURSE_SUBMODULES_CHECK`,
|
|
488
|
+
* `_ON_DEMAND`, `_ONLY`, `_OFF`).
|
|
489
|
+
*/
|
|
490
|
+
export type PushRecurseSubmodules = "check" | "on-demand" | "only" | "no";
|
|
491
|
+
/**
|
|
492
|
+
* submodule-config.c's `parse_push_recurse_submodules_arg`: false, `on-demand`, `check` or
|
|
493
|
+
* `only`; true (there is no plain "on" for a push) and anything else die.
|
|
494
|
+
*/
|
|
495
|
+
export declare function parsePushRecurseSubmodules(key: string, value: string | undefined): PushRecurseSubmodules;
|
|
496
|
+
/** What a push prints on stderr: its warnings, its report, its errors, its submodules'. */
|
|
497
|
+
export declare function pushOutputText(result: PushResult): string;
|
|
498
|
+
/** Whether git's push exits 0: every ref pushed or up to date, the report sound. */
|
|
499
|
+
export declare function pushSucceeded(result: PushResult): boolean;
|
|
420
500
|
//# sourceMappingURL=push-command.d.ts.map
|