@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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* whose `result` holds what was printed before.
|
|
8
8
|
*/
|
|
9
9
|
import { type ObjectId } from "@statewalker/vcs-core";
|
|
10
|
-
import type { GitTransportRegistry } from "@statewalker/vcs-transport";
|
|
10
|
+
import type { GitTransportRegistry, HttpCredentialHelper } from "@statewalker/vcs-transport";
|
|
11
11
|
import { type FilesApi } from "@statewalker/vcs-utils/files";
|
|
12
12
|
import type { GitHostEnvironment, WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
13
13
|
import { GitApiError } from "../errors/index.js";
|
|
@@ -32,6 +32,14 @@ export interface SubmoduleCloneOptions {
|
|
|
32
32
|
*/
|
|
33
33
|
transports?: GitTransportRegistry;
|
|
34
34
|
timeout?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The credential helper (git's `credential.helper`, which the child clone reads): asked
|
|
37
|
+
* with the submodule's own URL after a 401, so it decides per host; the guarded transports
|
|
38
|
+
* drop what it gave on a redirect to another origin.
|
|
39
|
+
*/
|
|
40
|
+
credentialHelper?: HttpCredentialHelper;
|
|
41
|
+
/** git's `warning:` lines of the clone's HTTP client */
|
|
42
|
+
warningCallback?: (line: string) => void;
|
|
35
43
|
}
|
|
36
44
|
/** What a submodule command printed, and its exit status. */
|
|
37
45
|
export interface SubmoduleCommandResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submodule-commands.d.ts","sourceRoot":"","sources":["../../src/commands/submodule-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAY,KAAK,QAAQ,EAAkB,MAAM,uBAAuB,CAAC;AAEhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"submodule-commands.d.ts","sourceRoot":"","sources":["../../src/commands/submodule-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAY,KAAK,QAAQ,EAAkB,MAAM,uBAAuB,CAAC;AAEhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAE7F,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AM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,uBAAwB,SAAQ,oBAAoB;IAC/D,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,QAAQ,CAAC,CAA2B;IAC5C,OAAO,CAAC,SAAS,CAAS;IAE1B,4DAA4D;IAC5D,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAIlC;IAED,4CAA4C;IAC5C,WAAW,CAAC,QAAQ,EAAE,wBAAwB,GAAG,IAAI,CAIpD;IAED,4CAA4C;IAC5C,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAIrC;IAEK,IAAI,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAoD5C;IAED,gFAAgF;YAClE,UAAU;CAkCzB;AAOD,qFAAqF;AACrF,wBAAgB,WAAW,CAAC,WAAW,EAAE,kBAAkB,GAAG,kBAAkB,CAI/E"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* `git submodule update` and `git submodule status` (builtin/submodule--helper.c
|
|
3
|
+
* `module_update`, `update_submodules`, `prepare_to_clone_next_submodule`, `update_submodule`,
|
|
4
|
+
* `run_update_procedure`, `run_update_command`; `module_status`, `status_submodule`,
|
|
5
|
+
* `compute_rev_name`), over the submodule model of `submodule-model.ts`, the clone, fetch,
|
|
6
|
+
* checkout, merge and rebase commands.
|
|
7
|
+
*/
|
|
8
|
+
import { type Credentials, type GitTransportRegistry, type HttpCredentialHelper } from "@statewalker/vcs-transport";
|
|
2
9
|
import { type CredentialsForUrl, type HeadersForUrl, type SubmoduleAuthFor } from "./submodule-auth.js";
|
|
3
10
|
import { SubmoduleCommandBase, type SubmoduleCommandResult } from "./submodule-commands.js";
|
|
4
11
|
/** The update strategies `submodule update` takes on its command line. */
|
|
@@ -45,6 +52,7 @@ export declare class SubmoduleUpdateCommand extends SubmoduleCommandBase {
|
|
|
45
52
|
private requireInit;
|
|
46
53
|
/** `--filter=<spec>` of the clones */
|
|
47
54
|
private filter?;
|
|
55
|
+
private objectStorageFormat?;
|
|
48
56
|
/** `--[no-]single-branch` of the clones */
|
|
49
57
|
private singleBranch?;
|
|
50
58
|
private transports?;
|
|
@@ -56,6 +64,8 @@ export declare class SubmoduleUpdateCommand extends SubmoduleCommandBase {
|
|
|
56
64
|
/** Set once at the top superproject, handed to nested updates unchanged */
|
|
57
65
|
private authPolicy?;
|
|
58
66
|
private timeout?;
|
|
67
|
+
private credentialHelper?;
|
|
68
|
+
private warningCallback?;
|
|
59
69
|
/** A path (pathspec element) limiting the submodules; uninitialized ones are then reported. */
|
|
60
70
|
addPath(path: string): this;
|
|
61
71
|
/** `--init`: `submodule init` the submodules first. */
|
|
@@ -79,6 +89,12 @@ export declare class SubmoduleUpdateCommand extends SubmoduleCommandBase {
|
|
|
79
89
|
* by default it does.
|
|
80
90
|
*/
|
|
81
91
|
setRecommendShallow(recommend: boolean): this;
|
|
92
|
+
/**
|
|
93
|
+
* `--object-storage-format=<name>` (git master): the object storage of the submodules
|
|
94
|
+
* cloned. Only `files` is a name git knows (the repository as always); anything else,
|
|
95
|
+
* `files://<dir>` included, dies `unknown object storage format '<v>'` before any work.
|
|
96
|
+
*/
|
|
97
|
+
setObjectStorageFormat(format: string): this;
|
|
82
98
|
/** `--filter=<spec>`: partial clones of the submodules (`CloneCommand.setFilter`). */
|
|
83
99
|
setFilter(spec: string | undefined): this;
|
|
84
100
|
/** `--[no-]single-branch`: how the submodules are cloned (`CloneCommand.setSingleBranch`). */
|
|
@@ -124,6 +140,16 @@ export declare class SubmoduleUpdateCommand extends SubmoduleCommandBase {
|
|
|
124
140
|
private guardedTransports;
|
|
125
141
|
/** The policy: inherited, else built from the setters and the superproject's remote. */
|
|
126
142
|
private auth;
|
|
143
|
+
/**
|
|
144
|
+
* A credential helper, as git's `credential.helper` read by its child clones and fetches:
|
|
145
|
+
* asked with each submodule's own URL when its server answers 401 (so it decides per host,
|
|
146
|
+
* at any depth), told when the credentials worked or were refused. Unlike
|
|
147
|
+
* {@link setCredentials}, its answer for one host never goes to another: the client asks
|
|
148
|
+
* it per URL, and the guarded transports drop it on a redirect to another origin.
|
|
149
|
+
*/
|
|
150
|
+
setCredentialHelper(helper: HttpCredentialHelper): this;
|
|
151
|
+
/** Receives the `warning:` lines of the clones' and fetches' HTTP clients. */
|
|
152
|
+
setWarningCallback(callback: (line: string) => void): this;
|
|
127
153
|
/** The timeout of clones and fetches, in milliseconds. */
|
|
128
154
|
setTimeout(timeout: number): this;
|
|
129
155
|
call(): Promise<SubmoduleCommandResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submodule-update-command.d.ts","sourceRoot":"","sources":["../../src/commands/submodule-update-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"submodule-update-command.d.ts","sourceRoot":"","sources":["../../src/commands/submodule-update-command.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAiBpC,OAAO,EACL,KAAK,iBAAiB,EAGtB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,oBAAoB,EAEpB,KAAK,sBAAsB,EAG5B,MAAM,yBAAyB,CAAC;AAcjC,0EAA0E;AAC1E,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AA+IlE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,sBAAuB,SAAQ,oBAAoB;IAC9D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,IAAI,CA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AAE,CAAC,CAkB3B;IAED;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC,aAAa,CAAC,CAoEvC;CACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The textconv cache (`diff.<driver>.cachetextconv`), as git's notes-cache.c keeps it: the
|
|
3
|
+
* output of a driver's textconv command for a blob is a note on the blob in
|
|
4
|
+
* `refs/notes/textconv/<driver>`, valid while the subject of the ref's commit is the
|
|
5
|
+
* command (the cache's validity). Every entry added is committed at once (a parentless
|
|
6
|
+
* commit whose message is the command, the ref's reflog saying `update notes cache`), as
|
|
7
|
+
* `fill_textconv` writes the cache after each conversion.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* const cache = await TextconvCache.open(ctx, "magic", "./helper");
|
|
12
|
+
* const text = (await cache?.get(blobId)) ?? (await run());
|
|
13
|
+
* await cache?.put(blobId, text);
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import type { ObjectId } from "@statewalker/vcs-core";
|
|
17
|
+
import type { TextconvRequest, TextconvRunner } from "./diff-textconv.js";
|
|
18
|
+
import { type NotesContext } from "./notes-support.js";
|
|
19
|
+
export declare class TextconvCache {
|
|
20
|
+
private readonly ctx;
|
|
21
|
+
private readonly notes;
|
|
22
|
+
private readonly validity;
|
|
23
|
+
/** Puts in progress, one after the other (each commits the tree as it then is) */
|
|
24
|
+
private queue;
|
|
25
|
+
private constructor();
|
|
26
|
+
/**
|
|
27
|
+
* notes_cache_init: the cache of `driver`, empty unless the ref's commit was written for
|
|
28
|
+
* `validity`; undefined when the ref cannot hold a cache (git then caches nothing).
|
|
29
|
+
*/
|
|
30
|
+
static open(ctx: NotesContext, driver: string, validity: string): Promise<TextconvCache | undefined>;
|
|
31
|
+
/** notes_cache_get: the output cached for `blob`, if any. */
|
|
32
|
+
get(blob: ObjectId): Promise<Uint8Array | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* notes_cache_put and notes_cache_write: `output` noted for `blob` and committed; errors
|
|
35
|
+
* are ignored, as git ignores them (a read-only repository).
|
|
36
|
+
*/
|
|
37
|
+
put(blob: ObjectId, output: Uint8Array): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* diff.c's fill_textconv over the drivers' caches of one command (git's per-process
|
|
41
|
+
* caches, by driver and command): the runner's output, read from and written to the
|
|
42
|
+
* driver's notes cache when it asks for one (`diff.<driver>.cachetextconv`) and the
|
|
43
|
+
* content has an object id git knows (a blob of a tree or the index, never a worktree
|
|
44
|
+
* file's).
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
* const caches = new TextconvCaches(() => this.notesContext());
|
|
49
|
+
* const text = await caches.run(runner, request, blobId);
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare class TextconvCaches {
|
|
53
|
+
private readonly context;
|
|
54
|
+
private readonly opened;
|
|
55
|
+
constructor(context: () => NotesContext);
|
|
56
|
+
run(runner: TextconvRunner, request: TextconvRequest, id: ObjectId | undefined): Promise<Uint8Array>;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=textconv-cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textconv-cache.d.ts","sourceRoot":"","sources":["../../src/commands/textconv-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAa,KAAK,YAAY,EAAoC,MAAM,oBAAoB,CAAC;AAcpG,qBAAa,aAAa;IAKtB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAN3B,kFAAkF;IAClF,OAAO,CAAC,KAAK,CAAoC;IAEjD,OAAO,eAIH;IAEJ;;;OAGG;IACH,OAAa,IAAI,CACf,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAepC;IAED,6DAA6D;IACvD,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAQzD;IAED;;;OAGG;IACH,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBrD;CACF;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,cAAc;IAGb,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyD;IAEhF,YAA6B,OAAO,EAAE,MAAM,YAAY,EAAI;IAEtD,GAAG,CACP,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,eAAe,EACxB,EAAE,EAAE,QAAQ,GAAG,SAAS,GACvB,OAAO,CAAC,UAAU,CAAC,CAcrB;CACF"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import type { Blobs, ObjectId } from "@statewalker/vcs-core";
|
|
11
11
|
import { type WorktreePathOptions } from "@statewalker/vcs-core";
|
|
12
|
+
import { type ProgressMonitor, type ProgressTask } from "@statewalker/vcs-utils";
|
|
12
13
|
import { type ContentAttributesContext, type Staging, type Worktree } from "@statewalker/vcs-working-tree";
|
|
13
14
|
import type { CommandTrees } from "../git-command.js";
|
|
14
15
|
/** One file a restore plans to write back into the working tree. */
|
|
@@ -147,6 +148,8 @@ export interface TreeWriteOptions {
|
|
|
147
148
|
* does (`checkout-index`: the worktree's, then the current index's).
|
|
148
149
|
*/
|
|
149
150
|
attributes?: ContentAttributesContext | false;
|
|
151
|
+
/** Ticked once per file written and per gitlink created ("Updating files") */
|
|
152
|
+
progress?: ProgressTask;
|
|
150
153
|
}
|
|
151
154
|
/**
|
|
152
155
|
* A restore plan of only the paths in `writing`, from a flat path map of a tree (`target`,
|
|
@@ -176,6 +179,8 @@ export interface FreshCheckoutTarget {
|
|
|
176
179
|
writes?: (path: string) => boolean;
|
|
177
180
|
/** git's `verify_path` rules (`worktreePathRules`); default both protections on */
|
|
178
181
|
pathRules?: WorktreePathOptions;
|
|
182
|
+
/** clone's `--progress`: "Updating files", one unit per file and gitlink written */
|
|
183
|
+
progress?: ProgressMonitor;
|
|
179
184
|
}
|
|
180
185
|
/**
|
|
181
186
|
* A tree checked out into an empty worktree and index, as `git clone` and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-restore.d.ts","sourceRoot":"","sources":["../../src/commands/tree-restore.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAiC,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAEL,KAAK,wBAAwB,EAE7B,KAAK,OAAO,EACZ,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,oEAAoE;AACpE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,6CAA6C;AAC7C,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB;;;;OAIG;IACH,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,oEAAoE;IACpE,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;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,CAAC,EAAE,YAAY,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EACzD,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EACpB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,IAAI,CAAC,kBAAkB,EAAE,YAAY,GAAG,WAAW,GAAG,SAAS,CAAM,GAC7E,OAAO,CAAC,eAAe,CAAC,CAiC1B;AAED,kDAAkD;AAClD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,sFAAsF;IACtF,QAAQ,EAAE,OAAO,CAAC;IAClB,yBAAyB;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACnC,mFAAmF;IACnF,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,oFAAoF;IACpF,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,QAAQ,EAChB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,EAAE,CAAC,CA4CnB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git unpack-objects` (builtin/unpack-objects.c): a pack read from stdin is exploded into
|
|
3
|
+
* loose objects, as receive-pack and fetch-pack do with a pack under their unpack limit.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git unpack-objects --strict < pack
|
|
8
|
+
* const { exitCode, stderr } = await git.unpackObjects().setInput(packBytes).setStrict(true).call();
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
import { PlumbingCommand } from "./plumbing-command.js";
|
|
12
|
+
/**
|
|
13
|
+
* `git unpack-objects [-n] [-q] [--strict[=<msg-id>=<severity>...]]`: reads a pack
|
|
14
|
+
* ({@link setInput}) and writes each of its objects the repository does not have as a loose
|
|
15
|
+
* object, deltas resolved (REF_DELTA bases from the repository too: a thin pack), objects over
|
|
16
|
+
* `core.bigFileThreshold` streamed. Nothing goes to stdout; a bad pack is git's death (exit
|
|
17
|
+
* 128, `fatal: early EOF` for one cut short), the objects written before it are kept.
|
|
18
|
+
*
|
|
19
|
+
* With {@link setStrict} each received commit, tree and tag is checked as git's `--strict`
|
|
20
|
+
* checks it (fsck's strict severities, `--strict=<list>` changing them, `skiplist=<file>`), in
|
|
21
|
+
* pack order and depth first, before it is written: a missing link dies `object of unexpected
|
|
22
|
+
* type`, a failing check `fsck error in packed object`, warnings are printed and the objects
|
|
23
|
+
* written. As in git, a refused pack leaves its blobs (written as they come) and the commits,
|
|
24
|
+
* trees and tags checked before the one refused (written once checked), nothing else.
|
|
25
|
+
* {@link setDryRun} (`-n`) reads and resolves the whole pack and writes nothing, checking
|
|
26
|
+
* nothing either (git skips `--strict` there).
|
|
27
|
+
*/
|
|
28
|
+
export declare class UnpackObjectsCommand extends PlumbingCommand {
|
|
29
|
+
private input;
|
|
30
|
+
private dryRun;
|
|
31
|
+
private strict;
|
|
32
|
+
/** The pack (git reads it from stdin): its bytes, or a stream of them. */
|
|
33
|
+
setInput(pack: Uint8Array | AsyncIterable<Uint8Array>): this;
|
|
34
|
+
/** `-n`: read and verify the pack, writing nothing. */
|
|
35
|
+
setDryRun(dryRun: boolean): this;
|
|
36
|
+
/** `-q`: no progress (which this command never prints); accepted for git's command line. */
|
|
37
|
+
setQuiet(_quiet: boolean): this;
|
|
38
|
+
/**
|
|
39
|
+
* `--strict` (true), `--strict=<list>` (a string: `<msg-id>=<severity>` items and
|
|
40
|
+
* `skiplist=<file>`, separated by commas or spaces), or off (false, the default).
|
|
41
|
+
*/
|
|
42
|
+
setStrict(strict: boolean | string): this;
|
|
43
|
+
protected run(): Promise<number>;
|
|
44
|
+
/** `--strict`: imported aside, checked, then published (what git wrote, when refused). */
|
|
45
|
+
private unpackStrict;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=unpack-objects-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unpack-objects-command.d.ts","sourceRoot":"","sources":["../../src/commands/unpack-objects-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAuBH,OAAO,EAAE,eAAe,EAAiB,MAAM,uBAAuB,CAAC;AAKvE;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,oBAAqB,SAAQ,eAAe;IACvD,OAAO,CAAC,KAAK,CAAwD;IACrE,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAqB;IAEnC,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,GAAG,IAAI,CAS3D;IAED,uDAAuD;IACvD,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED,4FAA4F;IAC5F,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAG9B;IAED;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAIxC;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CA2BrC;IAED,0FAA0F;YAC5E,YAAY;CAqE3B"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git update-index` (builtin/update-index.c): index entries added, replaced, removed or
|
|
3
|
+
* re-flagged one argument at a time, as git processes its command line in order.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git update-index --add a --chmod=+x b
|
|
8
|
+
* await git.updateIndex().setAdd(true).addPath("a").setChmod("+x").addPath("b").call();
|
|
9
|
+
*
|
|
10
|
+
* // git update-index --cacheinfo 100644,<id>,c --assume-unchanged a
|
|
11
|
+
* await git.updateIndex().addCacheInfo(0o100644, id, "c").setAssumeUnchanged(true).addPath("a").call();
|
|
12
|
+
*
|
|
13
|
+
* // git update-index --refresh
|
|
14
|
+
* const { output, exitCode } = await git.updateIndex().refresh().call();
|
|
15
|
+
*
|
|
16
|
+
* // git update-index --fsmonitor, then --fsmonitor-valid a
|
|
17
|
+
* await git.updateIndex().setFsmonitor(true).call();
|
|
18
|
+
* await git.updateIndex().setFsmonitorValid(true).addPath("a").call();
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
import { GitCommand } from "../git-command.js";
|
|
22
|
+
/** Result of {@link UpdateIndexCommand}. */
|
|
23
|
+
export interface UpdateIndexResult {
|
|
24
|
+
/** What git prints on stdout: `--verbose`'s report, the refresh's `<path>: needs update` */
|
|
25
|
+
output: string;
|
|
26
|
+
/** What git prints on stderr without dying (`Ignoring path <path>`, `error:` lines) */
|
|
27
|
+
errors: string;
|
|
28
|
+
/** git's exit status: 1 when a refresh found entries to update or merge, else 0 */
|
|
29
|
+
exitCode: 0 | 1;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Edits the index as `git update-index` does (builtin/update-index.c).
|
|
33
|
+
*
|
|
34
|
+
* Options and paths apply in the order they are given, as git parses its command line: a
|
|
35
|
+
* setter changes how the paths after it are handled ({@link setAdd} before {@link addPath}),
|
|
36
|
+
* {@link refresh} and {@link addCacheInfo} act where they stand, and {@link setIndexInfo} or
|
|
37
|
+
* {@link setStdin} input is read after everything else. Each path is `update_one`:
|
|
38
|
+
*
|
|
39
|
+
* - with {@link setAssumeUnchanged} or {@link setSkipWorktree}, its stage-0 entry is flagged
|
|
40
|
+
* or unflagged (`Unable to mark file <path>` when it has none);
|
|
41
|
+
* - with {@link setForceRemove}, every stage of it is removed;
|
|
42
|
+
* - otherwise the file is hashed into the index (`--add` needed for a new path), a missing
|
|
43
|
+
* file removed only with {@link setRemove}, a directory taken as a submodule's commit.
|
|
44
|
+
*
|
|
45
|
+
* git's deaths are thrown as {@link UpdateIndexFailedError} (exit status 128) before the
|
|
46
|
+
* index is written, carrying what was printed until then. A refresh that finds entries to
|
|
47
|
+
* update or merge prints them and ends with exit status 1, the index written all the same.
|
|
48
|
+
*/
|
|
49
|
+
export declare class UpdateIndexCommand extends GitCommand<UpdateIndexResult> {
|
|
50
|
+
private readonly steps;
|
|
51
|
+
private indexInfo?;
|
|
52
|
+
private stdinPaths?;
|
|
53
|
+
private nulTerminated;
|
|
54
|
+
private indexVersion?;
|
|
55
|
+
private showIndexVersion;
|
|
56
|
+
private forceWrite;
|
|
57
|
+
private fsmonitor?;
|
|
58
|
+
private set;
|
|
59
|
+
/** `--add`: paths not in the index yet are added (from here on). */
|
|
60
|
+
setAdd(add?: boolean): this;
|
|
61
|
+
/** `--remove`: paths missing from the worktree are removed from the index. */
|
|
62
|
+
setRemove(remove?: boolean): this;
|
|
63
|
+
/** `--replace`: a file may replace a directory of its name in the index, and the reverse. */
|
|
64
|
+
setReplace(replace?: boolean): this;
|
|
65
|
+
/** `--force-remove`: paths are removed from the index whether or not their file exists. */
|
|
66
|
+
setForceRemove(forceRemove?: boolean): this;
|
|
67
|
+
/** `--info-only`: files are hashed into the index without storing their blobs. */
|
|
68
|
+
setInfoOnly(infoOnly?: boolean): this;
|
|
69
|
+
/** `--verbose`: `add '<path>'`, `remove '<path>'`, `chmod +x '<path>'` reported. */
|
|
70
|
+
setVerbose(verbose?: boolean): this;
|
|
71
|
+
/** `--chmod=(+|-)x`: the executable bit of the paths after it set or cleared in the index. */
|
|
72
|
+
setChmod(flip: "+x" | "-x"): this;
|
|
73
|
+
/** `--assume-unchanged` (true) / `--no-assume-unchanged` (false) for the paths after it. */
|
|
74
|
+
setAssumeUnchanged(mark: boolean): this;
|
|
75
|
+
/** `--skip-worktree` (true) / `--no-skip-worktree` (false) for the paths after it. */
|
|
76
|
+
setSkipWorktree(mark: boolean): this;
|
|
77
|
+
/**
|
|
78
|
+
* `--fsmonitor-valid` (true) / `--no-fsmonitor-valid` (false) for the paths after it: the
|
|
79
|
+
* entry's fsmonitor valid bit (`CE_FSMONITOR_VALID`) set or cleared.
|
|
80
|
+
*/
|
|
81
|
+
setFsmonitorValid(mark: boolean): this;
|
|
82
|
+
/**
|
|
83
|
+
* `--fsmonitor` (true) / `--no-fsmonitor` (false), applied after the paths, as git does:
|
|
84
|
+
* the index's `FSMN` extension added (`add_fsmonitor`; a warning when `core.fsmonitor` is
|
|
85
|
+
* unset; git's death in a bare repository with `core.fsmonitor` set) or removed (a warning
|
|
86
|
+
* when `core.fsmonitor` is set).
|
|
87
|
+
*/
|
|
88
|
+
setFsmonitor(enable: boolean): this;
|
|
89
|
+
/** `--ignore-skip-worktree-entries`: `--remove` leaves skip-worktree entries alone. */
|
|
90
|
+
setIgnoreSkipWorktreeEntries(ignore?: boolean): this;
|
|
91
|
+
/** `-q`: a refresh after it prints nothing about entries needing an update. */
|
|
92
|
+
setQuiet(quiet?: boolean): this;
|
|
93
|
+
/** `--unmerged`: a refresh after it passes over unmerged entries quietly. */
|
|
94
|
+
setUnmerged(unmerged?: boolean): this;
|
|
95
|
+
/** `--ignore-missing`: a refresh after it passes over missing files. */
|
|
96
|
+
setIgnoreMissing(ignore?: boolean): this;
|
|
97
|
+
/** `--ignore-submodules`: a refresh after it passes over submodules. */
|
|
98
|
+
setIgnoreSubmodules(ignore?: boolean): this;
|
|
99
|
+
/** A path to update (git's `<file>` argument), relative to the worktree top. */
|
|
100
|
+
addPath(path: string): this;
|
|
101
|
+
/** `--cacheinfo <mode>,<object>,<path>`: an entry put in the index as given. */
|
|
102
|
+
addCacheInfo(mode: number, objectId: string, path: string): this;
|
|
103
|
+
/** `--refresh`: the stat data of unchanged files refreshed, the changed ones reported. */
|
|
104
|
+
refresh(): this;
|
|
105
|
+
/** `--really-refresh`: as {@link refresh}, assume-unchanged entries checked too. */
|
|
106
|
+
reallyRefresh(): this;
|
|
107
|
+
/**
|
|
108
|
+
* `--index-info`: entries read from `input` (`<mode> <id>\t<path>`, `<mode> <type>
|
|
109
|
+
* <id>\t<path>` or `<mode> <id> <stage>\t<path>`; mode 0 removes the path), after
|
|
110
|
+
* everything else.
|
|
111
|
+
*/
|
|
112
|
+
setIndexInfo(input: string | Uint8Array): this;
|
|
113
|
+
/** `--stdin`: paths read from `input`, one per line, after everything else. */
|
|
114
|
+
setStdin(input: string | Uint8Array): this;
|
|
115
|
+
/** `-z`: {@link setIndexInfo} and {@link setStdin} input is NUL-separated. */
|
|
116
|
+
setNulTerminated(nul?: boolean): this;
|
|
117
|
+
/** `--index-version <n>`: the index written in format 2, 3 or 4. */
|
|
118
|
+
setIndexVersion(version: number): this;
|
|
119
|
+
/** `--show-index-version`: the index's format version printed. */
|
|
120
|
+
setShowIndexVersion(show?: boolean): this;
|
|
121
|
+
/** `--force-write-index`: the index written even when nothing changed. */
|
|
122
|
+
setForceWriteIndex(force?: boolean): this;
|
|
123
|
+
call(): Promise<UpdateIndexResult>;
|
|
124
|
+
/** `--[no-]fsmonitor`: `add_fsmonitor` / `remove_fsmonitor` and their warnings. */
|
|
125
|
+
private applyFsmonitor;
|
|
126
|
+
/** git's `xgetcwd()` for a bare repository: the git directory's host path. */
|
|
127
|
+
private currentDirectory;
|
|
128
|
+
private applyIndexVersion;
|
|
129
|
+
private context;
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=update-index-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-index-command.d.ts","sourceRoot":"","sources":["../../src/commands/update-index-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAyBH,OAAO,EAAE,UAAU,EAAE,MAAM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5B,8EAA8E;YAChE,gBAAgB;IAY9B,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,OAAO;CAgBhB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's `fetch.uriProtocols` (fetch-pack.c's fetch_pack_config): the last value, split at
|
|
3
|
+
* commas, as the fetch options' `uriProtocols`; nothing when unset or valueless.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* uriProtocolsOption("http,https"); // { uriProtocols: ["http", "https"] }
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
export declare function uriProtocolsOption(value: string | undefined): {
|
|
11
|
+
uriProtocols?: string[];
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=uri-protocols.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uri-protocols.d.ts","sourceRoot":"","sources":["../../src/commands/uri-protocols.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG;IAAE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAGzF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git url-parse` (builtin/url-parse.c, git 2.5x): each URL parsed as git reads remote URLs
|
|
3
|
+
* (`url_parse`), printing the component asked for, or dying on the first URL git refuses.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git url-parse -c host user@example.com:repo.git
|
|
8
|
+
* await git.urlParse().setComponent("host").addUrl("user@example.com:repo.git").call();
|
|
9
|
+
* // { exitCode: 0, stdout: "example.com\n", stderr: "" }
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
import { type UrlComponent } from "@statewalker/vcs-utils";
|
|
13
|
+
import { GitCommand } from "../git-command.js";
|
|
14
|
+
import type { PlumbingTextOutput } from "./check-ref-format-command.js";
|
|
15
|
+
/**
|
|
16
|
+
* `git url-parse [-c <component>] <url>...`: every URL checked in order, the component of
|
|
17
|
+
* each printed (an empty line when the URL has none); nothing printed without a component.
|
|
18
|
+
* A URL git refuses ends the run with git's `fatal:` line (exit 128) after the earlier URLs'
|
|
19
|
+
* lines; an unknown component dies before any URL is read, no URL prints the usage (129).
|
|
20
|
+
*/
|
|
21
|
+
export declare class UrlParseCommand extends GitCommand<PlumbingTextOutput> {
|
|
22
|
+
private readonly urls;
|
|
23
|
+
private component?;
|
|
24
|
+
/** A URL to parse. */
|
|
25
|
+
addUrl(url: string): this;
|
|
26
|
+
/** `-c <component>`: `scheme`, `user`, `password`, `host`, `port` or `path`. */
|
|
27
|
+
setComponent(component: UrlComponent | string | undefined): this;
|
|
28
|
+
call(): Promise<PlumbingTextOutput>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=url-parse-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-parse-command.d.ts","sourceRoot":"","sources":["../../src/commands/url-parse-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAkB,KAAK,YAAY,EAA0B,MAAM,wBAAwB,CAAC;AAEnG,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAOxE;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,UAAU,CAAC,kBAAkB,CAAC;IACjE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IACrC,OAAO,CAAC,SAAS,CAAC,CAAS;IAE3B,sBAAsB;IACtB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAIxB;IAED,gFAAgF;IAChF,YAAY,CAAC,SAAS,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAI/D;IAEK,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAmBxC;CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git var` (builtin/var.c): git's logical variables (`GIT_AUTHOR_IDENT`, `GIT_EDITOR`,
|
|
3
|
+
* `GIT_PAGER`, `GIT_DEFAULT_BRANCH`, the configuration and attribute files ...), one asked
|
|
4
|
+
* for, or all of them after the configuration (`-l`).
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* // git var GIT_AUTHOR_IDENT
|
|
9
|
+
* await git.var().setVariable("GIT_AUTHOR_IDENT").call();
|
|
10
|
+
* // { exitCode: 0, stdout: "A U Thor <author@example.com> 1112911993 -0700\n", stderr: "" }
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import { GitCommand } from "../git-command.js";
|
|
14
|
+
import type { PlumbingTextOutput } from "./check-ref-format-command.js";
|
|
15
|
+
/** The variables `git var` knows, in the order `-l` lists them. */
|
|
16
|
+
export declare const GIT_VARIABLES: readonly ["GIT_COMMITTER_IDENT", "GIT_AUTHOR_IDENT", "GIT_EDITOR", "GIT_SEQUENCE_EDITOR", "GIT_PAGER", "GIT_DEFAULT_BRANCH", "GIT_SHELL_PATH", "GIT_ATTR_SYSTEM", "GIT_ATTR_GLOBAL", "GIT_CONFIG_SYSTEM", "GIT_CONFIG_GLOBAL"];
|
|
17
|
+
/** A variable of {@link GIT_VARIABLES}. */
|
|
18
|
+
export type GitVariable = (typeof GIT_VARIABLES)[number];
|
|
19
|
+
/**
|
|
20
|
+
* `git var -l` (every configuration variable as `key=value`, then every variable with a
|
|
21
|
+
* value) or `git var <variable>` (its value; exit 1 when it has none, usage and 129 for an
|
|
22
|
+
* unknown name). Identities are git's `fmt_ident` of the environment and configuration (strict
|
|
23
|
+
* when asked for alone); the editor is `GIT_EDITOR`, `core.editor`, `VISUAL` (unless the
|
|
24
|
+
* terminal is dumb), `EDITOR`, else `vi` (none on a dumb terminal); the pager `GIT_PAGER`,
|
|
25
|
+
* `core.pager`, `PAGER`, else `less` (`cat` for an empty one; the host environment's
|
|
26
|
+
* `defaultEditor` and `defaultPager` name another build's defaults); the shell `/bin/sh`; the
|
|
27
|
+
* file paths those of the host environment.
|
|
28
|
+
*/
|
|
29
|
+
export declare class VarCommand extends GitCommand<PlumbingTextOutput> {
|
|
30
|
+
private variable?;
|
|
31
|
+
private list;
|
|
32
|
+
/** The variable to print. */
|
|
33
|
+
setVariable(name: GitVariable | string): this;
|
|
34
|
+
/** `-l`: the configuration, then every variable. */
|
|
35
|
+
setList(list: boolean): this;
|
|
36
|
+
call(): Promise<PlumbingTextOutput>;
|
|
37
|
+
/** A variable's value, undefined when it has none. */
|
|
38
|
+
private read;
|
|
39
|
+
/** git_editor */
|
|
40
|
+
private editor;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=var-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"var-command.d.ts","sourceRoot":"","sources":["../../src/commands/var-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAIxE,mEAAmE;AACnE,eAAO,MAAM,aAAa,YACxB,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,qBAAqB,EACrB,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,CACX,CAAC;AAEX,2CAA2C;AAC3C,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAwBzD;;;;;;;;;GASG;AACH,qBAAa,UAAW,SAAQ,UAAU,CAAC,kBAAkB,CAAC;IAC5D,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,IAAI,CAAS;IAErB,6BAA6B;IAC7B,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAI5C;IAED,oDAAoD;IACpD,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAEK,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAwCxC;IAED,sDAAsD;IACtD,OAAO,CAAC,IAAI;IAkEZ,iBAAiB;IACjB,OAAO,CAAC,MAAM;CAaf"}
|