@statewalker/vcs-commands 0.9.0 → 0.11.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.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 +41 -2
- package/dist/commands/am/am-command.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 +43 -1
- package/dist/commands/blame-command.d.ts.map +1 -1
- 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 +144 -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-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.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/cherry-pick-command.d.ts +10 -0
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clone-command.d.ts +28 -0
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +9 -1
- 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 +54 -0
- package/dist/commands/default-branch.d.ts.map +1 -1
- package/dist/commands/diff-command.d.ts +132 -5
- 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 +65 -0
- package/dist/commands/fetch-command.d.ts.map +1 -1
- package/dist/commands/fetch-multiple-command.d.ts.map +1 -1
- package/dist/commands/format-rev-command.d.ts +60 -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-ipc.d.ts +30 -0
- package/dist/commands/fsmonitor-ipc.d.ts.map +1 -0
- 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-hooks.d.ts +32 -0
- 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 +45 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +6 -5
- 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/local-transport.d.ts.map +1 -1
- package/dist/commands/log-command.d.ts +26 -0
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +28 -1
- 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/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 +7 -0
- 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 +67 -5
- package/dist/commands/merge-drivers.d.ts.map +1 -1
- package/dist/commands/merge-support.d.ts +6 -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/mktag-command.d.ts +51 -0
- package/dist/commands/mktag-command.d.ts.map +1 -0
- 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/ort-merge.d.ts +24 -0
- package/dist/commands/ort-merge.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 +24 -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.map +1 -1
- package/dist/commands/push-command.d.ts +17 -2
- package/dist/commands/push-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +108 -2
- 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/remote-object-info-command.d.ts +55 -0
- package/dist/commands/remote-object-info-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 +158 -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 -2
- package/dist/commands/reset-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 +3 -0
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/rev-parse-command.d.ts +5 -0
- package/dist/commands/rev-parse-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +10 -0
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +5 -0
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/revision-resolver.d.ts +27 -1
- package/dist/commands/revision-resolver.d.ts.map +1 -1
- package/dist/commands/sequencer-pick.d.ts +18 -0
- package/dist/commands/sequencer-pick.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/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 +30 -2
- 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 +16 -2
- 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 +22 -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 +9 -1
- package/dist/commands/submodule-commands.d.ts.map +1 -1
- package/dist/commands/submodule-update-command.d.ts +27 -1
- package/dist/commands/submodule-update-command.d.ts.map +1 -1
- package/dist/commands/tag-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 +131 -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-CNvli5bl.js → commands-bQQ9OmCh.js} +52514 -44630
- package/dist/errors/command-errors.d.ts +33 -0
- package/dist/errors/command-errors.d.ts.map +1 -1
- package/dist/errors/index.js +39 -1
- package/dist/{fsck-CPeDh9fh.js → fsck-BHT9bUS-.js} +184 -143
- package/dist/git-command.d.ts +66 -4
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +532 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/guarded-transport-command.d.ts +3 -1
- package/dist/guarded-transport-command.d.ts.map +1 -1
- package/dist/index.js +7 -6
- package/dist/maintenance-run-command-Cx2PlGV9.js +13544 -0
- package/dist/{remote-transport-CCmBadm-.js → remote-transport-BrQZfyHu.js} +1009 -10
- package/dist/results/cherry-pick-result.d.ts +6 -0
- package/dist/results/cherry-pick-result.d.ts.map +1 -1
- package/dist/results/diff-entry.d.ts +10 -0
- package/dist/results/diff-entry.d.ts.map +1 -1
- package/dist/results/diff-formatter.d.ts.map +1 -1
- package/dist/results/diff-output.d.ts +49 -3
- package/dist/results/diff-output.d.ts.map +1 -1
- package/dist/results/fetch-result.d.ts +12 -0
- package/dist/results/fetch-result.d.ts.map +1 -1
- package/dist/results/index.js +2 -2
- package/dist/results/merge-result.d.ts +5 -0
- package/dist/results/merge-result.d.ts.map +1 -1
- package/dist/results/push-result.d.ts +5 -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-BDuEgdLU.js → results-CNHQnU5Y.js} +13707 -10608
- package/dist/transport-command.d.ts +79 -1
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/commands/add-command.ts +3 -0
- package/src/commands/add-patch/patch-backend.ts +4 -1
- 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 +193 -22
- package/src/commands/apply/index.ts +1 -0
- 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 +118 -19
- 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 +895 -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-ref-format-command.ts +129 -0
- package/src/commands/checkout-command.ts +61 -22
- package/src/commands/checkout-index-command.ts +568 -0
- package/src/commands/checkout-paths.ts +7 -0
- package/src/commands/cherry-pick-command.ts +21 -1
- package/src/commands/clone-command.ts +249 -9
- package/src/commands/commit-command.ts +22 -4
- package/src/commands/config-command.ts +9 -0
- package/src/commands/daemon-access-hook.ts +78 -0
- package/src/commands/default-branch.ts +118 -1
- package/src/commands/diff-command.ts +592 -47
- 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 +312 -8
- package/src/commands/fetch-multiple-command.ts +4 -1
- package/src/commands/format-rev-command.ts +267 -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-ipc.ts +121 -0
- package/src/commands/fsmonitor-refresh.ts +320 -0
- package/src/commands/gc-command.ts +10 -0
- package/src/commands/git-hooks.ts +123 -6
- 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 +46 -0
- package/src/commands/init-command.ts +14 -0
- 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/local-transport.ts +252 -4
- package/src/commands/log-command.ts +104 -5
- package/src/commands/log-output.ts +66 -5
- 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 +708 -0
- package/src/commands/maintenance-run-command.ts +949 -0
- package/src/commands/merge-command.ts +78 -32
- package/src/commands/merge-config.ts +23 -1
- package/src/commands/merge-drivers.ts +109 -20
- package/src/commands/merge-support.ts +29 -5
- package/src/commands/merge-tree-command.ts +786 -0
- package/src/commands/mktag-command.ts +149 -0
- 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/ort-merge.ts +92 -25
- package/src/commands/patch-id-command.ts +65 -0
- package/src/commands/patch-id.ts +218 -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 +2 -0
- package/src/commands/push-command.ts +87 -5
- package/src/commands/rebase-command.ts +507 -19
- package/src/commands/refs-command.ts +274 -0
- package/src/commands/remote-object-info-command.ts +109 -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 +1066 -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 +75 -3
- package/src/commands/rev-filter/commit-grep.ts +7 -2
- package/src/commands/rev-list-command.ts +9 -0
- package/src/commands/rev-parse-command.ts +49 -5
- package/src/commands/revert-command.ts +21 -1
- package/src/commands/revision-range.ts +7 -2
- package/src/commands/revision-resolver.ts +97 -14
- package/src/commands/sequencer-pick.ts +47 -0
- package/src/commands/serve-repository.ts +65 -0
- package/src/commands/session-id.ts +31 -0
- package/src/commands/show-branch-command.ts +981 -0
- package/src/commands/show-command.ts +1 -1
- package/src/commands/show-ref-command.ts +439 -0
- package/src/commands/signature-check.ts +37 -5
- package/src/commands/signing.ts +176 -23
- package/src/commands/stash-apply-command.ts +3 -0
- package/src/commands/stash-export-command.ts +397 -0
- package/src/commands/status-command.ts +74 -8
- package/src/commands/stripspace-command.ts +118 -0
- package/src/commands/submodule-add-command.ts +40 -2
- package/src/commands/submodule-auth.ts +61 -6
- package/src/commands/submodule-commands.ts +12 -2
- package/src/commands/submodule-update-command.ts +47 -1
- package/src/commands/tag-command.ts +33 -11
- package/src/commands/textconv-cache.ts +143 -0
- package/src/commands/tree-restore.ts +14 -0
- package/src/commands/unpack-objects-command.ts +235 -0
- package/src/commands/update-index-command.ts +1148 -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/errors/command-errors.ts +45 -0
- package/src/git-command.ts +177 -3
- package/src/git.ts +808 -1
- package/src/guarded-transport-command.ts +6 -1
- package/src/results/cherry-pick-result.ts +6 -0
- package/src/results/diff-entry.ts +12 -0
- package/src/results/diff-formatter.ts +7 -4
- package/src/results/diff-output.ts +117 -11
- package/src/results/diff-pickaxe.ts +1 -1
- package/src/results/fetch-result.ts +12 -0
- package/src/results/merge-result.ts +5 -0
- package/src/results/push-result.ts +5 -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/transport-command.ts +182 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ObjectId } from "@statewalker/vcs-core";
|
|
1
2
|
import { type XdiffAlgorithm } from "@statewalker/vcs-utils";
|
|
2
3
|
import { type Staging } from "@statewalker/vcs-working-tree";
|
|
3
4
|
import { GitCommand } from "../git-command.js";
|
|
@@ -6,7 +7,12 @@ import { type DiffDriver, type DiffOutputOptions, type DiffstatFile, type Diffst
|
|
|
6
7
|
import { type DiffColorOptions, type DiffColorSettings } from "./diff-color-config.js";
|
|
7
8
|
import { type SubmoduleIgnoreMode } from "./submodule-config.js";
|
|
8
9
|
import { type SubmoduleDiffFormat } from "./submodule-summary.js";
|
|
9
|
-
export type DiffOutputFormat =
|
|
10
|
+
export type DiffOutputFormat =
|
|
11
|
+
/**
|
|
12
|
+
* `--raw` (diff.c's `diff_flush_raw`): `:<old mode> <new mode> <old id> <new id> <status>`,
|
|
13
|
+
* a tab and the path(s); ids abbreviated unless {@link DiffTextOptions.rawFullIds}
|
|
14
|
+
*/
|
|
15
|
+
"raw" | "patch" | "stat" | "numstat" | "shortstat" | "summary" | "name-only" | "name-status"
|
|
10
16
|
/**
|
|
11
17
|
* `--dirstat`: the share of the change each directory holds (see
|
|
12
18
|
* {@link DiffTextOptions.dirstat}, `diff.dirstat`)
|
|
@@ -42,6 +48,16 @@ export interface DiffTextOptions extends Omit<DiffOutputOptions, "driver" | "alg
|
|
|
42
48
|
abbrev?: number;
|
|
43
49
|
/** `--stat=...` widths (default width 80, as git without a terminal) */
|
|
44
50
|
stat?: DiffstatOptions;
|
|
51
|
+
/**
|
|
52
|
+
* `-z`: the `raw`, `name-only`, `name-status` and `numstat` outputs end each field with a
|
|
53
|
+
* NUL instead of a tab or a newline, paths unquoted; the separator before a patch is a NUL
|
|
54
|
+
*/
|
|
55
|
+
nullTerminated?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The `raw` output's ids in full, as the plumbing commands print them (`opt->abbrev = 0`)
|
|
58
|
+
* unless `--abbrev` is given ({@link abbrev}); default false (`git diff --raw` abbreviates)
|
|
59
|
+
*/
|
|
60
|
+
rawFullIds?: boolean;
|
|
45
61
|
/**
|
|
46
62
|
* Score renames counting a last line without a newline, as git 2.50 and later (default
|
|
47
63
|
* true); false scores them as older git
|
|
@@ -94,6 +110,15 @@ export interface DiffTextOptions extends Omit<DiffOutputOptions, "driver" | "alg
|
|
|
94
110
|
* `installTextconvRunner`, without one no textconv applies
|
|
95
111
|
*/
|
|
96
112
|
textconv?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* `--ext-diff` / `--no-ext-diff`: run external diff programs (`GIT_EXTERNAL_DIFF`,
|
|
115
|
+
* `diff.external`, `diff.<driver>.command`) instead of the builtin patch. Default false;
|
|
116
|
+
* `Git.diff()` (porcelain `git diff`) turns it on, as git, while `git log`/`show` and the
|
|
117
|
+
* plumbing diffs need it asked. The programs run through the host's `hookRunner`, their
|
|
118
|
+
* sides written in its `tempDirectory` through `hostFilesOf`; without those the builtin
|
|
119
|
+
* patch is shown. See `diff-external.ts`.
|
|
120
|
+
*/
|
|
121
|
+
extDiff?: boolean;
|
|
97
122
|
/**
|
|
98
123
|
* `-R`: the two sides swapped (an addition shows as a deletion, the new side first), their
|
|
99
124
|
* prefixes with them (`diff --git b/f a/f`). Combined diffs of conflicted paths are not swapped.
|
|
@@ -209,6 +234,22 @@ export declare function hasPickaxe(o: DiffTextOptions): boolean;
|
|
|
209
234
|
* diff_setup_done's combinations), before anything is read
|
|
210
235
|
*/
|
|
211
236
|
export declare function checkPickaxeOptions(o: DiffTextOptions): void;
|
|
237
|
+
/** What {@link DiffCommand.setQueue} runs over a queue given */
|
|
238
|
+
export interface PresetQueueOptions {
|
|
239
|
+
/**
|
|
240
|
+
* Run diffcore's rename and break detection over it as over a comparison's queue
|
|
241
|
+
* (`diffcore_std`), with `-M`/`-C`/`-B` as the text options give them (no `diff.renames`)
|
|
242
|
+
*/
|
|
243
|
+
diffcore?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* `--find-copies-harder`'s sources besides the queue's: every file of the old side (the
|
|
246
|
+
* old tree, the index of `diff-files`)
|
|
247
|
+
*/
|
|
248
|
+
copySources?: () => Promise<Map<string, {
|
|
249
|
+
mode: number;
|
|
250
|
+
id: ObjectId;
|
|
251
|
+
}>>;
|
|
252
|
+
}
|
|
212
253
|
/**
|
|
213
254
|
* `diff.renames` as git_config_rename reads it: `copies`/`copy` detect copies too.
|
|
214
255
|
*
|
|
@@ -317,6 +358,10 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
317
358
|
private changesFound;
|
|
318
359
|
/** git's `check_failed`: `--check` found an error in the last call */
|
|
319
360
|
private checkFailed;
|
|
361
|
+
/** git's `diff_path_counter`: the external diff calls made so far */
|
|
362
|
+
private externalCounter;
|
|
363
|
+
/** What external diff programs wrote on stderr in the last call */
|
|
364
|
+
private externalStderr;
|
|
320
365
|
/** The revisions given resolved (ranges, `--merge-base`) */
|
|
321
366
|
private sidesResolved;
|
|
322
367
|
/** The compiled pickaxe (`-S`, `-G`, `--find-object`), once the options are checked */
|
|
@@ -434,6 +479,8 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
434
479
|
* of `diff.submodule` it does not know.
|
|
435
480
|
*/
|
|
436
481
|
get warnings(): readonly string[];
|
|
482
|
+
/** What the external diff programs of the last call wrote on stderr (git passes it through) */
|
|
483
|
+
get programStderr(): Uint8Array;
|
|
437
484
|
/**
|
|
438
485
|
* git_diff_ui_config, which `git diff` (and log, show) runs before any option is read:
|
|
439
486
|
* `diff.submodule`, its warnings, and the failure of a variable without a value.
|
|
@@ -486,8 +533,33 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
486
533
|
*
|
|
487
534
|
* @internal
|
|
488
535
|
*/
|
|
489
|
-
setQueue(entries: DiffEntry[]): this;
|
|
536
|
+
setQueue(entries: DiffEntry[], options?: PresetQueueOptions): this;
|
|
490
537
|
private presetQueue?;
|
|
538
|
+
private presetQueueOptions;
|
|
539
|
+
/**
|
|
540
|
+
* How a comparison of trees walks them (tree-diff.c): `recursive` lists the blobs below the
|
|
541
|
+
* subtrees that differ (`-r`, the porcelain's default), `flat` the differing entries of the
|
|
542
|
+
* top tree, subtrees as entries of mode 040000 (plumbing's default without `-r`), and
|
|
543
|
+
* `show-trees` the blobs and the subtrees on the way to them (`-t`)
|
|
544
|
+
*
|
|
545
|
+
* @internal
|
|
546
|
+
*/
|
|
547
|
+
setTreeWalk(walk: "recursive" | "flat" | "show-trees"): this;
|
|
548
|
+
private treeWalk;
|
|
549
|
+
/**
|
|
550
|
+
* Compare the worktree as the plumbing commands do (`diff-files`, `diff-index` without
|
|
551
|
+
* `--cached`): no refresh, a file whose stat differs from its entry is a change even when
|
|
552
|
+
* its content is the same, and its raw id is the null id (not hashed); an unmerged path's
|
|
553
|
+
* raw line gives the worktree file's mode
|
|
554
|
+
*
|
|
555
|
+
* @internal
|
|
556
|
+
*/
|
|
557
|
+
setPlumbingWorktree(plumbing: boolean): this;
|
|
558
|
+
private plumbingWorktree;
|
|
559
|
+
/** The sides an unmerged path's raw line shows (diff_unmerge's pair), by path */
|
|
560
|
+
private readonly unmergedRaw;
|
|
561
|
+
/** {@link setQueue}'s diffcore run, when asked */
|
|
562
|
+
private presetDiffcore;
|
|
491
563
|
/**
|
|
492
564
|
* diffcore's filtering stages over a queue a caller found (the pickaxe, `-O`,
|
|
493
565
|
* `--diff-filter`): git 2.43's `git log -L` runs them on the pairs it follows renames with
|
|
@@ -590,6 +662,11 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
590
662
|
private followSource;
|
|
591
663
|
/** The formats of the collected comparison, in diff_flush's order */
|
|
592
664
|
private writeFormats;
|
|
665
|
+
/**
|
|
666
|
+
* The raw output's ids: full under {@link DiffTextOptions.rawFullIds} without `--abbrev`,
|
|
667
|
+
* else each abbreviated as git's `diff_aligned_abbrev` (unique, at least `--abbrev` digits)
|
|
668
|
+
*/
|
|
669
|
+
private rawAbbreviator;
|
|
593
670
|
/**
|
|
594
671
|
* create_filepairs_for_header_only_notifications: the pairs, and the paths with headers
|
|
595
672
|
* none of them names first (as strings), sorted by first name (diffcore_fix_diff_index)
|
|
@@ -614,15 +691,65 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
614
691
|
* the path's `diff.<driver>.textconv` over the blob as checkout writes it, or undefined
|
|
615
692
|
* when no textconv applies (not a regular file, no driver, no command or no runner
|
|
616
693
|
* installed, `textconv: false`). The attributes are the worktree's alone (git show reads
|
|
617
|
-
* no index).
|
|
618
|
-
|
|
619
|
-
|
|
694
|
+
* no index). With the blob's `id`, the driver's textconv cache applies
|
|
695
|
+
* (`diff.<driver>.cachetextconv`). `worktreeFile`: `read` gives a file as it lies in the
|
|
696
|
+
* worktree (blame's working-tree file, `--contents <file>`), converted as it is, never
|
|
697
|
+
* smudged nor cached (git's prepare_temp_file reuses the file; its object id is unknown).
|
|
698
|
+
*/
|
|
699
|
+
textconvBlob(path: string, mode: number, read: () => Promise<Uint8Array>, id?: string, options?: {
|
|
700
|
+
worktreeFile?: boolean;
|
|
701
|
+
}): Promise<Uint8Array | undefined>;
|
|
702
|
+
/** The textconv caches of this command (git's per-process caches) */
|
|
703
|
+
private textconvCaches;
|
|
704
|
+
/** diff.c's fill_textconv: the runner's output, through the driver's notes cache */
|
|
705
|
+
private runTextconv;
|
|
620
706
|
/** A blob's content as checkout writes it to the worktree (the worktree's smudge filter) */
|
|
621
707
|
private smudged;
|
|
622
708
|
/** git 2.5x's names from contents (see {@link DiffTextOptions.namesFromContents}) */
|
|
623
709
|
private get namesFromContents();
|
|
624
710
|
/** The pairs `--name-only` lists: with whitespace options or `-I`, those whose patch shows a change */
|
|
625
711
|
private shownNames;
|
|
712
|
+
/** The host environment the working copy's configuration was opened with */
|
|
713
|
+
private get hostEnvironment();
|
|
714
|
+
/** diff_setup_done: the external diff calls of a new output start from 1 */
|
|
715
|
+
private resetExternal;
|
|
716
|
+
/**
|
|
717
|
+
* diff.c's `external_diff()` where external diffs are allowed (`--ext-diff`, porcelain
|
|
718
|
+
* `git diff`): `GIT_EXTERNAL_DIFF`, else `diff.external` of the UI configuration
|
|
719
|
+
*/
|
|
720
|
+
private externalProgram;
|
|
721
|
+
/**
|
|
722
|
+
* The program run_diff_cmd runs for a pair, if any: the pair's `diff.<driver>.command`
|
|
723
|
+
* (attributes of its first path), else {@link externalProgram}; none without a runner to
|
|
724
|
+
* run it or a place to write its files. `split`: a change between a file and a symbolic
|
|
725
|
+
* link that only a driver's program takes (run_diff splits it in two when no
|
|
726
|
+
* `GIT_EXTERNAL_DIFF`/`diff.external` is set).
|
|
727
|
+
*/
|
|
728
|
+
private externalDiffFor;
|
|
729
|
+
/**
|
|
730
|
+
* A pair's patch, through its external program or the builtin one: whether it shows a
|
|
731
|
+
* change (git's `found_changes`). `quiet`: nothing is written (diff_flush_patch_quietly).
|
|
732
|
+
*/
|
|
733
|
+
private patchOf;
|
|
734
|
+
/**
|
|
735
|
+
* diff.c's run_external_diff for a pair (both halves of a split one): the program's stdout
|
|
736
|
+
* into `out` (nothing when `quiet`), its stderr kept; whether the pair counts as changed.
|
|
737
|
+
* Without `trustExitCode` a quiet check does not run the program and counts a change.
|
|
738
|
+
*
|
|
739
|
+
* @throws ExternalDiffDiedError on an exit code git does not accept
|
|
740
|
+
*/
|
|
741
|
+
private runExternalDiff;
|
|
742
|
+
/**
|
|
743
|
+
* prepare_temp_file: the three arguments naming one side. An absent side is `/dev/null . .`;
|
|
744
|
+
* the worktree's file is passed by its path from the top (the null id when the comparison
|
|
745
|
+
* did not hash it, a symbolic link's target in a temporary file); a stored side whose
|
|
746
|
+
* index entry the worktree's file still matches is passed as that file
|
|
747
|
+
* (`reuse_worktree_file`, only when the diff reads the index); any other side is a
|
|
748
|
+
* temporary file of its content as checkout writes it.
|
|
749
|
+
*/
|
|
750
|
+
private externalSide;
|
|
751
|
+
/** reuse_worktree_file: the index's entry of `path` holds the side and its file matches it */
|
|
752
|
+
private reusesWorktreeFile;
|
|
626
753
|
private get config();
|
|
627
754
|
/** What this diff compares */
|
|
628
755
|
private get sides();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-command.d.ts","sourceRoot":"","sources":["../../src/commands/diff-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"diff-command.d.ts","sourceRoot":"","sources":["../../src/commands/diff-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EAGd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAQL,KAAK,OAAO,EAKb,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAwB/C,OAAO,EAAE,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGtE,OAAO,EAIL,KAAK,UAAU,EAEf,KAAK,iBAAiB,EAEtB,KAAK,YAAY,EACjB,KAAK,eAAe,EAYrB,MAAM,2BAA2B,CAAC;AAWnC,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAGvB,MAAM,wBAAwB,CAAC;AAkBhC,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,mBAAmB,EAGzB,MAAM,wBAAwB,CAAC;AAyChC,MAAM,MAAM,gBAAgB;AAC1B;;;GAGG;AACD,KAAK,GACL,OAAO,GACP,MAAM,GACN,SAAS,GACT,WAAW,GACX,SAAS,GACT,WAAW,GACX,aAAa;AACf;;;GAGG;GACD,SAAS;AACX;;;;GAIG;GACD,OAAO,CAAC;AAEZ,2EAA2E;AAC3E,MAAM,WAAW,eACf,SAAQ,IAAI,CACR,iBAAiB,EACf,QAAQ,GACR,WAAW,GACX,iBAAiB,GACjB,aAAa,GACb,QAAQ,GACR,aAAa,GACb,gBAAgB,GAChB,kBAAkB,GAClB,SAAS,CACZ,EACD,gBAAgB;IAClB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAA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AMG;YACW,YAAY;IA4J1B;;;OAGG;YACW,aAAa;YAyBb,MAAM;IAQpB;;OAEG;YACW,kBAAkB;CAiBjC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAaxD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { GitHostEnvironment } from "@statewalker/vcs-working-tree";
|
|
2
|
+
import { GitApiError } from "../errors/index.js";
|
|
3
|
+
/** A program git runs instead of its builtin patch */
|
|
4
|
+
export interface ExternalDiffProgram {
|
|
5
|
+
/** The command, run through the shell with the arguments after it */
|
|
6
|
+
command: string;
|
|
7
|
+
/** `trustExitCode` (git 2.46+): exit code 0 means the pair shows no change, 1 a change */
|
|
8
|
+
trustExitCode: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* diff.c's `external_diff()`: `$GIT_EXTERNAL_DIFF` (with
|
|
12
|
+
* `$GIT_EXTERNAL_DIFF_TRUST_EXIT_CODE`), else `diff.external` (with `diff.trustExitCode`),
|
|
13
|
+
* which only git's UI configuration reads (`config` undefined for plumbing).
|
|
14
|
+
*/
|
|
15
|
+
export declare function externalDiffProgramOf(environment: Pick<GitHostEnvironment, "diffVariables"> | undefined, config: ((key: string) => string | undefined) | undefined): ExternalDiffProgram | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The temporary files of one external diff call (tempfile.c's `mks_tempfile_dt`): each side
|
|
18
|
+
* in a directory `git-blob-XXXXXX` of the host's temporary directory, named as the file's
|
|
19
|
+
* basename (an external program then sees a "pretty" name), removed by {@link removeAll}.
|
|
20
|
+
*/
|
|
21
|
+
export declare class ExternalDiffTempFiles {
|
|
22
|
+
private readonly environment;
|
|
23
|
+
private readonly made;
|
|
24
|
+
constructor(environment: Pick<GitHostEnvironment, "hostFilesOf" | "tempDirectory">);
|
|
25
|
+
/** Whether files can be written for a program to read (a host FilesApi of the directory) */
|
|
26
|
+
get available(): boolean;
|
|
27
|
+
/** Writes `content` as `<tmp>/git-blob-XXXXXX/<basename of path>`; its host path */
|
|
28
|
+
write(path: string, content: Uint8Array): Promise<string>;
|
|
29
|
+
/** Removes every directory {@link write} made (git's `remove_tempfile`) */
|
|
30
|
+
removeAll(): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Thrown where git dies after an external diff program failed (`fatal: external diff died,
|
|
34
|
+
* stopping at <path>`, exit status 128): an exit code other than 0 (or 1 under
|
|
35
|
+
* `trustExitCode`), or a program the host could not run.
|
|
36
|
+
*/
|
|
37
|
+
export declare class ExternalDiffDiedError extends GitApiError {
|
|
38
|
+
readonly path: string;
|
|
39
|
+
/** What git wrote on stdout before it died (the programs' output, earlier patches) */
|
|
40
|
+
output: Uint8Array;
|
|
41
|
+
constructor(path: string);
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=diff-external.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-external.d.ts","sourceRoot":"","sources":["../../src/commands/diff-external.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,sDAAsD;AACtD,MAAM,WAAW,mBAAmB;IAClC,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,0FAA0F;IAC1F,aAAa,EAAE,OAAO,CAAC;CACxB;AAYD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,IAAI,CAAC,kBAAkB,EAAE,eAAe,CAAC,GAAG,SAAS,EAClE,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,GAAG,SAAS,GACxD,mBAAmB,GAAG,SAAS,CASjC;AAID;;;;GAIG;AACH,qBAAa,qBAAqB;IAI9B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAH9B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA+C;IAEpE,YACmB,WAAW,EAAE,IAAI,CAAC,kBAAkB,EAAE,aAAa,GAAG,eAAe,CAAC,EACrF;IAEJ,4FAA4F;IAC5F,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,oFAAoF;IAC9E,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAmB9D;IAED,2EAA2E;IACrE,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAQ/B;CACF;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IAIxC,QAAQ,CAAC,IAAI,EAAE,MAAM;IAHjC,sFAAsF;IACtF,MAAM,EAAE,UAAU,CAAqB;IAEvC,YAAqB,IAAI,EAAE,MAAM,EAGhC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git diff-pairs -z [<diff-options>]` (builtin/diff-pairs.c, git 2.50 and later): the pairs
|
|
3
|
+
* of a raw diff read back (`git diff-tree -r -z` output) and shown in any diff format.
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* const raw = await git.diffTree().addArgument("base").addArgument("new")
|
|
7
|
+
* .setRecursive(true).setNullTerminated(true).call();
|
|
8
|
+
* const patch = await git.diffPairs().setNullTerminated(true).setInput(raw)
|
|
9
|
+
* .setFormats(["patch"]).call();
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
import { DiffPlumbingCommand } from "./diff-plumbing-command.js";
|
|
13
|
+
/**
|
|
14
|
+
* Show the pairs of a NUL-terminated raw diff (`setInput`, git's stdin): each record
|
|
15
|
+
* `:<mode> <mode> <id> <id> <status>[<score>]` followed by its path (two for a rename or a
|
|
16
|
+
* copy), in the patch format unless another is asked for. A lone NUL flushes the pairs read
|
|
17
|
+
* so far, followed by a NUL in the output. The renames and copies of the input are kept
|
|
18
|
+
* unless `-M`/`-C` asks to detect them again; trees, pathspecs and input without `-z` are
|
|
19
|
+
* refused as git refuses them.
|
|
20
|
+
*/
|
|
21
|
+
export declare class DiffPairsCommand extends DiffPlumbingCommand {
|
|
22
|
+
private input;
|
|
23
|
+
/** The raw diff read (git's stdin) */
|
|
24
|
+
setInput(input: string | Uint8Array): this;
|
|
25
|
+
call(): Promise<Uint8Array>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=diff-pairs-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-pairs-command.d.ts","sourceRoot":"","sources":["../../../src/commands/diff-plumbing/diff-pairs-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;;;;;GAOG;AACH,qBAAa,gBAAiB,SAAQ,mBAAmB;IACvD,OAAO,CAAC,KAAK,CAAiC;IAE9C,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAIzC;IAEK,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAmHhC;CACF"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The plumbing diffs: `git diff-tree`, `git diff-index` and `git diff-files` (builtin/diff-tree.c,
|
|
3
|
+
* builtin/diff-index.c, builtin/diff-files.c), on top of {@link DiffCommand}'s comparisons and
|
|
4
|
+
* {@link LogCommand}'s log_tree_commit.
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git diff-tree -r -z HEAD~1 HEAD
|
|
8
|
+
* const raw = await git.diffTree().addArgument("HEAD~1").addArgument("HEAD")
|
|
9
|
+
* .setRecursive(true).setNullTerminated(true).call();
|
|
10
|
+
*
|
|
11
|
+
* // git diff-files --name-status
|
|
12
|
+
* const text = await git.diffFiles().setFormats(["name-status"]).callText();
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* Their defaults are git's plumbing ones: the raw format (`:<modes> <ids> <status>\t<path>`)
|
|
16
|
+
* with full ids unless `--abbrev` is given, no rename detection unless `-M`/`-C` asks, no
|
|
17
|
+
* `diff.*` porcelain configuration (`git_diff_basic_config`).
|
|
18
|
+
*/
|
|
19
|
+
import { GitCommand } from "../../git-command.js";
|
|
20
|
+
import { DiffCommand, type DiffOutputFormat, type DiffTextOptions } from "../diff-command.js";
|
|
21
|
+
/** What the plumbing diffs share: formats, diff options, pathspec */
|
|
22
|
+
export declare abstract class DiffPlumbingCommand extends GitCommand<Uint8Array> {
|
|
23
|
+
protected formats?: DiffOutputFormat[];
|
|
24
|
+
protected textOptions: DiffTextOptions;
|
|
25
|
+
protected pathspec: string[];
|
|
26
|
+
private abbrevGiven;
|
|
27
|
+
/**
|
|
28
|
+
* The outputs, as their options ask (`--raw`, `-p`, `--stat`, `--name-only`...; the raw
|
|
29
|
+
* format alone by default). `--patch-with-raw` is `["raw", "patch"]`, `--patch-with-stat`
|
|
30
|
+
* `["stat", "patch"]`.
|
|
31
|
+
*/
|
|
32
|
+
setFormats(formats: DiffOutputFormat[]): this;
|
|
33
|
+
/** Diff options (`-M`, `-C`, `-B`, `-R`, `-U<n>`, `--diff-filter`, `-O`, ...) */
|
|
34
|
+
setOptions(options: DiffTextOptions): this;
|
|
35
|
+
/** The paths compared (git's pathspec) */
|
|
36
|
+
setPathspec(paths: string[]): this;
|
|
37
|
+
/**
|
|
38
|
+
* `--abbrev[=<n>]`: the raw output's ids abbreviated (at least `n` digits, unique), as
|
|
39
|
+
* the patches' `index` lines are anyway
|
|
40
|
+
*/
|
|
41
|
+
setAbbrev(length?: number): this;
|
|
42
|
+
/** `-z`: NUL-terminated fields, paths unquoted */
|
|
43
|
+
setNullTerminated(z: boolean): this;
|
|
44
|
+
/** The output as text (paths decoded as {@link decodeGitPath} decodes them) */
|
|
45
|
+
callText(): Promise<string>;
|
|
46
|
+
/** The formats asked for, git's default otherwise, with diff_setup_done's exclusions */
|
|
47
|
+
protected outputFormats(fallback?: DiffOutputFormat): DiffOutputFormat[];
|
|
48
|
+
/** Whether a format needs the whole tree walked (anything but raw and the names) */
|
|
49
|
+
protected impliesRecursive(formats: DiffOutputFormat[]): boolean;
|
|
50
|
+
/** The diff options of a plumbing run: no ui configuration, no renames unless asked */
|
|
51
|
+
protected plumbingOptions(): DiffTextOptions;
|
|
52
|
+
/** A DiffCommand set up with the run's options and pathspec */
|
|
53
|
+
protected diffCommand(): DiffCommand;
|
|
54
|
+
/** The bytes a DiffCommand prints for these formats (nothing for an empty diff) */
|
|
55
|
+
protected printed(diff: DiffCommand, formats: DiffOutputFormat[]): Promise<Uint8Array>;
|
|
56
|
+
}
|
|
57
|
+
/** How `git diff-tree` shows a merge: not at all (default), `-m`, `-c` or `--cc` */
|
|
58
|
+
export type DiffTreeMerges = "none" | "separate" | "combined" | "dense-combined";
|
|
59
|
+
/**
|
|
60
|
+
* `git diff-tree [--stdin] [-m] [-c | --cc] [-r] [-t] [--root] [--no-commit-id] [--pretty]
|
|
61
|
+
* <tree-ish> [<tree-ish>] [<path>...]`.
|
|
62
|
+
*
|
|
63
|
+
* Two tree-ishes are compared as trees; one names a commit, shown with its id (or its log
|
|
64
|
+
* with `--pretty`) and its diff against its parent, nothing when that diff is empty (a root
|
|
65
|
+
* commit only with `--root`, a merge only with `-m`, `-c` or `--cc`). `--stdin` reads
|
|
66
|
+
* `<commit> [<parent>...]` lines (the parents grafted for that diff) and `<tree> <tree>` lines
|
|
67
|
+
* (printed before their diff); any other line is echoed. Without `-r` the top tree's entries
|
|
68
|
+
* are compared (subtrees as `040000` entries); a patch or a stat walks the whole tree.
|
|
69
|
+
*/
|
|
70
|
+
export declare class DiffTreeCommand extends DiffPlumbingCommand {
|
|
71
|
+
private args;
|
|
72
|
+
private recursive;
|
|
73
|
+
private showTrees;
|
|
74
|
+
private root;
|
|
75
|
+
private stdin?;
|
|
76
|
+
private merges;
|
|
77
|
+
private noCommitId;
|
|
78
|
+
private pretty?;
|
|
79
|
+
/** A tree-ish (one: a commit; two: the trees compared) */
|
|
80
|
+
addArgument(treeish: string): this;
|
|
81
|
+
/** `-r`: the subtrees' contents compared */
|
|
82
|
+
setRecursive(recursive: boolean): this;
|
|
83
|
+
/** `-t`: the subtrees shown too on the way to their contents (implies `-r`) */
|
|
84
|
+
setShowTrees(show: boolean): this;
|
|
85
|
+
/** `--root`: a root commit shown against the empty tree */
|
|
86
|
+
setRoot(root: boolean): this;
|
|
87
|
+
/** `--stdin`: the lines read (git's standard input) */
|
|
88
|
+
setStdin(input: string | Uint8Array): this;
|
|
89
|
+
/** `-m`, `-c`, `--cc`: how a merge is shown */
|
|
90
|
+
setMerges(merges: DiffTreeMerges): this;
|
|
91
|
+
/** `--no-commit-id`: no commit id before a commit's diff */
|
|
92
|
+
setNoCommitId(noCommitId: boolean): this;
|
|
93
|
+
/** `--pretty[=<format>]`: the commit's log instead of its id (`medium` for `--pretty`) */
|
|
94
|
+
setPretty(format: string): this;
|
|
95
|
+
call(): Promise<Uint8Array>;
|
|
96
|
+
/** The tree walk the run asks for (diff_setup_done: a patch or a stat recurses) */
|
|
97
|
+
private walk;
|
|
98
|
+
/** Two trees compared: their diff alone */
|
|
99
|
+
private diffTrees;
|
|
100
|
+
/** One commit (its log and diff), or the tree a single argument names against nothing */
|
|
101
|
+
private commitOrTree;
|
|
102
|
+
/** A tree-ish's object id (a commit's, or a tree's for a tree) */
|
|
103
|
+
private resolveTreeish;
|
|
104
|
+
/** Whether an id names a commit or a tree (anything else: undefined) */
|
|
105
|
+
private objectKind;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* `git diff-index [--cached] <tree-ish> [<path>...]`: a tree against the index
|
|
109
|
+
* (`--cached`) or against the worktree, the index telling which files are unchanged by their
|
|
110
|
+
* stat; a worktree file whose stat differs shows the null id in the raw output.
|
|
111
|
+
*/
|
|
112
|
+
export declare class DiffIndexCommand extends DiffPlumbingCommand {
|
|
113
|
+
private tree?;
|
|
114
|
+
private cached;
|
|
115
|
+
/** The tree-ish compared */
|
|
116
|
+
setTree(treeish: string): this;
|
|
117
|
+
/** `--cached`: the index, not the worktree */
|
|
118
|
+
setCached(cached: boolean): this;
|
|
119
|
+
call(): Promise<Uint8Array>;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* `git diff-files [<path>...]`: the index against the worktree, by the entries' stat (a file
|
|
123
|
+
* whose stat differs is listed even when its content did not change, its raw id the null
|
|
124
|
+
* id); an unmerged path is listed as `U`, then against stage 2.
|
|
125
|
+
*/
|
|
126
|
+
export declare class DiffFilesCommand extends DiffPlumbingCommand {
|
|
127
|
+
call(): Promise<Uint8Array>;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=diff-plumbing-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-plumbing-command.d.ts","sourceRoot":"","sources":["../../../src/commands/diff-plumbing/diff-plumbing-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAM9F,qEAAqE;AACrE,8BAAsB,mBAAoB,SAAQ,UAAU,CAAC,UAAU,CAAC;IACtE,SAAS,CAAC,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACvC,SAAS,CAAC,WAAW,EAAE,eAAe,CAAM;IAC5C,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAM;IAClC,OAAO,CAAC,WAAW,CAAS;IAE5B;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAI5C;IAED,iFAAiF;IACjF,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAIzC;IAED,0CAA0C;IAC1C,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE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YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAIhC;IAED,2DAA2D;IAC3D,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED,uDAAuD;IACvD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAIzC;IAED,+CAA+C;IAC/C,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAItC;IAED,4DAA4D;IAC5D,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAIvC;IAED,0FAA0F;IAC1F,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAEK,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CA+ChC;IAED,mFAAmF;IACnF,OAAO,CAAC,IAAI;IAKZ,2CAA2C;YAC7B,SAAS;IASvB,yFAAyF;YAC3E,YAAY;IAsC1B,kEAAkE;YACpD,cAAc;IAM5B,wEAAwE;YAC1D,UAAU;CAMzB;AAED;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,mBAAmB;IACvD,OAAO,CAAC,IAAI,CAAC,CAAS;IACtB,OAAO,CAAC,MAAM,CAAS;IAEvB,4BAA4B;IAC5B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAI7B;IAED,8CAA8C;IAC9C,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAEK,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAehC;CACF;AAED;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,mBAAmB;IACjD,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAKhC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/diff-plumbing/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC"}
|
|
@@ -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,S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