@statewalker/vcs-commands 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commands/add-command.d.ts +32 -0
- package/dist/commands/add-command.d.ts.map +1 -1
- package/dist/commands/add-patch/add-patch.d.ts +7 -0
- package/dist/commands/add-patch/add-patch.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-backend.d.ts +2 -0
- package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-modes.d.ts +6 -2
- package/dist/commands/add-patch/patch-modes.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-session.d.ts +4 -0
- package/dist/commands/add-patch/patch-session.d.ts.map +1 -1
- package/dist/commands/am/am-command.d.ts +88 -2
- package/dist/commands/am/am-command.d.ts.map +1 -1
- package/dist/commands/apply/apply-command.d.ts +2 -0
- package/dist/commands/apply/apply-command.d.ts.map +1 -1
- package/dist/commands/apply/apply-parse.d.ts +7 -0
- package/dist/commands/apply/apply-parse.d.ts.map +1 -1
- package/dist/commands/apply/index.d.ts +1 -1
- package/dist/commands/apply/index.d.ts.map +1 -1
- package/dist/commands/archive/archive-command.d.ts +169 -0
- package/dist/commands/archive/archive-command.d.ts.map +1 -0
- package/dist/commands/archive/archive-entry.d.ts +60 -0
- package/dist/commands/archive/archive-entry.d.ts.map +1 -0
- package/dist/commands/archive/index.d.ts +8 -0
- package/dist/commands/archive/index.d.ts.map +1 -0
- package/dist/commands/archive/remote-archive-command.d.ts +56 -0
- package/dist/commands/archive/remote-archive-command.d.ts.map +1 -0
- package/dist/commands/archive/tar-archive.d.ts +31 -0
- package/dist/commands/archive/tar-archive.d.ts.map +1 -0
- package/dist/commands/archive/tar-commit-id.d.ts +13 -0
- package/dist/commands/archive/tar-commit-id.d.ts.map +1 -0
- package/dist/commands/archive/upload-archive-writer.d.ts +48 -0
- package/dist/commands/archive/upload-archive-writer.d.ts.map +1 -0
- package/dist/commands/archive/zip-archive.d.ts +42 -0
- package/dist/commands/archive/zip-archive.d.ts.map +1 -0
- package/dist/commands/attributes-source.d.ts +10 -0
- package/dist/commands/attributes-source.d.ts.map +1 -1
- package/dist/commands/blame-command.d.ts +345 -8
- package/dist/commands/blame-command.d.ts.map +1 -1
- package/dist/commands/blame-ignore.d.ts +48 -0
- package/dist/commands/blame-ignore.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-create-command.d.ts +67 -0
- package/dist/commands/bundle/bundle-create-command.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-format.d.ts +89 -0
- package/dist/commands/bundle/bundle-format.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-list.d.ts +92 -0
- package/dist/commands/bundle/bundle-list.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-read-commands.d.ts +81 -0
- package/dist/commands/bundle/bundle-read-commands.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-support.d.ts +32 -0
- package/dist/commands/bundle/bundle-support.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-transport.d.ts +38 -0
- package/dist/commands/bundle/bundle-transport.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-uri-host.d.ts +43 -0
- package/dist/commands/bundle/bundle-uri-host.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-uri.d.ts +55 -0
- package/dist/commands/bundle/bundle-uri.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-verify.d.ts +63 -0
- package/dist/commands/bundle/bundle-verify.d.ts.map +1 -0
- package/dist/commands/bundle/index.d.ts +14 -0
- package/dist/commands/bundle/index.d.ts.map +1 -0
- package/dist/commands/cat-file/batch-format.d.ts +58 -0
- package/dist/commands/cat-file/batch-format.d.ts.map +1 -0
- package/dist/commands/cat-file/cat-file-command.d.ts +135 -0
- package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -0
- package/dist/commands/cat-file/index.d.ts +3 -0
- package/dist/commands/cat-file/index.d.ts.map +1 -0
- package/dist/commands/check-attr-command.d.ts +66 -0
- package/dist/commands/check-attr-command.d.ts.map +1 -0
- package/dist/commands/check-ignore-command.d.ts +58 -0
- package/dist/commands/check-ignore-command.d.ts.map +1 -0
- package/dist/commands/check-mailmap-command.d.ts +49 -0
- package/dist/commands/check-mailmap-command.d.ts.map +1 -0
- package/dist/commands/check-ref-format-command.d.ts +60 -0
- package/dist/commands/check-ref-format-command.d.ts.map +1 -0
- package/dist/commands/checkout-command.d.ts +7 -0
- package/dist/commands/checkout-command.d.ts.map +1 -1
- package/dist/commands/checkout-index-command.d.ts +96 -0
- package/dist/commands/checkout-index-command.d.ts.map +1 -0
- package/dist/commands/checkout-paths.d.ts +4 -0
- package/dist/commands/checkout-paths.d.ts.map +1 -1
- package/dist/commands/cherry-command.d.ts +61 -0
- package/dist/commands/cherry-command.d.ts.map +1 -0
- package/dist/commands/cherry-pick-command.d.ts +33 -1
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clean-command.d.ts +32 -0
- package/dist/commands/clean-command.d.ts.map +1 -1
- package/dist/commands/clean-interactive.d.ts +56 -0
- package/dist/commands/clean-interactive.d.ts.map +1 -0
- package/dist/commands/clone-command.d.ts +135 -2
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +59 -3
- package/dist/commands/commit-command.d.ts.map +1 -1
- package/dist/commands/config-command.d.ts +2 -0
- package/dist/commands/config-command.d.ts.map +1 -1
- package/dist/commands/daemon-access-hook.d.ts +36 -0
- package/dist/commands/daemon-access-hook.d.ts.map +1 -0
- package/dist/commands/default-branch.d.ts +42 -0
- package/dist/commands/default-branch.d.ts.map +1 -1
- package/dist/commands/describe-command.d.ts +71 -64
- package/dist/commands/describe-command.d.ts.map +1 -1
- package/dist/commands/diff-command.d.ts +249 -10
- package/dist/commands/diff-command.d.ts.map +1 -1
- package/dist/commands/diff-external.d.ts +43 -0
- package/dist/commands/diff-external.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/diff-pairs-command.d.ts +27 -0
- package/dist/commands/diff-plumbing/diff-pairs-command.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts +129 -0
- package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/index.d.ts +3 -0
- package/dist/commands/diff-plumbing/index.d.ts.map +1 -0
- package/dist/commands/diff-textconv.d.ts +5 -1
- package/dist/commands/diff-textconv.d.ts.map +1 -1
- package/dist/commands/fast-export/fast-export-command.d.ts +135 -0
- package/dist/commands/fast-export/fast-export-command.d.ts.map +1 -0
- package/dist/commands/fast-export/fast-import-command.d.ts +182 -0
- package/dist/commands/fast-export/fast-import-command.d.ts.map +1 -0
- package/dist/commands/fast-export/fast-stream-support.d.ts +64 -0
- package/dist/commands/fast-export/fast-stream-support.d.ts.map +1 -0
- package/dist/commands/fast-export/index.d.ts +4 -0
- package/dist/commands/fast-export/index.d.ts.map +1 -0
- package/dist/commands/fetch-command.d.ts +125 -0
- package/dist/commands/fetch-command.d.ts.map +1 -1
- package/dist/commands/fetch-multiple-command.d.ts +193 -0
- package/dist/commands/fetch-multiple-command.d.ts.map +1 -0
- package/dist/commands/format-patch-command.d.ts +28 -2
- package/dist/commands/format-patch-command.d.ts.map +1 -1
- package/dist/commands/format-rev-command.d.ts +58 -0
- package/dist/commands/format-rev-command.d.ts.map +1 -0
- package/dist/commands/fsck/fsck-command.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-msg-ids.d.ts +18 -3
- package/dist/commands/fsck/fsck-msg-ids.d.ts.map +1 -1
- package/dist/commands/fsmonitor-refresh.d.ts +69 -0
- package/dist/commands/fsmonitor-refresh.d.ts.map +1 -0
- package/dist/commands/gc-command.d.ts +5 -0
- package/dist/commands/gc-command.d.ts.map +1 -1
- package/dist/commands/git-describe.d.ts +77 -4
- package/dist/commands/git-describe.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +47 -1
- package/dist/commands/git-hooks.d.ts.map +1 -1
- package/dist/commands/git-paths.d.ts +26 -0
- package/dist/commands/git-paths.d.ts.map +1 -0
- package/dist/commands/grep/grep-command.d.ts +2 -1
- package/dist/commands/grep/grep-command.d.ts.map +1 -1
- package/dist/commands/history-command.d.ts +156 -0
- package/dist/commands/history-command.d.ts.map +1 -0
- package/dist/commands/http-config.d.ts +38 -0
- package/dist/commands/http-config.d.ts.map +1 -0
- package/dist/commands/index-adder.d.ts +12 -1
- package/dist/commands/index-adder.d.ts.map +1 -1
- package/dist/commands/index-host.d.ts.map +1 -1
- package/dist/commands/index.d.ts +56 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +6 -3
- package/dist/commands/init-command.d.ts +89 -0
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/last-modified-command.d.ts +102 -0
- package/dist/commands/last-modified-command.d.ts.map +1 -0
- package/dist/commands/lfs/go-url.d.ts +43 -0
- package/dist/commands/lfs/go-url.d.ts.map +1 -0
- package/dist/commands/lfs/index.d.ts +3 -0
- package/dist/commands/lfs/index.d.ts.map +1 -0
- package/dist/commands/lfs/lfs-config.d.ts +174 -0
- package/dist/commands/lfs/lfs-config.d.ts.map +1 -0
- package/dist/commands/lfs/lfs-endpoint-command.d.ts +83 -0
- package/dist/commands/lfs/lfs-endpoint-command.d.ts.map +1 -0
- package/dist/commands/line-log.d.ts +161 -0
- package/dist/commands/line-log.d.ts.map +1 -0
- package/dist/commands/local-transport.d.ts.map +1 -1
- package/dist/commands/log-command.d.ts +261 -6
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-graph.d.ts +4 -2
- package/dist/commands/log-graph.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +88 -2
- package/dist/commands/log-output.d.ts.map +1 -1
- package/dist/commands/ls-files-command.d.ts +153 -0
- package/dist/commands/ls-files-command.d.ts.map +1 -0
- package/dist/commands/ls-remote-command.d.ts +5 -0
- package/dist/commands/ls-remote-command.d.ts.map +1 -1
- package/dist/commands/ls-tree-command.d.ts +105 -0
- package/dist/commands/ls-tree-command.d.ts.map +1 -0
- package/dist/commands/mailmap.d.ts +24 -1
- package/dist/commands/mailmap.d.ts.map +1 -1
- package/dist/commands/maintenance-run-command.d.ts +122 -0
- package/dist/commands/maintenance-run-command.d.ts.map +1 -0
- package/dist/commands/merge-command.d.ts +58 -1
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-config.d.ts +7 -0
- package/dist/commands/merge-config.d.ts.map +1 -1
- package/dist/commands/merge-drivers.d.ts +69 -5
- package/dist/commands/merge-drivers.d.ts.map +1 -1
- package/dist/commands/merge-strategy-options.d.ts +69 -0
- package/dist/commands/merge-strategy-options.d.ts.map +1 -0
- package/dist/commands/merge-support.d.ts +16 -0
- package/dist/commands/merge-support.d.ts.map +1 -1
- package/dist/commands/merge-tree-command.d.ts +122 -0
- package/dist/commands/merge-tree-command.d.ts.map +1 -0
- package/dist/commands/message-cleanup.d.ts +2 -0
- package/dist/commands/message-cleanup.d.ts.map +1 -1
- package/dist/commands/mktag-command.d.ts +51 -0
- package/dist/commands/mktag-command.d.ts.map +1 -0
- package/dist/commands/name-rev-command.d.ts +65 -0
- package/dist/commands/name-rev-command.d.ts.map +1 -0
- package/dist/commands/name-rev.d.ts +110 -22
- package/dist/commands/name-rev.d.ts.map +1 -1
- package/dist/commands/object-store/count-objects-command.d.ts +58 -0
- package/dist/commands/object-store/count-objects-command.d.ts.map +1 -0
- package/dist/commands/object-store/index.d.ts +5 -0
- package/dist/commands/object-store/index.d.ts.map +1 -0
- package/dist/commands/object-store/objects-directory.d.ts +12 -0
- package/dist/commands/object-store/objects-directory.d.ts.map +1 -0
- package/dist/commands/object-store/prune-command.d.ts +38 -0
- package/dist/commands/object-store/prune-command.d.ts.map +1 -0
- package/dist/commands/object-store/show-index-command.d.ts +23 -0
- package/dist/commands/object-store/show-index-command.d.ts.map +1 -0
- package/dist/commands/octopus-merge.d.ts +26 -1
- package/dist/commands/octopus-merge.d.ts.map +1 -1
- package/dist/commands/ort-merge.d.ts +40 -0
- package/dist/commands/ort-merge.d.ts.map +1 -1
- package/dist/commands/ort-recursive.d.ts.map +1 -1
- package/dist/commands/patch-id-command.d.ts +30 -0
- package/dist/commands/patch-id-command.d.ts.map +1 -0
- package/dist/commands/patch-id.d.ts +82 -0
- package/dist/commands/patch-id.d.ts.map +1 -1
- package/dist/commands/plumbing-command.d.ts +66 -0
- package/dist/commands/plumbing-command.d.ts.map +1 -0
- package/dist/commands/plumbing-input.d.ts +38 -0
- package/dist/commands/plumbing-input.d.ts.map +1 -0
- package/dist/commands/promisor-remote-reply.d.ts +35 -0
- package/dist/commands/promisor-remote-reply.d.ts.map +1 -0
- package/dist/commands/promisor-remote.d.ts.map +1 -1
- package/dist/commands/pull-command.d.ts +182 -38
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +82 -2
- package/dist/commands/push-command.d.ts.map +1 -1
- package/dist/commands/range-diff/index.d.ts +4 -0
- package/dist/commands/range-diff/index.d.ts.map +1 -0
- package/dist/commands/range-diff/linear-assignment.d.ts +27 -0
- package/dist/commands/range-diff/linear-assignment.d.ts.map +1 -0
- package/dist/commands/range-diff/range-diff-command.d.ts +121 -0
- package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -0
- package/dist/commands/range-diff/range-diff.d.ts +106 -0
- package/dist/commands/range-diff/range-diff.d.ts.map +1 -0
- package/dist/commands/read-tree-command.d.ts +14 -0
- package/dist/commands/read-tree-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +129 -4
- package/dist/commands/rebase-command.d.ts.map +1 -1
- package/dist/commands/refs-command.d.ts +81 -0
- package/dist/commands/refs-command.d.ts.map +1 -0
- package/dist/commands/remerge-diff.d.ts +59 -0
- package/dist/commands/remerge-diff.d.ts.map +1 -0
- package/dist/commands/remote-command.d.ts +41 -0
- package/dist/commands/remote-command.d.ts.map +1 -1
- package/dist/commands/remote-object-info-command.d.ts +55 -0
- package/dist/commands/remote-object-info-command.d.ts.map +1 -0
- package/dist/commands/remote-show-command.d.ts +204 -0
- package/dist/commands/remote-show-command.d.ts.map +1 -0
- package/dist/commands/remote-transport.d.ts +40 -3
- package/dist/commands/remote-transport.d.ts.map +1 -1
- package/dist/commands/repack-command.d.ts +115 -0
- package/dist/commands/repack-command.d.ts.map +1 -0
- package/dist/commands/replace-command.d.ts +143 -0
- package/dist/commands/replace-command.d.ts.map +1 -0
- package/dist/commands/replay-command.d.ts +117 -0
- package/dist/commands/replay-command.d.ts.map +1 -0
- package/dist/commands/repo-command.d.ts +136 -0
- package/dist/commands/repo-command.d.ts.map +1 -0
- package/dist/commands/request-pull-command.d.ts +82 -0
- package/dist/commands/request-pull-command.d.ts.map +1 -0
- package/dist/commands/rerere-command.d.ts +36 -0
- package/dist/commands/rerere-command.d.ts.map +1 -0
- package/dist/commands/rerere.d.ts +102 -0
- package/dist/commands/rerere.d.ts.map +1 -0
- package/dist/commands/reset-command.d.ts +19 -1
- package/dist/commands/reset-command.d.ts.map +1 -1
- package/dist/commands/restore-command.d.ts +7 -0
- package/dist/commands/restore-command.d.ts.map +1 -1
- package/dist/commands/rev-filter/commit-grep.d.ts +3 -1
- package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -1
- package/dist/commands/rev-list-command.d.ts +78 -3
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/rev-parse-command.d.ts +9 -0
- package/dist/commands/rev-parse-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +32 -1
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +7 -0
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/revision-resolver.d.ts +12 -0
- package/dist/commands/revision-resolver.d.ts.map +1 -1
- package/dist/commands/sequencer-pick.d.ts +120 -1
- package/dist/commands/sequencer-pick.d.ts.map +1 -1
- package/dist/commands/sequencer-support.d.ts +10 -1
- package/dist/commands/sequencer-support.d.ts.map +1 -1
- package/dist/commands/serve-repository.d.ts +23 -1
- package/dist/commands/serve-repository.d.ts.map +1 -1
- package/dist/commands/session-id.d.ts +18 -0
- package/dist/commands/session-id.d.ts.map +1 -0
- package/dist/commands/shortlog-command.d.ts +109 -0
- package/dist/commands/shortlog-command.d.ts.map +1 -0
- package/dist/commands/shortlog.d.ts +151 -0
- package/dist/commands/shortlog.d.ts.map +1 -0
- package/dist/commands/show-branch-command.d.ts +59 -0
- package/dist/commands/show-branch-command.d.ts.map +1 -0
- package/dist/commands/show-ref-command.d.ts +112 -0
- package/dist/commands/show-ref-command.d.ts.map +1 -0
- package/dist/commands/signature-check.d.ts +9 -2
- package/dist/commands/signature-check.d.ts.map +1 -1
- package/dist/commands/signing.d.ts +22 -1
- package/dist/commands/signing.d.ts.map +1 -1
- package/dist/commands/stash-apply-command.d.ts.map +1 -1
- package/dist/commands/stash-export-command.d.ts +115 -0
- package/dist/commands/stash-export-command.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +33 -3
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/stripspace-command.d.ts +44 -0
- package/dist/commands/stripspace-command.d.ts.map +1 -0
- package/dist/commands/submodule-add-command.d.ts +10 -1
- package/dist/commands/submodule-add-command.d.ts.map +1 -1
- package/dist/commands/submodule-auth.d.ts +3 -1
- package/dist/commands/submodule-auth.d.ts.map +1 -1
- package/dist/commands/submodule-commands.d.ts +99 -3
- package/dist/commands/submodule-commands.d.ts.map +1 -1
- package/dist/commands/submodule-fetch.d.ts +149 -0
- package/dist/commands/submodule-fetch.d.ts.map +1 -0
- package/dist/commands/submodule-model.d.ts +8 -0
- package/dist/commands/submodule-model.d.ts.map +1 -1
- package/dist/commands/submodule-unpack.d.ts +120 -0
- package/dist/commands/submodule-unpack.d.ts.map +1 -0
- package/dist/commands/submodule-update-command.d.ts +21 -1
- package/dist/commands/submodule-update-command.d.ts.map +1 -1
- package/dist/commands/subtree-shift.d.ts +27 -0
- package/dist/commands/subtree-shift.d.ts.map +1 -0
- package/dist/commands/switch-command.d.ts +3 -0
- package/dist/commands/switch-command.d.ts.map +1 -1
- package/dist/commands/textconv-cache.d.ts +58 -0
- package/dist/commands/textconv-cache.d.ts.map +1 -0
- package/dist/commands/tree-restore.d.ts +5 -0
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/unpack-objects-command.d.ts +47 -0
- package/dist/commands/unpack-objects-command.d.ts.map +1 -0
- package/dist/commands/update-index-command.d.ts +110 -0
- package/dist/commands/update-index-command.d.ts.map +1 -0
- package/dist/commands/uri-protocols.d.ts +13 -0
- package/dist/commands/uri-protocols.d.ts.map +1 -0
- package/dist/commands/url-parse-command.d.ts +30 -0
- package/dist/commands/url-parse-command.d.ts.map +1 -0
- package/dist/commands/var-command.d.ts +42 -0
- package/dist/commands/var-command.d.ts.map +1 -0
- package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
- package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
- package/dist/{commands-ISM52N0n.js → commands-Mlo1dxQN.js} +56133 -70269
- package/dist/errors/command-errors.d.ts +58 -0
- package/dist/errors/command-errors.d.ts.map +1 -1
- package/dist/errors/index.js +67 -1
- package/dist/fsck-CrhVMNIH.js +5179 -0
- package/dist/git-command.d.ts +89 -3
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +628 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/guarded-transport-command.d.ts +84 -0
- package/dist/guarded-transport-command.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -5
- package/dist/maintenance-run-command-Bw21HEkH.js +13539 -0
- package/dist/remote-transport-Bu4PGSMD.js +2605 -0
- package/dist/rename/detect-renames.d.ts +20 -0
- package/dist/rename/detect-renames.d.ts.map +1 -1
- package/dist/rename/diffcore-break.d.ts +51 -0
- package/dist/rename/diffcore-break.d.ts.map +1 -0
- package/dist/rename/index.d.ts +1 -0
- package/dist/rename/index.d.ts.map +1 -1
- package/dist/results/blame-format.d.ts +62 -1
- package/dist/results/blame-format.d.ts.map +1 -1
- package/dist/results/cherry-pick-result.d.ts +6 -0
- package/dist/results/cherry-pick-result.d.ts.map +1 -1
- package/dist/results/clone-result.d.ts +9 -0
- package/dist/results/clone-result.d.ts.map +1 -1
- package/dist/results/diff-dirstat.d.ts +36 -0
- package/dist/results/diff-dirstat.d.ts.map +1 -0
- package/dist/results/diff-entry.d.ts +20 -0
- package/dist/results/diff-entry.d.ts.map +1 -1
- package/dist/results/diff-formatter.d.ts.map +1 -1
- package/dist/results/diff-output.d.ts +67 -3
- package/dist/results/diff-output.d.ts.map +1 -1
- package/dist/results/fetch-result.d.ts +24 -1
- package/dist/results/fetch-result.d.ts.map +1 -1
- package/dist/results/index.d.ts +2 -0
- package/dist/results/index.d.ts.map +1 -1
- package/dist/results/index.js +2 -2
- package/dist/results/init-result.d.ts +8 -1
- package/dist/results/init-result.d.ts.map +1 -1
- package/dist/results/line-range-hunks.d.ts +27 -0
- package/dist/results/line-range-hunks.d.ts.map +1 -0
- package/dist/results/merge-result.d.ts +13 -1
- package/dist/results/merge-result.d.ts.map +1 -1
- package/dist/results/pull-result.d.ts +11 -0
- package/dist/results/pull-result.d.ts.map +1 -1
- package/dist/results/push-result.d.ts +10 -0
- package/dist/results/push-result.d.ts.map +1 -1
- package/dist/results/rebase-result.d.ts +7 -0
- package/dist/results/rebase-result.d.ts.map +1 -1
- package/dist/results/revert-result.d.ts +6 -0
- package/dist/results/revert-result.d.ts.map +1 -1
- package/dist/results/stash-result.d.ts +5 -0
- package/dist/results/stash-result.d.ts.map +1 -1
- package/dist/results/status-result.d.ts +1 -1
- package/dist/results/status-result.d.ts.map +1 -1
- package/dist/results-ERo9vELd.js +49673 -0
- package/dist/transport-command.d.ts +93 -1
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/commands/add-command.ts +118 -0
- package/src/commands/add-patch/add-patch.ts +8 -0
- package/src/commands/add-patch/patch-backend.ts +24 -3
- package/src/commands/add-patch/patch-modes.ts +26 -2
- package/src/commands/add-patch/patch-session.ts +6 -0
- package/src/commands/am/am-command.ts +301 -12
- package/src/commands/apply/apply-command.ts +52 -9
- package/src/commands/apply/apply-parse.ts +10 -0
- package/src/commands/apply/index.ts +9 -1
- package/src/commands/archive/archive-command.ts +1148 -0
- package/src/commands/archive/archive-entry.ts +93 -0
- package/src/commands/archive/index.ts +7 -0
- package/src/commands/archive/remote-archive-command.ts +140 -0
- package/src/commands/archive/tar-archive.ts +207 -0
- package/src/commands/archive/tar-commit-id.ts +72 -0
- package/src/commands/archive/upload-archive-writer.ts +213 -0
- package/src/commands/archive/zip-archive.ts +317 -0
- package/src/commands/attributes-source.ts +26 -12
- package/src/commands/blame-command.ts +1551 -53
- package/src/commands/blame-ignore.ts +307 -0
- package/src/commands/bundle/bundle-create-command.ts +405 -0
- package/src/commands/bundle/bundle-format.ts +228 -0
- package/src/commands/bundle/bundle-list.ts +276 -0
- package/src/commands/bundle/bundle-read-commands.ts +157 -0
- package/src/commands/bundle/bundle-support.ts +85 -0
- package/src/commands/bundle/bundle-transport.ts +107 -0
- package/src/commands/bundle/bundle-uri-host.ts +204 -0
- package/src/commands/bundle/bundle-uri.ts +236 -0
- package/src/commands/bundle/bundle-verify.ts +152 -0
- package/src/commands/bundle/index.ts +14 -0
- package/src/commands/cat-file/batch-format.ts +193 -0
- package/src/commands/cat-file/cat-file-command.ts +857 -0
- package/src/commands/cat-file/index.ts +2 -0
- package/src/commands/check-attr-command.ts +333 -0
- package/src/commands/check-ignore-command.ts +261 -0
- package/src/commands/check-mailmap-command.ts +129 -0
- package/src/commands/check-ref-format-command.ts +129 -0
- package/src/commands/checkout-command.ts +131 -28
- package/src/commands/checkout-index-command.ts +568 -0
- package/src/commands/checkout-paths.ts +35 -0
- package/src/commands/cherry-command.ts +187 -0
- package/src/commands/cherry-pick-command.ts +63 -2
- package/src/commands/clean-command.ts +92 -12
- package/src/commands/clean-interactive.ts +522 -0
- package/src/commands/clone-command.ts +803 -50
- package/src/commands/commit-command.ts +202 -51
- package/src/commands/config-command.ts +9 -0
- package/src/commands/daemon-access-hook.ts +78 -0
- package/src/commands/default-branch.ts +99 -1
- package/src/commands/describe-command.ts +341 -254
- package/src/commands/diff-command.ts +1186 -99
- package/src/commands/diff-external.ts +131 -0
- package/src/commands/diff-plumbing/diff-pairs-command.ts +193 -0
- package/src/commands/diff-plumbing/diff-plumbing-command.ts +424 -0
- package/src/commands/diff-plumbing/index.ts +2 -0
- package/src/commands/diff-textconv.ts +5 -1
- package/src/commands/fast-export/fast-export-command.ts +911 -0
- package/src/commands/fast-export/fast-import-command.ts +1553 -0
- package/src/commands/fast-export/fast-stream-support.ts +162 -0
- package/src/commands/fast-export/index.ts +3 -0
- package/src/commands/fetch-command.ts +665 -14
- package/src/commands/fetch-multiple-command.ts +668 -0
- package/src/commands/format-patch-command.ts +189 -77
- package/src/commands/format-rev-command.ts +251 -0
- package/src/commands/fsck/fsck-command.ts +47 -20
- package/src/commands/fsck/fsck-msg-ids.ts +19 -3
- package/src/commands/fsck/fsck-pack.ts +2 -2
- package/src/commands/fsmonitor-refresh.ts +315 -0
- package/src/commands/gc-command.ts +10 -0
- package/src/commands/git-describe.ts +456 -217
- package/src/commands/git-hooks.ts +165 -9
- package/src/commands/git-paths.ts +136 -0
- package/src/commands/grep/grep-command.ts +38 -15
- package/src/commands/history-command.ts +617 -0
- package/src/commands/http-config.ts +139 -0
- package/src/commands/index-adder.ts +37 -3
- package/src/commands/index-host.ts +6 -1
- package/src/commands/index.ts +62 -0
- package/src/commands/init-command.ts +617 -49
- package/src/commands/last-modified-command.ts +804 -0
- package/src/commands/lfs/go-url.ts +370 -0
- package/src/commands/lfs/index.ts +2 -0
- package/src/commands/lfs/lfs-config.ts +738 -0
- package/src/commands/lfs/lfs-endpoint-command.ts +180 -0
- package/src/commands/line-log.ts +931 -0
- package/src/commands/local-transport.ts +252 -4
- package/src/commands/log-command.ts +1518 -182
- package/src/commands/log-graph.ts +6 -3
- package/src/commands/log-output.ts +228 -15
- package/src/commands/ls-files-command.ts +1177 -0
- package/src/commands/ls-remote-command.ts +6 -0
- package/src/commands/ls-tree-command.ts +684 -0
- package/src/commands/mailmap.ts +41 -5
- package/src/commands/maintenance-run-command.ts +949 -0
- package/src/commands/merge-command.ts +351 -47
- package/src/commands/merge-config.ts +23 -1
- package/src/commands/merge-drivers.ts +112 -20
- package/src/commands/merge-strategy-options.ts +224 -0
- package/src/commands/merge-support.ts +130 -26
- package/src/commands/merge-tree-command.ts +786 -0
- package/src/commands/message-cleanup.ts +1 -1
- package/src/commands/mktag-command.ts +149 -0
- package/src/commands/name-rev-command.ts +184 -0
- package/src/commands/name-rev.ts +700 -109
- package/src/commands/object-store/count-objects-command.ts +404 -0
- package/src/commands/object-store/index.ts +4 -0
- package/src/commands/object-store/objects-directory.ts +24 -0
- package/src/commands/object-store/prune-command.ts +129 -0
- package/src/commands/object-store/show-index-command.ts +151 -0
- package/src/commands/octopus-merge.ts +35 -11
- package/src/commands/ort-merge.ts +124 -23
- package/src/commands/ort-recursive.ts +40 -2
- package/src/commands/patch-id-command.ts +65 -0
- package/src/commands/patch-id.ts +327 -0
- package/src/commands/plumbing-command.ts +141 -0
- package/src/commands/plumbing-input.ts +87 -0
- package/src/commands/promisor-remote-reply.ts +276 -0
- package/src/commands/promisor-remote.ts +25 -2
- package/src/commands/pull-command.ts +720 -224
- package/src/commands/push-command.ts +440 -8
- package/src/commands/range-diff/index.ts +3 -0
- package/src/commands/range-diff/linear-assignment.ts +203 -0
- package/src/commands/range-diff/range-diff-command.ts +433 -0
- package/src/commands/range-diff/range-diff.ts +617 -0
- package/src/commands/read-tree-command.ts +74 -3
- package/src/commands/rebase-command.ts +647 -83
- package/src/commands/refs-command.ts +274 -0
- package/src/commands/remerge-diff.ts +241 -0
- package/src/commands/remote-command.ts +98 -10
- package/src/commands/remote-object-info-command.ts +109 -0
- package/src/commands/remote-show-command.ts +836 -0
- package/src/commands/remote-transport.ts +116 -1
- package/src/commands/repack-command.ts +383 -0
- package/src/commands/replace-command.ts +816 -0
- package/src/commands/replay-command.ts +674 -0
- package/src/commands/repo-command.ts +967 -0
- package/src/commands/request-pull-command.ts +356 -0
- package/src/commands/rerere-command.ts +179 -0
- package/src/commands/rerere.ts +925 -0
- package/src/commands/reset-command.ts +78 -3
- package/src/commands/restore-command.ts +15 -0
- package/src/commands/rev-filter/commit-grep.ts +7 -2
- package/src/commands/rev-list-command.ts +196 -11
- package/src/commands/rev-parse-command.ts +62 -4
- package/src/commands/revert-command.ts +62 -2
- package/src/commands/revision-range.ts +10 -3
- package/src/commands/revision-resolver.ts +44 -3
- package/src/commands/sequencer-pick.ts +370 -29
- package/src/commands/sequencer-support.ts +164 -2
- package/src/commands/serve-repository.ts +65 -0
- package/src/commands/session-id.ts +31 -0
- package/src/commands/shortlog-command.ts +354 -0
- package/src/commands/shortlog.ts +361 -0
- package/src/commands/show-branch-command.ts +981 -0
- package/src/commands/show-command.ts +3 -2
- package/src/commands/show-ref-command.ts +439 -0
- package/src/commands/signature-check.ts +37 -5
- package/src/commands/signing.ts +122 -16
- package/src/commands/stash-apply-command.ts +3 -0
- package/src/commands/stash-export-command.ts +397 -0
- package/src/commands/status-command.ts +158 -31
- package/src/commands/status-format.ts +1 -1
- package/src/commands/stripspace-command.ts +118 -0
- package/src/commands/submodule-add-command.ts +22 -1
- package/src/commands/submodule-auth.ts +61 -6
- package/src/commands/submodule-commands.ts +333 -5
- package/src/commands/submodule-fetch.ts +789 -0
- package/src/commands/submodule-model.ts +9 -1
- package/src/commands/submodule-unpack.ts +265 -0
- package/src/commands/submodule-update-command.ts +68 -5
- package/src/commands/subtree-shift.ts +215 -0
- package/src/commands/switch-command.ts +9 -0
- package/src/commands/textconv-cache.ts +143 -0
- package/src/commands/tree-restore.ts +20 -1
- package/src/commands/unpack-objects-command.ts +235 -0
- package/src/commands/update-index-command.ts +1016 -0
- package/src/commands/uri-protocols.ts +13 -0
- package/src/commands/url-parse-command.ts +67 -0
- package/src/commands/var-command.ts +219 -0
- package/src/commands/worktree-overwrite-checks.ts +5 -0
- package/src/errors/command-errors.ts +80 -0
- package/src/git-command.ts +218 -2
- package/src/git.ts +1033 -80
- package/src/guarded-transport-command.ts +176 -0
- package/src/index.ts +1 -0
- package/src/rename/detect-renames.ts +42 -8
- package/src/rename/diffcore-break.ts +166 -0
- package/src/rename/index.ts +1 -0
- package/src/results/blame-format.ts +268 -43
- package/src/results/cherry-pick-result.ts +6 -0
- package/src/results/clone-result.ts +6 -0
- package/src/results/diff-dirstat.ts +117 -0
- package/src/results/diff-entry.ts +24 -0
- package/src/results/diff-formatter.ts +8 -4
- package/src/results/diff-output.ts +239 -8
- package/src/results/diff-pickaxe.ts +1 -1
- package/src/results/fetch-result.ts +24 -1
- package/src/results/index.ts +2 -0
- package/src/results/init-result.ts +10 -1
- package/src/results/line-range-hunks.ts +126 -0
- package/src/results/merge-result.ts +14 -0
- package/src/results/pull-result.ts +7 -0
- package/src/results/push-result.ts +10 -0
- package/src/results/rebase-result.ts +7 -0
- package/src/results/revert-result.ts +6 -0
- package/src/results/stash-result.ts +6 -0
- package/src/results/status-result.ts +2 -2
- package/src/transport-command.ts +216 -4
- package/dist/fsck-DLRpbwTj.js +0 -13405
- package/dist/results-TB2IJ64h.js +0 -4700
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git cat-file` (builtin/cat-file.c): an object's type, size, existence or content, one
|
|
3
|
+
* object named on the command line (`-t`, `-s`, `-e`, `-p`, `<type> <object>`) or many read
|
|
4
|
+
* from stdin (`--batch`, `--batch-check`, `--batch-command`, `--batch-all-objects`).
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* // git cat-file -p HEAD:README.md
|
|
9
|
+
* await git.catFile().setMode("pretty").setObject("HEAD:README.md").setStdout(write).call();
|
|
10
|
+
* // printf 'HEAD\nHEAD:a.txt\n' | git cat-file --batch-check
|
|
11
|
+
* const { stdout } = await git.catFile().setBatch("info").setStdin("HEAD\nHEAD:a.txt\n").callOutput();
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
import { PlumbingCommand } from "../plumbing-command.js";
|
|
15
|
+
import { RemoteObjectInfoCommand } from "../remote-object-info-command.js";
|
|
16
|
+
/** `-t`, `-s`, `-e`, `-p`. */
|
|
17
|
+
export type CatFileMode = "type" | "size" | "exists" | "pretty";
|
|
18
|
+
/** `--batch` (contents), `--batch-check` (info), `--batch-command` (command). */
|
|
19
|
+
export type CatFileBatchMode = "contents" | "info" | "command";
|
|
20
|
+
/** What `--batch*` reads as stdin: text, bytes, or chunks read as they come. */
|
|
21
|
+
export type CatFileInput = string | Uint8Array | AsyncIterable<Uint8Array> | Iterable<Uint8Array>;
|
|
22
|
+
/**
|
|
23
|
+
* `git cat-file`. Stdout goes to {@link setStdout} as git writes it: a blob's content is
|
|
24
|
+
* streamed chunk by chunk as the store reads it (never held whole), and `--batch` input is
|
|
25
|
+
* read line by line as {@link setStdin}'s chunks arrive, so a caller can feed names while it
|
|
26
|
+
* reads the answers.
|
|
27
|
+
*
|
|
28
|
+
* Replace refs apply as in git (`OBJECT_INFO_LOOKUP_REPLACE`): the name printed is the one
|
|
29
|
+
* asked, the type, size and content the replacement's; `--batch-all-objects` reads none.
|
|
30
|
+
*
|
|
31
|
+
* `--batch-command`'s `remote-object-info <remote> <id>...` (2.56) asks the remote's v2
|
|
32
|
+
* `object-info` through {@link setRemoteObjectInfo}'s command: only the atoms the server
|
|
33
|
+
* answered expand (`%(objectname)` always), and an object it lacks prints `<id> missing`.
|
|
34
|
+
*
|
|
35
|
+
* Not implemented: `--textconv`, `--filters`, `--path`, `--follow-symlinks`, `--filter`
|
|
36
|
+
* (2.5x), and the `%(objectsize:disk)` and `%(deltabase)` atoms (refused: the stores report
|
|
37
|
+
* neither; git's `remote-object-info` would print them empty). `--unordered` lists objects in
|
|
38
|
+
* the store's listing order, not pack order. The promisor-remote warning of
|
|
39
|
+
* `--batch-all-objects` is not printed.
|
|
40
|
+
*/
|
|
41
|
+
export declare class CatFileCommand extends PlumbingCommand {
|
|
42
|
+
private mode?;
|
|
43
|
+
private type?;
|
|
44
|
+
private object?;
|
|
45
|
+
private batch?;
|
|
46
|
+
private format?;
|
|
47
|
+
private buffer?;
|
|
48
|
+
private nulInput;
|
|
49
|
+
private nulTerminated;
|
|
50
|
+
private allObjects;
|
|
51
|
+
private unordered;
|
|
52
|
+
private useMailmap;
|
|
53
|
+
private stdin?;
|
|
54
|
+
private compatibility;
|
|
55
|
+
/** `-t` (type), `-s` (size), `-e` (exists: exit 1 when absent), `-p` (pretty). */
|
|
56
|
+
setMode(mode: CatFileMode): this;
|
|
57
|
+
/** `<type> <object>`: the object peeled to this type (`blob`, `tree`, `commit`, `tag`). */
|
|
58
|
+
setType(type: string): this;
|
|
59
|
+
/** The object named on the command line. */
|
|
60
|
+
setObject(name: string): this;
|
|
61
|
+
/**
|
|
62
|
+
* `--batch[=<format>]` (`contents`), `--batch-check[=<format>]` (`info`),
|
|
63
|
+
* `--batch-command[=<format>]` (`command`).
|
|
64
|
+
*/
|
|
65
|
+
setBatch(mode: CatFileBatchMode, format?: string): this;
|
|
66
|
+
/** `--buffer` (`--batch-command`'s `flush` needs it; output itself is the same). */
|
|
67
|
+
setBuffer(buffer: boolean): this;
|
|
68
|
+
/** `-z`: stdin is NUL-terminated. */
|
|
69
|
+
setNulInput(nul: boolean): this;
|
|
70
|
+
/** `-Z`: stdin and stdout are NUL-terminated. */
|
|
71
|
+
setNulTerminated(nul: boolean): this;
|
|
72
|
+
/** `--batch-all-objects`: every object of the repository, stdin ignored. */
|
|
73
|
+
setBatchAllObjects(all: boolean): this;
|
|
74
|
+
/** `--unordered` (with `--batch-all-objects`): the store's order, not sorted by id. */
|
|
75
|
+
setUnordered(unordered: boolean): this;
|
|
76
|
+
/**
|
|
77
|
+
* The `remote-object-info` command a `--batch-command` line runs (default: one over the
|
|
78
|
+
* default transports; `Git.catFile()` gives the facade's): its credentials and transports.
|
|
79
|
+
*/
|
|
80
|
+
setRemoteObjectInfo(factory: () => RemoteObjectInfoCommand): this;
|
|
81
|
+
private remoteObjectInfoFactory?;
|
|
82
|
+
/** `--use-mailmap`: idents of commits and tags mapped through the mailmap. */
|
|
83
|
+
setUseMailmap(use: boolean): this;
|
|
84
|
+
/** The batch modes' stdin. */
|
|
85
|
+
setStdin(input: CatFileInput): this;
|
|
86
|
+
/** The git version whose behaviour to follow (default 2.56). */
|
|
87
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
88
|
+
protected writesNoObjects(): boolean;
|
|
89
|
+
protected run(): Promise<number>;
|
|
90
|
+
/** The option checks of cmd_cat_file that the setters can still break. */
|
|
91
|
+
private checkOptions;
|
|
92
|
+
private get objects();
|
|
93
|
+
/** `lookup_replace_object`: the object reads go to. */
|
|
94
|
+
private replaced;
|
|
95
|
+
/** `oid_object_info`: type and size from the headers, else from a read. */
|
|
96
|
+
private info;
|
|
97
|
+
/** The whole content of a (small) object. */
|
|
98
|
+
private read;
|
|
99
|
+
/** `stream_blob`: the blob's content written chunk by chunk. */
|
|
100
|
+
private streamBlob;
|
|
101
|
+
private mailmapped?;
|
|
102
|
+
/** `replace_idents_using_mailmap` (identity without `--use-mailmap`). */
|
|
103
|
+
private mapIdents;
|
|
104
|
+
/** cat_one_file */
|
|
105
|
+
private catOne;
|
|
106
|
+
/**
|
|
107
|
+
* cat_one_file for an id of the compatibility format: the object read through the map and
|
|
108
|
+
* converted (`odb_read_object_info_extended` with an id of the other format).
|
|
109
|
+
*/
|
|
110
|
+
private catOneCompat;
|
|
111
|
+
/** `-p` */
|
|
112
|
+
private pretty;
|
|
113
|
+
/** `git ls-tree <tree>`, as `-p` prints a tree. */
|
|
114
|
+
private listTree;
|
|
115
|
+
/** `<type> <object>` */
|
|
116
|
+
private catTyped;
|
|
117
|
+
/** `odb_read_object_peeled`: tags followed, a commit's tree for a tree. */
|
|
118
|
+
private peeled;
|
|
119
|
+
/** batch_objects */
|
|
120
|
+
private runBatch;
|
|
121
|
+
/** batch_objects_command: `contents`, `info`, `flush` (and 2.5x's `mailmap`). */
|
|
122
|
+
private batchCommands;
|
|
123
|
+
/**
|
|
124
|
+
* parse_cmd_remote_object_info: `<remote> <id>...` split as git's `split_cmdline` (quotes
|
|
125
|
+
* and backslashes), the ids checked before the remote is asked, then one line per id in
|
|
126
|
+
* order: `<id> missing` for an object the server lacks, else the format with only the
|
|
127
|
+
* atoms the server answered (the default format prints the type and size it got).
|
|
128
|
+
*/
|
|
129
|
+
private remoteObjectInfo;
|
|
130
|
+
/** batch_one_object */
|
|
131
|
+
private batchOne;
|
|
132
|
+
/** batch_object_write */
|
|
133
|
+
private batchObjectWrite;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=cat-file-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cat-file-command.d.ts","sourceRoot":"","sources":["../../../src/commands/cat-file/cat-file-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAaH,OAAO,EAAE,eAAe,EAAiB,MAAM,wBAAwB,CAAC;AACxE,OAAO,EACL,uBAAuB,EAGxB,MAAM,kCAAkC,CAAC;AAW1C,8BAA8B;AAC9B,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEhE,iFAAiF;AACjF,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAE/D,gFAAgF;AAChF,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAelG;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,cAAe,SAAQ,eAAe;IACjD,OAAO,CAAC,IAAI,CAAC,CAAc;IAC3B,OAAO,CAAC,IAAI,CAAC,CAAS;IACtB,OAAO,CAAC,MAAM,CAAC,CAAS;I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,GAAG,IAAI,CAIlC;IAED,gEAAgE;IAChE,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAED,UAAmB,eAAe,IAAI,OAAO,CAE5C;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAIrC;IAED,0EAA0E;IAC1E,OAAO,CAAC,YAAY;IA8BpB,OAAO,KAAK,OAAO,GAIlB;IAED,uDAAuD;YACzC,QAAQ;IActB,2EAA2E;YAC7D,IAAI;IAUlB,6CAA6C;YAC/B,IAAI;IAYlB,gEAAgE;YAClD,UAAU;IAMxB,OAAO,CAAC,UAAU,CAAC,CAA6C;IAEhE,yEAAyE;YAC3D,SAAS;IAQvB,mBAAmB;YACL,MAAM;IA8CpB;;;OAGG;YACW,YAAY;IAkE1B,WAAW;YACG,MAAM;IAiBpB,mDAAmD;YACrC,QAAQ;IAmBtB,wBAAwB;YACV,QAAQ;IAyBtB,2EAA2E;YAC7D,MAAM;IAepB,oBAAoB;YACN,QAAQ;IAgDtB,iFAAiF;YACnE,aAAa;IAgE3B;;;;;OAKG;YACW,gBAAgB;IAiE9B,uBAAuB;YACT,QAAQ;IAyBtB,yBAAyB;YACX,gBAAgB;CA2C/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/cat-file/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git check-attr` (builtin/check-attr.c): the attributes of paths as git's attribute
|
|
3
|
+
* stack gives them, from the worktree's `.gitattributes` files (then the index's), the
|
|
4
|
+
* index's alone (`--cached`), or a tree's (`--source`).
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* // git check-attr text eol -- a.txt
|
|
9
|
+
* await git.checkAttr().addAttribute("text").addAttribute("eol").addPath("a.txt").call();
|
|
10
|
+
* // { exitCode: 0, stdout: "a.txt: text: set\na.txt: eol: unspecified\n", stderr: "" }
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import { GitCommand } from "../git-command.js";
|
|
14
|
+
import type { PlumbingTextOutput } from "./check-ref-format-command.js";
|
|
15
|
+
/**
|
|
16
|
+
* An attributes file's message as git prints it: its `warning()`s (negative patterns, an
|
|
17
|
+
* overly long line or large file) prefixed, the others (an invalid name, a macro where none
|
|
18
|
+
* is allowed) as they are.
|
|
19
|
+
*/
|
|
20
|
+
export declare function attributeWarningLine(message: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* `git check-attr [--source <tree-ish>] [--cached] [-a | <attr>...] [--] <pathname>...` or
|
|
23
|
+
* with `--stdin` [-z]: one line per path and attribute, `<path>: <attr>: <value>` (the path
|
|
24
|
+
* as given, C-quoted as `core.quotePath` asks), the value `set`, `unset`, `unspecified` or
|
|
25
|
+
* the string. `--all` lists the attributes a path has, in the order git first read their
|
|
26
|
+
* names. git's argument errors give its usage (129); an invalid attribute name exits 255, a
|
|
27
|
+
* bad `--source` 128. Paths are read against {@link setCurrentDirectory}. git 2.5x computes
|
|
28
|
+
* `builtin_objectmode` (the path's mode in the worktree, or the index's with `--cached`).
|
|
29
|
+
*/
|
|
30
|
+
export declare class CheckAttrCommand extends GitCommand<PlumbingTextOutput> {
|
|
31
|
+
private readonly attributes;
|
|
32
|
+
private readonly paths;
|
|
33
|
+
private all;
|
|
34
|
+
private cached;
|
|
35
|
+
private stdin?;
|
|
36
|
+
private nul;
|
|
37
|
+
private source?;
|
|
38
|
+
private prefix;
|
|
39
|
+
private compatibility;
|
|
40
|
+
/** An attribute to report. */
|
|
41
|
+
addAttribute(name: string): this;
|
|
42
|
+
/** A path to check. */
|
|
43
|
+
addPath(path: string): this;
|
|
44
|
+
/** `--all`: every attribute set on each path. */
|
|
45
|
+
setAll(all: boolean): this;
|
|
46
|
+
/** `--cached`: the index's `.gitattributes` files only. */
|
|
47
|
+
setCached(cached: boolean): this;
|
|
48
|
+
/** `--stdin`: the paths of this input (git's stdin). */
|
|
49
|
+
setStdin(input: string | Uint8Array): this;
|
|
50
|
+
/** `-z`: NUL-terminated input records and output fields. */
|
|
51
|
+
setNulTerminated(nul: boolean): this;
|
|
52
|
+
/** `--source <tree-ish>`: the in-tree files of this tree-ish. */
|
|
53
|
+
setSource(treeish: string | undefined): this;
|
|
54
|
+
/** The directory git runs in, from the top of the worktree (paths are relative to it). */
|
|
55
|
+
setCurrentDirectory(dir: string): this;
|
|
56
|
+
/** The git version whose behaviour to follow (default 2.56). */
|
|
57
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
58
|
+
call(): Promise<PlumbingTextOutput>;
|
|
59
|
+
/** The worktree; undefined in a bare repository. */
|
|
60
|
+
private worktreeIfAny;
|
|
61
|
+
/** Where the attributes come from: the content filter's stack, or the bare resolver's. */
|
|
62
|
+
private reader;
|
|
63
|
+
/** attr.c's `builtin_object_mode_attr`: the mode as `%06o`, or unspecified. */
|
|
64
|
+
private objectMode;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=check-attr-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-attr-command.d.ts","sourceRoot":"","sources":["../../src/commands/check-attr-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAoBxE;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAI5D;AAQD;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,SAAQ,UAAU,CAAC,kBAAkB,CAAC;IAClE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAC3C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,KAAK,CAAC,CAAa;IAC3B,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,aAAa,CAA2B;IAEhD,8BAA8B;IAC9B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI/B;IAED,uBAAuB;IACvB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED,iDAAiD;IACjD,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAIzB;IAED,2DAA2D;IAC3D,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED,wDAAwD;IACxD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAIzC;IAED,4DAA4D;IAC5D,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAInC;IAED,iEAAiE;IACjE,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAI3C;IAED,0FAA0F;IAC1F,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAIrC;IAED,gEAAgE;IAChE,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAEK,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAgHxC;IAED,oDAAoD;IACpD,OAAO,CAAC,aAAa;IAIrB,0FAA0F;IAC1F,OAAO,CAAC,MAAM;IAiDd,+EAA+E;YACjE,UAAU;CAkBzB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git check-ignore` (builtin/check-ignore.c): which paths the ignore rules exclude, and with
|
|
3
|
+
* `-v` the pattern that decides (`<source>:<line>:<pattern>\t<path>`).
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git check-ignore -v build/out.o
|
|
8
|
+
* await git.checkIgnore().setVerbose(true).addPath("build/out.o").call();
|
|
9
|
+
* // { exitCode: 0, stdout: ".gitignore:1:build/\tbuild/out.o\n", stderr: "" }
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
import { GitCommand } from "../git-command.js";
|
|
13
|
+
import type { PlumbingTextOutput } from "./check-ref-format-command.js";
|
|
14
|
+
/**
|
|
15
|
+
* `git check-ignore [-q] [-v [-n]] [--no-index] (<pathname>... | --stdin [-z])`: each path the
|
|
16
|
+
* ignore rules exclude is printed (as given, C-quoted as `core.quotePath` asks); with `-v`
|
|
17
|
+
* the deciding pattern before it, negated patterns too, and with `-n` the paths no pattern
|
|
18
|
+
* matches (`::\t<path>`). A path the index holds (or a directory holding one) is never
|
|
19
|
+
* checked, unless `--no-index`. Exit status 0 when a path was printed with a pattern, 1 when
|
|
20
|
+
* none, 128 for git's deaths (its argument errors, a path beyond a symbolic link or inside a
|
|
21
|
+
* submodule, a bare repository). Paths are read against {@link setCurrentDirectory}.
|
|
22
|
+
*/
|
|
23
|
+
export declare class CheckIgnoreCommand extends GitCommand<PlumbingTextOutput> {
|
|
24
|
+
private readonly paths;
|
|
25
|
+
private stdin?;
|
|
26
|
+
private nul;
|
|
27
|
+
private quiet;
|
|
28
|
+
private verbose;
|
|
29
|
+
private nonMatching;
|
|
30
|
+
private noIndex;
|
|
31
|
+
private prefix;
|
|
32
|
+
/** A path to check. */
|
|
33
|
+
addPath(path: string): this;
|
|
34
|
+
/** `--stdin`: the paths of this input (git's stdin). */
|
|
35
|
+
setStdin(input: string | Uint8Array): this;
|
|
36
|
+
/** `-z`: NUL-terminated input and output records. */
|
|
37
|
+
setNulTerminated(nul: boolean): this;
|
|
38
|
+
/** `-q`: print nothing, only the exit status. */
|
|
39
|
+
setQuiet(quiet: boolean): this;
|
|
40
|
+
/** `-v`: the deciding pattern too. */
|
|
41
|
+
setVerbose(verbose: boolean): this;
|
|
42
|
+
/** `-n` (with `-v`): the paths no pattern matches too. */
|
|
43
|
+
setNonMatching(nonMatching: boolean): this;
|
|
44
|
+
/** `--no-index`: paths the index holds are checked too. */
|
|
45
|
+
setNoIndex(noIndex: boolean): this;
|
|
46
|
+
/** The directory git runs in, from the top of the worktree (paths are relative to it). */
|
|
47
|
+
setCurrentDirectory(dir: string): this;
|
|
48
|
+
call(): Promise<PlumbingTextOutput>;
|
|
49
|
+
/** One output record (`output_pattern`). */
|
|
50
|
+
private line;
|
|
51
|
+
/** The index's entries git asks (`PS_HEED_SKIP_WORKTREE`: skip-worktree ones left out). */
|
|
52
|
+
private indexEntries;
|
|
53
|
+
/** `find_pathspecs_matching_against_index`: whether the element names an index entry. */
|
|
54
|
+
private seenInIndex;
|
|
55
|
+
/** How git names the exclude files in `-v` lines. */
|
|
56
|
+
private sourceNames;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=check-ignore-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-ignore-command.d.ts","sourceRoot":"","sources":["../../src/commands/check-ignore-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAYxE;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,UAAU,CAAC,kBAAkB,CAAC;IACpE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,KAAK,CAAC,CAAa;IAC3B,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAM;IAEpB,uBAAuB;IACvB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED,wDAAwD;IACxD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAIzC;IAED,qDAAqD;IACrD,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAInC;IAED,iDAAiD;IACjD,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED,sCAAsC;IACtC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED,0DAA0D;IAC1D,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAIzC;IAED,2DAA2D;IAC3D,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED,0FAA0F;IAC1F,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAIrC;IAEK,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAkFxC;IAED,4CAA4C;IAC5C,OAAO,CAAC,IAAI;IA6BZ,2FAA2F;YAC7E,YAAY;IAS1B,yFAAyF;IACzF,OAAO,CAAC,WAAW;IAcnB,qDAAqD;YACvC,WAAW;CAiB1B"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git check-mailmap` (builtin/check-mailmap.c): each contact as the repository's mailmap
|
|
3
|
+
* maps it (`.mailmap`, `mailmap.blob`, `mailmap.file`, plus `--mailmap-blob` and
|
|
4
|
+
* `--mailmap-file`).
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* // git check-mailmap "nick1 <bugs@company.xx>"
|
|
9
|
+
* await git.checkMailmap().addContact("nick1 <bugs@company.xx>").call();
|
|
10
|
+
* // "Some Dude <some@dude.xx>\n"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import { GitCommand } from "../git-command.js";
|
|
14
|
+
/**
|
|
15
|
+
* The contacts of `git check-mailmap <contact>...` (and `--stdin`'s lines after them), one
|
|
16
|
+
* output line each: `Name <email>`, or `<email>` when the result has no name.
|
|
17
|
+
*
|
|
18
|
+
* git 2.43 (`setCompatibility("2.43")`) takes only `Name <email>` contacts (`fatal: unable
|
|
19
|
+
* to parse contact: <contact>`) and has no `--mailmap-file`/`--mailmap-blob`; 2.47 and later
|
|
20
|
+
* also map a bare address. Where git dies, the error carries what was printed before
|
|
21
|
+
* ({@link getOutput}).
|
|
22
|
+
*/
|
|
23
|
+
export declare class CheckMailmapCommand extends GitCommand<string> {
|
|
24
|
+
private readonly contacts;
|
|
25
|
+
private stdin?;
|
|
26
|
+
private mailmapFile?;
|
|
27
|
+
private mailmapBlob?;
|
|
28
|
+
private compatibility;
|
|
29
|
+
private output;
|
|
30
|
+
private readonly errors;
|
|
31
|
+
/** A contact argument. */
|
|
32
|
+
addContact(contact: string): this;
|
|
33
|
+
/** `--stdin`: these lines (git's stdin) checked after the arguments. */
|
|
34
|
+
setStdin(text: string): this;
|
|
35
|
+
/** `--mailmap-file=<file>` (git 2.47+): more entries from this host file. */
|
|
36
|
+
setMailmapFile(path: string): this;
|
|
37
|
+
/** `--mailmap-blob=<blob>` (git 2.47+): more entries from this blob. */
|
|
38
|
+
setMailmapBlob(name: string): this;
|
|
39
|
+
/** The git version whose behaviour to follow (default 2.56). */
|
|
40
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
41
|
+
/** What was printed on stdout (also after a death). */
|
|
42
|
+
getOutput(): string;
|
|
43
|
+
/** git's `error:` lines (a mailmap blob that is no blob). */
|
|
44
|
+
getErrors(): string[];
|
|
45
|
+
/** The output. */
|
|
46
|
+
call(): Promise<string>;
|
|
47
|
+
private check;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=check-mailmap-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-mailmap-command.d.ts","sourceRoot":"","sources":["../../src/commands/check-mailmap-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C;;;;;;;;GAQG;AACH,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,MAAM,CAAC;IACzD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC,0BAA0B;IAC1B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI3B;IAED,6EAA6E;IAC7E,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIjC;IAED,wEAAwE;IACxE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIjC;IAED,gEAAgE;IAChE,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAED,uDAAuD;IACvD,SAAS,IAAI,MAAM,CAElB;IAED,6DAA6D;IAC7D,SAAS,IAAI,MAAM,EAAE,CAEpB;IAED,kBAAkB;IACZ,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAiC5B;IAED,OAAO,CAAC,KAAK;CASd"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git check-ref-format` (builtin/check-ref-format.c): whether a name is a valid ref name,
|
|
3
|
+
* refs.c's `check_refname_format`, and `--branch`'s branch name as `check_branch_ref` reads it.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git check-ref-format --normalize refs///heads/foo
|
|
8
|
+
* await git.checkRefFormat().setNormalize(true).setRefName("refs///heads/foo").call();
|
|
9
|
+
* // { exitCode: 0, stdout: "refs/heads/foo\n", stderr: "" }
|
|
10
|
+
* checkRefFormat("refs/heads/a..b"); // undefined: invalid
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import { GitCommand } from "../git-command.js";
|
|
14
|
+
/** What a plumbing command printed and its exit status, as git's process ends. */
|
|
15
|
+
export interface PlumbingTextOutput {
|
|
16
|
+
exitCode: number;
|
|
17
|
+
stdout: string;
|
|
18
|
+
stderr: string;
|
|
19
|
+
}
|
|
20
|
+
/** The options of `git check-ref-format` without `--branch`. */
|
|
21
|
+
export interface CheckRefFormatOptions {
|
|
22
|
+
/** `--normalize` (`--print`): leading and repeated slashes dropped first */
|
|
23
|
+
normalize?: boolean;
|
|
24
|
+
/** `--allow-onelevel` */
|
|
25
|
+
allowOneLevel?: boolean;
|
|
26
|
+
/** `--refspec-pattern`: one `*` allowed */
|
|
27
|
+
refspecPattern?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* `git check-ref-format [--normalize] [--allow-onelevel] [--refspec-pattern] <refname>`
|
|
31
|
+
* without a repository: the name as git checked it (normalized with `normalize`), or
|
|
32
|
+
* undefined when it is invalid.
|
|
33
|
+
*/
|
|
34
|
+
export declare function checkRefFormat(name: string, options?: CheckRefFormatOptions): string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* `git check-ref-format`: {@link setRefName} with the options, exit status 0 for a valid
|
|
37
|
+
* name (printed under `--normalize`), 1 for an invalid one; or {@link setBranch}
|
|
38
|
+
* (`--branch <branchname-shorthand>`): `@{-N}` expanded to the branch (or commit) it stands
|
|
39
|
+
* for, then checked as `refs/heads/<name>` and printed, or git's
|
|
40
|
+
* `fatal: '<name>' is not a valid branch name` (exit 128).
|
|
41
|
+
*/
|
|
42
|
+
export declare class CheckRefFormatCommand extends GitCommand<PlumbingTextOutput> {
|
|
43
|
+
private refName?;
|
|
44
|
+
private branch?;
|
|
45
|
+
private readonly options;
|
|
46
|
+
/** The name to check. */
|
|
47
|
+
setRefName(name: string): this;
|
|
48
|
+
/** `--branch <name>`: check a branch name shorthand instead. */
|
|
49
|
+
setBranch(name: string): this;
|
|
50
|
+
/** `--normalize` / `--print`. */
|
|
51
|
+
setNormalize(normalize: boolean): this;
|
|
52
|
+
/** `--allow-onelevel` / `--no-allow-onelevel`. */
|
|
53
|
+
setAllowOneLevel(allow: boolean): this;
|
|
54
|
+
/** `--refspec-pattern`. */
|
|
55
|
+
setRefspecPattern(pattern: boolean): this;
|
|
56
|
+
call(): Promise<PlumbingTextOutput>;
|
|
57
|
+
/** check_branch_ref: copy_branchname (INTERPRET_BRANCH_LOCAL), then the rules. */
|
|
58
|
+
private checkBranch;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=check-ref-format-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-ref-format-command.d.ts","sourceRoot":"","sources":["../../src/commands/check-ref-format-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,kFAAkF;AAClF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,gEAAgE;AAChE,MAAM,WAAW,qBAAqB;IACpC,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yBAAyB;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,qBAA0B,GAClC,MAAM,GAAG,SAAS,CAOpB;AAED;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,UAAU,CAAC,kBAAkB,CAAC;IACvE,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IAErD,yBAAyB;IACzB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI7B;IAED,gEAAgE;IAChE,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI5B;IAED,iCAAiC;IACjC,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAIrC;IAED,kDAAkD;IAClD,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAIrC;IAED,2BAA2B;IAC3B,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIxC;IAEK,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAOxC;IAED,kFAAkF;YACpE,WAAW;CAmB1B"}
|
|
@@ -141,6 +141,7 @@ export declare class CheckoutCommand extends GitCommand<CheckoutResult> {
|
|
|
141
141
|
private conflictStyle?;
|
|
142
142
|
private quiet;
|
|
143
143
|
private countCheckoutPaths;
|
|
144
|
+
private recurseSubmodules?;
|
|
144
145
|
/** `--pathspec-from-file` */
|
|
145
146
|
private readonly pathspecFile;
|
|
146
147
|
/** Set by a `merge` checkout the two-way merge refused: what the autostash needs */
|
|
@@ -372,6 +373,12 @@ export declare class CheckoutCommand extends GitCommand<CheckoutResult> {
|
|
|
372
373
|
* {@link setMerge}, the unmerged paths re-created with this conflict style.
|
|
373
374
|
*/
|
|
374
375
|
setConflictStyle(style: ConflictStyle): this;
|
|
376
|
+
/**
|
|
377
|
+
* `--[no-]recurse-submodules` (default `submodule.recurse`): the active submodules' worktrees
|
|
378
|
+
* are switched with the superproject's, their HEADs detached at the recorded commits, and
|
|
379
|
+
* local changes in them refuse the switch as git's unpack-trees refuses them.
|
|
380
|
+
*/
|
|
381
|
+
setRecurseSubmodules(recurse: boolean): this;
|
|
375
382
|
/** `-q`: a path checkout reports no counts and no "path is unmerged" warnings. */
|
|
376
383
|
setQuiet(quiet: boolean): this;
|
|
377
384
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-command.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAKL,KAAK,GAAG,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"checkout-command.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAKL,KAAK,GAAG,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAA+B,MAAM,wBAAwB,CAAC;AAUzF,OAAO,EAML,eAAe,EAGf,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAInB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAKL,SAAS,EAEV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,qBAAqB,CAAC;AAgDjF;;GAEG;AACH,oBAAY,aAAa;IACvB,4BAA4B;IAC5B,IAAI,IAAI;IACR,kCAAkC;IAClC,IAAI,IAAI;IACR,mCAAmC;IACnC,MAAM,IAAI;CACX;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,sCAAsC;IACtC,EAAE,OAAO;IACT,6BAA6B;IAC7B,SAAS,cAAc;IACvB,qCAAqC;IACrC,UAAU,eAAe;IACzB,6BAA6B;IAC7B,SAA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,iBAAiB;IAO/B;;;;OAIG;YACW,eAAe;IAa7B;;;;;OAKG;YACW,UAAU;IAqGxB;;;;OAIG;YACW,kBAAkB;IAkBhC;;OAEG;YACW,oBAAoB;CAenC;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,cAAc,CAWhF;AAKD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,GAAG,kBAAkB,CAM9F"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git checkout-index` (builtin/checkout-index.c over entry.c's `checkout_entry`): index
|
|
3
|
+
* entries written into the worktree, under a prefix, or into temporary files.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git checkout-index -f -u -a
|
|
8
|
+
* await git.checkoutIndex().setAll(true).setForce(true).setUpdateIndex(true).call();
|
|
9
|
+
*
|
|
10
|
+
* // git checkout-index --prefix=export/ -a
|
|
11
|
+
* await git.checkoutIndex().setAll(true).setPrefix("export/").call();
|
|
12
|
+
*
|
|
13
|
+
* // git checkout-index --stage=all --temp -- path1
|
|
14
|
+
* const { output } = await git.checkoutIndex().setStage("all").addPath("path1").call();
|
|
15
|
+
* // ".merge_file_a1b2c3 .merge_file_d4e5f6 .merge_file_g7h8i9\tpath1\n"
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
import { GitCommand } from "../git-command.js";
|
|
19
|
+
/** Result of {@link CheckoutIndexCommand}. */
|
|
20
|
+
export interface CheckoutIndexResult {
|
|
21
|
+
/** git's stdout: `--temp`'s `<temporary file>\t<path>` records */
|
|
22
|
+
output: string;
|
|
23
|
+
/** git's stderr: the entries it could not check out (`... already exists, no checkout`) */
|
|
24
|
+
errors: string;
|
|
25
|
+
/** git's exit status: 1 when an entry could not be checked out */
|
|
26
|
+
exitCode: 0 | 1;
|
|
27
|
+
/** The temporary files written (`--temp`), by path then stage */
|
|
28
|
+
tempFiles: Array<{
|
|
29
|
+
path: string;
|
|
30
|
+
stage: number;
|
|
31
|
+
file: string;
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Writes index entries out as `git checkout-index` does.
|
|
36
|
+
*
|
|
37
|
+
* Named paths ({@link addPath}, then {@link setStdin}'s) are checked out first, then with
|
|
38
|
+
* {@link setAll} every entry (skip-worktree ones only with
|
|
39
|
+
* {@link setIgnoreSkipWorktreeBits}). A file already there and changed against its entry is
|
|
40
|
+
* left alone with `<path> already exists, no checkout` unless {@link setForce}; one that
|
|
41
|
+
* matches its entry's stat is skipped silently. {@link setStage} picks a conflict stage, or
|
|
42
|
+
* all three (`all`, which implies {@link setTemp}): each is written to a temporary file named
|
|
43
|
+
* as git's `mkstemp` names it (`.merge_file_XXXXXX`, `.merge_link_XXXXXX`) and reported on
|
|
44
|
+
* stdout. {@link setUpdateIndex} records the new files' stat data in the index (not with a
|
|
45
|
+
* prefix or temporary files). git's deaths are thrown as {@link CheckoutIndexFailedError};
|
|
46
|
+
* entries that could not be written give exit status 1, the index then left unwritten.
|
|
47
|
+
*/
|
|
48
|
+
export declare class CheckoutIndexCommand extends GitCommand<CheckoutIndexResult> {
|
|
49
|
+
private all;
|
|
50
|
+
private force;
|
|
51
|
+
private quiet;
|
|
52
|
+
private noCreate;
|
|
53
|
+
private updateIndex;
|
|
54
|
+
private ignoreSkipWorktree;
|
|
55
|
+
private temp;
|
|
56
|
+
private prefix;
|
|
57
|
+
private stage;
|
|
58
|
+
private readonly paths;
|
|
59
|
+
private stdin?;
|
|
60
|
+
private nul;
|
|
61
|
+
private compatibility;
|
|
62
|
+
/** `-a`: every entry of the index. */
|
|
63
|
+
setAll(all?: boolean): this;
|
|
64
|
+
/** `-f`: files already there are overwritten. */
|
|
65
|
+
setForce(force?: boolean): this;
|
|
66
|
+
/** `-q`: no message for files already there or paths not in the index. */
|
|
67
|
+
setQuiet(quiet?: boolean): this;
|
|
68
|
+
/** `-n`: only files already there are checked out again. */
|
|
69
|
+
setNoCreate(noCreate?: boolean): this;
|
|
70
|
+
/** `-u`: the stat data of the files written recorded in the index. */
|
|
71
|
+
setUpdateIndex(update?: boolean): this;
|
|
72
|
+
/** `--ignore-skip-worktree-bits`: skip-worktree entries checked out too. */
|
|
73
|
+
setIgnoreSkipWorktreeBits(ignore?: boolean): this;
|
|
74
|
+
/** `--[no-]temp`: entries written to temporary files (default with `--stage=all`). */
|
|
75
|
+
setTemp(temp: boolean): this;
|
|
76
|
+
/** `--prefix=<string>`: each file written at `<string><path>`. */
|
|
77
|
+
setPrefix(prefix: string): this;
|
|
78
|
+
/** `--stage=(1|2|3|all)`: a conflict stage, or every stage, instead of stage 0. */
|
|
79
|
+
setStage(stage: 1 | 2 | 3 | "all"): this;
|
|
80
|
+
/** A path to check out (git's `<file>` argument), relative to the worktree top. */
|
|
81
|
+
addPath(path: string): this;
|
|
82
|
+
/** `--stdin`: paths read from `input`, one per line (C-quoted ones unquoted). */
|
|
83
|
+
setStdin(input: string | Uint8Array): this;
|
|
84
|
+
/** `-z`: {@link setStdin}'s paths are NUL-separated. */
|
|
85
|
+
setNulTerminated(nul?: boolean): this;
|
|
86
|
+
/**
|
|
87
|
+
* The git version followed (default 2.56): 2.43 gives no `advice.sparseIndexExpanded`
|
|
88
|
+
* hint when a path inside a sparse directory expands a sparse index.
|
|
89
|
+
*/
|
|
90
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
91
|
+
call(): Promise<CheckoutIndexResult>;
|
|
92
|
+
/** The named paths, then `--stdin`'s, then `-a`'s entries; true when one failed. */
|
|
93
|
+
private checkoutAll;
|
|
94
|
+
private entryList;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=checkout-index-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout-index-command.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-index-command.ts"],"names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AM,UAAO,GAAG,IAAI,CAIlC;IAED,4EAA4E;IAC5E,yBAAyB,CAAC,MAAM,UAAO,GAAG,IAAI,CAI7C;IAED,sFAAsF;IACtF,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED,kEAAkE;IAClE,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED,mFAAmF;IACnF,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,IAAI,CAIvC;IAED,mFAAmF;IACnF,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED,iFAAiF;IACjF,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAIzC;IAED,wDAAwD;IACxD,gBAAgB,CAAC,GAAG,UAAO,GAAG,IAAI,CAIjC;IAED;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAEK,IAAI,IAAI,OAAO,CAAC,mBAAmB,CAAC,CA2EzC;IAED,oFAAoF;YACtE,WAAW;YAkBX,SAAS;CAOxB"}
|
|
@@ -50,6 +50,8 @@ export interface CheckoutPathsOptions {
|
|
|
50
50
|
quiet?: boolean;
|
|
51
51
|
/** `count_checkout_paths`: "Updated N paths from ..." (checkout without `--`) */
|
|
52
52
|
countCheckoutPaths?: boolean;
|
|
53
|
+
/** `--recurse-submodules` given (default `submodule.recurse`) */
|
|
54
|
+
recurseSubmodules?: boolean;
|
|
53
55
|
}
|
|
54
56
|
/** What {@link checkoutPaths} did. */
|
|
55
57
|
export interface CheckoutPathsOutcome {
|
|
@@ -98,6 +100,8 @@ export interface PathCheckoutRequest {
|
|
|
98
100
|
ignoreUnmerged?: boolean;
|
|
99
101
|
quiet?: boolean;
|
|
100
102
|
countCheckoutPaths?: boolean;
|
|
103
|
+
/** `--[no-]recurse-submodules`: the matched submodules' worktrees checked out too */
|
|
104
|
+
recurseSubmodules?: boolean;
|
|
101
105
|
/** The global pathspec magic (`GIT_LITERAL_PATHSPECS`, ...) */
|
|
102
106
|
globalMagic?: GlobalPathspecMagic;
|
|
103
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-paths.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,KAAK,EAAY,KAAK,QAAQ,EAAsB,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAIL,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAOvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMtD,OAAO,EAEL,KAAK,mBAAmB,EAGxB,KAAK,YAAY,EAGlB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"checkout-paths.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,KAAK,EAAY,KAAK,QAAQ,EAAsB,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAIL,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAOvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMtD,OAAO,EAEL,KAAK,mBAAmB,EAGxB,KAAK,YAAY,EAGlB,MAAM,eAAe,CAAC;AASvB,mDAAmD;AACnD,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,YAAY,CAA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