@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
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git fast-import` (builtin/fast-import.c): objects and refs written from a fast-import
|
|
3
|
+
* stream, as git writes them.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git fast-import --quiet < stream
|
|
8
|
+
* const { exitCode, stderr } = await git.fastImport().setInput(stream).callOutput();
|
|
9
|
+
* // git fast-import --export-marks=marks --force < stream
|
|
10
|
+
* await git.fastImport().setInput(stream).setForce(true).setExportMarks("marks").setMarksFiles(files).call();
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import { PlumbingCommand } from "../plumbing-command.js";
|
|
14
|
+
import { type FastMarksFiles, type SignMode } from "./fast-stream-support.js";
|
|
15
|
+
/** `--date-format=<fmt>` */
|
|
16
|
+
export type FastImportDateFormat = "raw" | "raw-permissive" | "rfc2822" | "now";
|
|
17
|
+
/**
|
|
18
|
+
* Writes the objects and refs a fast-import stream describes (`git fast-import`).
|
|
19
|
+
*
|
|
20
|
+
* Supported: `blob`, `commit` (`M`, `D`, `R`, `C`, `deleteall`, `ls`, `cat-blob` among its
|
|
21
|
+
* changes; `from`, `merge`, `encoding`, `original-oid`, and 2.5x's `gpgsig`), `tag`,
|
|
22
|
+
* `reset`, `checkpoint`, `progress`, `done`, `alias`, `get-mark`, `cat-blob`, `ls`,
|
|
23
|
+
* `feature` and `option git`; marks files through {@link setMarksFiles}. Branches are
|
|
24
|
+
* updated at the end (and at each `checkpoint`) in git's order, refusing to rewind one
|
|
25
|
+
* unless {@link setForce} (`warning: not updating ...`, exit status 1); tags are written
|
|
26
|
+
* unconditionally, every update logged as `fast-import`. Where git dies, the objects
|
|
27
|
+
* written so far stay, marks are exported, and no ref moves.
|
|
28
|
+
*
|
|
29
|
+
* Not supported: notes (`N`), submodule rewriting (`rewrite-submodules-*`), the statistics
|
|
30
|
+
* report (`--stats`; ours prints none, as `--quiet`), the crash report file, and pack
|
|
31
|
+
* options (`--max-pack-size`, `--depth`, `--big-file-threshold`, accepted and ignored).
|
|
32
|
+
*
|
|
33
|
+
* Version differences (`setCompatibility("2.43")`): no `gpgsig` commands and no signature
|
|
34
|
+
* modes, and git's capitalised death messages.
|
|
35
|
+
*/
|
|
36
|
+
export declare class FastImportCommand extends PlumbingCommand {
|
|
37
|
+
private input;
|
|
38
|
+
private compatibility;
|
|
39
|
+
private marksFiles?;
|
|
40
|
+
private cliForce?;
|
|
41
|
+
private cliDone?;
|
|
42
|
+
private cliDateFormat?;
|
|
43
|
+
private cliImportMarks?;
|
|
44
|
+
private cliExportMarks?;
|
|
45
|
+
private cliRelativeMarks?;
|
|
46
|
+
private allowUnsafe;
|
|
47
|
+
private cliSignedTags?;
|
|
48
|
+
private cliSignedCommits?;
|
|
49
|
+
private force;
|
|
50
|
+
private requireDone;
|
|
51
|
+
private dateFormat;
|
|
52
|
+
private importMarksFile?;
|
|
53
|
+
private importMarksFromStream;
|
|
54
|
+
private exportMarksFile?;
|
|
55
|
+
private relativeMarks;
|
|
56
|
+
private signedTags;
|
|
57
|
+
private signedCommits;
|
|
58
|
+
private pos;
|
|
59
|
+
private line;
|
|
60
|
+
private unread;
|
|
61
|
+
private eof;
|
|
62
|
+
private seenDataCommand;
|
|
63
|
+
private readonly marks;
|
|
64
|
+
private readonly objectTypes;
|
|
65
|
+
private readonly branchTable;
|
|
66
|
+
private readonly branches;
|
|
67
|
+
private tags;
|
|
68
|
+
private nextMark;
|
|
69
|
+
private failure;
|
|
70
|
+
private importMarksDone;
|
|
71
|
+
private inputStream?;
|
|
72
|
+
private outputStream?;
|
|
73
|
+
/** The stream (git reads it from stdin): bytes, text (UTF-8), or a Web Stream. */
|
|
74
|
+
setInput(input: string | Uint8Array | ReadableStream<Uint8Array>): this;
|
|
75
|
+
/** Where the stream goes, as a Web Stream (in place of `setStdout`); not closed here. */
|
|
76
|
+
setOutput(stream: WritableStream<Uint8Array>): this;
|
|
77
|
+
/** The input stream's reader while it is read as the commands need it (git's stdin) */
|
|
78
|
+
private reader?;
|
|
79
|
+
/** Pulls the next chunk of a streamed input; false at its end (or for bytes given whole). */
|
|
80
|
+
private pull;
|
|
81
|
+
call(): Promise<import("../plumbing-command.js").PlumbingResult>;
|
|
82
|
+
/** `--force`: branches may be rewound. */
|
|
83
|
+
setForce(force: boolean): this;
|
|
84
|
+
/** `--done`: the stream must end with a `done` command. */
|
|
85
|
+
setDone(done: boolean): this;
|
|
86
|
+
/** `--date-format=<fmt>` (default `raw`). */
|
|
87
|
+
setDateFormat(format: FastImportDateFormat): this;
|
|
88
|
+
/** `--import-marks=<file>` (or `--import-marks-if-exists=<file>` with `ifExists`). */
|
|
89
|
+
setImportMarks(path: string, options?: {
|
|
90
|
+
ifExists?: boolean;
|
|
91
|
+
}): this;
|
|
92
|
+
/** `--export-marks=<file>` */
|
|
93
|
+
setExportMarks(path: string): this;
|
|
94
|
+
/** `--[no-]relative-marks` */
|
|
95
|
+
setRelativeMarks(relative: boolean): this;
|
|
96
|
+
/** Where marks files are read and written. */
|
|
97
|
+
setMarksFiles(files: FastMarksFiles): this;
|
|
98
|
+
/** `--allow-unsafe-features`: the stream may name marks files. */
|
|
99
|
+
setAllowUnsafeFeatures(allow: boolean): this;
|
|
100
|
+
/** `--signed-tags=<mode>` (git 2.50+, default `verbatim`). */
|
|
101
|
+
setSignedTags(mode: SignMode): this;
|
|
102
|
+
/** `--signed-commits=<mode>` (git 2.50+, default `verbatim`). */
|
|
103
|
+
setSignedCommits(mode: SignMode): this;
|
|
104
|
+
/** The git version whose behaviour is followed (default 2.56). */
|
|
105
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
106
|
+
private die;
|
|
107
|
+
private get objects();
|
|
108
|
+
protected run(): Promise<number>;
|
|
109
|
+
/** strbuf_getline_lf: the next line without its newline; undefined at the end. */
|
|
110
|
+
private readLine;
|
|
111
|
+
/** read_next_command: false at the end of the stream. */
|
|
112
|
+
private readNextCommand;
|
|
113
|
+
/** git's fgetc/ungetc: waits for the next byte, consumed only when it is a newline. */
|
|
114
|
+
private skipOptionalLf;
|
|
115
|
+
/** parse_data: the bytes of a `data` command, as a binary string. */
|
|
116
|
+
private parseData;
|
|
117
|
+
private parseMark;
|
|
118
|
+
private parseOriginalIdentifier;
|
|
119
|
+
/** parse_argv: the command line's options win over the stream's features. */
|
|
120
|
+
private parseArgv;
|
|
121
|
+
private checkUnsafe;
|
|
122
|
+
private parseFeature;
|
|
123
|
+
private optionImportMarks;
|
|
124
|
+
private parseOption;
|
|
125
|
+
private marksFilesOrDie;
|
|
126
|
+
private readMarks;
|
|
127
|
+
private dumpMarks;
|
|
128
|
+
private findMark;
|
|
129
|
+
private insertMark;
|
|
130
|
+
/** parse_mark_ref: `:<n>` at the start of `text`, and what follows it. */
|
|
131
|
+
private parseMarkRef;
|
|
132
|
+
private parseMarkRefEol;
|
|
133
|
+
private parseMarkRefSpace;
|
|
134
|
+
private odbType;
|
|
135
|
+
private typeOf;
|
|
136
|
+
private storeObject;
|
|
137
|
+
private parseNewBlob;
|
|
138
|
+
/** The tree of a commit (peeling tags), undefined when it is not one. */
|
|
139
|
+
private commitTree;
|
|
140
|
+
private peelToCommit;
|
|
141
|
+
/** repo_get_oid, as fast-import resolves `from` and `merge` names. */
|
|
142
|
+
private getOid;
|
|
143
|
+
private parseIdent;
|
|
144
|
+
private lookupBranch;
|
|
145
|
+
private newBranch;
|
|
146
|
+
private loadTree;
|
|
147
|
+
/** tree_content_set */
|
|
148
|
+
private treeSet;
|
|
149
|
+
/** tree_content_remove: the removed entry, or true when only something changed */
|
|
150
|
+
private treeRemove;
|
|
151
|
+
/** tree_content_get */
|
|
152
|
+
private treeGet;
|
|
153
|
+
/** store_tree: writes every dirty tree, giving each its id. */
|
|
154
|
+
private storeTree;
|
|
155
|
+
/** parse_path: a quoted or plain path, and what follows it */
|
|
156
|
+
private parsePath;
|
|
157
|
+
private parsePathEol;
|
|
158
|
+
private verifyPath;
|
|
159
|
+
private fileChangeM;
|
|
160
|
+
private fileChangeCR;
|
|
161
|
+
private parseObjectish;
|
|
162
|
+
private setRootFromCommit;
|
|
163
|
+
private parseMerge;
|
|
164
|
+
private parseSignature;
|
|
165
|
+
private parseNewCommit;
|
|
166
|
+
private parseNewTag;
|
|
167
|
+
private parseResetBranch;
|
|
168
|
+
private catBlobWrite;
|
|
169
|
+
private parseGetMark;
|
|
170
|
+
private parseCatBlob;
|
|
171
|
+
private parseLs;
|
|
172
|
+
private parseAlias;
|
|
173
|
+
private checkpoint;
|
|
174
|
+
private dumpBranches;
|
|
175
|
+
private refName;
|
|
176
|
+
/** update_branch: true on a failure */
|
|
177
|
+
private updateBranch;
|
|
178
|
+
/** The ref a name ends at through symbolic refs (what a dereferencing update writes). */
|
|
179
|
+
private symrefTarget;
|
|
180
|
+
private dumpTags;
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=fast-import-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-import-command.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/fast-import-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAOH,OAAO,EAAE,eAAe,EAAiB,MAAM,wBAAwB,CAAC;AACxE,OAAO,EACL,KAAK,cAAc,EAKnB,KAAK,QAAQ,EAGd,MAAM,0BAA0B,CAAC;AAElC,4BAA4B;AAC5B,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,gBAAgB,GAAG,SAAS,GAAG,KAAK,CAAC;AA2ChF;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,iBAAkB,SAAQ,eAAe;IACpD,OAAO,CAAC,KAAK,CAAiC;IAC9C,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,UAAU,CAAC,CAAiB;IAGpC,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,OAAO,CAAC,OAAO,CAAC,CAAU;IAC1B,OAAO,CAAC,aAAa,CAAC,CAAuB;IAC7C,OAAO,CAAC,cAAc,CAAC,CAAsC;IAC7D,OAAO,CAAC,cAAc,CAAC,CAAS;IAChC,OAAO,CAAC,gBAAg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AAC,iBAAiB;IAMzB,OAAO,CAAC,WAAW;IAqCnB,OAAO,CAAC,eAAe;YAKT,SAAS;YAgCT,SAAS;IAUvB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,UAAU;IAIlB,0EAA0E;IAC1E,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,iBAAiB;YAQX,OAAO;YAMP,MAAM;YAIN,WAAW;YAQX,YAAY;IAQ1B,yEAAyE;YAC3D,UAAU;YAgBV,YAAY;IAa1B,sEAAsE;YACxD,MAAM;IAUpB,OAAO,CAAC,UAAU;IAuClB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,SAAS;YAsBH,QAAQ;IAatB,uBAAuB;YACT,OAAO;IA+CrB,kFAAkF;YACpE,UAAU;IAiCxB,uBAAuB;YACT,OAAO;IAYrB,+DAA+D;YACjD,SAAS;IAkBvB,8DAA8D;IAC9D,OAAO,CAAC,SAAS;IAejB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,UAAU;YAYJ,WAAW;YAoFX,YAAY;YAyBZ,cAAc;YAkCd,iBAAiB;YAMjB,UAAU;YAyBV,cAAc;YAoBd,cAAc;YAkGd,WAAW;YAqEX,gBAAgB;YAkBhB,YAAY;YAIZ,YAAY;YAMZ,YAAY;YAuBZ,OAAO;YAiDP,UAAU;YAmBV,UAAU;YAMV,YAAY;IAM1B,OAAO,CAAC,OAAO;IAIf,uCAAuC;YACzB,YAAY;IA8B1B,yFAAyF;YAC3E,YAAY;YAUZ,QAAQ;CAMvB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What `git fast-export` and `git fast-import` share: the stream is bytes, handled here as
|
|
3
|
+
* binary strings (one character per byte), signature modes, and the marks files' host.
|
|
4
|
+
*/
|
|
5
|
+
import type { GitObjects, ObjectId } from "@statewalker/vcs-core";
|
|
6
|
+
import { type FilesApi } from "@statewalker/vcs-utils/files";
|
|
7
|
+
/**
|
|
8
|
+
* How signed tags and commits are handled (gpg-interface.c's `parse_sign_mode`): `warn` is
|
|
9
|
+
* `warn-verbatim`, `ignore` is `verbatim`.
|
|
10
|
+
*/
|
|
11
|
+
export type SignMode = "abort" | "verbatim" | "ignore" | "warn-verbatim" | "warn" | "warn-strip" | "strip";
|
|
12
|
+
/** Whether `mode` names a {@link SignMode}. */
|
|
13
|
+
export declare function isSignMode(mode: string): mode is SignMode;
|
|
14
|
+
/**
|
|
15
|
+
* Where marks files live (`--import-marks`, `--export-marks`, fast-import's `feature
|
|
16
|
+
* import-marks=`): git opens them relative to its current directory, or below
|
|
17
|
+
* `<git dir>/info/fast-import/` under `relative-marks` (`relative` set).
|
|
18
|
+
*/
|
|
19
|
+
export interface FastMarksFiles {
|
|
20
|
+
/** The file's bytes, or undefined when it does not exist */
|
|
21
|
+
read(path: string, options?: {
|
|
22
|
+
relative?: boolean;
|
|
23
|
+
}): Promise<Uint8Array | undefined>;
|
|
24
|
+
/** Writes the file (its leading directories created) */
|
|
25
|
+
write(path: string, bytes: Uint8Array, options?: {
|
|
26
|
+
relative?: boolean;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
/** Bytes as a binary string, one character per byte. */
|
|
30
|
+
export declare function latin1(bytes: Uint8Array): string;
|
|
31
|
+
/** A binary string's bytes (characters above 0xff are not expected). */
|
|
32
|
+
export declare function latin1Bytes(text: string): Uint8Array;
|
|
33
|
+
/** An object's type and content, undefined when it cannot be read. */
|
|
34
|
+
export declare function readObjectBytes(objects: GitObjects, id: ObjectId): Promise<{
|
|
35
|
+
type: string;
|
|
36
|
+
bytes: Uint8Array;
|
|
37
|
+
} | undefined>;
|
|
38
|
+
/** gpg-interface.c's get_signature_format: the format a signature's first line names. */
|
|
39
|
+
export declare function signatureFormatOf(signature: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* Where a tag message's signature starts (its length when it has none): 2.5x's
|
|
42
|
+
* `parse_signed_buffer` (the last line opening any known format), 2.43's search for the
|
|
43
|
+
* first `\n-----BEGIN PGP SIGNATURE-----\n`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function signatureStartOf(message: string, compatibility: "2.43" | "2.56"): number;
|
|
46
|
+
/**
|
|
47
|
+
* Marks files over a FilesApi: paths relative to `cwd` (git's current directory, default the
|
|
48
|
+
* FilesApi's root), `relative-marks` ones below `<gitDir>/info/fast-import/`.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* git.fastImport().setMarksFiles(marksFilesOf(files, { gitDir: ".git" })).setExportMarks("marks");
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare function marksFilesOf(files: FilesApi, options?: {
|
|
56
|
+
cwd?: string;
|
|
57
|
+
gitDir?: string;
|
|
58
|
+
}): FastMarksFiles;
|
|
59
|
+
/** A ByteSink writing into a Web Stream (the writer is released when the run ends). */
|
|
60
|
+
export declare function writableSink(stream: WritableStream<Uint8Array>): {
|
|
61
|
+
sink: (chunk: Uint8Array) => Promise<void>;
|
|
62
|
+
release: () => void;
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=fast-stream-support.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-stream-support.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/fast-stream-support.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,KAAK,QAAQ,EAAe,MAAM,8BAA8B,CAAC;AAE1E;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,UAAU,GACV,QAAQ,GACR,eAAe,GACf,MAAM,GACN,YAAY,GACZ,OAAO,CAAC;AAYZ,+CAA+C;AAC/C,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,QAAQ,CAEzD;AAED;;;;GAIG;AACH,M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C,IAAI,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAQA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/fast-export/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,KAAK,cAAc,EAAE,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -54,6 +54,7 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
54
54
|
/** Whether the remote was named (it is then in the reflog action, as on git's command line). */
|
|
55
55
|
private remoteGiven;
|
|
56
56
|
private refSpecs;
|
|
57
|
+
private prefetch;
|
|
57
58
|
private updateHeadOk;
|
|
58
59
|
private removeDeletedRefs?;
|
|
59
60
|
private pruneTags?;
|
|
@@ -84,6 +85,9 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
84
85
|
/** `--filter=<spec>` (a string), `--no-filter` (false), or neither */
|
|
85
86
|
private filterSpec?;
|
|
86
87
|
private refetch;
|
|
88
|
+
/** `--negotiation-tip=<revision>` (a revision, or a ref glob), in order */
|
|
89
|
+
private negotiationTips;
|
|
90
|
+
private negotiateOnlyMode;
|
|
87
91
|
private setUpstream;
|
|
88
92
|
/** `--[no-]recurse-submodules[=<mode>]`; unset: the configuration's */
|
|
89
93
|
private recurseSubmodules?;
|
|
@@ -166,6 +170,21 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
166
170
|
* in git; otherwise tags are auto-followed.
|
|
167
171
|
*/
|
|
168
172
|
setTagOpt(option: TagOption): this;
|
|
173
|
+
/**
|
|
174
|
+
* `git fetch --prefetch` (fetch.c `filter_prefetch_refspec`): every refspec, the given and
|
|
175
|
+
* the remote's configured ones, writes under `refs/prefetch/` instead (`refs/remotes/o/*`
|
|
176
|
+
* becomes `refs/prefetch/remotes/o/*`, always forced); refspecs without a destination and
|
|
177
|
+
* those of `refs/tags/` are dropped, and without a refspec left nothing is fetched (no
|
|
178
|
+
* remote HEAD). The maintenance prefetch task's fetch.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```typescript
|
|
182
|
+
* // git fetch origin --prefetch --prune --no-tags --no-write-fetch-head
|
|
183
|
+
* await git.fetch().setRemote("origin").setPrefetch(true).setRemoveDeletedRefs(true)
|
|
184
|
+
* .setTagOpt(TagOption.NO_TAGS).setWriteFetchHead(false).call();
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
setPrefetch(prefetch: boolean): this;
|
|
169
188
|
/**
|
|
170
189
|
* Set whether the fetch writes `FETCH_HEAD` (default true; `--no-write-fetch-head`).
|
|
171
190
|
*
|
|
@@ -239,6 +258,22 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
239
258
|
* use: how a partial clone changes its filter.
|
|
240
259
|
*/
|
|
241
260
|
setRefetch(refetch: boolean): this;
|
|
261
|
+
/**
|
|
262
|
+
* `git fetch --negotiation-tip=<revision>`: the negotiation offers only the history of these
|
|
263
|
+
* (a revision, or a glob of refs such as `refs/heads/feature-*`) instead of every local
|
|
264
|
+
* ref's; what the fetch counts as here still follows every ref. A revision that names
|
|
265
|
+
* nothing dies `<rev> is not a valid object`; a glob matching no ref is ignored with git's
|
|
266
|
+
* warning.
|
|
267
|
+
*/
|
|
268
|
+
setNegotiationTips(...tips: string[]): this;
|
|
269
|
+
/**
|
|
270
|
+
* `git fetch --negotiate-only`: negotiates with the remote from {@link setNegotiationTips}
|
|
271
|
+
* (protocol v2, a server with `wait-for-done`) and fetches nothing; the commits the server
|
|
272
|
+
* acknowledged come back as {@link FetchResult.negotiatedCommits} (git prints them on
|
|
273
|
+
* stdout). Without a tip it dies as git does; over protocol v0, or a server without
|
|
274
|
+
* `wait-for-done`, the result carries git's warning in `messages` and `exitCode` 255.
|
|
275
|
+
*/
|
|
276
|
+
setNegotiateOnly(negotiateOnly: boolean): this;
|
|
242
277
|
/**
|
|
243
278
|
* `git fetch --set-upstream`: once the refs are written, the one ref fetched only into
|
|
244
279
|
* `FETCH_HEAD` (a branch, or `HEAD`) becomes the current branch's upstream,
|
|
@@ -443,6 +478,30 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
443
478
|
* @throws InvalidRemoteError if remote cannot be resolved
|
|
444
479
|
*/
|
|
445
480
|
call(): Promise<FetchResult>;
|
|
481
|
+
/**
|
|
482
|
+
* `fetch.negotiationAlgorithm` (repo-settings.c): `feature.experimental` makes `skipping` the
|
|
483
|
+
* default; a variable without a value or an unknown value dies as git does.
|
|
484
|
+
*/
|
|
485
|
+
private negotiationAlgorithm;
|
|
486
|
+
/** The git version negotiation options follow (2.5x renamed `--negotiation-tip`). */
|
|
487
|
+
private negotiationCompatibility;
|
|
488
|
+
/**
|
|
489
|
+
* The negotiation tips given (`--negotiation-tip`), else (git 2.5x) the remote's
|
|
490
|
+
* `remote.<name>.negotiationRestrict` values.
|
|
491
|
+
*/
|
|
492
|
+
private negotiationTipsGiven;
|
|
493
|
+
/**
|
|
494
|
+
* add_negotiation_tips: a revision (no glob characters) must name an object here, else git
|
|
495
|
+
* dies (git 2.5x skips a name that resolves to nothing); a glob adds every ref it matches
|
|
496
|
+
* (`refs/` put before a pattern without it), with git's warning when it matches none.
|
|
497
|
+
*/
|
|
498
|
+
private resolveNegotiationTips;
|
|
499
|
+
/**
|
|
500
|
+
* `git fetch --negotiate-only`: the negotiation alone, over the remote's upload-pack; the
|
|
501
|
+
* acknowledged commits in {@link FetchResult.negotiatedCommits}. transport.c's refusals
|
|
502
|
+
* (protocol v0, no `wait-for-done`) are its warning and exit status 255.
|
|
503
|
+
*/
|
|
504
|
+
private callNegotiateOnly;
|
|
446
505
|
/**
|
|
447
506
|
* cmd_fetch's `config.recurse_submodules`: the command line, else `submodule.recurse` and
|
|
448
507
|
* `fetch.recurseSubmodules` in config order, else `.gitmodules`' `fetch.recurseSubmodules`;
|
|
@@ -549,4 +608,10 @@ export declare function toTrackingRefUpdate(update: FetchRefUpdate): TrackingRef
|
|
|
549
608
|
export declare function fetchOutputText(result: FetchResult, quiet?: boolean): string;
|
|
550
609
|
/** Whether git's fetch exits 0: no error, no refused ref, its submodules fetched. */
|
|
551
610
|
export declare function fetchSucceeded(result: FetchResult): boolean;
|
|
611
|
+
/**
|
|
612
|
+
* fetch.c's `filter_prefetch_refspec`: negative refspecs kept; a refspec without a destination
|
|
613
|
+
* or whose source is under `refs/tags/` dropped; any other written under `refs/prefetch/` (the
|
|
614
|
+
* destination less its `refs/`), forced.
|
|
615
|
+
*/
|
|
616
|
+
export declare function prefetchRefspecs(specs: readonly string[]): string[];
|
|
552
617
|
//# sourceMappingURL=fetch-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,QAAQ,EAOd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EASL,KAAK,cAAc,EAenB,KAAK,OAAO,EAIb,MAAM,4BAA4B,CAAC;AAYpC,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAmB3D,OAAO,EACL,KAAK,sBAAsB,EAM5B,MAAM,sBAAsB,CAAC;AAO9B;;;;GAIG;AACH,oBAAY,SAAS;IACnB,8DAA8D;IAC9D,WAAW,gBAAgB;IAC3B,qBAAqB;IACrB,UAAU,eAAe;IACzB,2BAA2B;IAC3B,OAAO,YAAY;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,YAAa,SAAQ,g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E,OAAO,GAAG,sBAAsB,GAAG,IAAI,CAIjE;IAED,uCAAuC;IACvC,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAInC;IAED,gDAAgD;IAChD,eAAe,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED,kCAAkC;IAClC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED,kFAAkF;IAClF,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAIrC;IAED,uCAAuC;IACvC,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAItC;IAED,qDAAqD;IACrD,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;OAIG;IACH,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIvC;IAED;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,mBAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"fetch-multiple-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-multiple-command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAgB,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,qFAAqF;AACrF,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,uCAAuC;IACvC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,6EAA6E;IAC7E,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,gGAAgG;IAChG,QAAQ,EAAE,MAAM,CAAC;CA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O,CAAC,WAAW;IAYnB,0FAA0F;YAC5E,aAAa;CAQ5B;AAgBD,kGAAkG;AAClG,eAAO,MAAM,eAAe,KAAK,CAAC;AAWlC;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAUhG;AA2BD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,mBAAoB,SAAQ,uBAAuB,CAAC,mBAAmB,CAAC;IACnF,6FAA6F;IAC7F,UAAmB,eAAe,IAAI,OAAO,CAE5C;IAED,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,KAAK,CAAC,CAAU;IACxB,OAAO,CAAC,OAAO,CAAS;IAExB,kFAAkF;IAClF,SAAS,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAInC;IAED,0EAA0E;IAC1E,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAIzC;YAEa,aAAa;IAO3B,wDAAwD;IACxD,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAEK,IAAI,IAAI,OAAO,CAAC,mBAAmB,CAAC,CA6CzC;CACF"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git format-rev` (builtin/name-rev.c's cmd_format_rev, git 2.56+, experimental): each
|
|
3
|
+
* commit read from stdin, or each full object id in running text, replaced by a pretty format
|
|
4
|
+
* of the commit.
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* const { stdout } = await git
|
|
8
|
+
* .formatRev()
|
|
9
|
+
* .setStdinMode("revs")
|
|
10
|
+
* .setFormat("%s")
|
|
11
|
+
* .setInput("HEAD\nHEAD~1\n")
|
|
12
|
+
* .callOutput();
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* The formats are git's: user formats (`format:`, `tformat:`, a text with `%`, a `pretty.<name>`
|
|
16
|
+
* alias) and the builtin ones (`reference`, `oneline`, `medium`, `short`, `full`, `fuller`,
|
|
17
|
+
* `raw`, `email`, `mboxrd`), the latter as pretty.c's `pretty_print_commit` prints them: no
|
|
18
|
+
* `commit <id>` line (log-tree's), no notes, tabs kept, a mail's subject without `[PATCH]`.
|
|
19
|
+
* Each commit is formatted by `git log`'s pretty engine with no configuration of its own:
|
|
20
|
+
* `log.*` settings do not apply, as format-rev starts from a fresh `rev_info`.
|
|
21
|
+
*/
|
|
22
|
+
import { PlumbingCommand } from "./plumbing-command.js";
|
|
23
|
+
/** `--stdin-mode`: lines of revisions, or running text holding object ids. */
|
|
24
|
+
export type FormatRevStdinMode = "text" | "revs";
|
|
25
|
+
export declare class FormatRevCommand extends PlumbingCommand {
|
|
26
|
+
private format?;
|
|
27
|
+
private stdinMode?;
|
|
28
|
+
private notes;
|
|
29
|
+
private nulInput;
|
|
30
|
+
private nulOutput;
|
|
31
|
+
private input;
|
|
32
|
+
/** `--format=<pretty>` (required) */
|
|
33
|
+
setFormat(format: string): this;
|
|
34
|
+
/** `--stdin-mode=<mode>` (required): `text`, `revs` or `rev` */
|
|
35
|
+
setStdinMode(mode: string): this;
|
|
36
|
+
/** `--notes=<ref>`: a notes ref (or glob) `%N` shows; repeatable */
|
|
37
|
+
addNotes(ref: string): this;
|
|
38
|
+
/** `--no-notes`: forget the `--notes` given so far */
|
|
39
|
+
clearNotes(): this;
|
|
40
|
+
/** `-z`: NUL-terminated input and output */
|
|
41
|
+
setNul(): this;
|
|
42
|
+
/** `--[no-]null-input` */
|
|
43
|
+
setNullInput(nul: boolean): this;
|
|
44
|
+
/** `--[no-]null-output` */
|
|
45
|
+
setNullOutput(nul: boolean): this;
|
|
46
|
+
/** stdin */
|
|
47
|
+
setInput(input: string | Uint8Array): this;
|
|
48
|
+
protected run(): Promise<number>;
|
|
49
|
+
/** stderr as given (git's fprintf, not an `error:` line) */
|
|
50
|
+
private warnRaw;
|
|
51
|
+
/** stdin split as strbuf_getline_lf / strbuf_getline_nul: a last line without terminator kept */
|
|
52
|
+
private lines;
|
|
53
|
+
/** get_commit_format: the user format and its date mode. */
|
|
54
|
+
private prettyOf;
|
|
55
|
+
/** pretty_print_commit of one commit (with its notes when the format shows `%N`). */
|
|
56
|
+
private formatOne;
|
|
57
|
+
private typeOf;
|
|
58
|
+
private tagTarget;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=format-rev-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-rev-command.d.ts","sourceRoot":"","sources":["../../src/commands/format-rev-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH,OAAO,EAAE,eAAe,EAAiB,MAAM,uBAAuB,CAAC;AAEvE,8EAA8E;AAC9E,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAoBjD,qBAAa,gBAAiB,SAAQ,eAAe;IACnD,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,KAAK,CAAiC;IAE9C,qCAAqC;IACrC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED,gEAAgE;IAChE,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI/B;IAED,oEAAoE;IACpE,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED,sDAAsD;IACtD,UAAU,IAAI,IAAI,CAIjB;IAED,4CAA4C;IAC5C,MAAM,IAAI,IAAI,CAKb;IAED,0BAA0B;IAC1B,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED,2BAA2B;IAC3B,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAIhC;IAED,YAAY;IACZ,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAIzC;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAoErC;IAED,4DAA4D;IAC5D,OAAO,CAAC,OAAO;IAIf,iGAAiG;IACjG,OAAO,CAAC,KAAK;IAQb,4DAA4D;IAC5D,OAAO,CAAC,QAAQ;IAchB,qFAAqF;YACvE,SAAS;YAmCT,MAAM;YAUN,SAAS;CAOxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fsck-command.d.ts","sourceRoot":"","sources":["../../../src/commands/fsck/fsck-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EAyBd,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"fsck-command.d.ts","sourceRoot":"","sources":["../../../src/commands/fsck/fsck-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EAyBd,MAAM,uBAAuB,CAAC;AAgB/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMlD,OAAO,EAAkC,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAgCnF,gFAAgF;AAChF,eAAO,MAAM,iBAAiB,IAAM,CAAC;AACrC,eAAO,MAAM,oBAAoB,IAAM,CAAC;AACxC,eAAO,MAAM,eAAe,IAAM,CAAC;AACnC,eAAO,MAAM,eAAe,IAAO,CAAC;AACpC,mEAAmE;AACnE,eAAO,MAAM,uBAAuB,KAAO,CAAC;AAC5C,wGAAwG;AACxG,eAAO,MAAM,+BAA+B,KAAO,CAAC;AACpD,iGAAiG;AACjG,eAAO,MAAM,6BAA6B,KAAQ,CAAC;AACnD,mGAAmG;AACnG,eAAO,MAAM,qBAAqB,MAAQ,CAAC;AAE3C,8CAA8C;AAC9C,MAAM,MAAM,eAAe;AACzB,oEAAoE;AAClE,SAAS;AACX,uEAAuE;GACrE,UA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AAW,EAAE,OAAO,GAAG,IAAI,CAIzC;IAED,qCAAqC;IACrC,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED,6BAA6B;IAC7B,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAIrC;IAED;;;;;;;;;;;;;;OAcG;IACH,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAIjD;IAED;;;;;OAKG;IACH,eAAe,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAI9C;IAED,6FAA6F;IAC7F,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAIhD;IAED;;;OAGG;IACH,kBAAkB,CAAC,UAAU,EAAE,mBAAmB,GAAG,IAAI,CAIxD;IAEK,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAsFhC;CACF"}
|
|
@@ -20,9 +20,8 @@ export type FsckMsgLevel = "fatal" | "error" | "warn" | "info" | "ignore";
|
|
|
20
20
|
/** What a message is reported as. */
|
|
21
21
|
export type FsckSeverity = "error" | "warning" | "ignore";
|
|
22
22
|
/**
|
|
23
|
-
* Every
|
|
24
|
-
*
|
|
25
|
-
* checks are not done.
|
|
23
|
+
* Every message id git knows, with its default level: the object ids in git's order, then
|
|
24
|
+
* the ref ids `git refs verify` reports (git 2.47+: `badRefContent`, ...; `RefsVerifyCommand`).
|
|
26
25
|
*/
|
|
27
26
|
export declare const FSCK_MSG_IDS: {
|
|
28
27
|
readonly nulInHeader: "fatal";
|
|
@@ -85,6 +84,22 @@ export declare const FSCK_MSG_IDS: {
|
|
|
85
84
|
readonly badTagName: "info";
|
|
86
85
|
readonly missingTaggerEntry: "info";
|
|
87
86
|
readonly extraHeaderEntry: "ignore";
|
|
87
|
+
readonly badHeadTarget: "error";
|
|
88
|
+
readonly badPackedRefEntry: "error";
|
|
89
|
+
readonly badPackedRefHeader: "error";
|
|
90
|
+
readonly badReferentName: "error";
|
|
91
|
+
readonly badRefContent: "error";
|
|
92
|
+
readonly badRefFiletype: "error";
|
|
93
|
+
readonly badRefName: "error";
|
|
94
|
+
readonly badRefOid: "error";
|
|
95
|
+
readonly packedRefEntryNotTerminated: "error";
|
|
96
|
+
readonly packedRefUnsorted: "error";
|
|
97
|
+
readonly badReftableTableName: "warn";
|
|
98
|
+
readonly emptyPackedRefsFile: "info";
|
|
99
|
+
readonly refMissingNewline: "info";
|
|
100
|
+
readonly symlinkRef: "info";
|
|
101
|
+
readonly symrefTargetIsNotARef: "info";
|
|
102
|
+
readonly trailingRefContent: "info";
|
|
88
103
|
};
|
|
89
104
|
/** A message id, in git's camel case. */
|
|
90
105
|
export type FsckMsgId = keyof typeof FSCK_MSG_IDS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fsck-msg-ids.d.ts","sourceRoot":"","sources":["../../../src/commands/fsck/fsck-msg-ids.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,2FAA2F;AAC3F,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1E,qCAAqC;AACrC,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE1D
|
|
1
|
+
{"version":3,"file":"fsck-msg-ids.d.ts","sourceRoot":"","sources":["../../../src/commands/fsck/fsck-msg-ids.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,2FAA2F;AAC3F,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1E,qCAAqC;AACrC,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAA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,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,8EAA8E;IAC9E,kBAAkB,SAAQ;IAC1B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqD;IAE/E,YAAY,OAAO,GAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAO,EAE7C;IAED;;;OAGG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAwBrC;IAED,iGAAiG;IACjG,KAAK,CAAC,EAAE,EAAE,SAAS,GAAG,YAAY,CAKjC;IAED,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,EAAE,SAAS,GAAG,YAAY,CAIpC;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's builtin file system monitor daemon asked over a `MessagePort` (fsmonitor-ipc.c's
|
|
3
|
+
* `fsmonitor_ipc__send_query` over simple-ipc): the request is the token, the answer the new
|
|
4
|
+
* token and the changed paths, both sent as pkt-lines ended by a flush packet.
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* const port = await environment.openIpcPort({ service: "fsmonitor--daemon", path });
|
|
8
|
+
* const answer = await queryFsmonitorDaemon(port, "builtin:fake");
|
|
9
|
+
* // answer: "<token>\0<path>\0<path>\0..." as the daemon wrote it, or undefined on failure
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* The protocol code never sees a socket: the port speaks webrun-rpc's stream tier (one
|
|
13
|
+
* stream per port, bounded both ways), whatever carries it (a Unix socket through
|
|
14
|
+
* `connectSocketPort` of `@statewalker/vcs-utils-node`, a `MessageChannel`, a worker).
|
|
15
|
+
*/
|
|
16
|
+
/** The daemon's socket in the git directory (`fsmonitor_ipc__get_default_path`). */
|
|
17
|
+
export declare const FSMONITOR_DAEMON_IPC_NAME = "fsmonitor--daemon.ipc";
|
|
18
|
+
/**
|
|
19
|
+
* `write_packetized_from_buf_no_flush` then `packet_flush`: `payload` as pkt-lines of at
|
|
20
|
+
* most {@link LARGE_PACKET_DATA_MAX} bytes (none for an empty payload), then `0000`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function encodePacketized(payload: Uint8Array): Uint8Array;
|
|
23
|
+
/**
|
|
24
|
+
* Sends `token` to the daemon behind `port` and returns its answer (the new token, a NUL,
|
|
25
|
+
* then the changed paths, each ended by a NUL); undefined when the exchange fails (the
|
|
26
|
+
* stream fails or ends before the answer's flush packet), as git's
|
|
27
|
+
* `ipc_client_send_command_to_connection` fails. The port is closed afterwards.
|
|
28
|
+
*/
|
|
29
|
+
export declare function queryFsmonitorDaemon(port: MessagePort, token: string): Promise<Uint8Array | undefined>;
|
|
30
|
+
//# sourceMappingURL=fsmonitor-ipc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fsmonitor-ipc.d.ts","sourceRoot":"","sources":["../../src/commands/fsmonitor-ipc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AAIjE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,CAYhE;AA+CD;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAsBjC"}
|