@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,193 @@
|
|
|
1
|
+
import { GuardedTransportCommand } from "../guarded-transport-command.js";
|
|
2
|
+
import { RemoteConfigStore } from "../remote-config/index.js";
|
|
3
|
+
import { type FetchResult } from "../results/index.js";
|
|
4
|
+
import { TagOption } from "./fetch-command.js";
|
|
5
|
+
import type { FetchRecurseSubmodules } from "./submodule-fetch.js";
|
|
6
|
+
/** One fetch of a {@link FetchMultipleCommand}: git's child `git fetch <remote>`. */
|
|
7
|
+
export interface FetchMultipleEntry {
|
|
8
|
+
remote: string;
|
|
9
|
+
/** The fetch's result, when it did not fail */
|
|
10
|
+
result?: FetchResult;
|
|
11
|
+
/** Why it failed (git's child died) */
|
|
12
|
+
error?: Error;
|
|
13
|
+
/** A remote group nested in a group: the child's own fetch of its remotes */
|
|
14
|
+
nested?: FetchMultipleResult;
|
|
15
|
+
/** The child's exit status: 0, 1 for a refused ref or an error it reported, else its death's */
|
|
16
|
+
exitCode: number;
|
|
17
|
+
}
|
|
18
|
+
/** What {@link FetchMultipleCommand} did. */
|
|
19
|
+
export interface FetchMultipleResult {
|
|
20
|
+
/** The remotes fetched, in order */
|
|
21
|
+
remotes: string[];
|
|
22
|
+
fetches: FetchMultipleEntry[];
|
|
23
|
+
/** git's stdout: `Fetching <remote>` per remote (and `--porcelain`'s lines) */
|
|
24
|
+
stdout: string;
|
|
25
|
+
/**
|
|
26
|
+
* git's stderr: each fetch's lines ({@link FetchResult.display}, its messages and errors,
|
|
27
|
+
* or the error it died of), then git's `error: could not fetch <remote>` (one after
|
|
28
|
+
* another) or `could not fetch '<remote>' (exit code: <n>)` (in parallel) for each failure
|
|
29
|
+
*/
|
|
30
|
+
stderr: string;
|
|
31
|
+
/** git's exit status: 0, or 1 when a fetch failed */
|
|
32
|
+
exitCode: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Fetch several remotes: `git fetch --all`, `git fetch --multiple <remote|group>...` and
|
|
36
|
+
* `git fetch <group>`.
|
|
37
|
+
*
|
|
38
|
+
* As builtin/fetch.c: the remotes are every configured one without
|
|
39
|
+
* `remote.<name>.skipDefaultUpdate` (or `skipFetchAll`) for {@link setAll}, else each name
|
|
40
|
+
* given expanded as a remote group (`remotes.<group>`, names separated by white space) or a
|
|
41
|
+
* configured remote (`no such remote or remote group` otherwise); repeats in a row are
|
|
42
|
+
* dropped. `FETCH_HEAD` is truncated once, then each remote is fetched as git's child
|
|
43
|
+
* `git fetch --append --no-auto-gc --no-write-commit-graph <options> <remote>` (its reflog
|
|
44
|
+
* lines say so), `Fetching <remote>` printed before each. git runs the children in parallel
|
|
45
|
+
* under `-j`/`fetch.parallel`; ours runs them one after another and prints what git prints
|
|
46
|
+
* then (the children's output in start order, `could not fetch '<remote>' (exit code: <n>)`
|
|
47
|
+
* for a failure). `--all` with one remote, and a single name that is no group, fetch that
|
|
48
|
+
* remote directly, as `git fetch <remote>`.
|
|
49
|
+
*
|
|
50
|
+
* A failed fetch does not stop the others: it is reported in the result (`exitCode` 1), as
|
|
51
|
+
* git exits 1.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* const { stdout, stderr, exitCode } = await git.fetchMultiple().setAll(true).call();
|
|
56
|
+
* await git.fetchMultiple().setRemotes("upstream", "mirrors").setPrune(true).call();
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare class FetchMultipleCommand extends GuardedTransportCommand<FetchMultipleResult> {
|
|
60
|
+
private groupDepth;
|
|
61
|
+
private all?;
|
|
62
|
+
private multiple;
|
|
63
|
+
private names;
|
|
64
|
+
private jobs?;
|
|
65
|
+
private prune?;
|
|
66
|
+
private pruneTags?;
|
|
67
|
+
private tagOption?;
|
|
68
|
+
private recurseSubmodules?;
|
|
69
|
+
private dryRun;
|
|
70
|
+
private force;
|
|
71
|
+
private updateHeadOk;
|
|
72
|
+
private verbose;
|
|
73
|
+
private porcelain;
|
|
74
|
+
private writeFetchHead;
|
|
75
|
+
private append;
|
|
76
|
+
/** GIT_REFLOG_ACTION in the environment (a pull's): every fetch's reflog action */
|
|
77
|
+
private envReflogAction?;
|
|
78
|
+
/**
|
|
79
|
+
* Fetch every configured remote (`--all`; false is `--no-all`); left unset, `fetch.all`
|
|
80
|
+
* (git 2.44+) decides when no remote is named.
|
|
81
|
+
*/
|
|
82
|
+
setAll(all: boolean): this;
|
|
83
|
+
/** The remotes and remote groups to fetch. */
|
|
84
|
+
setRemotes(...names: string[]): this;
|
|
85
|
+
/**
|
|
86
|
+
* Whether every name is a remote or group (`--multiple`, the default); false reads one
|
|
87
|
+
* name as `git fetch <name>` does: a group of several remotes is fetched as with
|
|
88
|
+
* `--multiple`, anything else as one remote.
|
|
89
|
+
*/
|
|
90
|
+
setMultiple(multiple: boolean): this;
|
|
91
|
+
/** `-j <n>`: how many fetches git runs at once (0: one per CPU). */
|
|
92
|
+
setJobs(jobs: number): this;
|
|
93
|
+
/** `--prune` (true) or `--no-prune` (false), passed to each fetch. */
|
|
94
|
+
setPrune(prune: boolean | undefined): this;
|
|
95
|
+
/** `--prune-tags` (true) or `--no-prune-tags` (false), passed to each fetch. */
|
|
96
|
+
setPruneTags(pruneTags: boolean | undefined): this;
|
|
97
|
+
/** `--tags` or `--no-tags`, passed to each fetch. */
|
|
98
|
+
setTagOpt(option: TagOption): this;
|
|
99
|
+
/** `--dry-run`: nothing written, FETCH_HEAD included. */
|
|
100
|
+
setDryRun(dryRun: boolean): this;
|
|
101
|
+
/**
|
|
102
|
+
* `--[no-]recurse-submodules[=<mode>]`, passed to each fetch (`FetchCommand.setRecurseSubmodules`);
|
|
103
|
+
* unset, each fetch reads the configuration and recurses on demand.
|
|
104
|
+
*/
|
|
105
|
+
setRecurseSubmodules(mode: boolean | FetchRecurseSubmodules): this;
|
|
106
|
+
/** `--force`, passed to each fetch. */
|
|
107
|
+
setForceUpdate(force: boolean): this;
|
|
108
|
+
/** `--update-head-ok`, passed to each fetch. */
|
|
109
|
+
setUpdateHeadOk(ok: boolean): this;
|
|
110
|
+
/** `-v`, passed to each fetch. */
|
|
111
|
+
setVerbose(verbose: boolean): this;
|
|
112
|
+
/** `--porcelain`: no `Fetching` lines, each fetch's porcelain lines on stdout. */
|
|
113
|
+
setPorcelain(porcelain: boolean): this;
|
|
114
|
+
/** `--no-write-fetch-head` (false). */
|
|
115
|
+
setWriteFetchHead(write: boolean): this;
|
|
116
|
+
/** `--append`: FETCH_HEAD is not truncated first. */
|
|
117
|
+
setAppend(append: boolean): this;
|
|
118
|
+
/**
|
|
119
|
+
* `GIT_REFLOG_ACTION` as the environment sets it for git's children (a `git pull --all`
|
|
120
|
+
* exports `pull --all`): every fetch, each child included, names it in its reflog lines
|
|
121
|
+
* instead of its own command line.
|
|
122
|
+
*/
|
|
123
|
+
setEnvReflogAction(action: string): this;
|
|
124
|
+
/**
|
|
125
|
+
* @throws GitApiError (exit 128) as git dies: `fetch --all does not take a repository
|
|
126
|
+
* argument`, `no such remote or remote group: <name>`, `fetch.parallel cannot be negative`
|
|
127
|
+
*/
|
|
128
|
+
call(): Promise<FetchMultipleResult>;
|
|
129
|
+
/**
|
|
130
|
+
* The remotes to fetch (fetch.c's list: `--all`, each name as a group or remote, repeats in
|
|
131
|
+
* a row dropped), or the one remote fetched as `git fetch <remote>`.
|
|
132
|
+
*/
|
|
133
|
+
private targets;
|
|
134
|
+
/**
|
|
135
|
+
* @internal The URLs this fetch would reach, nested groups expanded (none when it would
|
|
136
|
+
* die): what a command running it decides credentials from.
|
|
137
|
+
*/
|
|
138
|
+
plannedUrls(): Promise<string[]>;
|
|
139
|
+
/** @internal How deep in nested remote groups this fetch runs (a child's child: 1, ...). */
|
|
140
|
+
setGroupDepth(depth: number): this;
|
|
141
|
+
/**
|
|
142
|
+
* A child `git fetch ... <name>` whose name is a group of several remotes: that child runs
|
|
143
|
+
* fetch_multiple itself (`Fetching <remote>` for each, FETCH_HEAD appended to); git
|
|
144
|
+
* recurses without bound on a group naming itself, ours stops at {@link MAX_GROUP_DEPTH}.
|
|
145
|
+
*/
|
|
146
|
+
private fetchNestedGroup;
|
|
147
|
+
/** One `git fetch <remote>`: as a child of fetch_multiple (`append`), or fetch_one. */
|
|
148
|
+
private fetchOne;
|
|
149
|
+
/** git's add_options_to_argv, in its order. */
|
|
150
|
+
private optionArgs;
|
|
151
|
+
/** The `git fetch` command line this command stands for (fetch_one's reflog action). */
|
|
152
|
+
private commandLine;
|
|
153
|
+
/** remote_get(NULL): the current branch's remote, the one configured remote, `origin`. */
|
|
154
|
+
private defaultRemote;
|
|
155
|
+
}
|
|
156
|
+
/** How deep remote groups may nest in a fetch (git has no bound: a group naming itself loops). */
|
|
157
|
+
export declare const MAX_GROUP_DEPTH = 16;
|
|
158
|
+
/**
|
|
159
|
+
* remote.c's add_remote_or_group: the remotes of `remotes.<name>` (each value split at white
|
|
160
|
+
* space, in config order), else the remote itself when configured; false when neither.
|
|
161
|
+
*/
|
|
162
|
+
export declare function addRemoteOrGroup(store: RemoteConfigStore, name: string, list: string[]): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Fetch a remote group, or every remote: `git remote update [-p] [<group>|<remote>...]`.
|
|
165
|
+
*
|
|
166
|
+
* As builtin/remote.c `update`: git runs `git fetch [--prune|--no-prune] [-v] --multiple
|
|
167
|
+
* <names>` ({@link FetchMultipleCommand}); without names the group `default` when
|
|
168
|
+
* `remotes.default` is configured, else every remote without
|
|
169
|
+
* `remote.<name>.skipDefaultUpdate` (`--all`). git exits 1 for any failure of the fetch,
|
|
170
|
+
* `no such remote or remote group` included, which is reported in the result here too.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```typescript
|
|
174
|
+
* const { stdout, stderr, exitCode } = await git.remoteUpdate().setPrune(true).call();
|
|
175
|
+
* await git.remoteUpdate().setGroups("mirrors").call();
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
export declare class RemoteUpdateCommand extends GuardedTransportCommand<FetchMultipleResult> {
|
|
179
|
+
/** git's command reads no core settings: an unparsable `core.whitespace` does not stop it */
|
|
180
|
+
protected readsCoreConfig(): boolean;
|
|
181
|
+
private groups;
|
|
182
|
+
private prune?;
|
|
183
|
+
private verbose;
|
|
184
|
+
/** The remote groups and remotes to fetch; none: `default`, else every remote. */
|
|
185
|
+
setGroups(...groups: string[]): this;
|
|
186
|
+
/** `-p`/`--prune` (true) or `--no-prune` (false), passed to the fetch. */
|
|
187
|
+
setPrune(prune: boolean | undefined): this;
|
|
188
|
+
private currentBranch;
|
|
189
|
+
/** `git remote -v update`: `-v` passed to the fetch. */
|
|
190
|
+
setVerbose(verbose: boolean): this;
|
|
191
|
+
call(): Promise<FetchMultipleResult>;
|
|
192
|
+
}
|
|
193
|
+
//# sourceMappingURL=fetch-multiple-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;CAClB;AAED,6CAA6C;AAC7C,MAAM,WAAW,mBAAmB;IAClC,oCAAoC;IACpC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,+EAA+E;IAC/E,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,oBAAqB,SAAQ,uBAAuB,CAAC,mBAAmB,CAAC;IACpF,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,GAAG,CAAC,CAAU;IACtB,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,IAAI,CAAC,CAAS;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E,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"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* attachments (`--attach`/`--inline`), notes after the `---` line, cover letters from the
|
|
8
8
|
* branch description, `--ignore-if-in-upstream` and the `format.*` settings.
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
10
|
+
import { RangeDiffBase } from "./range-diff/index.js";
|
|
11
11
|
/** One file `git format-patch` writes (or one mail of `--stdout`). */
|
|
12
12
|
export interface FormatPatchFile {
|
|
13
13
|
/** The file name (with the output directory), as git prints it */
|
|
@@ -21,6 +21,8 @@ export interface FormatPatchResult {
|
|
|
21
21
|
patches: FormatPatchFile[];
|
|
22
22
|
/** Standard output: the file names, or the mails with `--stdout` */
|
|
23
23
|
output: Uint8Array;
|
|
24
|
+
/** git's `warning:` lines (`using '<prev>' as range-diff origin of current series`) */
|
|
25
|
+
warnings?: string[];
|
|
24
26
|
}
|
|
25
27
|
/** Thrown where git dies (`fatal: ...`). */
|
|
26
28
|
export declare class FormatPatchError extends Error {
|
|
@@ -36,7 +38,7 @@ export type CoverFromDescription = "default" | "none" | "message" | "subject" |
|
|
|
36
38
|
* const { output } = await git.formatPatch().setMaxCount(1).setStdout(true).call();
|
|
37
39
|
* ```
|
|
38
40
|
*/
|
|
39
|
-
export declare class FormatPatchCommand extends
|
|
41
|
+
export declare class FormatPatchCommand extends RangeDiffBase<FormatPatchResult> {
|
|
40
42
|
private revisions;
|
|
41
43
|
private maxCount?;
|
|
42
44
|
private root;
|
|
@@ -77,6 +79,11 @@ export declare class FormatPatchCommand extends GitCommand<FormatPatchResult> {
|
|
|
77
79
|
private notesOptions;
|
|
78
80
|
private coverFromDescription?;
|
|
79
81
|
private ignoreIfInUpstream;
|
|
82
|
+
private interdiff?;
|
|
83
|
+
private rangeDiff?;
|
|
84
|
+
private creationFactor?;
|
|
85
|
+
/** What git prints on stderr without dying */
|
|
86
|
+
private readonly warnings;
|
|
80
87
|
/** A revision argument: `<since>` (to HEAD), `<a>..<b>`, `^<a>`, `<b>`. */
|
|
81
88
|
addRevision(revision: string): this;
|
|
82
89
|
/** `-<n>`: the last n commits. */
|
|
@@ -127,6 +134,19 @@ export declare class FormatPatchCommand extends GitCommand<FormatPatchResult> {
|
|
|
127
134
|
setCoverFromDescription(mode: CoverFromDescription | (string & {})): this;
|
|
128
135
|
/** `--ignore-if-in-upstream`: leave out the patches the upstream side has (patch ids). */
|
|
129
136
|
setIgnoreIfInUpstream(value: boolean): this;
|
|
137
|
+
/**
|
|
138
|
+
* `--interdiff=<rev>`: the diff from `<rev>` (the previous version's tip) to this series'
|
|
139
|
+
* tip, in the cover letter or after the single patch (the last one given counts).
|
|
140
|
+
*/
|
|
141
|
+
setInterdiff(rev: string): this;
|
|
142
|
+
/**
|
|
143
|
+
* `--range-diff=<prev>`: the range-diff of the previous version (a range, or its tip, the
|
|
144
|
+
* range then reaching back to this series' base) against this series, in the cover letter
|
|
145
|
+
* or after the single patch.
|
|
146
|
+
*/
|
|
147
|
+
setRangeDiff(prev: string): this;
|
|
148
|
+
/** `--creation-factor=<n>` of `--range-diff` (default 999 from git 2.46 on, 60 before). */
|
|
149
|
+
setCreationFactor(factor: number): this;
|
|
130
150
|
/** `--cover-letter` / `--no-cover-letter` (default `format.coverLetter`). */
|
|
131
151
|
setCoverLetter(value: boolean): this;
|
|
132
152
|
/** `--numbered-files`. */
|
|
@@ -178,6 +198,12 @@ export declare class FormatPatchCommand extends GitCommand<FormatPatchResult> {
|
|
|
178
198
|
private configWhere;
|
|
179
199
|
private configAll;
|
|
180
200
|
call(): Promise<FormatPatchResult>;
|
|
201
|
+
/**
|
|
202
|
+
* The `Interdiff:` and `Range-diff:` blocks (title line and output) where git puts them:
|
|
203
|
+
* in the cover letter; else after the patch from 2.46 on (each after an empty line), as
|
|
204
|
+
* commentary after the message before.
|
|
205
|
+
*/
|
|
206
|
+
private diffOfDiffBlocks;
|
|
181
207
|
/** The subject for the file name (`%f`). */
|
|
182
208
|
private fileSubject;
|
|
183
209
|
/** The commits to format (newest first), the single boundary commit, the branch name. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-patch-command.d.ts","sourceRoot":"","sources":["../../src/commands/format-patch-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"format-patch-command.d.ts","sourceRoot":"","sources":["../../src/commands/format-patch-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAeH,OAAO,EAGL,aAAa,EAEd,MAAM,uBAAuB,CAAC;AAI/B,sEAAsE;AACtE,MAAM,WAAW,eAAe;IAC9B,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,eAAe;IACf,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,wCAAwC;AACxC,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,oEAAoE;IACpE,MAAM,EAAE,UAAU,CAAC;IACnB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,4CAA4C;AAC5C,qBAAa,gBAAiB,SAAQ,KAAK;CAAG;AAE9C,iEAAiE;AACjE,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AA4BvF;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,aAAa,CAAC,iBAAiB,CAAC;IACtE,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,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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 `reference`; the other builtin formats (`medium`, `oneline`, ...) are
|
|
17
|
+
* refused. Each commit is formatted by `git log`'s pretty engine with no configuration of its
|
|
18
|
+
* own: `log.*` settings do not apply, as format-rev starts from a fresh `rev_info`.
|
|
19
|
+
*/
|
|
20
|
+
import { PlumbingCommand } from "./plumbing-command.js";
|
|
21
|
+
/** `--stdin-mode`: lines of revisions, or running text holding object ids. */
|
|
22
|
+
export type FormatRevStdinMode = "text" | "revs";
|
|
23
|
+
export declare class FormatRevCommand extends PlumbingCommand {
|
|
24
|
+
private format?;
|
|
25
|
+
private stdinMode?;
|
|
26
|
+
private notes;
|
|
27
|
+
private nulInput;
|
|
28
|
+
private nulOutput;
|
|
29
|
+
private input;
|
|
30
|
+
/** `--format=<pretty>` (required) */
|
|
31
|
+
setFormat(format: string): this;
|
|
32
|
+
/** `--stdin-mode=<mode>` (required): `text`, `revs` or `rev` */
|
|
33
|
+
setStdinMode(mode: string): this;
|
|
34
|
+
/** `--notes=<ref>`: a notes ref (or glob) `%N` shows; repeatable */
|
|
35
|
+
addNotes(ref: string): this;
|
|
36
|
+
/** `--no-notes`: forget the `--notes` given so far */
|
|
37
|
+
clearNotes(): this;
|
|
38
|
+
/** `-z`: NUL-terminated input and output */
|
|
39
|
+
setNul(): this;
|
|
40
|
+
/** `--[no-]null-input` */
|
|
41
|
+
setNullInput(nul: boolean): this;
|
|
42
|
+
/** `--[no-]null-output` */
|
|
43
|
+
setNullOutput(nul: boolean): this;
|
|
44
|
+
/** stdin */
|
|
45
|
+
setInput(input: string | Uint8Array): this;
|
|
46
|
+
protected run(): Promise<number>;
|
|
47
|
+
/** stderr as given (git's fprintf, not an `error:` line) */
|
|
48
|
+
private warnRaw;
|
|
49
|
+
/** stdin split as strbuf_getline_lf / strbuf_getline_nul: a last line without terminator kept */
|
|
50
|
+
private lines;
|
|
51
|
+
/** get_commit_format: the user format and its date mode. */
|
|
52
|
+
private prettyOf;
|
|
53
|
+
/** pretty_print_commit of one commit (with its notes when the format shows `%N`). */
|
|
54
|
+
private formatOne;
|
|
55
|
+
private typeOf;
|
|
56
|
+
private tagTarget;
|
|
57
|
+
}
|
|
58
|
+
//# 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;;;;;;;;;;;;;;;;;;GAkBG;AAMH,OAAO,EAAE,eAAe,EAAiB,MAAM,uBAAuB,CAAC;AAEvE,8EAA8E;AAC9E,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAiBjD,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;IAehB,qFAAqF;YACvE,SAAS;YAuBT,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,w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AInD;IAED,qFAAqF;IACrF,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAInC;IAED,sDAAsD;IACtD,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAIzC;IAED,kEAAkE;IAClE,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED,yFAAyF;IACzF,cAAc,CAAC,WAAW,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;;;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AAS,GAAG,MAAM,OAAO,YAAY,CAAC;AAElD,iFAAiF;AACjF,qBAAa,qBAAsB,SAAQ,KAAK;IACrC,IAAI,SAA2B;CACzC;AAMD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAElE;AAED;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,QAAQ,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,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asking the file system monitor (`core.fsmonitor`) what changed, as git does on every index
|
|
3
|
+
* it reads (fsmonitor.c's `tweak_fsmonitor`, `add_fsmonitor`, `refresh_fsmonitor`).
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* const run = await refreshFsmonitor({ staging, config, query, ignoreCase });
|
|
7
|
+
* if (run?.state.isValid(entry)) {
|
|
8
|
+
* // the monitor reported nothing for it since the token: up to date without an lstat
|
|
9
|
+
* }
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* The monitor is a host callback (`GitHostEnvironment.fsmonitor`) or, without one, the
|
|
13
|
+
* hook program `core.fsmonitor` names, run through the host's hook runner; this code never
|
|
14
|
+
* watches files or starts a process itself. A failed, empty or trivial (`/`) answer leaves
|
|
15
|
+
* every entry to be checked, as git: the monitor can make a command skip work, never miss a
|
|
16
|
+
* change it reported.
|
|
17
|
+
*/
|
|
18
|
+
import { type FsmonitorAnswer, type FsmonitorQuery, FsmonitorState, type Staging } from "@statewalker/vcs-working-tree";
|
|
19
|
+
/** How `core.fsmonitor` turns the monitor on (fsm-settings.c `lookup_fsmonitor_settings`). */
|
|
20
|
+
export type FsmonitorMode = {
|
|
21
|
+
kind: "disabled";
|
|
22
|
+
} | {
|
|
23
|
+
kind: "hook";
|
|
24
|
+
command: string;
|
|
25
|
+
} | {
|
|
26
|
+
kind: "ipc";
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* `core.fsmonitor` as git reads it: a boolean (`true`: the builtin daemon, `false` or empty:
|
|
30
|
+
* off), else the hook program's path.
|
|
31
|
+
*/
|
|
32
|
+
export declare function fsmonitorModeOf(value: string | undefined): FsmonitorMode;
|
|
33
|
+
/** What a run of the monitor left: the state and what else git did with the answer. */
|
|
34
|
+
export interface FsmonitorRun {
|
|
35
|
+
/** The index's fsmonitor state, its bits as the answer left them */
|
|
36
|
+
state: FsmonitorState;
|
|
37
|
+
/**
|
|
38
|
+
* The paths whose untracked-cache directories the answer invalidated
|
|
39
|
+
* (`untracked_cache_invalidate_trimmed_path`), in order
|
|
40
|
+
*/
|
|
41
|
+
untrackedPaths: string[];
|
|
42
|
+
/** git's warnings (stderr lines without `warning: `) */
|
|
43
|
+
warnings: string[];
|
|
44
|
+
}
|
|
45
|
+
export interface RefreshFsmonitorOptions {
|
|
46
|
+
staging: Staging;
|
|
47
|
+
/** A configuration value (`core.fsmonitor`, `core.fsmonitorHookVersion`) */
|
|
48
|
+
config(key: string): string | undefined;
|
|
49
|
+
/** Asks the monitor (the host's callback or the hook); undefined or a throw is a failure */
|
|
50
|
+
query(query: FsmonitorQuery): Promise<FsmonitorAnswer | undefined>;
|
|
51
|
+
/** `core.ignorecase`: a reported path matching no entry is matched again, case folded */
|
|
52
|
+
ignoreCase?: boolean;
|
|
53
|
+
/** The current time in nanoseconds since the epoch (git's `getnanotime`), for tests */
|
|
54
|
+
nanotime?: () => bigint;
|
|
55
|
+
/**
|
|
56
|
+
* The command run asking (git: the process that read the index): the monitor is asked
|
|
57
|
+
* once per owner, again for the next one, even over the same index in memory
|
|
58
|
+
*/
|
|
59
|
+
owner?: object;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* git's `tweak_fsmonitor` for the index `staging` holds: with the monitor off, its `FSMN`
|
|
63
|
+
* state is removed (the index then wants a rewrite); with it on, a state is added when there
|
|
64
|
+
* is none (`add_fsmonitor`: a nanosecond token, every entry dirty) and the monitor is asked
|
|
65
|
+
* once per index read (`refresh_fsmonitor`). Undefined while the monitor is off, or for a
|
|
66
|
+
* staging without an index file.
|
|
67
|
+
*/
|
|
68
|
+
export declare function refreshFsmonitor(options: RefreshFsmonitorOptions): Promise<FsmonitorRun | undefined>;
|
|
69
|
+
//# sourceMappingURL=fsmonitor-refresh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fsmonitor-refresh.d.ts","sourceRoot":"","sources":["../../src/commands/fsmonitor-refresh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,cAAc,EAEd,KAAK,OAAO,EAEb,MAAM,+BAA+B,CAAC;AAKvC,8FAA8F;AAC9F,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAEpB;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,CAMxE;AAED,uFAAuF;AACvF,MAAM,WAAW,YAAY;IAC3B,oEAAoE;IACpE,KAAK,EAAE,cAAc,CAAC;IACtB;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,4EAA4E;IAC5E,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACxC,4FAA4F;IAC5F,KAAK,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;IACnE,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAC;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAmCnC"}
|
|
@@ -118,6 +118,11 @@ export declare class GarbageCollectCommand extends GitCommand<GCCommandResult> {
|
|
|
118
118
|
* pack is kept as it is; false also ignores `gc.bigPackThreshold`.
|
|
119
119
|
*/
|
|
120
120
|
setKeepLargestPack(keep: boolean): this;
|
|
121
|
+
/**
|
|
122
|
+
* git's `need_to_gc`: whether `gc --auto` has work to do (the maintenance gc task's `--auto`
|
|
123
|
+
* condition). Reads only the configuration and the objects directory.
|
|
124
|
+
*/
|
|
125
|
+
isAutoGcNeeded(): Promise<boolean>;
|
|
121
126
|
/** git's `need_to_gc`: whether `gc --auto` has work to do. */
|
|
122
127
|
private needsAutoGc;
|
|
123
128
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gc-command.d.ts","sourceRoot":"","sources":["../../src/commands/gc-command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAkC,MAAM,8BAA8B,CAAC;AAK7F,OAAO,EAAE,UAAU,E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E,OAAO,GAAG,IAAI,CAItC;IAED;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC,CAEvC;IAED,8DAA8D;YAChD,WAAW;IA+CzB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED;;;OAGG;IACH,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAIvC;IAED;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAInC;IAED;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAI5B;IAED,sFAAsF;YACxE,eAAe;IAU7B,+EAA+E;IAC/E,OAAO,CAAC,aAAa;IAUrB,qFAAqF;IACrF,OAAO,CAAC,kBAAkB;IAY1B;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC,CAwHrC;IAED,mGAAmG;IACnG,OAAO,CAAC,iBAAiB;CAa1B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* git describe's search (builtin/describe.c
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* git describe's search (builtin/describe.c): the tag nearest to a commit by the number of
|
|
3
|
+
* commits only it reaches, as `<tag>-<n>-g<abbrev>` (just `<tag>` on the tagged commit
|
|
4
|
+
* itself), and a blob by the first commit that brings it, as `<description>:<path>`.
|
|
5
|
+
* `%(describe)` of a pretty format, `submodule status` and `git describe` itself use it.
|
|
5
6
|
*
|
|
6
7
|
* @example
|
|
7
8
|
* ```typescript
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
* @module
|
|
15
16
|
*/
|
|
16
17
|
import type { ObjectId, PersonIdent } from "@statewalker/vcs-core";
|
|
17
|
-
/**
|
|
18
|
+
/** git describe's search options. */
|
|
18
19
|
export interface DescribeOptions {
|
|
19
20
|
/** Lightweight tags too (`--tags`) */
|
|
20
21
|
tags?: boolean;
|
|
@@ -28,6 +29,20 @@ export interface DescribeOptions {
|
|
|
28
29
|
all?: boolean;
|
|
29
30
|
/** The abbreviated id when nothing describes the commit (`--always`) */
|
|
30
31
|
always?: boolean;
|
|
32
|
+
/** `--long`: the `-<n>-g<abbrev>` suffix on an exact match too */
|
|
33
|
+
long?: boolean;
|
|
34
|
+
/** `--first-parent`: only first parents are followed */
|
|
35
|
+
firstParent?: boolean;
|
|
36
|
+
/** `--candidates=<n>` (0: `--exact-match`); default 10, at most 28 */
|
|
37
|
+
candidates?: number;
|
|
38
|
+
/** `--debug`: the search strategy on stderr */
|
|
39
|
+
debug?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* git 2.43's search: it gives up only at a candidate beyond the limit (2.5x also once it
|
|
42
|
+
* has every name), suffixes a lightweight exact match with the id named (a tag's own) and says so
|
|
43
|
+
* in another debug line
|
|
44
|
+
*/
|
|
45
|
+
compatibility?: "2.43" | "2.56";
|
|
31
46
|
}
|
|
32
47
|
/** What {@link createDescriber} reads. */
|
|
33
48
|
export interface DescriberSource {
|
|
@@ -53,8 +68,17 @@ export interface DescriberSource {
|
|
|
53
68
|
load(id: ObjectId): Promise<{
|
|
54
69
|
parents: ObjectId[];
|
|
55
70
|
committer: PersonIdent;
|
|
71
|
+
tree?: ObjectId;
|
|
56
72
|
} | undefined>;
|
|
57
73
|
};
|
|
74
|
+
/** A tree's entries, in tree order (for blobs) */
|
|
75
|
+
trees?: {
|
|
76
|
+
load(id: ObjectId): Promise<AsyncIterable<{
|
|
77
|
+
mode: number;
|
|
78
|
+
name: string;
|
|
79
|
+
id: ObjectId;
|
|
80
|
+
}> | undefined>;
|
|
81
|
+
};
|
|
58
82
|
/**
|
|
59
83
|
* `id` abbreviated as git's find_unique_abbrev does: to `length` digits at least (absent:
|
|
60
84
|
* `core.abbrev`, auto), longer while another object shares them
|
|
@@ -63,6 +87,55 @@ export interface DescriberSource {
|
|
|
63
87
|
/** git's wildmatch of a pattern against a tag name (default: `*`, `?`, `[...]` globs) */
|
|
64
88
|
wildmatch?: (pattern: string, text: string) => boolean;
|
|
65
89
|
}
|
|
90
|
+
/** A failure where git describe dies: its message (without `fatal: `). */
|
|
91
|
+
export declare class DescribeDeath extends Error {
|
|
92
|
+
constructor(message: string);
|
|
93
|
+
}
|
|
94
|
+
/** describe.c's MAX_TAGS (FLAG_BITS - 1) */
|
|
95
|
+
export declare const DESCRIBE_MAX_TAGS = 28;
|
|
96
|
+
/**
|
|
97
|
+
* builtin/describe.c over one repository: the names read once ({@link load}), then any
|
|
98
|
+
* number of commits or blobs described, with git's stderr lines (warnings, `--debug`) in
|
|
99
|
+
* {@link stderr}.
|
|
100
|
+
*/
|
|
101
|
+
export declare class Describer {
|
|
102
|
+
private readonly source;
|
|
103
|
+
private readonly options;
|
|
104
|
+
/** The lines git prints on stderr, in order */
|
|
105
|
+
readonly stderr: string[];
|
|
106
|
+
/** The name and depth the last {@link describeCommit} found (none: `--always`'s id) */
|
|
107
|
+
lastMatch?: {
|
|
108
|
+
tag: string;
|
|
109
|
+
depth: number;
|
|
110
|
+
};
|
|
111
|
+
private names;
|
|
112
|
+
private readonly match;
|
|
113
|
+
private readonly maxCandidates;
|
|
114
|
+
constructor(source: DescriberSource, options?: DescribeOptions);
|
|
115
|
+
/** How many names were found (git dies without any unless `--always`). */
|
|
116
|
+
get nameCount(): number;
|
|
117
|
+
/** describe.c's get_name over refs/tags/ (refs/ with `--all`). */
|
|
118
|
+
load(): Promise<void>;
|
|
119
|
+
/** append_name: an annotated tag by its own name (another ref name is "misnamed"). */
|
|
120
|
+
private appendName;
|
|
121
|
+
private suffix;
|
|
122
|
+
/**
|
|
123
|
+
* describe_commit of `commit` (`named`: the object the revision named, which 2.43
|
|
124
|
+
* suffixes a lightweight exact match with: an annotated tag's own id).
|
|
125
|
+
*
|
|
126
|
+
* @throws DescribeDeath where git dies
|
|
127
|
+
*/
|
|
128
|
+
describeCommit(commit: ObjectId, named?: ObjectId): Promise<string>;
|
|
129
|
+
/** finish_depth_computation: the commits the best candidate does not reach. */
|
|
130
|
+
private finishDepth;
|
|
131
|
+
/**
|
|
132
|
+
* describe_blob: the first commit (oldest first, in `rev-list --objects --reverse HEAD`'s
|
|
133
|
+
* order) whose tree holds the blob, described, and the blob's path in it.
|
|
134
|
+
*
|
|
135
|
+
* @throws DescribeDeath when HEAD does not reach it (2.43: an empty description)
|
|
136
|
+
*/
|
|
137
|
+
describeBlob(blob: ObjectId, head: ObjectId | undefined): Promise<string>;
|
|
138
|
+
}
|
|
66
139
|
/**
|
|
67
140
|
* A `git describe <commit>` of the source's refs: the description, or an empty string where
|
|
68
141
|
* git describe fails (no tag can describe the commit), as `%(describe)` shows it.
|