@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
|
@@ -28,7 +28,11 @@ export interface TextconvRequest {
|
|
|
28
28
|
path: string;
|
|
29
29
|
/** The content to convert: the blob's, or the worktree file's as `git add` would store it */
|
|
30
30
|
content: Uint8Array;
|
|
31
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* `diff.<driver>.cachetextconv`: the command keeps the output of a stored blob in git's
|
|
33
|
+
* notes cache (`refs/notes/textconv/<driver>`, `textconv-cache.ts`) and asks the runner
|
|
34
|
+
* only for blobs not cached yet under the same command
|
|
35
|
+
*/
|
|
32
36
|
cache: boolean;
|
|
33
37
|
}
|
|
34
38
|
/** Runs a textconv command for the host; throws when the command fails. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-textconv.d.ts","sourceRoot":"","sources":["../../src/commands/diff-textconv.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,qFAAqF;IACrF,IAAI,EAAE,MAAM,CAAC;IACb,6FAA6F;IAC7F,OAAO,EAAE,UAAU,CAAC;IACpB
|
|
1
|
+
{"version":3,"file":"diff-textconv.d.ts","sourceRoot":"","sources":["../../src/commands/diff-textconv.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,qFAAqF;IACrF,IAAI,EAAE,MAAM,CAAC;IACb,6FAA6F;IAC7F,OAAO,EAAE,UAAU,CAAC;IACpB;;;;OAIG;IACH,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,2EAA2E;AAC3E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;AAI/E,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,GAAG,IAAI,CAE5F;AAED,gEAAgE;AAChE,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,WAAW,GAAG,cAAc,GAAG,SAAS,CAErF"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git fast-export` (builtin/fast-export.c): the history the revision arguments name as a
|
|
3
|
+
* fast-import stream, written to stdout as git writes it.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git fast-export --all > stream
|
|
8
|
+
* const { stdout, exitCode } = await git.fastExport().addArgument("--all").callOutput();
|
|
9
|
+
* // git fast-export --signed-tags=strip --export-marks=marks main~2..main
|
|
10
|
+
* await git
|
|
11
|
+
* .fastExport()
|
|
12
|
+
* .setSignedTags("strip")
|
|
13
|
+
* .setExportMarks("marks")
|
|
14
|
+
* .setMarksFiles(files)
|
|
15
|
+
* .addArgument("main~2..main")
|
|
16
|
+
* .setStdout((chunk) => out.push(chunk))
|
|
17
|
+
* .call();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
import { PlumbingCommand } from "../plumbing-command.js";
|
|
21
|
+
import { type FastMarksFiles, type SignMode } from "./fast-stream-support.js";
|
|
22
|
+
/** `--tag-of-filtered-object=<mode>` */
|
|
23
|
+
export type TagOfFilteredMode = "abort" | "drop" | "rewrite";
|
|
24
|
+
/** `--reencode=<mode>` */
|
|
25
|
+
export type ReencodeMode = "yes" | "no" | "abort";
|
|
26
|
+
/**
|
|
27
|
+
* Writes the history the revisions name as a fast-import stream (`git fast-export`).
|
|
28
|
+
*
|
|
29
|
+
* Commits come in git's order (a reversed topological walk, `--topo-order`), each with the
|
|
30
|
+
* blobs its diff against its first parent adds before it (all of its tree for a root commit,
|
|
31
|
+
* a commit whose first parent is not exported, or `--full-tree`), and is named by the ref it
|
|
32
|
+
* was reached from (git's `revision_sources`); refs naming exported commits from another
|
|
33
|
+
* name get `reset` lines, annotated tags `tag` commands, at the end. Marks are numbered as
|
|
34
|
+
* git numbers them, so the stream is git's byte for byte.
|
|
35
|
+
*
|
|
36
|
+
* Not supported: pathspecs, `--anonymize`, rename and copy detection (`-M`, `-C`).
|
|
37
|
+
*
|
|
38
|
+
* Version differences (`setCompatibility`): 2.43 finds a tag's signature only as a PGP
|
|
39
|
+
* signature after a newline and words several messages with a capital letter; 2.5x knows
|
|
40
|
+
* every signature format and `--signed-commits`.
|
|
41
|
+
*/
|
|
42
|
+
export declare class FastExportCommand extends PlumbingCommand {
|
|
43
|
+
private readonly revisions;
|
|
44
|
+
private progressEvery;
|
|
45
|
+
private signedTags;
|
|
46
|
+
private signedCommits;
|
|
47
|
+
private tagOfFiltered;
|
|
48
|
+
private reencode;
|
|
49
|
+
private exportMarksPath?;
|
|
50
|
+
private importMarksPath?;
|
|
51
|
+
private importMarksIfExistsPath?;
|
|
52
|
+
private marksFiles?;
|
|
53
|
+
private fakeMissingTagger;
|
|
54
|
+
private fullTree;
|
|
55
|
+
private useDoneFeature;
|
|
56
|
+
private noData;
|
|
57
|
+
private readonly refspecs;
|
|
58
|
+
private referenceExcluded;
|
|
59
|
+
private showOriginalIds;
|
|
60
|
+
private markTags;
|
|
61
|
+
private compatibility;
|
|
62
|
+
private lastIdnum;
|
|
63
|
+
private readonly marks;
|
|
64
|
+
private readonly decoration;
|
|
65
|
+
/** Blobs and commits already written or imported (git's SHOWN) */
|
|
66
|
+
private readonly shown;
|
|
67
|
+
private progressCounter;
|
|
68
|
+
private quotePathFully;
|
|
69
|
+
private outputStream?;
|
|
70
|
+
/** Where the stream goes, as a Web Stream (in place of `setStdout`); not closed here. */
|
|
71
|
+
setOutput(stream: WritableStream<Uint8Array>): this;
|
|
72
|
+
call(): Promise<import("../plumbing-command.js").PlumbingResult>;
|
|
73
|
+
/** A revision argument (`main`, `^v1`, `a..b`, `--all`, ...), as `git rev-list` reads it. */
|
|
74
|
+
addArgument(arg: string): this;
|
|
75
|
+
/** `--progress=<n>`: a `progress <n> objects` line after every n objects. */
|
|
76
|
+
setProgressEvery(every: number): this;
|
|
77
|
+
/** `--signed-tags=<mode>` (default `abort`). */
|
|
78
|
+
setSignedTags(mode: SignMode): this;
|
|
79
|
+
/** `--signed-commits=<mode>` (git 2.50+, default `strip`). */
|
|
80
|
+
setSignedCommits(mode: SignMode): this;
|
|
81
|
+
/** `--tag-of-filtered-object=<mode>` (default `abort`). */
|
|
82
|
+
setTagOfFilteredObject(mode: TagOfFilteredMode): this;
|
|
83
|
+
/** `--reencode=<mode>` (default `abort`). */
|
|
84
|
+
setReencode(mode: ReencodeMode): this;
|
|
85
|
+
/** Where marks files are read and written ({@link setImportMarks}, {@link setExportMarks}). */
|
|
86
|
+
setMarksFiles(files: FastMarksFiles): this;
|
|
87
|
+
/** `--export-marks=<file>`: written only when the run marked something new. */
|
|
88
|
+
setExportMarks(path: string | undefined): this;
|
|
89
|
+
/** `--import-marks=<file>` (or `--import-marks-if-exists=<file>` with `ifExists`). */
|
|
90
|
+
setImportMarks(path: string | undefined, options?: {
|
|
91
|
+
ifExists?: boolean;
|
|
92
|
+
}): this;
|
|
93
|
+
/** `--fake-missing-tagger` */
|
|
94
|
+
setFakeMissingTagger(fake: boolean): this;
|
|
95
|
+
/** `--full-tree`: every commit lists its whole tree after a `deleteall`. */
|
|
96
|
+
setFullTree(full: boolean): this;
|
|
97
|
+
/** `--use-done-feature` */
|
|
98
|
+
setUseDoneFeature(use: boolean): this;
|
|
99
|
+
/** `--no-data`: blobs are named by id, never written. */
|
|
100
|
+
setNoData(noData: boolean): this;
|
|
101
|
+
/** `--refspec=<refspec>`: exported ref names are mapped (an empty source deletes). */
|
|
102
|
+
addRefspec(refspec: string): this;
|
|
103
|
+
/** `--reference-excluded-parents` */
|
|
104
|
+
setReferenceExcludedParents(reference: boolean): this;
|
|
105
|
+
/** `--show-original-ids` */
|
|
106
|
+
setShowOriginalIds(show: boolean): this;
|
|
107
|
+
/** `--mark-tags` */
|
|
108
|
+
setMarkTags(mark: boolean): this;
|
|
109
|
+
/** The git version whose output is followed (default 2.56). */
|
|
110
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
111
|
+
private die;
|
|
112
|
+
private out;
|
|
113
|
+
private showProgress;
|
|
114
|
+
private markNext;
|
|
115
|
+
private get objects();
|
|
116
|
+
protected run(): Promise<number>;
|
|
117
|
+
private revList;
|
|
118
|
+
private marksFilesOrDie;
|
|
119
|
+
private typeOf;
|
|
120
|
+
private taggedOf;
|
|
121
|
+
private peelToNonTag;
|
|
122
|
+
private importMarks;
|
|
123
|
+
private exportBlob;
|
|
124
|
+
/** print_path: C-quoted when needed, else in double quotes when it holds a space. */
|
|
125
|
+
private pathText;
|
|
126
|
+
private handleCommit;
|
|
127
|
+
/** show_filemodify: the changes sorted depth first, files below a directory before it. */
|
|
128
|
+
private fileChanges;
|
|
129
|
+
private treeOf;
|
|
130
|
+
/** diff_tree_oid with `recursive`, in tree-diff order (no rename detection). */
|
|
131
|
+
private diffTrees;
|
|
132
|
+
private side;
|
|
133
|
+
private handleTag;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=fast-export-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-export-command.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/fast-export-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAMH,OAAO,EAAE,eAAe,EAAiB,MAAM,wBAAwB,CAAC;AAExE,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,QAAQ,EAId,MAAM,0BAA0B,CAAC;AAElC,wCAAwC;AACxC,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAC7D,0BAA0B;AAC1B,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,IAAI,GAAG,OAAO,CAAC;AAmGlD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,iBAAkB,SAAQ,eAAe;IACpD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgB;IAC1C,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,aAAa,CAA8B;IACnD,OAAO,CAAC,QAAQ,CAAyB;IACzC,OAAO,CAAC,eAAe,CAAC,CAAS;IACjC,OAAO,CAAC,eA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F,YAAY;IAwH1B,0FAA0F;IAC1F,OAAO,CAAC,WAAW;YAgBL,MAAM;IAMpB,gFAAgF;YAClE,SAAS;YAuCT,IAAI;YAoBJ,SAAS;CA8FxB"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git fast-import` (builtin/fast-import.c): objects and refs written from a fast-import
|
|
3
|
+
* stream, as git writes them.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git fast-import --quiet < stream
|
|
8
|
+
* const { exitCode, stderr } = await git.fastImport().setInput(stream).callOutput();
|
|
9
|
+
* // git fast-import --export-marks=marks --force < stream
|
|
10
|
+
* await git.fastImport().setInput(stream).setForce(true).setExportMarks("marks").setMarksFiles(files).call();
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import { PlumbingCommand } from "../plumbing-command.js";
|
|
14
|
+
import { type FastMarksFiles, type SignMode } from "./fast-stream-support.js";
|
|
15
|
+
/** `--date-format=<fmt>` */
|
|
16
|
+
export type FastImportDateFormat = "raw" | "raw-permissive" | "rfc2822" | "now";
|
|
17
|
+
/**
|
|
18
|
+
* Writes the objects and refs a fast-import stream describes (`git fast-import`).
|
|
19
|
+
*
|
|
20
|
+
* Supported: `blob`, `commit` (`M`, `D`, `R`, `C`, `deleteall`, `ls`, `cat-blob` among its
|
|
21
|
+
* changes; `from`, `merge`, `encoding`, `original-oid`, and 2.5x's `gpgsig`), `tag`,
|
|
22
|
+
* `reset`, `checkpoint`, `progress`, `done`, `alias`, `get-mark`, `cat-blob`, `ls`,
|
|
23
|
+
* `feature` and `option git`; marks files through {@link setMarksFiles}. Branches are
|
|
24
|
+
* updated at the end (and at each `checkpoint`) in git's order, refusing to rewind one
|
|
25
|
+
* unless {@link setForce} (`warning: not updating ...`, exit status 1); tags are written
|
|
26
|
+
* unconditionally, every update logged as `fast-import`. Where git dies, the objects
|
|
27
|
+
* written so far stay, marks are exported, and no ref moves.
|
|
28
|
+
*
|
|
29
|
+
* Not supported: notes (`N`), submodule rewriting (`rewrite-submodules-*`), the statistics
|
|
30
|
+
* report (`--stats`; ours prints none, as `--quiet`), the crash report file, and pack
|
|
31
|
+
* options (`--max-pack-size`, `--depth`, `--big-file-threshold`, accepted and ignored).
|
|
32
|
+
*
|
|
33
|
+
* Version differences (`setCompatibility("2.43")`): no `gpgsig` commands and no signature
|
|
34
|
+
* modes, and git's capitalised death messages.
|
|
35
|
+
*/
|
|
36
|
+
export declare class FastImportCommand extends PlumbingCommand {
|
|
37
|
+
private input;
|
|
38
|
+
private compatibility;
|
|
39
|
+
private marksFiles?;
|
|
40
|
+
private cliForce?;
|
|
41
|
+
private cliDone?;
|
|
42
|
+
private cliDateFormat?;
|
|
43
|
+
private cliImportMarks?;
|
|
44
|
+
private cliExportMarks?;
|
|
45
|
+
private cliRelativeMarks?;
|
|
46
|
+
private allowUnsafe;
|
|
47
|
+
private cliSignedTags?;
|
|
48
|
+
private cliSignedCommits?;
|
|
49
|
+
private force;
|
|
50
|
+
private requireDone;
|
|
51
|
+
private dateFormat;
|
|
52
|
+
private importMarksFile?;
|
|
53
|
+
private importMarksFromStream;
|
|
54
|
+
private exportMarksFile?;
|
|
55
|
+
private relativeMarks;
|
|
56
|
+
private signedTags;
|
|
57
|
+
private signedCommits;
|
|
58
|
+
private pos;
|
|
59
|
+
private line;
|
|
60
|
+
private unread;
|
|
61
|
+
private eof;
|
|
62
|
+
private seenDataCommand;
|
|
63
|
+
private readonly marks;
|
|
64
|
+
private readonly objectTypes;
|
|
65
|
+
private readonly branchTable;
|
|
66
|
+
private readonly branches;
|
|
67
|
+
private tags;
|
|
68
|
+
private nextMark;
|
|
69
|
+
private failure;
|
|
70
|
+
private importMarksDone;
|
|
71
|
+
private inputStream?;
|
|
72
|
+
private outputStream?;
|
|
73
|
+
/** The stream (git reads it from stdin): bytes, text (UTF-8), or a Web Stream. */
|
|
74
|
+
setInput(input: string | Uint8Array | ReadableStream<Uint8Array>): this;
|
|
75
|
+
/** Where the stream goes, as a Web Stream (in place of `setStdout`); not closed here. */
|
|
76
|
+
setOutput(stream: WritableStream<Uint8Array>): this;
|
|
77
|
+
/** The input stream's reader while it is read as the commands need it (git's stdin) */
|
|
78
|
+
private reader?;
|
|
79
|
+
/** Pulls the next chunk of a streamed input; false at its end (or for bytes given whole). */
|
|
80
|
+
private pull;
|
|
81
|
+
call(): Promise<import("../plumbing-command.js").PlumbingResult>;
|
|
82
|
+
/** `--force`: branches may be rewound. */
|
|
83
|
+
setForce(force: boolean): this;
|
|
84
|
+
/** `--done`: the stream must end with a `done` command. */
|
|
85
|
+
setDone(done: boolean): this;
|
|
86
|
+
/** `--date-format=<fmt>` (default `raw`). */
|
|
87
|
+
setDateFormat(format: FastImportDateFormat): this;
|
|
88
|
+
/** `--import-marks=<file>` (or `--import-marks-if-exists=<file>` with `ifExists`). */
|
|
89
|
+
setImportMarks(path: string, options?: {
|
|
90
|
+
ifExists?: boolean;
|
|
91
|
+
}): this;
|
|
92
|
+
/** `--export-marks=<file>` */
|
|
93
|
+
setExportMarks(path: string): this;
|
|
94
|
+
/** `--[no-]relative-marks` */
|
|
95
|
+
setRelativeMarks(relative: boolean): this;
|
|
96
|
+
/** Where marks files are read and written. */
|
|
97
|
+
setMarksFiles(files: FastMarksFiles): this;
|
|
98
|
+
/** `--allow-unsafe-features`: the stream may name marks files. */
|
|
99
|
+
setAllowUnsafeFeatures(allow: boolean): this;
|
|
100
|
+
/** `--signed-tags=<mode>` (git 2.50+, default `verbatim`). */
|
|
101
|
+
setSignedTags(mode: SignMode): this;
|
|
102
|
+
/** `--signed-commits=<mode>` (git 2.50+, default `verbatim`). */
|
|
103
|
+
setSignedCommits(mode: SignMode): this;
|
|
104
|
+
/** The git version whose behaviour is followed (default 2.56). */
|
|
105
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
106
|
+
private die;
|
|
107
|
+
private get objects();
|
|
108
|
+
protected run(): Promise<number>;
|
|
109
|
+
/** strbuf_getline_lf: the next line without its newline; undefined at the end. */
|
|
110
|
+
private readLine;
|
|
111
|
+
/** read_next_command: false at the end of the stream. */
|
|
112
|
+
private readNextCommand;
|
|
113
|
+
/** git's fgetc/ungetc: waits for the next byte, consumed only when it is a newline. */
|
|
114
|
+
private skipOptionalLf;
|
|
115
|
+
/** parse_data: the bytes of a `data` command, as a binary string. */
|
|
116
|
+
private parseData;
|
|
117
|
+
private parseMark;
|
|
118
|
+
private parseOriginalIdentifier;
|
|
119
|
+
/** parse_argv: the command line's options win over the stream's features. */
|
|
120
|
+
private parseArgv;
|
|
121
|
+
private checkUnsafe;
|
|
122
|
+
private parseFeature;
|
|
123
|
+
private optionImportMarks;
|
|
124
|
+
private parseOption;
|
|
125
|
+
private marksFilesOrDie;
|
|
126
|
+
private readMarks;
|
|
127
|
+
private dumpMarks;
|
|
128
|
+
private findMark;
|
|
129
|
+
private insertMark;
|
|
130
|
+
/** parse_mark_ref: `:<n>` at the start of `text`, and what follows it. */
|
|
131
|
+
private parseMarkRef;
|
|
132
|
+
private parseMarkRefEol;
|
|
133
|
+
private parseMarkRefSpace;
|
|
134
|
+
private odbType;
|
|
135
|
+
private typeOf;
|
|
136
|
+
private storeObject;
|
|
137
|
+
private parseNewBlob;
|
|
138
|
+
/** The tree of a commit (peeling tags), undefined when it is not one. */
|
|
139
|
+
private commitTree;
|
|
140
|
+
private peelToCommit;
|
|
141
|
+
/** repo_get_oid, as fast-import resolves `from` and `merge` names. */
|
|
142
|
+
private getOid;
|
|
143
|
+
private parseIdent;
|
|
144
|
+
private lookupBranch;
|
|
145
|
+
private newBranch;
|
|
146
|
+
private loadTree;
|
|
147
|
+
/** tree_content_set */
|
|
148
|
+
private treeSet;
|
|
149
|
+
/** tree_content_remove: the removed entry, or true when only something changed */
|
|
150
|
+
private treeRemove;
|
|
151
|
+
/** tree_content_get */
|
|
152
|
+
private treeGet;
|
|
153
|
+
/** store_tree: writes every dirty tree, giving each its id. */
|
|
154
|
+
private storeTree;
|
|
155
|
+
/** parse_path: a quoted or plain path, and what follows it */
|
|
156
|
+
private parsePath;
|
|
157
|
+
private parsePathEol;
|
|
158
|
+
private verifyPath;
|
|
159
|
+
private fileChangeM;
|
|
160
|
+
private fileChangeCR;
|
|
161
|
+
private parseObjectish;
|
|
162
|
+
private setRootFromCommit;
|
|
163
|
+
private parseMerge;
|
|
164
|
+
private parseSignature;
|
|
165
|
+
private parseNewCommit;
|
|
166
|
+
private parseNewTag;
|
|
167
|
+
private parseResetBranch;
|
|
168
|
+
private catBlobWrite;
|
|
169
|
+
private parseGetMark;
|
|
170
|
+
private parseCatBlob;
|
|
171
|
+
private parseLs;
|
|
172
|
+
private parseAlias;
|
|
173
|
+
private checkpoint;
|
|
174
|
+
private dumpBranches;
|
|
175
|
+
private refName;
|
|
176
|
+
/** update_branch: true on a failure */
|
|
177
|
+
private updateBranch;
|
|
178
|
+
/** The ref a name ends at through symbolic refs (what a dereferencing update writes). */
|
|
179
|
+
private symrefTarget;
|
|
180
|
+
private dumpTags;
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=fast-import-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-import-command.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/fast-import-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAOH,OAAO,EAAE,eAAe,EAAiB,MAAM,wBAAwB,CAAC;AACxE,OAAO,EACL,KAAK,cAAc,EAKnB,KAAK,QAAQ,EAGd,MAAM,0BAA0B,CAAC;AAElC,4BAA4B;AAC5B,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,gBAAgB,GAAG,SAAS,GAAG,KAAK,CAAC;AA2ChF;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,iBAAkB,SAAQ,eAAe;IACpD,OAAO,CAAC,KAAK,CAAiC;IAC9C,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,UAAU,CAAC,CAAiB;I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
|
+
* What `git fast-export` and `git fast-import` share: the stream is bytes, handled here as
|
|
3
|
+
* binary strings (one character per byte), signature modes, and the marks files' host.
|
|
4
|
+
*/
|
|
5
|
+
import type { GitObjects, ObjectId } from "@statewalker/vcs-core";
|
|
6
|
+
import { type FilesApi } from "@statewalker/vcs-utils/files";
|
|
7
|
+
/**
|
|
8
|
+
* How signed tags and commits are handled (gpg-interface.c's `parse_sign_mode`): `warn` is
|
|
9
|
+
* `warn-verbatim`, `ignore` is `verbatim`.
|
|
10
|
+
*/
|
|
11
|
+
export type SignMode = "abort" | "verbatim" | "ignore" | "warn-verbatim" | "warn" | "warn-strip" | "strip";
|
|
12
|
+
/** Whether `mode` names a {@link SignMode}. */
|
|
13
|
+
export declare function isSignMode(mode: string): mode is SignMode;
|
|
14
|
+
/**
|
|
15
|
+
* Where marks files live (`--import-marks`, `--export-marks`, fast-import's `feature
|
|
16
|
+
* import-marks=`): git opens them relative to its current directory, or below
|
|
17
|
+
* `<git dir>/info/fast-import/` under `relative-marks` (`relative` set).
|
|
18
|
+
*/
|
|
19
|
+
export interface FastMarksFiles {
|
|
20
|
+
/** The file's bytes, or undefined when it does not exist */
|
|
21
|
+
read(path: string, options?: {
|
|
22
|
+
relative?: boolean;
|
|
23
|
+
}): Promise<Uint8Array | undefined>;
|
|
24
|
+
/** Writes the file (its leading directories created) */
|
|
25
|
+
write(path: string, bytes: Uint8Array, options?: {
|
|
26
|
+
relative?: boolean;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
/** Bytes as a binary string, one character per byte. */
|
|
30
|
+
export declare function latin1(bytes: Uint8Array): string;
|
|
31
|
+
/** A binary string's bytes (characters above 0xff are not expected). */
|
|
32
|
+
export declare function latin1Bytes(text: string): Uint8Array;
|
|
33
|
+
/** An object's type and content, undefined when it cannot be read. */
|
|
34
|
+
export declare function readObjectBytes(objects: GitObjects, id: ObjectId): Promise<{
|
|
35
|
+
type: string;
|
|
36
|
+
bytes: Uint8Array;
|
|
37
|
+
} | undefined>;
|
|
38
|
+
/** gpg-interface.c's get_signature_format: the format a signature's first line names. */
|
|
39
|
+
export declare function signatureFormatOf(signature: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* Where a tag message's signature starts (its length when it has none): 2.5x's
|
|
42
|
+
* `parse_signed_buffer` (the last line opening any known format), 2.43's search for the
|
|
43
|
+
* first `\n-----BEGIN PGP SIGNATURE-----\n`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function signatureStartOf(message: string, compatibility: "2.43" | "2.56"): number;
|
|
46
|
+
/**
|
|
47
|
+
* Marks files over a FilesApi: paths relative to `cwd` (git's current directory, default the
|
|
48
|
+
* FilesApi's root), `relative-marks` ones below `<gitDir>/info/fast-import/`.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* git.fastImport().setMarksFiles(marksFilesOf(files, { gitDir: ".git" })).setExportMarks("marks");
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare function marksFilesOf(files: FilesApi, options?: {
|
|
56
|
+
cwd?: string;
|
|
57
|
+
gitDir?: string;
|
|
58
|
+
}): FastMarksFiles;
|
|
59
|
+
/** A ByteSink writing into a Web Stream (the writer is released when the run ends). */
|
|
60
|
+
export declare function writableSink(stream: WritableStream<Uint8Array>): {
|
|
61
|
+
sink: (chunk: Uint8Array) => Promise<void>;
|
|
62
|
+
release: () => void;
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=fast-stream-support.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-stream-support.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/fast-stream-support.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,KAAK,QAAQ,EAAe,MAAM,8BAA8B,CAAC;AAE1E;;;GAGG;AACH,MAAM,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AM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,GAC9C,cAAc,CAgBhB;AAED,uFAAuF;AACvF,wBAAgB,YAAY,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG;IAChE,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAQA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,KAAK,cAAc,EAAE,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { type FilesApi } from "@statewalker/vcs-core";
|
|
|
2
2
|
import { type FetchRefUpdate, type TagMode } from "@statewalker/vcs-transport";
|
|
3
3
|
import { type FetchResult, type TrackingRefUpdate } from "../results/fetch-result.js";
|
|
4
4
|
import { TransportCommand } from "../transport-command.js";
|
|
5
|
+
import { type FetchRecurseSubmodules } from "./submodule-fetch.js";
|
|
5
6
|
/**
|
|
6
7
|
* Tag fetching option.
|
|
7
8
|
*
|
|
@@ -53,6 +54,7 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
53
54
|
/** Whether the remote was named (it is then in the reflog action, as on git's command line). */
|
|
54
55
|
private remoteGiven;
|
|
55
56
|
private refSpecs;
|
|
57
|
+
private prefetch;
|
|
56
58
|
private updateHeadOk;
|
|
57
59
|
private removeDeletedRefs?;
|
|
58
60
|
private pruneTags?;
|
|
@@ -65,6 +67,8 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
65
67
|
private porcelain;
|
|
66
68
|
private thin;
|
|
67
69
|
private depth?;
|
|
70
|
+
/** `--deepen=<n>`: `deepen <n>` with `deepen-relative` */
|
|
71
|
+
private deepen?;
|
|
68
72
|
private uploadPack?;
|
|
69
73
|
private dryRun;
|
|
70
74
|
private writeCommitGraphOption?;
|
|
@@ -81,7 +85,19 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
81
85
|
/** `--filter=<spec>` (a string), `--no-filter` (false), or neither */
|
|
82
86
|
private filterSpec?;
|
|
83
87
|
private refetch;
|
|
88
|
+
/** `--negotiation-tip=<revision>` (a revision, or a ref glob), in order */
|
|
89
|
+
private negotiationTips;
|
|
90
|
+
private negotiateOnlyMode;
|
|
84
91
|
private setUpstream;
|
|
92
|
+
/** `--[no-]recurse-submodules[=<mode>]`; unset: the configuration's */
|
|
93
|
+
private recurseSubmodules?;
|
|
94
|
+
/** `--recurse-submodules-default` (a submodule's fetch run by its superproject's) */
|
|
95
|
+
private recurseSubmodulesDefault;
|
|
96
|
+
/** `--submodule-prefix` */
|
|
97
|
+
private submodulePrefix;
|
|
98
|
+
private quiet;
|
|
99
|
+
/** The arguments git's reflog action names, when this fetch is a superproject's child */
|
|
100
|
+
private childArguments?;
|
|
85
101
|
/**
|
|
86
102
|
* Set the remote to fetch from.
|
|
87
103
|
*
|
|
@@ -154,6 +170,21 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
154
170
|
* in git; otherwise tags are auto-followed.
|
|
155
171
|
*/
|
|
156
172
|
setTagOpt(option: TagOption): this;
|
|
173
|
+
/**
|
|
174
|
+
* `git fetch --prefetch` (fetch.c `filter_prefetch_refspec`): every refspec, the given and
|
|
175
|
+
* the remote's configured ones, writes under `refs/prefetch/` instead (`refs/remotes/o/*`
|
|
176
|
+
* becomes `refs/prefetch/remotes/o/*`, always forced); refspecs without a destination and
|
|
177
|
+
* those of `refs/tags/` are dropped, and without a refspec left nothing is fetched (no
|
|
178
|
+
* remote HEAD). The maintenance prefetch task's fetch.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```typescript
|
|
182
|
+
* // git fetch origin --prefetch --prune --no-tags --no-write-fetch-head
|
|
183
|
+
* await git.fetch().setRemote("origin").setPrefetch(true).setRemoveDeletedRefs(true)
|
|
184
|
+
* .setTagOpt(TagOption.NO_TAGS).setWriteFetchHead(false).call();
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
setPrefetch(prefetch: boolean): this;
|
|
157
188
|
/**
|
|
158
189
|
* Set whether the fetch writes `FETCH_HEAD` (default true; `--no-write-fetch-head`).
|
|
159
190
|
*
|
|
@@ -184,6 +215,32 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
184
215
|
* `From <url>` line; `fetch.output` does not apply.
|
|
185
216
|
*/
|
|
186
217
|
setPorcelain(porcelain: boolean): this;
|
|
218
|
+
/**
|
|
219
|
+
* `--recurse-submodules[=yes|on-demand|no]` / `--no-recurse-submodules` (true is `yes`,
|
|
220
|
+
* false `no`). Unset, git's configuration decides (`submodule.recurse`,
|
|
221
|
+
* `fetch.recurseSubmodules`, in config order; else `.gitmodules`' `fetch.recurseSubmodules`),
|
|
222
|
+
* and without any the fetch recurses on demand: after the superproject's refs are stored,
|
|
223
|
+
* each submodule whose recorded commit the fetched history changed is fetched, as
|
|
224
|
+
* `submodule.<name>.fetchRecurseSubmodules` allows (`yes`: every populated submodule).
|
|
225
|
+
* The submodules' fetches print into {@link FetchResult.submoduleOutput} and their results
|
|
226
|
+
* are {@link FetchResult.submodules}; a failed one fails the fetch (git's exit status 1,
|
|
227
|
+
* {@link FetchResult.submodulesFailed}). Submodules are fetched one at a time (git's
|
|
228
|
+
* `submodule.fetchJobs`/`-j` only run several at once; one job is this order).
|
|
229
|
+
*
|
|
230
|
+
* A submodule's URL comes from repository content: the transports given here reach it, but
|
|
231
|
+
* this fetch's credentials and headers go to it only when its origin is the origin of the
|
|
232
|
+
* remote this fetch is for (`guardSubmoduleTransports`).
|
|
233
|
+
*/
|
|
234
|
+
setRecurseSubmodules(mode: boolean | FetchRecurseSubmodules): this;
|
|
235
|
+
/**
|
|
236
|
+
* `-q`: the submodules' fetches are quiet and no `Fetching submodule` line is printed
|
|
237
|
+
* ({@link FetchResult.display} is still returned: the caller prints it or not).
|
|
238
|
+
*/
|
|
239
|
+
setQuiet(quiet: boolean): this;
|
|
240
|
+
/** @internal `--recurse-submodules-default` and `--submodule-prefix` of a submodule's fetch. */
|
|
241
|
+
setSubmoduleContext(defaultMode: "yes" | "on-demand", prefix: string, childArguments: string[]): this;
|
|
242
|
+
/** @internal The remote `git fetch` without one fetches (not named on its command line). */
|
|
243
|
+
setDefaultRemote(remote: string): this;
|
|
187
244
|
/** Whether the ref lines are porcelain ones (`--porcelain`). */
|
|
188
245
|
isPorcelain(): boolean;
|
|
189
246
|
/**
|
|
@@ -201,6 +258,22 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
201
258
|
* use: how a partial clone changes its filter.
|
|
202
259
|
*/
|
|
203
260
|
setRefetch(refetch: boolean): this;
|
|
261
|
+
/**
|
|
262
|
+
* `git fetch --negotiation-tip=<revision>`: the negotiation offers only the history of these
|
|
263
|
+
* (a revision, or a glob of refs such as `refs/heads/feature-*`) instead of every local
|
|
264
|
+
* ref's; what the fetch counts as here still follows every ref. A revision that names
|
|
265
|
+
* nothing dies `<rev> is not a valid object`; a glob matching no ref is ignored with git's
|
|
266
|
+
* warning.
|
|
267
|
+
*/
|
|
268
|
+
setNegotiationTips(...tips: string[]): this;
|
|
269
|
+
/**
|
|
270
|
+
* `git fetch --negotiate-only`: negotiates with the remote from {@link setNegotiationTips}
|
|
271
|
+
* (protocol v2, a server with `wait-for-done`) and fetches nothing; the commits the server
|
|
272
|
+
* acknowledged come back as {@link FetchResult.negotiatedCommits} (git prints them on
|
|
273
|
+
* stdout). Without a tip it dies as git does; over protocol v0, or a server without
|
|
274
|
+
* `wait-for-done`, the result carries git's warning in `messages` and `exitCode` 255.
|
|
275
|
+
*/
|
|
276
|
+
setNegotiateOnly(negotiateOnly: boolean): this;
|
|
204
277
|
/**
|
|
205
278
|
* `git fetch --set-upstream`: once the refs are written, the one ref fetched only into
|
|
206
279
|
* `FETCH_HEAD` (a branch, or `HEAD`) becomes the current branch's upstream,
|
|
@@ -229,6 +302,12 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
229
302
|
* @param depth Number of commits to fetch
|
|
230
303
|
*/
|
|
231
304
|
setDepth(depth: number): this;
|
|
305
|
+
/**
|
|
306
|
+
* `--deepen=<n>`: deepen a shallow repository by `n` commits from its current shallow
|
|
307
|
+
* boundary (git's `deepen <n>` with `deepen-relative`), instead of `n` from the tips as
|
|
308
|
+
* {@link setDepth}.
|
|
309
|
+
*/
|
|
310
|
+
setDeepen(deepen: number): this;
|
|
232
311
|
/**
|
|
233
312
|
* Set the program the remote runs for upload-pack (git's `--upload-pack`, over
|
|
234
313
|
* `remote.<name>.uploadpack`): what an ssh connector runs, and what git:// names in its
|
|
@@ -399,6 +478,39 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
399
478
|
* @throws InvalidRemoteError if remote cannot be resolved
|
|
400
479
|
*/
|
|
401
480
|
call(): Promise<FetchResult>;
|
|
481
|
+
/**
|
|
482
|
+
* `fetch.negotiationAlgorithm` (repo-settings.c): `feature.experimental` makes `skipping` the
|
|
483
|
+
* default; a variable without a value or an unknown value dies as git does.
|
|
484
|
+
*/
|
|
485
|
+
private negotiationAlgorithm;
|
|
486
|
+
/** The git version negotiation options follow (2.5x renamed `--negotiation-tip`). */
|
|
487
|
+
private negotiationCompatibility;
|
|
488
|
+
/**
|
|
489
|
+
* The negotiation tips given (`--negotiation-tip`), else (git 2.5x) the remote's
|
|
490
|
+
* `remote.<name>.negotiationRestrict` values.
|
|
491
|
+
*/
|
|
492
|
+
private negotiationTipsGiven;
|
|
493
|
+
/**
|
|
494
|
+
* add_negotiation_tips: a revision (no glob characters) must name an object here, else git
|
|
495
|
+
* dies (git 2.5x skips a name that resolves to nothing); a glob adds every ref it matches
|
|
496
|
+
* (`refs/` put before a pattern without it), with git's warning when it matches none.
|
|
497
|
+
*/
|
|
498
|
+
private resolveNegotiationTips;
|
|
499
|
+
/**
|
|
500
|
+
* `git fetch --negotiate-only`: the negotiation alone, over the remote's upload-pack; the
|
|
501
|
+
* acknowledged commits in {@link FetchResult.negotiatedCommits}. transport.c's refusals
|
|
502
|
+
* (protocol v0, no `wait-for-done`) are its warning and exit status 255.
|
|
503
|
+
*/
|
|
504
|
+
private callNegotiateOnly;
|
|
505
|
+
/**
|
|
506
|
+
* cmd_fetch's `config.recurse_submodules`: the command line, else `submodule.recurse` and
|
|
507
|
+
* `fetch.recurseSubmodules` in config order, else `.gitmodules`' `fetch.recurseSubmodules`;
|
|
508
|
+
* undefined when the fetch does not recurse (`no`, `--porcelain`, no worktree). git checks
|
|
509
|
+
* `submodule.fetchJobs` there too (a negative one dies).
|
|
510
|
+
*/
|
|
511
|
+
private submoduleRecursion;
|
|
512
|
+
/** fetch_submodules over this fetch's options (add_options_to_argv). */
|
|
513
|
+
private fetchSubmodulesAfter;
|
|
402
514
|
/**
|
|
403
515
|
* git's `--set-upstream` (do_fetch): the ref map's one ref without a local ref (fetched
|
|
404
516
|
* only into FETCH_HEAD; a ref add_merge_config marked among those the refspecs took has
|
|
@@ -489,4 +601,17 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
489
601
|
export declare function toTagMode(option: TagOption): TagMode;
|
|
490
602
|
/** A transport ref update as a {@link TrackingRefUpdate}. */
|
|
491
603
|
export declare function toTrackingRefUpdate(update: FetchRefUpdate): TrackingRefUpdate;
|
|
604
|
+
/**
|
|
605
|
+
* What a fetch prints on stderr, as git's child `git fetch` does: its ref lines (not with
|
|
606
|
+
* `-q`), its messages, its errors, then its submodules' lines.
|
|
607
|
+
*/
|
|
608
|
+
export declare function fetchOutputText(result: FetchResult, quiet?: boolean): string;
|
|
609
|
+
/** Whether git's fetch exits 0: no error, no refused ref, its submodules fetched. */
|
|
610
|
+
export declare function fetchSucceeded(result: FetchResult): boolean;
|
|
611
|
+
/**
|
|
612
|
+
* fetch.c's `filter_prefetch_refspec`: negative refspecs kept; a refspec without a destination
|
|
613
|
+
* or whose source is under `refs/tags/` dropped; any other written under `refs/prefetch/` (the
|
|
614
|
+
* destination less its `refs/`), forced.
|
|
615
|
+
*/
|
|
616
|
+
export declare function prefetchRefspecs(specs: readonly string[]): string[];
|
|
492
617
|
//# sourceMappingURL=fetch-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,QAAQ,EAOd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EASL,KAAK,cAAc,EAenB,KAAK,OAAO,EAIb,MAAM,4BAA4B,CAAC;AAYpC,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAmB3D,OAAO,EACL,KAAK,sBAAsB,EAM5B,MAAM,sBAAsB,CAAC;AAO9B;;;;GAIG;AACH,oBAAY,SAAS;IACnB,8DAA8D;IAC9D,WAAW,gBAAgB;IAC3B,qBAAqB;IACrB,UAAU,eAAe;IACzB,2BAA2B;IAC3B,OAAO,YAAY;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,YAAa,SAAQ,gBAAgB,CAAC,WAAW,CAAC;IAC7D,OAAO,CAAC,MAAM,CAAY;IAC1B,gGAAgG;IAChG,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,iBAAiB,CA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