@statewalker/vcs-commands 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commands/add-command.d.ts.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 +135 -0
- package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -0
- package/dist/commands/cat-file/index.d.ts +3 -0
- package/dist/commands/cat-file/index.d.ts.map +1 -0
- package/dist/commands/check-attr-command.d.ts +66 -0
- package/dist/commands/check-attr-command.d.ts.map +1 -0
- package/dist/commands/check-ignore-command.d.ts +58 -0
- package/dist/commands/check-ignore-command.d.ts.map +1 -0
- package/dist/commands/check-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 +19 -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 +42 -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 +58 -0
- package/dist/commands/format-rev-command.d.ts.map +1 -0
- package/dist/commands/fsck/fsck-command.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-msg-ids.d.ts +18 -3
- package/dist/commands/fsck/fsck-msg-ids.d.ts.map +1 -1
- package/dist/commands/fsmonitor-refresh.d.ts +69 -0
- package/dist/commands/fsmonitor-refresh.d.ts.map +1 -0
- package/dist/commands/gc-command.d.ts +5 -0
- package/dist/commands/gc-command.d.ts.map +1 -1
- package/dist/commands/git-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 +44 -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 +22 -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 +136 -0
- package/dist/commands/repo-command.d.ts.map +1 -0
- package/dist/commands/request-pull-command.d.ts +82 -0
- package/dist/commands/request-pull-command.d.ts.map +1 -0
- package/dist/commands/rerere-command.d.ts +36 -0
- package/dist/commands/rerere-command.d.ts.map +1 -0
- package/dist/commands/rerere.d.ts +102 -0
- package/dist/commands/rerere.d.ts.map +1 -0
- package/dist/commands/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 +9 -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 +12 -0
- 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 +22 -1
- package/dist/commands/signing.d.ts.map +1 -1
- package/dist/commands/stash-apply-command.d.ts.map +1 -1
- package/dist/commands/stash-export-command.d.ts +115 -0
- package/dist/commands/stash-export-command.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +2 -1
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/stripspace-command.d.ts +44 -0
- package/dist/commands/stripspace-command.d.ts.map +1 -0
- package/dist/commands/submodule-add-command.d.ts +10 -1
- package/dist/commands/submodule-add-command.d.ts.map +1 -1
- package/dist/commands/submodule-auth.d.ts +3 -1
- package/dist/commands/submodule-auth.d.ts.map +1 -1
- package/dist/commands/submodule-commands.d.ts +9 -1
- package/dist/commands/submodule-commands.d.ts.map +1 -1
- package/dist/commands/submodule-update-command.d.ts +13 -1
- package/dist/commands/submodule-update-command.d.ts.map +1 -1
- package/dist/commands/textconv-cache.d.ts +58 -0
- package/dist/commands/textconv-cache.d.ts.map +1 -0
- package/dist/commands/tree-restore.d.ts +5 -0
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/unpack-objects-command.d.ts +47 -0
- package/dist/commands/unpack-objects-command.d.ts.map +1 -0
- package/dist/commands/update-index-command.d.ts +110 -0
- package/dist/commands/update-index-command.d.ts.map +1 -0
- package/dist/commands/uri-protocols.d.ts +13 -0
- package/dist/commands/uri-protocols.d.ts.map +1 -0
- package/dist/commands/url-parse-command.d.ts +30 -0
- package/dist/commands/url-parse-command.d.ts.map +1 -0
- package/dist/commands/var-command.d.ts +42 -0
- package/dist/commands/var-command.d.ts.map +1 -0
- package/dist/{commands-CNvli5bl.js → commands-Mlo1dxQN.js} +52078 -44471
- 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-CrhVMNIH.js} +184 -143
- package/dist/git-command.d.ts +58 -2
- 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-Bw21HEkH.js +13539 -0
- package/dist/{remote-transport-CCmBadm-.js → remote-transport-Bu4PGSMD.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-ERo9vELd.js} +28511 -25685
- package/dist/transport-command.d.ts +79 -1
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +12 -12
- 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 +163 -8
- 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 +857 -0
- package/src/commands/cat-file/index.ts +2 -0
- package/src/commands/check-attr-command.ts +333 -0
- package/src/commands/check-ignore-command.ts +261 -0
- package/src/commands/check-ref-format-command.ts +129 -0
- package/src/commands/checkout-command.ts +39 -21
- 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 +208 -7
- 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 +99 -1
- package/src/commands/diff-command.ts +573 -46
- 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 +251 -0
- package/src/commands/fsck/fsck-command.ts +47 -20
- package/src/commands/fsck/fsck-msg-ids.ts +19 -3
- package/src/commands/fsck/fsck-pack.ts +2 -2
- package/src/commands/fsmonitor-refresh.ts +315 -0
- package/src/commands/gc-command.ts +10 -0
- package/src/commands/git-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 +45 -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 +55 -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 +684 -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 +967 -0
- package/src/commands/request-pull-command.ts +356 -0
- package/src/commands/rerere-command.ts +179 -0
- package/src/commands/rerere.ts +925 -0
- package/src/commands/rev-filter/commit-grep.ts +7 -2
- package/src/commands/rev-list-command.ts +9 -0
- package/src/commands/rev-parse-command.ts +62 -4
- package/src/commands/revert-command.ts +21 -1
- package/src/commands/revision-range.ts +7 -2
- package/src/commands/revision-resolver.ts +44 -3
- 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 +122 -16
- package/src/commands/stash-apply-command.ts +3 -0
- package/src/commands/stash-export-command.ts +397 -0
- package/src/commands/status-command.ts +43 -6
- package/src/commands/stripspace-command.ts +118 -0
- package/src/commands/submodule-add-command.ts +22 -1
- package/src/commands/submodule-auth.ts +61 -6
- package/src/commands/submodule-commands.ts +12 -2
- package/src/commands/submodule-update-command.ts +29 -0
- 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 +1016 -0
- package/src/commands/uri-protocols.ts +13 -0
- package/src/commands/url-parse-command.ts +67 -0
- package/src/commands/var-command.ts +219 -0
- package/src/errors/command-errors.ts +45 -0
- package/src/git-command.ts +131 -1
- 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
package/dist/commands/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { $ as
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { A as parseGitmodulesConfig, C as fsckBlob, D as hexIdAt, E as fsckTree, F as walkTree, M as rawIdAt, N as scanTree, O as parseCommitBuffer, P as treeEntryId, S as checkSubmoduleUrl, T as fsckTag, _ as UnknownFsckMsgIdError, a as FSCK_ERROR_MULTI_PACK_INDEX_243, b as canonMode, c as FSCK_ERROR_PACK_REV_INDEX_243, d as FsckCommand, f as FsckConfigError, g as FsckMessageTypes, h as FSCK_MSG_IDS, i as FSCK_ERROR_COMMIT_GRAPH, j as parseTagBuffer, k as parseCommitLinks, l as FSCK_ERROR_REACHABLE, m as receiveFsckOf, n as VerifyPackCommand, o as FSCK_ERROR_OBJECT, p as fetchFsckOf, r as FSCK_ERROR_BITMAP_243, s as FSCK_ERROR_PACK, u as FSCK_ERROR_REFS, v as parseFsckMsgId, w as fsckCommit, x as checkSubmoduleName, y as SHA1_ID_SHAPE } from "../fsck-CrhVMNIH.js";
|
|
2
|
+
import { $ as RevParseCommand, $l as findIdent, $n as remergeObjectsView, $s as createPromisorFetcher, A as IndexRefresh, Ai as latin1ToBytes, An as SignatureVerificationError, Ao as createMergeDriver, Ar as combineNotesOverwrite, B as parseIgnoredMode, Ba as resolveSigning, Bl as checkAutoCommentChar, Bn as readStoredObjectBytes, Br as formatTrailersOf, Bt as NoChangesSelectedError, C as patchRevisionOf, Cc as defaultRefFormat, Cl as nullIdLike, Cn as parseSubmoduleDiffFormat, Co as rerereGcLocation, Ct as matchBoolArg, D as PATCH_MODES, Dc as indexVersionConfigError, Dl as sequencerPrepareMessage, Dn as submoduleHeader, Do as runRerere, Dr as combineNotesCatSortUniq, Dt as sanitizedSubject, E as runAddPatch, Ec as indexFormatDefault, Ei as ApplyEngine, El as sequencerPostCommit, En as showSubmoduleDiffSummary, Eo as rerereStatus, Er as NotesTree, Et as relativeDate, F as hasPickaxe, Fn as parseBufferSignedByHeader, Fr as mergesMode, Ga as signingConfigFromEntries, Gn as verifyCommitBytes, Gr as parseTrailerWhere, Gt as WorkingCopyStashProvider, H as readShowUntrackedFiles, Ha as signPayload, Hn as signatureFormatAt, Hr as interpretTrailers, Ht as StashCreateCommand, I as renamesValue, Ia as SIGNING_FAILED_LINES, In as parseGpgOutput, Ir as reencodedCommitParts, J as formatStatusText, Ja as RevisionResolver, Jl as IdentityUnknownError, Jn as CommitFilters, Jr as trailerConfigFromEntries, Js as reflogMessages, Jt as recordWrittenStat, Ka as signingConfigOf, Kn as verifyMergeSignature, Kr as processTrailers, Ks as committerIdent, Kt as ResetCommand, La as SIGNING_KEYS, Ln as parseSignature, Lr as amendWithTrailers, M as DiffCommand, Mi as latin1ToText, Mn as checkSignature, Mr as LogPrinter, N as checkPickaxeOptions, Ni as pathToLatin1, Nn as checkSignatureWith, No as mergeDriversOf, Nr as mailFromHeader, O as patchModeFor, Oc as takeIndexWarnings, Oi as bytesToLatin1, Oo as MergeDriverCommandMissingError, Or as combineNotesConcatenate, Ot as wrapText, P as formatDiffEntry, Pi as textToLatin1, Pn as mergetagsOf, Pr as mailSubjectLine, Ql as committerIdentOf, Qn as RemergeTreeCommand, Qs as LAZY_FETCH_DISABLED_WARNING, R as StatusCommand, Ra as SigningFailedError, Rl as AutoCommentCharRemovedError, Rn as parseSignedBuffer, Rr as appendSignoff, S as runAddInteractive, Sc as defaultInitialBranch, Sl as isKnownHook, Sn as openSubmoduleRepository, So as rerereForget, St as matchArgValue, T as runPatchSelection, Tc as IndexVersionConfigError, Ti as parseWhitespaceAction, Tl as runPostCheckoutHook, Tn as readGitmodulesEntries, To as rerereRemaining, Tt as parseMaybeBool, U as readSubmoduleDirt, Ua as signRequestOf, Un as signatureLetter, Ur as parseTrailerIfExists, Ut as StashPathspecResetError, V as parseUntrackedFilesMode, Va as signCommit, Vi as CleanupMode, Vn as removeSignatureHeaders, Vr as ignoredLogMessageBytes, Vt as NoStagedChangesError, W as SubmoduleSummaryCommand, Wa as signerOf, Wn as trustRank, Wr as parseTrailerIfMissing, Wt as StashWorktreeRemovalError, Xi as stripspace, Xl as InvalidIdentError, Xn as applyMailmapToHeader, Xr as trailerLinesOf, Y as statusCommitInfo, Ya as TrackMode, Yl as InvalidDateError, Yn as GrepPatternError, Yr as trailerConfigOf, Ys as reflogSubject, Yt as restoreWorktreeHard, Zl as authorIdentOf, Zn as compileCommitGrep, Zr as validateTrailerArgs, _a as createRefDecorationFilter, _c as UnknownObjectStorageFormatError, _i as parseDateMode, _l as hookHostInGitDir, _o as unknownRevisionMessage, _t as expandStringArg, ac as acceptedPromisorRemotes, an as RevFilter, at as externalDiffProgramOf, au as withoutCrud, bc as checkDefaultObjectStorage, bi as LogGraph, bl as hookSettingsCheck, bn as SubmoduleRepository, bo as rerereClear, bt as humanDate, cc as Mailmap, ct as whitespaceRuleError, cu as localTimezoneOffset, dc as readRepositoryMailmap, dl as commonGitFileOf, do as lstatExists, ec as hasPromisorRemote, et as revisionMergeBases, eu as hostEnvironmentOf, fl as configuredHookEntries, fo as parseRevisionAndPathArgs, fr as NotesError, gc as ReinitializeObjectStorageError, gi as hostZoneName, gl as gitFileOf, go as parseRevisionArgs, gt as PrettyFormatError, hc as MissingDefaultBranchValueError, hi as DateModeError, hl as gitCommitMessageHooks, ho as handleRevisionArg, ic as registerPartialClone, in as LogCommand, it as ExternalDiffTempFiles, iu as resolveIdentDate, j as createPatchBackend, ji as latin1ToPath, jn as bytesOf, jo as installMergeDrivers, k as promptIndex, ki as cUnquote, ko as MergeDriverFailedError, kr as combineNotesIgnore, lc as readMailmapBlob, ll as HookSession, lo as checkFilename, lr as patchIdsOfPatchText, lu as parseGitDate, mc as InvalidInitialBranchError, mi as DEFAULT_DATE_MODE, ml as gitCommitAfterHooks, mo as verifyNonFilename, nc as promisorOf, nn as STASH_REF, nt as textconvRunnerOf, nu as resolveAuthorIdent, oc as promisorRemoteReplyOf, on as WorktreeListCommand, ot as DEFAULT_DECORATION_COLORS, pc as InvalidDefaultBranchError, pl as configuredHooks, po as verifyFilename, q as StatusPrinter, qa as signingKeyIdOf, ql as DEFAULT_IDENT, qn as verifyTagBytes, qr as signoffLine, qt as checkFlaggedEntries, rc as promisorRemotes, rn as StashListCommand, rt as ExternalDiffDiedError, ru as resolveCommitterIdent, sc as httpClientSettingsOf, sn as shortenUnambiguousRef, st as readDiffColorSettings, tc as installPromisorFetcher, tn as StashApplyCommand, tt as installTextconvRunner, tu as identConfigOf, uc as readMailmapFile, ul as LOCAL_REPO_ENV, un as parseExpiry, uo as looksLikePathspec, v as AddCommand, va as decorateFullRefs, vc as UnknownRefFormatError, vi as showDate, vl as hookHostOf, vo as RerereError, vt as formatCommitPretty, w as pathPatchMode, wc as isValidBranchName, wi as ApplyCommand, wl as refTransactionHookOf, wn as readDiffSubmoduleConfig, wo as rerereHostOf, wt as parseColorSpec, xc as defaultBranchHint, xi as graphColumnColors, xl as hookSettingsFromEntries, xn as SubmoduleWalkError, xo as rerereDiff, xt as loadRefDecorations, yc as UnsupportedObjectStorageError, yi as GRAPH_COLUMN_COLORS_ANSI, yl as hookRunnerOf, yn as NULL_OBJECT_ID, yo as normalizeConflicts, yt as formatRefDecorations, z as cutLine, za as refuseCommitSigning, zl as autoCommentCharLines, zn as parseSshOutput, zr as appendTrailers } from "../results-ERo9vELd.js";
|
|
3
|
+
import { $ as RefsMigrateCommand, $n as RemoteRemoveCommand, $r as RemoteArchiveCommand, $t as RANGE_DIFF_MAX_MEMORY_DEFAULT, A as createSshVerifier, An as SubmoduleAbsorbGitDirsCommand, Ar as attributeWarningLine, At as LsTreeCommand, B as RequestPullCommand, Bn as notFromUser, Br as EditBranchDescriptionCommand, Bt as HookListCommand, C as StashShowCommand, Ci as maildirFilenameCompare, Cn as ConfigCommand, Cr as CherryCommand, Ct as NotesShowCommand, D as StashBranchCommand, Di as mailsplit, Dn as RebaseCommand, Dr as CheckMailmapCommand, Dt as MktagCommand, E as StashImportCommand, Ei as mailinfo, En as SubmoduleUpdateCommand, Er as checkRefFormat, Et as MvCommand, F as packObjectsHookOf, Fn as SubmoduleHeadMover, Fr as expandBatchFormat, Ft as LfsConfig, G as humaniseBytesCompact, Gn as InitOptionsError, Gr as ListBranchCommand, Gt as FormatRevCommand, H as RepoInfoCommand, Hr as CopyBranchCommand, Ht as HistoryCommandBase, I as servedRepositoryOf, In as SubmoduleInitCommand, Ir as parseBatchFormat, It as LastModifiedCommand, J as ReplaceCommand, Jr as ForEachRefCommand, Jt as RangeDiffBase, K as humaniseCount, Kn as ReinitializeHashError, Kr as RenameBranchCommand, Kt as FormatPatchCommand, L as RevertCommand, Ln as SubmoduleSetBranchCommand, Lr as unsupportedAtom, Lt as LsFilesCommand, M as ShowCommand, Mn as SubmoduleCommandError, Mr as RemoteObjectInfoCommand, Mt as LfsEndpointCommand, N as ShowBranchCommand, Nn as SubmoduleDeinitCommand, Nr as RemoteObjectInfoUnsupportedError, Nt as LFS_DEFAULT_COMPATIBILITY, O as StashInfoCommand, On as RebaseOperation, Or as CheckIgnoreCommand, Ot as MergeTreeCommand, P as versionCmp, Pn as SubmoduleForeachCommand, Pr as DEFAULT_BATCH_FORMAT, Pt as LFS_URL_UNKNOWN, Q as RefsExistsCommand, Qn as RemoteListCommand, Qr as getTarCommitId, Qt as RANGE_DIFF_CREATION_FACTOR_DEFAULT, R as RestoreCommand, Rn as SubmoduleSetUrlCommand, Rr as SetUpstreamBranchCommand, Rt as prefixedElement, S as StashStoreCommand, Si as isMboxFromLine, Sn as daemonAccessHookOf, Sr as CommitCommand, St as NotesRemoveCommand, T as StashExportCommand, Ti as splitMail, Tn as SubmoduleStatusCommand, Tr as CheckRefFormatCommand, Tt as NameRevCommand, U as RepoStructureCommand, Un as RmCommand, Ur as CreateBranchCommand, Ut as HistoryRewordCommand, V as ShortlogCommand, Vn as shellQuote, Vr as ShowCurrentBranchCommand, Vt as HookRunCommand, W as gitRelativePath, Wn as InitCommand, Wr as DeleteBranchCommand, Wt as HistorySplitCommand, X as RemoteShowCommand, Xn as RemoteAddCommand, Xr as BlameCommand, Xt as rangeDiffNotesOptions, Y as RemotePruneCommand, Yn as SparseCheckoutCommand, Yr as RefListingCommand, Yt as RangeDiffCommand, Z as trackingSources, Zn as RemoteGetUrlCommand, Zr as BackfillCommand, Zt as CREATION_FACTOR_FOR_THE_SAME_SERIES, _ as SwitchCommand, _i as DescribeDeath, _n as DiffFilesCommand, _r as applyStrategyOption, _t as NotesCopyCommand, a as WorktreeUnlockCommand, ai as ZipArchiveWriter, an as parseRangeDiffMaxMemory, ar as CleanCommand, at as pushSucceeded, b as StripspaceCommand, bi as AmCommand, bn as DiffTreeCommand, br as FmtMergeMsgCommand, bt as NotesListCommand, c as VerifyTagCommand, ci as grepNoIndex, cn as computeAssignment, cr as runCleanInteractive, ct as PackRefsCommand, d as UrlParseCommand, di as GrepError, dn as RemoteUpdateCommand, dr as MergeCommand, dt as CountObjectsCommand, ei as applyArchiveArgs, en as RangeDiffError, er as RemoteRenameCommand, et as RefsVerifyCommand, f as UpdateIndexCommand, fi as bufferIsBinary, fn as addRemoteOrGroup, fr as MergeOperation, ft as checkPackIndex, g as TagCommand, gi as DESCRIBE_MAX_TAGS, gn as DiffPairsCommand, gr as UnknownStrategyOptionError, gt as NotesAppendCommand, h as ListTagCommand, hi as TarArchiveWriter, hn as marksFilesOf, hr as favorOf, ht as NotesAddCommand, i as WorktreeLockCommand, ii as INTERNAL_GZIP_COMMAND, in as humaniseBytes, ir as isValidRemoteName, it as pushOutputText, j as createSshSigner, jn as SubmoduleCommandBase, jr as CatFileCommand, jt as LsRemoteCommand, k as StashDropCommand, kn as SUBMODULE_UNSET_ENV, kr as CheckAttrCommand, kt as MergeBaseCommand, l as GIT_VARIABLES, li as DEFAULT_GREP_COLORS, ln as FetchMultipleCommand, lr as CherryPickCommand, lt as ShowIndexCommand, m as DeleteTagCommand, mi as grepPatternFile, mn as FastExportCommand, mr as UNRELATED_HISTORIES_MESSAGE, mt as NotesMergeCommand, n as WorktreeMoveCommand, ni as uploadArchiveWriterOf, nn as findExactMatches, nr as RemoteSetHeadCommand, nt as PushCommand, o as WorktreeAddCommand, oi as dosTime, on as readRangeDiffPatches, or as parseColumnLayout, ot as PullCommand, p as UnpackObjectsCommand, pi as grepPattern, pn as FastImportCommand, pr as UNMERGED_FILES_MESSAGE, pt as NotesCommands, q as ReplayCommand, qn as UnknownHashAlgorithmError, qr as DEFAULT_FOR_EACH_REF_FORMAT, qt as FormatPatchError, r as WorktreeRemoveCommand, ri as ArchiveCommand, rn as getCorrespondences, rr as RemoteSetUrlCommand, rt as parsePushRecurseSubmodules, s as VerifyCommitCommand, si as GrepCommand, sn as writeRangeDiff, sr as printColumns, st as PatchIdCommand, t as WorktreeRepairCommand, ti as runArchiveWriter, tn as RangeDiffMemoryError, tr as RemoteSetBranchesCommand, tt as ShowRefCommand, u as VarCommand, ui as GrepEngine, un as MAX_GROUP_DEPTH, ur as SequencerOperation, ut as PruneCommand, v as SubmoduleAddCommand, vi as Describer, vn as DiffIndexCommand, vr as parseStrategyOptions, vt as NotesEditCommand, w as StashPopCommand, wi as mailsplitFiles, wn as CloneCommand, wr as CheckoutIndexCommand, wt as NotesSubcommand, x as commentLines, xi as ensureUtf8, xn as DescribeCommand, xr as fmtMergeMsgConfigOf, xt as NotesPruneCommand, y as gitUrlBasename, yi as createDescriber, yn as DiffPlumbingCommand, yr as DEFAULT_MERGE_LOG_LENGTH, yt as NotesGetRefCommand, z as RerereCommand, zn as SubmoduleSyncCommand, zr as UnsetUpstreamBranchCommand, zt as InterpretTrailersCommand } from "../commands-Mlo1dxQN.js";
|
|
4
|
+
import { $ as relativeFilesPath, $t as BisectRunCommand, A as fetchBundleUri, An as pathCheckoutResult, At as isRootRef, B as stripFileFromPath, Bt as signatureStart, C as strictUrlOrigin, Cn as managedSkipped, Ct as shortlogIdent, Dn as CheckoutStage, Dt as fillIsBase, E as PlumbingError, En as CheckoutCommand, Et as fillAheadBehind, F as BundleCommandBase, Ft as RefFormat, G as defaultRemoteOf, Gt as atomSource, H as Gitmodules, Ht as trimTrailingSpaces, I as BundleList, It as RefKind, J as lstatKind, Jt as BisectCommand, K as isRelativeSubmoduleUrl, Kt as parseAtom, L as parseBundleListConfig, Lt as lstripRef, M as BundleListHeadsCommand, Mn as runPathCheckout, Mt as refKindOf, N as BundleUnbundleCommand, Nt as sortRefs, O as createBundleUriHost, On as CheckoutStatus, Ot as filterAndFormatRefs, P as BundleVerifyCommand, Pt as versionCompare, Q as physicalFilesPath, Qt as BisectResetCommand, R as parseBundleListLine, Rt as rstripRef, S as guardSubmoduleTransports, Sn as findBisection, St as readShortlogInput, T as PlumbingCommand, Tn as skipAwayIndex, Tt as compareBytes, U as SubmoduleGitDirError, Ut as quoteRefValue, V as updateBundleList, Vt as tagHeader, W as SubmoduleModel, Wt as ATOM_NAMES, X as parentIsDirectory, Xt as BisectNextCommand, Y as openConfigFile, Yt as BisectLogCommand, Z as parseSubmoduleUpdateStrategy, Zt as BisectReplayCommand, _n as FIND_BISECTION_FIRST_PARENT_ONLY, _t as formatSubject, a as ReflogCommand, an as BisectCode, at as setInConfigFile, bn as UNINTERESTING, bt as parseShortlogGroup, cn as sqDequoteToArgv, ct as upPathOf, d as fetchOutputText, dn as strbufRtrim, dt as validateSubmodulePath, en as BisectSkipCommand, et as relativeUrl, f as fetchSucceeded, fn as strbufTrim, ft as worktreeHostPath, gn as FIND_BISECTION_ALL, gt as commitSubject, h as toTrackingRefUpdate, hn as BisectNode, ht as Shortlog, i as RepackCommand, in as BISECT_USAGE, it as safeCreateLeadingDirectories, j as isBundle, jn as checkoutPaths, jt as parseRefSorting, k as fetchBundleList, kn as nonCommitSwitchError, kt as filterRefs, l as FetchCommand, ln as sqQuote, lt as urlIsLocalNotSsh, m as toTagMode, mn as BisectGraph, mt as SHORTLOG_DEFAULT_WRAP, n as MaintenanceRunCommand, nn as BisectStateCommand, nt as resolveFilesLinks, o as inLinkedWorktree, on as BisectEngine, ot as submodulePathConfigOf, p as prefetchRefspecs, pn as BisectDie, pt as BundleCreateCommand, q as joinFilesPath, qt as RevListCommand, rn as BisectTermsCommand, rt as resolveRelativeUrl, s as objectsDirectoryDisplay, sn as isBisectSuccess, st as submoduleUpdateTypeName, t as MAINTENANCE_TASKS, tn as BisectStartCommand, tt as remoteFromUrl, u as TagOption, un as sqQuoteArgv, ut as validateSubmoduleGitDir, vn as PRN_MODULO, vt as inputLines, wn as skipAway, wt as splitIdent, x as createSubmoduleAuthPolicy, xn as estimateBisectSteps, xt as parseShortlogWrap, y as parseFetchRecurseSubmodules, yn as TREESAME, yt as outputEncoderFor, z as printBundleList, zt as shortenRefName } from "../maintenance-run-command-Bw21HEkH.js";
|
|
5
|
+
import { A as V3_BUNDLE_SIGNATURE, C as WorktreePruneCommand, D as openBundle, E as bundleBytes, M as listBundleRefs, N as parseBundleHeader, O as verifyBundleIn, S as GarbageCollectCommand, T as withBundleUploadPack, _ as remoteHookSession, j as encodeBundleHeader, k as V2_BUNDLE_SIGNATURE, m as quarantineEnv, p as httpBackendEnv, w as BundlePrerequisitesError, x as ReadTreeCommand } from "../remote-transport-Bu4PGSMD.js";
|
|
6
|
+
export { ATOM_NAMES, AddCommand, AmCommand, ApplyCommand, ApplyEngine, ArchiveCommand, AutoCommentCharRemovedError, BISECT_USAGE, BackfillCommand, BisectCode, BisectCommand, BisectDie, BisectEngine, BisectGraph, BisectLogCommand, BisectNextCommand, BisectNode, BisectReplayCommand, BisectResetCommand, BisectRunCommand, BisectSkipCommand, BisectStartCommand, BisectStateCommand, BisectTermsCommand, BlameCommand, BundleCommandBase, BundleCreateCommand, BundleList, BundleListHeadsCommand, BundlePrerequisitesError, BundleUnbundleCommand, BundleVerifyCommand, CREATION_FACTOR_FOR_THE_SAME_SERIES, CatFileCommand, CheckAttrCommand, CheckIgnoreCommand, CheckMailmapCommand, CheckRefFormatCommand, CheckoutCommand, CheckoutIndexCommand, CheckoutStage, CheckoutStatus, CherryCommand, CherryPickCommand, CleanCommand, CleanupMode, CloneCommand, CommitCommand, CommitFilters, ConfigCommand, CopyBranchCommand, CountObjectsCommand, CreateBranchCommand, DEFAULT_BATCH_FORMAT, DEFAULT_DATE_MODE, DEFAULT_DECORATION_COLORS, DEFAULT_FOR_EACH_REF_FORMAT, DEFAULT_GREP_COLORS, DEFAULT_IDENT, DEFAULT_MERGE_LOG_LENGTH, DESCRIBE_MAX_TAGS, DateModeError, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DescribeDeath, Describer, DiffCommand, DiffFilesCommand, DiffIndexCommand, DiffPairsCommand, DiffPlumbingCommand, DiffTreeCommand, EditBranchDescriptionCommand, ExternalDiffDiedError, ExternalDiffTempFiles, FIND_BISECTION_ALL, FIND_BISECTION_FIRST_PARENT_ONLY, FSCK_ERROR_BITMAP_243, FSCK_ERROR_COMMIT_GRAPH, FSCK_ERROR_MULTI_PACK_INDEX_243, FSCK_ERROR_OBJECT, FSCK_ERROR_PACK, FSCK_ERROR_PACK_REV_INDEX_243, FSCK_ERROR_REACHABLE, FSCK_ERROR_REFS, FSCK_MSG_IDS, FastExportCommand, FastImportCommand, FetchCommand, FetchMultipleCommand, FmtMergeMsgCommand, ForEachRefCommand, FormatPatchCommand, FormatPatchError, FormatRevCommand, FsckCommand, FsckConfigError, FsckMessageTypes, GIT_VARIABLES, GRAPH_COLUMN_COLORS_ANSI, GarbageCollectCommand, Gitmodules, GrepCommand, GrepEngine, GrepError, GrepPatternError, HistoryCommandBase, HistoryRewordCommand, HistorySplitCommand, HookListCommand, HookRunCommand, HookSession, INTERNAL_GZIP_COMMAND, IdentityUnknownError, IndexRefresh, IndexVersionConfigError, InitCommand, InitOptionsError, InterpretTrailersCommand, InvalidDateError, InvalidDefaultBranchError, InvalidIdentError, InvalidInitialBranchError, LAZY_FETCH_DISABLED_WARNING, LFS_DEFAULT_COMPATIBILITY, LFS_URL_UNKNOWN, LOCAL_REPO_ENV, LastModifiedCommand, LfsConfig, LfsEndpointCommand, ListBranchCommand, ListTagCommand, LogCommand, LogGraph, LogPrinter, LsFilesCommand, LsRemoteCommand, LsTreeCommand, MAINTENANCE_TASKS, MAX_GROUP_DEPTH, Mailmap, MaintenanceRunCommand, MergeBaseCommand, MergeCommand, MergeDriverCommandMissingError, MergeDriverFailedError, MergeOperation, MergeTreeCommand, MissingDefaultBranchValueError, MktagCommand, MvCommand, NULL_OBJECT_ID, NameRevCommand, NoChangesSelectedError, NoStagedChangesError, NotesAddCommand, NotesAppendCommand, NotesCommands, NotesCopyCommand, NotesEditCommand, NotesError, NotesGetRefCommand, NotesListCommand, NotesMergeCommand, NotesPruneCommand, NotesRemoveCommand, NotesShowCommand, NotesSubcommand, NotesTree, PATCH_MODES, PRN_MODULO, PackRefsCommand, PatchIdCommand, PlumbingCommand, PlumbingError, PrettyFormatError, PruneCommand, PullCommand, PushCommand, RANGE_DIFF_CREATION_FACTOR_DEFAULT, RANGE_DIFF_MAX_MEMORY_DEFAULT, RangeDiffBase, RangeDiffCommand, RangeDiffError, RangeDiffMemoryError, ReadTreeCommand, RebaseCommand, RebaseOperation, RefFormat, RefKind, RefListingCommand, ReflogCommand, RefsExistsCommand, RefsMigrateCommand, RefsVerifyCommand, ReinitializeHashError, ReinitializeObjectStorageError, RemergeTreeCommand, RemoteAddCommand, RemoteArchiveCommand, RemoteGetUrlCommand, RemoteListCommand, RemoteObjectInfoCommand, RemoteObjectInfoUnsupportedError, RemotePruneCommand, RemoteRemoveCommand, RemoteRenameCommand, RemoteSetBranchesCommand, RemoteSetHeadCommand, RemoteSetUrlCommand, RemoteShowCommand, RemoteUpdateCommand, RenameBranchCommand, RepackCommand, ReplaceCommand, ReplayCommand, RepoInfoCommand, RepoStructureCommand, RequestPullCommand, RerereCommand, RerereError, ResetCommand, RestoreCommand, RevFilter, RevListCommand, RevParseCommand, RevertCommand, RevisionResolver, RmCommand, SHA1_ID_SHAPE, SHORTLOG_DEFAULT_WRAP, SIGNING_FAILED_LINES, SIGNING_KEYS, STASH_REF, SUBMODULE_UNSET_ENV, SequencerOperation, SetUpstreamBranchCommand, Shortlog, ShortlogCommand, ShowBranchCommand, ShowCommand, ShowCurrentBranchCommand, ShowIndexCommand, ShowRefCommand, SignatureVerificationError, SigningFailedError, SparseCheckoutCommand, StashApplyCommand, StashBranchCommand, StashCreateCommand, StashDropCommand, StashExportCommand, StashImportCommand, StashInfoCommand, StashListCommand, StashPathspecResetError, StashPopCommand, StashShowCommand, StashStoreCommand, StashWorktreeRemovalError, StatusCommand, StatusPrinter, StripspaceCommand, SubmoduleAbsorbGitDirsCommand, SubmoduleAddCommand, SubmoduleCommandBase, SubmoduleCommandError, SubmoduleDeinitCommand, SubmoduleForeachCommand, SubmoduleGitDirError, SubmoduleHeadMover, SubmoduleInitCommand, SubmoduleModel, SubmoduleRepository, SubmoduleSetBranchCommand, SubmoduleSetUrlCommand, SubmoduleStatusCommand, SubmoduleSummaryCommand, SubmoduleSyncCommand, SubmoduleUpdateCommand, SubmoduleWalkError, SwitchCommand, TREESAME, TagCommand, TagOption, TarArchiveWriter, TrackMode, UNINTERESTING, UNMERGED_FILES_MESSAGE, UNRELATED_HISTORIES_MESSAGE, UnknownFsckMsgIdError, UnknownHashAlgorithmError, UnknownObjectStorageFormatError, UnknownRefFormatError, UnknownStrategyOptionError, UnpackObjectsCommand, UnsetUpstreamBranchCommand, UnsupportedObjectStorageError, UpdateIndexCommand, UrlParseCommand, V2_BUNDLE_SIGNATURE, V3_BUNDLE_SIGNATURE, VarCommand, VerifyCommitCommand, VerifyPackCommand, VerifyTagCommand, WorkingCopyStashProvider, WorktreeAddCommand, WorktreeListCommand, WorktreeLockCommand, WorktreeMoveCommand, WorktreePruneCommand, WorktreeRemoveCommand, WorktreeRepairCommand, WorktreeUnlockCommand, ZipArchiveWriter, acceptedPromisorRemotes, addRemoteOrGroup, amendWithTrailers, appendSignoff, appendTrailers, applyArchiveArgs, applyMailmapToHeader, applyStrategyOption, atomSource, attributeWarningLine, authorIdentOf, autoCommentCharLines, bufferIsBinary, bundleBytes, bytesOf, bytesToLatin1, cUnquote, canonMode, checkAutoCommentChar, checkDefaultObjectStorage, checkFilename, checkFlaggedEntries, checkPackIndex, checkPickaxeOptions, checkRefFormat, checkSignature, checkSignatureWith, checkSubmoduleName, checkSubmoduleUrl, checkoutPaths, combineNotesCatSortUniq, combineNotesConcatenate, combineNotesIgnore, combineNotesOverwrite, commentLines, commitSubject, committerIdent, committerIdentOf, commonGitFileOf, compareBytes, compileCommitGrep, computeAssignment, configuredHookEntries, configuredHooks, createBundleUriHost, createDescriber, createMergeDriver, createPatchBackend, createPromisorFetcher, createRefDecorationFilter, createSshSigner, createSshVerifier, createSubmoduleAuthPolicy, cutLine, daemonAccessHookOf, decorateFullRefs, defaultBranchHint, defaultInitialBranch, defaultRefFormat, defaultRemoteOf, dosTime, encodeBundleHeader, ensureUtf8, estimateBisectSteps, expandBatchFormat, expandStringArg, externalDiffProgramOf, favorOf, fetchBundleList, fetchBundleUri, fetchFsckOf, fetchOutputText, fetchSucceeded, fillAheadBehind, fillIsBase, filterAndFormatRefs, filterRefs, findBisection, findExactMatches, findIdent, fmtMergeMsgConfigOf, formatCommitPretty, formatDiffEntry, formatRefDecorations, formatStatusText, formatSubject, formatTrailersOf, fsckBlob, fsckCommit, fsckTag, fsckTree, getCorrespondences, getTarCommitId, gitCommitAfterHooks, gitCommitMessageHooks, gitFileOf, gitRelativePath, gitUrlBasename, graphColumnColors, grepNoIndex, grepPattern, grepPatternFile, guardSubmoduleTransports, handleRevisionArg, hasPickaxe, hasPromisorRemote, hexIdAt, hookHostInGitDir, hookHostOf, hookRunnerOf, hookSettingsCheck, hookSettingsFromEntries, hostEnvironmentOf, hostZoneName, httpBackendEnv, httpClientSettingsOf, humanDate, humaniseBytes, humaniseBytesCompact, humaniseCount, identConfigOf, ignoredLogMessageBytes, inLinkedWorktree, indexFormatDefault, indexVersionConfigError, inputLines, installMergeDrivers, installPromisorFetcher, installTextconvRunner, interpretTrailers, isBisectSuccess, isBundle, isKnownHook, isMboxFromLine, isRelativeSubmoduleUrl, isRootRef, isValidBranchName, isValidRemoteName, joinFilesPath, latin1ToBytes, latin1ToPath, latin1ToText, listBundleRefs, loadRefDecorations, localTimezoneOffset, looksLikePathspec, lstatExists, lstatKind, lstripRef, mailFromHeader, mailSubjectLine, maildirFilenameCompare, mailinfo, mailsplit, mailsplitFiles, managedSkipped, marksFilesOf, matchArgValue, matchBoolArg, mergeDriversOf, mergesMode, mergetagsOf, nonCommitSwitchError, normalizeConflicts, notFromUser, nullIdLike, objectsDirectoryDisplay, openBundle, openConfigFile, openSubmoduleRepository, outputEncoderFor, packObjectsHookOf, parentIsDirectory, parseAtom, parseBatchFormat, parseBufferSignedByHeader, parseBundleHeader, parseBundleListConfig, parseBundleListLine, parseColorSpec, parseColumnLayout, parseCommitBuffer, parseCommitLinks, parseDateMode, parseExpiry, parseFetchRecurseSubmodules, parseFsckMsgId, parseGitDate, parseGitmodulesConfig, parseGpgOutput, parseIgnoredMode, parseMaybeBool, parsePushRecurseSubmodules, parseRangeDiffMaxMemory, parseRefSorting, parseRevisionAndPathArgs, parseRevisionArgs, parseShortlogGroup, parseShortlogWrap, parseSignature, parseSignedBuffer, parseSshOutput, parseStrategyOptions, parseSubmoduleDiffFormat, parseSubmoduleUpdateStrategy, parseTagBuffer, parseTrailerIfExists, parseTrailerIfMissing, parseTrailerWhere, parseUntrackedFilesMode, parseWhitespaceAction, patchIdsOfPatchText, patchModeFor, patchRevisionOf, pathCheckoutResult, pathPatchMode, pathToLatin1, physicalFilesPath, prefetchRefspecs, prefixedElement, printBundleList, printColumns, processTrailers, promisorOf, promisorRemoteReplyOf, promisorRemotes, promptIndex, pushOutputText, pushSucceeded, quarantineEnv, quoteRefValue, rangeDiffNotesOptions, rawIdAt, readDiffColorSettings, readDiffSubmoduleConfig, readGitmodulesEntries, readMailmapBlob, readMailmapFile, readRangeDiffPatches, readRepositoryMailmap, readShortlogInput, readShowUntrackedFiles, readStoredObjectBytes, readSubmoduleDirt, receiveFsckOf, recordWrittenStat, reencodedCommitParts, refKindOf, refTransactionHookOf, reflogMessages, reflogSubject, refuseCommitSigning, registerPartialClone, relativeDate, relativeFilesPath, relativeUrl, remergeObjectsView, remoteFromUrl, remoteHookSession, removeSignatureHeaders, renamesValue, rerereClear, rerereDiff, rerereForget, rerereGcLocation, rerereHostOf, rerereRemaining, rerereStatus, resolveAuthorIdent, resolveCommitterIdent, resolveFilesLinks, resolveIdentDate, resolveRelativeUrl, resolveSigning, restoreWorktreeHard, revisionMergeBases, rstripRef, runAddInteractive, runAddPatch, runArchiveWriter, runCleanInteractive, runPatchSelection, runPathCheckout, runPostCheckoutHook, runRerere, safeCreateLeadingDirectories, sanitizedSubject, scanTree, sequencerPostCommit, sequencerPrepareMessage, servedRepositoryOf, setInConfigFile, shellQuote, shortenRefName, shortenUnambiguousRef, shortlogIdent, showDate, showSubmoduleDiffSummary, signCommit, signPayload, signRequestOf, signatureFormatAt, signatureLetter, signatureStart, signerOf, signingConfigFromEntries, signingConfigOf, signingKeyIdOf, signoffLine, skipAway, skipAwayIndex, sortRefs, splitIdent, splitMail, sqDequoteToArgv, sqQuote, sqQuoteArgv, statusCommitInfo, strbufRtrim, strbufTrim, strictUrlOrigin, stripFileFromPath, stripspace, submoduleHeader, submodulePathConfigOf, submoduleUpdateTypeName, tagHeader, takeIndexWarnings, textToLatin1, textconvRunnerOf, toTagMode, toTrackingRefUpdate, trackingSources, trailerConfigFromEntries, trailerConfigOf, trailerLinesOf, treeEntryId, trimTrailingSpaces, trustRank, unknownRevisionMessage, unsupportedAtom, upPathOf, updateBundleList, uploadArchiveWriterOf, urlIsLocalNotSsh, validateSubmoduleGitDir, validateSubmodulePath, validateTrailerArgs, verifyBundleIn, verifyCommitBytes, verifyFilename, verifyMergeSignature, verifyNonFilename, verifyTagBytes, versionCmp, versionCompare, walkTree, whitespaceRuleError, withBundleUploadPack, withoutCrud, worktreeHostPath, wrapText, writeRangeDiff };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../src/commands/init-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,QAAQ,EAId,MAAM,uBAAuB,CAAC;AAsC/B,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,OAAO,EAEZ,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"init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;OAEG;IACH,OAAO,CAAC,aAAa;IAqBrB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAMrB;;OAEG;IACH,OAAO,CAAC,WAAW;CAGpB;AAED,+FAA+F;AAC/F,qBAAa,yBAA0B,SAAQ,KAAK;IAGtC,QAAQ,CAAC,KAAK,EAAE,MAAM;IAFzB,IAAI,SAA+B;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACzB,YAAqB,KAAK,EAAE,MAAM,EAIjC;CACF;AAED,kGAAkG;AAClG,qBAAa,qBAAsB,SAAQ,KAAK;IACrC,IAAI,SAA2B;IACxC,QAAQ,CAAC,KAAK,WAAqE;IACnF,cAEC;CACF;AASD,oGAAoG;AACpG,qBAAa,gBAAiB,SAAQ,KAAK;IAChC,IAAI,SAAsB;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,IAAI,EAAE,MAAM,EAGvB;CACF"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git last-modified` (builtin/last-modified.c, git 2.52+): for each path of a commit's tree,
|
|
3
|
+
* the commit that last changed it.
|
|
4
|
+
*/
|
|
5
|
+
import { type ObjectId } from "@statewalker/vcs-core";
|
|
6
|
+
import { PlumbingCommand } from "./plumbing-command.js";
|
|
7
|
+
/** One line of `git last-modified`'s output. */
|
|
8
|
+
export interface LastModifiedEntry {
|
|
9
|
+
/** The path, from the top of the worktree */
|
|
10
|
+
path: string;
|
|
11
|
+
/** The commit that last changed it (or the boundary commit the walk stopped at) */
|
|
12
|
+
commit: ObjectId;
|
|
13
|
+
/** The walk stopped at `commit` (a `-<n>` limit or an excluded commit): printed with `^` */
|
|
14
|
+
boundary: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** What a run did with the commit-graph's changed-path Bloom filters. */
|
|
17
|
+
export interface LastModifiedStatistics {
|
|
18
|
+
/** First-parent comparisons a filter answered "no path changed" (no tree read) */
|
|
19
|
+
bloomDefinitelyNot: number;
|
|
20
|
+
/** First-parent comparisons a filter answered "maybe" */
|
|
21
|
+
bloomMaybe: number;
|
|
22
|
+
/** Tree comparisons made */
|
|
23
|
+
treeDiffs: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* `git last-modified`: which commit last changed each path of the tree (its files and, with
|
|
27
|
+
* `setShowTrees` or without recursion, its directories), walking back from one commit.
|
|
28
|
+
*
|
|
29
|
+
* This is builtin/last-modified.c: the paths come from the tree of the one included revision
|
|
30
|
+
* (default HEAD) limited by the pathspec and `--max-depth`; the walk takes commits newest
|
|
31
|
+
* first (generation, then date) and hands each still-unexplained path on to the first parent
|
|
32
|
+
* whose version of it is the same; a path no parent shares was changed by the commit. Before
|
|
33
|
+
* comparing a commit with its first parent, the commit's changed-path Bloom filter (when the
|
|
34
|
+
* commit-graph has one) is asked whether any of the paths may have changed; a "no" passes them
|
|
35
|
+
* all to that parent without reading a tree. A path still unexplained at a boundary commit
|
|
36
|
+
* (`-<n>`, an excluded commit) is printed with `^` before the boundary's id. Lines come in the
|
|
37
|
+
* order git prints them: by the commit that explains them, then in the order of git's
|
|
38
|
+
* hashmap of the paths.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
42
|
+
* const entries = await git.lastModified().setRecursive().addPaths("src").callEntries();
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class LastModifiedCommand extends PlumbingCommand {
|
|
46
|
+
private maxDepth;
|
|
47
|
+
private showTrees;
|
|
48
|
+
private nul;
|
|
49
|
+
private maxCount;
|
|
50
|
+
private revisions;
|
|
51
|
+
private paths;
|
|
52
|
+
private prefix;
|
|
53
|
+
private useBloomFilters;
|
|
54
|
+
private statistics;
|
|
55
|
+
private entriesOut?;
|
|
56
|
+
/** `-r`, `--recursive`: every path below the pathspec (`--max-depth=-1`). */
|
|
57
|
+
setRecursive(recursive?: boolean): this;
|
|
58
|
+
/** `-t`, `--show-trees`: directories too when recursing into them. */
|
|
59
|
+
setShowTrees(show?: boolean): this;
|
|
60
|
+
/** `--max-depth=<depth>`: levels below each pathspec element (negative: no limit; default 0). */
|
|
61
|
+
setMaxDepth(depth: number): this;
|
|
62
|
+
/** `-z`: paths unquoted, each line ended by a NUL. */
|
|
63
|
+
setNullTerminated(nul?: boolean): this;
|
|
64
|
+
/** `-<n>`, `-n <n>`, `--max-count=<n>`: stop after `n` commits (the next is a boundary). */
|
|
65
|
+
setMaxCount(count: number): this;
|
|
66
|
+
/**
|
|
67
|
+
* Revisions as git reads them: `<rev>`, `^<rev>` and `<a>..<b>` (one included commit at
|
|
68
|
+
* most). An argument starting with `-` is refused as git refuses an unknown option.
|
|
69
|
+
*/
|
|
70
|
+
addRevisions(...revisions: string[]): this;
|
|
71
|
+
/** Pathspec elements, relative to {@link setPrefix}. */
|
|
72
|
+
addPaths(...paths: string[]): this;
|
|
73
|
+
/** The directory below the top the command runs in (pathspecs are relative to it). */
|
|
74
|
+
setPrefix(prefix: string): this;
|
|
75
|
+
/** Whether the commit-graph's changed-path Bloom filters are asked (default true). */
|
|
76
|
+
setUseBloomFilters(use: boolean): this;
|
|
77
|
+
/** What the last run did with the Bloom filters. */
|
|
78
|
+
getStatistics(): LastModifiedStatistics;
|
|
79
|
+
/**
|
|
80
|
+
* Runs the command and returns its lines as entries (git's deaths thrown as
|
|
81
|
+
* `PlumbingError`).
|
|
82
|
+
*/
|
|
83
|
+
callEntries(): Promise<LastModifiedEntry[]>;
|
|
84
|
+
protected run(): Promise<number>;
|
|
85
|
+
/** The pathspec, its elements relative to the prefix (prefix_path). */
|
|
86
|
+
private parsePaths;
|
|
87
|
+
/**
|
|
88
|
+
* get_bloom_filter_settings with `commitGraph.changedPathsVersion` (-1: any version; 0 or
|
|
89
|
+
* `commitGraph.readChangedPaths=false`: none).
|
|
90
|
+
*/
|
|
91
|
+
private bloomSettings;
|
|
92
|
+
/** Raw tree entries (the command's tree view: replace refs applied). */
|
|
93
|
+
readTreeItems(id: ObjectId): Promise<TreeItem[]>;
|
|
94
|
+
}
|
|
95
|
+
interface TreeItem {
|
|
96
|
+
name: Uint8Array;
|
|
97
|
+
mode: number;
|
|
98
|
+
id: ObjectId;
|
|
99
|
+
isDir: boolean;
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
102
|
+
//# sourceMappingURL=last-modified-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"last-modified-command.d.ts","sourceRoot":"","sources":["../../src/commands/last-modified-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAML,KAAK,QAAQ,EACd,MAAM,uBAAuB,CAAC;AAiB/B,OAAO,EAAE,eAAe,EAAiB,MAAM,uBAAuB,CAAC;AAMvE,gDAAgD;AAChD,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,MAAM,EAAE,QAAQ,CAAC;IACjB,4FAA4F;IAC5F,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,kFAAkF;IAClF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAiCD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,mBAAoB,SAAQ,eAAe;IACtD,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,QAAQ,CAAM;IACtB,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,eAAe,CAAQ;IAC/B,OAAO,CAAC,UAAU,CAIhB;IACF,OAAO,CAAC,UAAU,CAAC,CAAsB;IAEzC,6EAA6E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 1.22): git-lfs passes an http(s), `file:` or `git:` URL through
|
|
4
|
+
* `String()`, which re-escapes its path, and reads an ssh URL's host, user and decoded path.
|
|
5
|
+
* Only what changes an endpoint is kept: parse errors (a colon in the first path segment of a
|
|
6
|
+
* URL without scheme, a port that is no number, a bad escape), the lower-cased scheme, the
|
|
7
|
+
* opaque form (`host:path`) and the path's re-encoding.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* const u = goUrlParse("HTTPS://h/a b");
|
|
12
|
+
* goUrlString(u); // "https://h/a%20b"
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
/** A parsed URL, as Go's `url.URL` holds it. */
|
|
16
|
+
export interface GoUrl {
|
|
17
|
+
/** Lower case */
|
|
18
|
+
scheme: string;
|
|
19
|
+
opaque: string;
|
|
20
|
+
/** `undefined` when the URL has no `@` */
|
|
21
|
+
user?: {
|
|
22
|
+
username: string;
|
|
23
|
+
password?: string;
|
|
24
|
+
};
|
|
25
|
+
host: string;
|
|
26
|
+
/** Unescaped */
|
|
27
|
+
path: string;
|
|
28
|
+
/** The path as written when it differs from Go's own encoding */
|
|
29
|
+
rawPath: string;
|
|
30
|
+
omitHost: boolean;
|
|
31
|
+
forceQuery: boolean;
|
|
32
|
+
rawQuery: string;
|
|
33
|
+
/** Unescaped */
|
|
34
|
+
fragment: string;
|
|
35
|
+
rawFragment: string;
|
|
36
|
+
}
|
|
37
|
+
/** Go's `url.Parse`; throws where it returns an error. */
|
|
38
|
+
export declare function goUrlParse(rawUrl: string): GoUrl;
|
|
39
|
+
/** `(&url.URL{Path: path}).EscapedPath()`. */
|
|
40
|
+
export declare function goEscapedPath(path: string): string;
|
|
41
|
+
/** Go's `(*URL).String`. */
|
|
42
|
+
export declare function goUrlString(u: GoUrl): string;
|
|
43
|
+
//# sourceMappingURL=go-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"go-url.d.ts","sourceRoot":"","sources":["../../../src/commands/lfs/go-url.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,gDAAgD;AAChD,MAAM,WAAW,KAAK;IACpB,iBAAiB;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,IAAI,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AA8MD,0DAA0D;AAC1D,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAiEhD;AA8BD,8CAA8C;AAC9C,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,4BAA4B;AAC5B,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM,CA4B5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/lfs/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git LFS configuration as git-lfs reads it (v3, `config/git_fetcher.go`,
|
|
3
|
+
* `git/config.go` `Sources`, `lfsapi/endpoint_finder.go`, `lfshttp/endpoint.go`): the
|
|
4
|
+
* repository's `.lfsconfig` (the worktree's file, else the index's stage-0 blob, else
|
|
5
|
+
* HEAD's; HEAD's alone in a bare repository) read first, then the whole git configuration,
|
|
6
|
+
* the last value of a key winning. `.lfsconfig` is repository content: only git-lfs's safe
|
|
7
|
+
* keys are taken from it (`lfs.url`, `lfs.pushurl`, `remote.<name>.lfsurl`, ...), the others
|
|
8
|
+
* are ignored with git-lfs's warning.
|
|
9
|
+
*
|
|
10
|
+
* The LFS endpoint of an operation (`download`, `upload`) and remote follows git-lfs's order:
|
|
11
|
+
* `lfs.pushurl` (upload), `lfs.url`, then the remote's `lfspushurl` (upload), `lfsurl`, then
|
|
12
|
+
* its `pushurl` (upload) or `url` with `.git/info/lfs` appended (`/info/lfs` after a `.git`
|
|
13
|
+
* path), the remote named `origin` when the asked remote gives none. URLs go through
|
|
14
|
+
* `url.<base>.insteadOf` (`pushInsteadOf` for uploads) and Go's URL reading, so an ssh remote
|
|
15
|
+
* gives `https://<host><path>` and its ssh metadata, a `git://` one `lfs.gitprotocol`
|
|
16
|
+
* (default `https`).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const lfs = await LfsConfig.load(workingCopy);
|
|
21
|
+
* const ep = await lfs.endpoint("download", lfs.remote());
|
|
22
|
+
* ep.url; // "https://example.com/foo/bar.git/info/lfs"
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
import { type ObjectId } from "@statewalker/vcs-core";
|
|
26
|
+
import { type WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
27
|
+
/** The LFS operation an endpoint is for. */
|
|
28
|
+
export type LfsEndpointOperation = "download" | "upload";
|
|
29
|
+
/** git-lfs's `UrlUnknown`: an ssh URL whose host cannot be read. */
|
|
30
|
+
export declare const LFS_URL_UNKNOWN = "<unknown>";
|
|
31
|
+
/** How git-lfs reaches an endpoint over ssh (`git-lfs-authenticate`, `git-lfs-transfer`). */
|
|
32
|
+
export interface LfsSshMetadata {
|
|
33
|
+
/** `user@host`, or `host` */
|
|
34
|
+
userAndHost: string;
|
|
35
|
+
/** The port, `""` for ssh's default */
|
|
36
|
+
port: string;
|
|
37
|
+
path: string;
|
|
38
|
+
}
|
|
39
|
+
/** Which setting gave an endpoint. */
|
|
40
|
+
export type LfsEndpointSource = "lfs.pushurl" | "lfs.url" | "remote.lfspushurl" | "remote.lfsurl" | "remote.pushurl" | "remote.url"
|
|
41
|
+
/** The remote's name read as a URL (a remote without URL, or a URL given as the remote) */
|
|
42
|
+
| "remote.name"
|
|
43
|
+
/** git-lfs 3.5+: the URL `FETCH_HEAD`'s first line names (`origin` without any URL) */
|
|
44
|
+
| "fetch-head";
|
|
45
|
+
/** An LFS endpoint, as git-lfs's `lfshttp.Endpoint`. */
|
|
46
|
+
export interface LfsEndpoint {
|
|
47
|
+
/**
|
|
48
|
+
* The endpoint's URL: `""` when nothing names one, {@link LFS_URL_UNKNOWN} for an ssh URL
|
|
49
|
+
* whose host cannot be read; a `file://` URL for a local repository
|
|
50
|
+
*/
|
|
51
|
+
url: string;
|
|
52
|
+
operation: LfsEndpointOperation;
|
|
53
|
+
/** The remote whose settings gave the endpoint (`origin` after a fallback) */
|
|
54
|
+
remote: string;
|
|
55
|
+
/** Present for an ssh URL */
|
|
56
|
+
ssh?: LfsSshMetadata;
|
|
57
|
+
/** The setting that gave it; absent when nothing did */
|
|
58
|
+
source?: LfsEndpointSource;
|
|
59
|
+
/**
|
|
60
|
+
* The setting's value came from `.lfsconfig` (repository content), not the git
|
|
61
|
+
* configuration; {@link LfsEndpointCommand} also sets it when `.lfsconfig` chose the remote
|
|
62
|
+
*/
|
|
63
|
+
fromLfsconfig: boolean;
|
|
64
|
+
}
|
|
65
|
+
/** Where `.lfsconfig` was read from. */
|
|
66
|
+
export type LfsconfigSource = {
|
|
67
|
+
kind: "worktree";
|
|
68
|
+
} | {
|
|
69
|
+
kind: "index";
|
|
70
|
+
id: ObjectId;
|
|
71
|
+
} | {
|
|
72
|
+
kind: "head";
|
|
73
|
+
id: ObjectId;
|
|
74
|
+
} | {
|
|
75
|
+
kind: "none";
|
|
76
|
+
};
|
|
77
|
+
/** What {@link LfsConfig.load} reads besides the configuration. */
|
|
78
|
+
export interface LfsConfigLoadOptions {
|
|
79
|
+
/** Leave `.lfsconfig` out (the user's own configuration alone) */
|
|
80
|
+
withoutLfsconfig?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The git-lfs version to follow (default {@link LFS_DEFAULT_COMPATIBILITY}): 3.5 added the
|
|
83
|
+
* `FETCH_HEAD` fallback; 3.8.1 takes from `.lfsconfig` only `remote.<name>.lfsurl` of the
|
|
84
|
+
* `remote.*` keys and only `lfs.*.access` of the access keys, and escapes the path of an ssh
|
|
85
|
+
* remote's HTTPS fallback
|
|
86
|
+
*/
|
|
87
|
+
compatibility?: string;
|
|
88
|
+
}
|
|
89
|
+
/** The git-lfs version followed by default. */
|
|
90
|
+
export declare const LFS_DEFAULT_COMPATIBILITY = "3.8.1";
|
|
91
|
+
/**
|
|
92
|
+
* The LFS configuration of a working copy (see the module notes): `.lfsconfig` and the git
|
|
93
|
+
* configuration merged as git-lfs merges them, and git-lfs's endpoint finder over them.
|
|
94
|
+
*/
|
|
95
|
+
export declare class LfsConfig {
|
|
96
|
+
private readonly values;
|
|
97
|
+
/** git-lfs's `Remotes()`: every remote any `remote.*` key names, in the order first seen */
|
|
98
|
+
readonly remotes: readonly string[];
|
|
99
|
+
/** `git remote`: the remotes of the git configuration */
|
|
100
|
+
private readonly gitRemotes;
|
|
101
|
+
/** What git-lfs prints on stderr reading the configuration (ignored `.lfsconfig` keys) */
|
|
102
|
+
readonly warnings: readonly string[];
|
|
103
|
+
/**
|
|
104
|
+
* Why the configuration was not read (a worktree `.lfsconfig` git cannot parse: git-lfs
|
|
105
|
+
* then reads no configuration at all)
|
|
106
|
+
*/
|
|
107
|
+
readonly errors: readonly string[];
|
|
108
|
+
/** Where `.lfsconfig` was read from */
|
|
109
|
+
readonly lfsconfigSource: LfsconfigSource;
|
|
110
|
+
private readonly currentBranch;
|
|
111
|
+
private readonly stat;
|
|
112
|
+
private readonly cwd;
|
|
113
|
+
private readonly features;
|
|
114
|
+
/** The first line of the worktree's `FETCH_HEAD`, when there is one */
|
|
115
|
+
private readonly fetchHeadLine;
|
|
116
|
+
private readonly aliases;
|
|
117
|
+
private readonly pushAliases;
|
|
118
|
+
private readonly gitProtocol;
|
|
119
|
+
private constructor();
|
|
120
|
+
/**
|
|
121
|
+
* Reads `.lfsconfig` (see the module notes) and the working copy's configuration.
|
|
122
|
+
*
|
|
123
|
+
* A `.lfsconfig` git cannot parse makes git-lfs drop its whole configuration (git's too:
|
|
124
|
+
* `Error reading \`git config\``) when it is the worktree's file; a blob git cannot parse is
|
|
125
|
+
* passed over for the next source.
|
|
126
|
+
*/
|
|
127
|
+
static load(workingCopy: WorkingCopy, options?: LfsConfigLoadOptions): Promise<LfsConfig>;
|
|
128
|
+
/** The last value of `key` (git-lfs's `Get`), undefined when unset. */
|
|
129
|
+
get(key: string): string | undefined;
|
|
130
|
+
/** Every value of `key`, `.lfsconfig`'s first. */
|
|
131
|
+
getAll(key: string): string[];
|
|
132
|
+
private entry;
|
|
133
|
+
/**
|
|
134
|
+
* git-lfs's `Remote()`: the current branch's `branch.<name>.remote`, else
|
|
135
|
+
* `remote.lfsdefault`, else the only remote, else `origin`.
|
|
136
|
+
*/
|
|
137
|
+
remote(): string;
|
|
138
|
+
/**
|
|
139
|
+
* git-lfs's `PushRemote()`: `branch.<name>.pushRemote`, `remote.lfspushdefault`,
|
|
140
|
+
* `remote.pushDefault`, else {@link remote}.
|
|
141
|
+
*/
|
|
142
|
+
pushRemote(): string;
|
|
143
|
+
/**
|
|
144
|
+
* {@link remote} (download) or {@link pushRemote} (upload), and whether `.lfsconfig` chose
|
|
145
|
+
* it: git-lfs takes `remote.lfsdefault`, `remote.lfspushdefault` and `remote.pushDefault`
|
|
146
|
+
* from `.lfsconfig` (and a remote with a URL-like name is read as that URL), so a remote it
|
|
147
|
+
* picks is repository content too.
|
|
148
|
+
*/
|
|
149
|
+
remoteChoice(operation: LfsEndpointOperation): {
|
|
150
|
+
name: string;
|
|
151
|
+
fromLfsconfig: boolean;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* git-lfs's `Endpoint(operation, remote)`: `lfs.pushurl` (upload), `lfs.url`, the remote's
|
|
155
|
+
* own endpoint, else `origin`'s.
|
|
156
|
+
*/
|
|
157
|
+
endpoint(operation: LfsEndpointOperation, remote?: string): Promise<LfsEndpoint>;
|
|
158
|
+
/** git-lfs's `RemoteEndpoint`: the remote's own settings alone. */
|
|
159
|
+
remoteEndpoint(operation: LfsEndpointOperation, remote: string): Promise<LfsEndpoint>;
|
|
160
|
+
/** git-lfs's `NewEndpointFromCloneURL`: the URL with `.git/info/lfs` appended. */
|
|
161
|
+
private cloneUrlEndpoint;
|
|
162
|
+
/** git-lfs's `GitRemoteURL`: `pushurl` (push), `url`, else the name if it is a remote or a URL. */
|
|
163
|
+
private gitRemoteUrl;
|
|
164
|
+
private newEndpoint;
|
|
165
|
+
/** git-lfs's `NewEndpoint`: the URL as the endpoint gives it. */
|
|
166
|
+
private readEndpointUrl;
|
|
167
|
+
/** A path as the process sees it: relative ones from the worktree top. */
|
|
168
|
+
private hostPath;
|
|
169
|
+
/** git's `RewriteLocalPathAsURL` (git-lfs). */
|
|
170
|
+
private localPathUrl;
|
|
171
|
+
/** git-lfs's `ReplaceUrlAlias`: the longest `insteadOf` (`pushInsteadOf` first for uploads). */
|
|
172
|
+
replaceUrlAlias(operation: LfsEndpointOperation, rawurl: string): string;
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=lfs-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lfs-config.d.ts","sourceRoot":"","sources":["../../../src/commands/lfs/lfs-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAiB,KAA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,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAuBtF;IAED;;;OAGG;IACG,QAAQ,CAAC,SAAS,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAYrF;IAED,mEAAmE;IAC7D,cAAc,CAAC,SAAS,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAwB1F;IAED,kFAAkF;YACpE,gBAAgB;IAgB9B,mGAAmG;IACnG,OAAO,CAAC,YAAY;YAgBN,WAAW;IAiBzB,iEAAiE;YACnD,eAAe;IAqC7B,0EAA0E;IAC1E,OAAO,CAAC,QAAQ;IAKhB,+CAA+C;YACjC,YAAY;IAe1B,gGAAgG;IAChG,eAAe,CAAC,SAAS,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAMvE;CACF"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Git LFS endpoint of an operation and remote, as git-lfs resolves it (see
|
|
3
|
+
* {@link LfsConfig}), with the credentials and headers the caller may send there.
|
|
4
|
+
*
|
|
5
|
+
* `.lfsconfig` is repository content: whoever writes the repository chooses its `lfs.url`.
|
|
6
|
+
* So static credentials and headers ({@link LfsEndpointCommand.setCredentials},
|
|
7
|
+
* {@link LfsEndpointCommand.setHeaders}) go to the endpoint only when its origin is one named
|
|
8
|
+
* with {@link LfsEndpointCommand.addCredentialOrigin}, or, with none named, the origin of the
|
|
9
|
+
* endpoint the user's own configuration gives (the same resolution without `.lfsconfig`):
|
|
10
|
+
* a `.lfsconfig` pointing the endpoint at another host gets none. Per-URL providers
|
|
11
|
+
* ({@link LfsEndpointCommand.setCredentialsForUrl}) are asked with the endpoint's URL and
|
|
12
|
+
* answer for its origin alone, as a credential helper does.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const ep = await git.lfsEndpoint().setOperation("upload")
|
|
17
|
+
* .setCredentials({ username: "u", password: "p" }).call();
|
|
18
|
+
* await lfsUpload(ep.url, store, objects, resolver, { ...ep.auth });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
import type { Credentials } from "@statewalker/vcs-transport";
|
|
22
|
+
import { GitCommand } from "../../git-command.js";
|
|
23
|
+
import { type CredentialsForUrl, type HeadersForUrl } from "../submodule-auth.js";
|
|
24
|
+
import { type LfsEndpoint, type LfsEndpointOperation } from "./lfs-config.js";
|
|
25
|
+
/** What {@link LfsEndpointCommand.call} answers. */
|
|
26
|
+
export interface LfsEndpointResult extends LfsEndpoint {
|
|
27
|
+
/**
|
|
28
|
+
* What to send to the endpoint (structurally `LfsTransferOptions`' `credentials` and
|
|
29
|
+
* `headers`): empty when the policy gives the endpoint's origin nothing
|
|
30
|
+
*/
|
|
31
|
+
auth: {
|
|
32
|
+
credentials?: {
|
|
33
|
+
username: string;
|
|
34
|
+
password: string;
|
|
35
|
+
};
|
|
36
|
+
headers?: Record<string, string>;
|
|
37
|
+
};
|
|
38
|
+
/** The endpoint's origin is one the static credentials are for */
|
|
39
|
+
trusted: boolean;
|
|
40
|
+
/** What git-lfs prints reading the configuration (ignored `.lfsconfig` keys) */
|
|
41
|
+
warnings: string[];
|
|
42
|
+
}
|
|
43
|
+
/** `git lfs env`'s endpoint for an operation and remote, with the credential policy applied. */
|
|
44
|
+
export declare class LfsEndpointCommand extends GitCommand<LfsEndpointResult> {
|
|
45
|
+
private operation;
|
|
46
|
+
private remote?;
|
|
47
|
+
private credentials?;
|
|
48
|
+
private headers?;
|
|
49
|
+
private credentialOrigins;
|
|
50
|
+
private credentialsFor?;
|
|
51
|
+
private headersFor?;
|
|
52
|
+
private compatibility?;
|
|
53
|
+
/**
|
|
54
|
+
* The git-lfs version to follow (default `LFS_DEFAULT_COMPATIBILITY`, see
|
|
55
|
+
* `LfsConfigLoadOptions.compatibility`).
|
|
56
|
+
*/
|
|
57
|
+
setCompatibility(version: string): this;
|
|
58
|
+
/** `download` (default) or `upload` (`lfs.pushurl`, `lfspushurl`, `pushurl`, `pushInsteadOf`). */
|
|
59
|
+
setOperation(operation: LfsEndpointOperation): this;
|
|
60
|
+
/**
|
|
61
|
+
* The remote; default git-lfs's: `branch.<name>.remote`, `remote.lfsdefault`, the only
|
|
62
|
+
* remote, `origin` (for uploads `branch.<name>.pushRemote`, `remote.lfspushdefault`,
|
|
63
|
+
* `remote.pushDefault` first). A URL may stand for a remote.
|
|
64
|
+
*/
|
|
65
|
+
setRemote(remote: string): this;
|
|
66
|
+
/** Credentials for the trusted origins only (see the module notes). */
|
|
67
|
+
setCredentials(credentials: Credentials): this;
|
|
68
|
+
/** HTTP headers for the trusted origins only (see the module notes). */
|
|
69
|
+
setHeaders(headers: Record<string, string>): this;
|
|
70
|
+
/**
|
|
71
|
+
* An origin the static credentials and headers are for; once one is named, the origin of
|
|
72
|
+
* the user's own endpoint is no longer trusted by default.
|
|
73
|
+
*
|
|
74
|
+
* @throws GitApiError for a URL without an origin (a path, `file:`)
|
|
75
|
+
*/
|
|
76
|
+
addCredentialOrigin(url: string): this;
|
|
77
|
+
/** Asked with the endpoint's URL: its credentials, or undefined for the static rule. */
|
|
78
|
+
setCredentialsForUrl(provider: CredentialsForUrl): this;
|
|
79
|
+
/** Asked with the endpoint's URL: its headers, or undefined for the static rule. */
|
|
80
|
+
setHeadersForUrl(provider: HeadersForUrl): this;
|
|
81
|
+
call(): Promise<LfsEndpointResult>;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=lfs-endpoint-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lfs-endpoint-command.d.ts","sourceRoot":"","sources":["../../../src/commands/lfs/lfs-endpoint-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAA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AU,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAIhD;IAED;;;;;OAKG;IACH,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAQrC;IAED,wFAAwF;IACxF,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAItD;IAED,oFAAoF;IACpF,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAI9C;IAEK,IAAI,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAiDvC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-transport.d.ts","sourceRoot":"","sources":["../../src/commands/local-transport.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"local-transport.d.ts","sourceRoot":"","sources":["../../src/commands/local-transport.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,gBAAgB,EAOrB,KAAK,qBAAqB,EAE1B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAIzB,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAErB,KAAK,WAAW,EACjB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,KAAK,mBAAmB,EAAiB,MAAM,iBAAiB,CAAC;AAE1E,OAAO,EACL,WAAW,EAKZ,MAAM,gBAAgB,CAAC;AAoBxB;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAyDnD;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,gBAAgB,C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