@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
|
@@ -9,7 +9,9 @@ import { type ObjectId, type PersonIdent } from "@statewalker/vcs-core";
|
|
|
9
9
|
import type { Worktree } from "@statewalker/vcs-working-tree";
|
|
10
10
|
import type { CommandCommits, CommandRefs, CommandTrees } from "../git-command.js";
|
|
11
11
|
import { type HookSession } from "./git-hooks.js";
|
|
12
|
-
import { type MergeWriteContext, type OperationState } from "./merge-support.js";
|
|
12
|
+
import { FlatTreeCache, type MergeWriteContext, type OperationState } from "./merge-support.js";
|
|
13
|
+
import { type OrtConflict } from "./ort-merge.js";
|
|
14
|
+
import type { CheckedEntry } from "./worktree-overwrite-checks.js";
|
|
13
15
|
/** What the sequencer does with each commit. */
|
|
14
16
|
export type PickAction = "pick" | "revert";
|
|
15
17
|
/** What a cherry-pick or revert is asked to do. */
|
|
@@ -57,6 +59,11 @@ export interface SequencerDeps extends MergeWriteContext {
|
|
|
57
59
|
* resolved conflict is committed in process.
|
|
58
60
|
*/
|
|
59
61
|
gitCommit?: (mode: PickCommitMode) => Promise<ObjectId>;
|
|
62
|
+
/**
|
|
63
|
+
* Where what rerere prints on stderr is collected: at a stopped pick (do_pick_commit's
|
|
64
|
+
* `repo_rerere`) and after a commit made in process for `--continue` (git's `git commit`)
|
|
65
|
+
*/
|
|
66
|
+
rerereOutput?: string[];
|
|
60
67
|
}
|
|
61
68
|
/** The `git commit` the sequencer runs (see {@link SequencerDeps.gitCommit}). */
|
|
62
69
|
export type PickCommitMode = {
|
|
@@ -73,6 +80,16 @@ export interface PickOptions {
|
|
|
73
80
|
noCommit?: boolean;
|
|
74
81
|
mainline?: number;
|
|
75
82
|
favor?: "ours" | "theirs" | "union";
|
|
83
|
+
/**
|
|
84
|
+
* `-s <strategy>` (git's opts->strategy): `ort`/`recursive` (merge-ort, as without one),
|
|
85
|
+
* `resolve` (git-merge-resolve) or `subtree` (git merge-subtree); a revert always runs
|
|
86
|
+
* merge-ort. Saved in `sequencer/opts` (`options.strategy`).
|
|
87
|
+
*/
|
|
88
|
+
strategy?: string;
|
|
89
|
+
/** `-X <option>`s (saved in `sequencer/opts` as `options.strategy-option`) */
|
|
90
|
+
strategyOptions?: string[];
|
|
91
|
+
/** The git version to follow where they differ (default: the hook runner's) */
|
|
92
|
+
compatibility?: "2.43" | "2.56";
|
|
76
93
|
/** The label of HEAD in conflict markers (default `HEAD`) */
|
|
77
94
|
oursLabel?: string;
|
|
78
95
|
/**
|
|
@@ -103,6 +120,12 @@ export interface PickOptions {
|
|
|
103
120
|
allowEmpty?: boolean;
|
|
104
121
|
/** `--allow-empty-message` (saved in `sequencer/opts`; the sequencer commits any message) */
|
|
105
122
|
allowEmptyMessage?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* `--rerere-autoupdate` (true) / `--no-rerere-autoupdate` (false): whether resolutions
|
|
125
|
+
* rerere replays at a conflict are staged (default `rerere.autoUpdate`); saved in
|
|
126
|
+
* `sequencer/opts` (`options.allow-rerere-auto`)
|
|
127
|
+
*/
|
|
128
|
+
rerereAutoUpdate?: boolean;
|
|
106
129
|
/**
|
|
107
130
|
* `--keep-redundant-commits` / `--empty=keep`: a commit that becomes empty is committed
|
|
108
131
|
* (implies {@link allowEmpty})
|
|
@@ -146,7 +169,20 @@ export declare class PickSequencer {
|
|
|
146
169
|
private readonly flags;
|
|
147
170
|
/** commit.cleanup (git's default_msg_cleanup with explicit_cleanup), or saved in the opts */
|
|
148
171
|
private cleanup;
|
|
172
|
+
/** `-s` (git's opts->strategy), or saved in the opts */
|
|
173
|
+
private strategy;
|
|
174
|
+
/** `-X` options (git's opts->xopts), or saved in the opts */
|
|
175
|
+
private xopts;
|
|
176
|
+
/** `--[no-]rerere-autoupdate` (git's opts->allow_rerere_auto), or saved in the opts */
|
|
177
|
+
private rerereAutoUpdate;
|
|
149
178
|
constructor(deps: SequencerDeps, options: PickOptions);
|
|
179
|
+
/**
|
|
180
|
+
* `repo_rerere` with the run's `allow_rerere_auto` (none: `rerere.autoUpdate`); `commit`:
|
|
181
|
+
* git commit's `repo_rerere(0)`.
|
|
182
|
+
*/
|
|
183
|
+
private rerere;
|
|
184
|
+
/** The git version to follow where they differ */
|
|
185
|
+
private get compatibility();
|
|
150
186
|
private config;
|
|
151
187
|
private get name();
|
|
152
188
|
private fail;
|
|
@@ -159,6 +195,8 @@ export declare class PickSequencer {
|
|
|
159
195
|
private resolvePick;
|
|
160
196
|
/** Picks `todo` in order; `sequenced`: a `sequencer/` directory tracks the progress. */
|
|
161
197
|
private run;
|
|
198
|
+
/** The merge of a pick: {@link mergePickChange} with this run's strategy and options. */
|
|
199
|
+
private mergePick;
|
|
162
200
|
/** One commit's change merged into HEAD (do_pick_commit). */
|
|
163
201
|
private pickOne;
|
|
164
202
|
/**
|
|
@@ -268,4 +306,85 @@ export declare function expandCommitIds(deps: {
|
|
|
268
306
|
refs: CommandRefs;
|
|
269
307
|
state: OperationState;
|
|
270
308
|
}, ids: string[]): Promise<ObjectId[]>;
|
|
309
|
+
/** What {@link mergePickChange} reads and writes with. */
|
|
310
|
+
export interface PickMergeContext {
|
|
311
|
+
workingCopy: SequencerDeps["workingCopy"];
|
|
312
|
+
worktree?: Worktree;
|
|
313
|
+
staging: SequencerDeps["staging"];
|
|
314
|
+
blobs: SequencerDeps["blobs"];
|
|
315
|
+
trees: CommandTrees;
|
|
316
|
+
commits: CommandCommits;
|
|
317
|
+
flats: FlatTreeCache;
|
|
318
|
+
abbreviate: (id: ObjectId) => Promise<string>;
|
|
319
|
+
}
|
|
320
|
+
/** The pick {@link mergePickChange} merges. */
|
|
321
|
+
export interface PickMergeArgs {
|
|
322
|
+
action: PickAction;
|
|
323
|
+
headId: ObjectId | undefined;
|
|
324
|
+
/** HEAD's tree (undefined: the empty tree of an unborn branch) */
|
|
325
|
+
headTreeId: ObjectId | undefined;
|
|
326
|
+
base: ObjectId | undefined;
|
|
327
|
+
theirs: ObjectId | undefined;
|
|
328
|
+
baseLabel: string;
|
|
329
|
+
theirsLabel: string;
|
|
330
|
+
pickId: ObjectId;
|
|
331
|
+
parentId: ObjectId | undefined;
|
|
332
|
+
/** `-s` (undefined: merge-ort) */
|
|
333
|
+
strategy: string | undefined;
|
|
334
|
+
/** `-X` options */
|
|
335
|
+
xopts: readonly string[];
|
|
336
|
+
/** HEAD's label in merge-ort's markers */
|
|
337
|
+
oursLabel: string;
|
|
338
|
+
/** `-X ours` / `-X theirs` / union given apart from the options */
|
|
339
|
+
favor?: "ours" | "theirs" | "union";
|
|
340
|
+
/** The git version whose behaviour to follow where they differ (default 2.56) */
|
|
341
|
+
compatibility?: "2.43" | "2.56";
|
|
342
|
+
}
|
|
343
|
+
/** What {@link mergePickChange} found: the result to switch to, or git's failure. */
|
|
344
|
+
export type PickMergeResult = {
|
|
345
|
+
treeId: ObjectId;
|
|
346
|
+
conflicts: OrtConflict[];
|
|
347
|
+
/** The paths the conflicts are about (merge-ort's keys; a file moved aside's own path) */
|
|
348
|
+
conflictPaths: string[];
|
|
349
|
+
clean: boolean;
|
|
350
|
+
/** What the strategy printed (merge-ort's messages, git-merge-resolve's stdout) */
|
|
351
|
+
messages: string[];
|
|
352
|
+
/** Whether to record AUTO_MERGE (merge-ort's result tree) */
|
|
353
|
+
autoMerge: boolean;
|
|
354
|
+
/** Whether the strategy ran as git's child command (resolve, subtree) */
|
|
355
|
+
external: boolean;
|
|
356
|
+
/** What git-merge-one-file printed on stderr */
|
|
357
|
+
errors?: string[];
|
|
358
|
+
/** The switch to make, when it is not HEAD's tree to `treeId` */
|
|
359
|
+
delta?: {
|
|
360
|
+
from: Map<string, CheckedEntry>;
|
|
361
|
+
to: Map<string, CheckedEntry>;
|
|
362
|
+
};
|
|
363
|
+
/** What was printed before a refused switch */
|
|
364
|
+
refusedOutput?: string[];
|
|
365
|
+
} | {
|
|
366
|
+
failed: string;
|
|
367
|
+
/** The strategy gave up (exit 2): the pick fails as do_pick_commit's res -1 */
|
|
368
|
+
strategyFailed?: boolean;
|
|
369
|
+
output?: string[];
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* The merge of a pick (do_pick_commit): merge-ort (do_recursive_merge, with the `-X`
|
|
373
|
+
* options) unless `-s` names another strategy; `subtree` is git merge-subtree (merge-ort
|
|
374
|
+
* with the shift, the commits' full ids as labels), `resolve` git-merge-resolve
|
|
375
|
+
* (`read-tree -m --aggressive` and git-merge-one-file). Nothing is written but blobs and
|
|
376
|
+
* trees: the caller switches to the result.
|
|
377
|
+
*/
|
|
378
|
+
export declare function mergePickChange(ctx: PickMergeContext, p: PickMergeArgs): Promise<PickMergeResult>;
|
|
379
|
+
/**
|
|
380
|
+
* config.c's write_pair: a value as `git config` writes it (quoted when it starts or ends
|
|
381
|
+
* with a space or holds `;`, `#` or CR; `\n`, `\t`, `"` and `\` escaped).
|
|
382
|
+
*/
|
|
383
|
+
export declare function configValueText(value: string): string;
|
|
384
|
+
/**
|
|
385
|
+
* config.c's parse_value of the text after a variable's `=` on one line: blanks around it
|
|
386
|
+
* dropped, `"..."` keeping them, escapes undone, an unquoted `;` or `#` starting a comment;
|
|
387
|
+
* undefined where git refuses the line.
|
|
388
|
+
*/
|
|
389
|
+
export declare function parseConfigValueText(text: string): string | undefined;
|
|
271
390
|
//# sourceMappingURL=sequencer-pick.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequencer-pick.d.ts","sourceRoot":"","sources":["../../src/commands/sequencer-pick.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAO9D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGnF,OAAO,EAAE,KAAK,WAAW,EAAgD,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"sequencer-pick.d.ts","sourceRoot":"","sources":["../../src/commands/sequencer-pick.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAO9D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGnF,OAAO,EAAE,KAAK,WAAW,EAAgD,MAAM,gBAAgB,CAAC;AAMhG,OAAO,EAEL,aAAa,EAIb,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAQpB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,KAAK,WAAW,EAAoB,MAAM,gBAAgB,CA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AM,eAAe,GACvB;IACE,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,0FAA0F;IAC1F,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,mFAAmF;IACnF,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,6DAA6D;IAC7D,SAAS,EAAE,OAAO,CAAC;IACnB,yEAAyE;IACzE,QAAQ,EAAE,OAAO,CAAC;IAClB,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,iEAAiE;IACjE,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QAAC,EAAE,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;KAAE,CAAC;IAC3E,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B,GACD;IACE,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEN;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,gBAAgB,EACrB,CAAC,EAAE,aAAa,GACf,OAAO,CAAC,eAAe,CAAC,CAkG1B;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA8BrE"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { type ObjectId, type PersonIdent, type RefLogOptions } from "@statewalker/vcs-core";
|
|
7
7
|
import type { CommandCommits, CommandRefs } from "../git-command.js";
|
|
8
8
|
import { type MergeRefusal, type MergeWriteContext, type OperationState } from "./merge-support.js";
|
|
9
|
+
import type { SubmoduleUnpack } from "./submodule-unpack.js";
|
|
9
10
|
/** What resetting the index and worktree needs. */
|
|
10
11
|
export interface SequencerContext extends MergeWriteContext {
|
|
11
12
|
commits: CommandCommits;
|
|
@@ -41,6 +42,12 @@ export interface OnewayMergeOptions {
|
|
|
41
42
|
targetTree?: ObjectId;
|
|
42
43
|
/** `read-tree`'s refusal: the `error:` line alone, without `fatal: Could not reset ...` */
|
|
43
44
|
plain?: boolean;
|
|
45
|
+
/** `--recurse-submodules`: the active submodules checked and moved with the worktree */
|
|
46
|
+
submodules?: SubmoduleUnpack;
|
|
47
|
+
/** False (`read-tree -n`): the index is not written */
|
|
48
|
+
writeIndex?: boolean;
|
|
49
|
+
/** `read-tree -n` with `-u`: every check made, then nothing written (worktree or index) */
|
|
50
|
+
checkOnly?: boolean;
|
|
44
51
|
}
|
|
45
52
|
/**
|
|
46
53
|
* The first step of `am --abort`'s `clean_index`: `read_index_unmerged`, then unpack-trees'
|
|
@@ -61,7 +68,9 @@ export declare function resetUnmergedToHead(ctx: SequencerContext, headId: Objec
|
|
|
61
68
|
* changes (`verify_uptodate`), an untracked file in the way (`verify_absent`). HEAD is not
|
|
62
69
|
* moved. The caller refuses an index with unmerged entries first.
|
|
63
70
|
*/
|
|
64
|
-
export declare function resetKeep(ctx: SequencerContext, headId: ObjectId, targetId: ObjectId, label: string
|
|
71
|
+
export declare function resetKeep(ctx: SequencerContext, headId: ObjectId, targetId: ObjectId, label: string,
|
|
72
|
+
/** `--recurse-submodules`: the active submodules checked and moved with the worktree */
|
|
73
|
+
submodules?: SubmoduleUnpack): Promise<MergeRefusal | undefined>;
|
|
65
74
|
/**
|
|
66
75
|
* git's reset `update_refs`: ORIG_HEAD set to the HEAD left (`headId`), given the ORIG_HEAD
|
|
67
76
|
* it read as the old value (none when absent), then HEAD moved to `target` expecting the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequencer-support.d.ts","sourceRoot":"","sources":["../../src/commands/sequencer-support.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,KAAK,QAAQ,EAEb,KAAK,WAAW,EAChB,KAAK,aAAa,EACnB,MAAM,uBAAuB,CAAC;AAS/B,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrE,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAGpB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"sequencer-support.d.ts","sourceRoot":"","sources":["../../src/commands/sequencer-support.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,KAAK,QAAQ,EAEb,KAAK,WAAW,EAChB,KAAK,aAAa,EACnB,MAAM,uBAAuB,CAAC;AAS/B,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrE,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAGpB,MAAM,oBAAoB,CAAC;AAQ5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAc7D,mDAAmD;AACnD,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE,WAAW,CAAC;CACnB;AAKD;;;;;;;;;;;GAWG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,gBAAgB,EACrB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAoBnC;AAED,oEAAoE;AACpE,MAAM,WAAW,kBAAkB;IACjC,wFAAwF;IACxF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8FAA8F;IAC9F,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gGAAgG;IAChG,kBAAkB,CAAC,EAAE,OAAO,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
|
*/
|
|
6
|
-
import { type ServedRepository } from "@statewalker/vcs-transport";
|
|
6
|
+
import { type PackObjectsHook, type ServedRepository } from "@statewalker/vcs-transport";
|
|
7
7
|
import { type OpenedRepository } from "@statewalker/vcs-working-tree";
|
|
8
8
|
import type { HookSession } from "./git-hooks.js";
|
|
9
9
|
import { type ReceivePackHost } from "./local-transport.js";
|
|
@@ -22,6 +22,13 @@ export interface ServedRepositoryOptions {
|
|
|
22
22
|
* read confined to its own git directories (`confineFiles`), never from the host
|
|
23
23
|
*/
|
|
24
24
|
host?: ReceivePackHost;
|
|
25
|
+
/**
|
|
26
|
+
* git's `uploadpack.packObjectsHook`: by default (`"protected"`) the last value of the
|
|
27
|
+
* host's protected configuration (system, global, command line: `readProtectedConfig` of
|
|
28
|
+
* the hooks' host environment), never the served repository's own config, run through the
|
|
29
|
+
* host's hook runner in the git directory (`packObjectsHookOf`); `false` runs none
|
|
30
|
+
*/
|
|
31
|
+
packObjectsHook?: "protected" | false;
|
|
25
32
|
}
|
|
26
33
|
/**
|
|
27
34
|
* An opened repository (`Worktree.openRepository`) as a git server serves it: its objects and
|
|
@@ -56,4 +63,19 @@ export interface ServedRepositoryOptions {
|
|
|
56
63
|
* ```
|
|
57
64
|
*/
|
|
58
65
|
export declare function servedRepositoryOf(remote: OpenedRepository, options?: ServedRepositoryOptions): Promise<ServedRepository>;
|
|
66
|
+
/**
|
|
67
|
+
* upload-pack's `uploadpack.packObjectsHook` as the host runs it: the last value of the
|
|
68
|
+
* protected configuration of the session's host environment (upload_pack_protected_config:
|
|
69
|
+
* system, global, command line; a key without a value is git's `config_error_nonbool`, no
|
|
70
|
+
* hook here), started through the session's runner as git starts it (`<hook> git
|
|
71
|
+
* pack-objects ...` through the shell, in the git directory). Undefined when none is set or
|
|
72
|
+
* no runner can start it.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* // ~/.gitconfig: [uploadpack] packObjectsHook = /srv/bin/pack-cache
|
|
77
|
+
* const hook = await packObjectsHookOf(remoteHookSession(workingCopy, opened));
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export declare function packObjectsHookOf(hooks: HookSession | undefined): Promise<PackObjectsHook | undefined>;
|
|
59
81
|
//# sourceMappingURL=serve-repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve-repository.d.ts","sourceRoot":"","sources":["../../src/commands/serve-repository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"serve-repository.d.ts","sourceRoot":"","sources":["../../src/commands/serve-repository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAIL,KAAK,eAAe,EAEpB,KAAK,gBAAgB,EAItB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,gBAAgB,EAAuB,MAAM,+BAA+B,CAAC;AAE3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAEL,KAAK,eAAe,EAMrB,MAAM,sBAAsB,CAAC;AAE9B,6CAA6C;AAC7C,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC;CACvC;AA2BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,gBAAgB,CAAC,CAmD3B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,WAAW,GAAG,SAAS,GAC7B,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAmBtC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's `transfer.advertiseSID` on the client: fetch, clone, pull and push send the process's
|
|
3
|
+
* session id (`session-id=<id>`, git's trace2 session id) to a server that advertises its own.
|
|
4
|
+
*/
|
|
5
|
+
import type { WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
6
|
+
/**
|
|
7
|
+
* The session id a transport command sends: the process's (`processSessionId()`) when
|
|
8
|
+
* `transfer.advertiseSID` is true (the last value; a key without a value is true), else
|
|
9
|
+
* undefined. A value git cannot read as a boolean counts as false here.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // [transfer] advertiseSID = true
|
|
14
|
+
* clientSessionIdOf(workingCopy); // "20261125T101500.123000Z-H5f2c9a01"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function clientSessionIdOf(workingCopy: WorkingCopy): string | undefined;
|
|
18
|
+
//# sourceMappingURL=session-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-id.d.ts","sourceRoot":"","sources":["../../src/commands/session-id.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAIjE;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAQ9E"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git shortlog` (builtin/shortlog.c) as a library command: the commits of a revision range
|
|
3
|
+
* (or of `git log` output, as git reads it on its stdin) grouped by author, committer,
|
|
4
|
+
* trailer values or formatted fields.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* // git shortlog -ns HEAD
|
|
9
|
+
* await git.shortlog().addRevision("HEAD").setNumbered(true).setSummary(true).callText();
|
|
10
|
+
* // " 5\tA U Thor\n 1\tSomeone else\n"
|
|
11
|
+
*
|
|
12
|
+
* // git log | git shortlog -e
|
|
13
|
+
* await git.shortlog().setInput(logText).setEmail(true).callText();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import { GitCommand } from "../git-command.js";
|
|
17
|
+
import { RevListCommand } from "./rev-list-command.js";
|
|
18
|
+
import { type ShortlogEntry, type ShortlogWrap } from "./shortlog.js";
|
|
19
|
+
/**
|
|
20
|
+
* The shortlog of a repository's history or of `git log` output.
|
|
21
|
+
*
|
|
22
|
+
* Revisions ({@link addRevision}, {@link addArgument}, {@link addPath},
|
|
23
|
+
* {@link configureRevisions}) are walked as `git log` walks them; without any, the input given
|
|
24
|
+
* with {@link setInput} is read (`git log | git shortlog`), else HEAD's history (git's
|
|
25
|
+
* behaviour on a terminal). Each commit counts once per group it falls in (`--group` options,
|
|
26
|
+
* duplicates within one commit counted once), mapped through the repository's mailmap
|
|
27
|
+
* (`.mailmap`, `mailmap.blob`, `mailmap.file`).
|
|
28
|
+
*
|
|
29
|
+
* git's stderr (a `mailmap.blob` that is no blob) is in {@link getErrors}.
|
|
30
|
+
*/
|
|
31
|
+
export declare class ShortlogCommand extends GitCommand<ShortlogEntry[]> {
|
|
32
|
+
private summary;
|
|
33
|
+
private numbered;
|
|
34
|
+
private email;
|
|
35
|
+
private wrap?;
|
|
36
|
+
private groups;
|
|
37
|
+
private format?;
|
|
38
|
+
private date?;
|
|
39
|
+
private abbrev?;
|
|
40
|
+
private input?;
|
|
41
|
+
private revisionsNamed;
|
|
42
|
+
private readonly revisionSteps;
|
|
43
|
+
private readonly errors;
|
|
44
|
+
private shortlog?;
|
|
45
|
+
/** `-s` / `--summary`: only each group's count. */
|
|
46
|
+
setSummary(summary: boolean): this;
|
|
47
|
+
/** `-n` / `--numbered`: groups sorted by their count, largest first. */
|
|
48
|
+
setNumbered(numbered: boolean): this;
|
|
49
|
+
/** `-e` / `--email`: author and committer groups named `Name <email>`. */
|
|
50
|
+
setEmail(email: boolean): this;
|
|
51
|
+
/** `-c` / `--committer`: group by committer (as `--group=committer`). */
|
|
52
|
+
setCommitter(committer: boolean): this;
|
|
53
|
+
/**
|
|
54
|
+
* `--group=<type>`: `author`, `committer`, `trailer:<key>`, `format:<format>` (or a
|
|
55
|
+
* format with a `%`); repeatable. Throws git's `unknown group type` error (exit 129).
|
|
56
|
+
*/
|
|
57
|
+
addGroup(group: string): this;
|
|
58
|
+
/** `--no-group`: the groups given so far dropped (author again unless others follow). */
|
|
59
|
+
clearGroups(): this;
|
|
60
|
+
/**
|
|
61
|
+
* `-w[<width>[,<indent1>[,<indent2>]]]`: the argument as git reads it (undefined for a bare
|
|
62
|
+
* `-w`: 76, 6, 9), a {@link ShortlogWrap}, or false for `--no-w`... (no wrapping).
|
|
63
|
+
*/
|
|
64
|
+
setWrap(wrap?: string | ShortlogWrap | false): this;
|
|
65
|
+
/**
|
|
66
|
+
* `--format=<format>` / `--pretty=<format>`: each commit's line as this user format (`%h`,
|
|
67
|
+
* `format:%h`, `tformat:%h`) instead of its subject; a named format (`oneline`...) keeps
|
|
68
|
+
* the subject, as in git.
|
|
69
|
+
*/
|
|
70
|
+
setFormat(format: string): this;
|
|
71
|
+
/** `--date=<mode>`: the date mode of `%ad`/`%cd` in formats and groups. */
|
|
72
|
+
setDate(mode: string): this;
|
|
73
|
+
/** `--abbrev=<n>`: the length of `%h` and friends. */
|
|
74
|
+
setAbbrev(abbrev: number): this;
|
|
75
|
+
/** `git log` output to read when no revision is given (git's stdin). */
|
|
76
|
+
setInput(input: string): this;
|
|
77
|
+
/** A revision argument of the walk (see `RevListCommand.addRevision`: `a..b`, `--all`...). */
|
|
78
|
+
addRevision(revision: string): this;
|
|
79
|
+
/** An argument of `git shortlog <args>`, revisions and paths mixed (`RevListCommand.addArgument`). */
|
|
80
|
+
addArgument(arg: string): this;
|
|
81
|
+
/** Only commits that change `path`. */
|
|
82
|
+
addPath(path: string): this;
|
|
83
|
+
/** At most this many commits (`-n`). */
|
|
84
|
+
setMaxCount(maxCount: number): this;
|
|
85
|
+
/**
|
|
86
|
+
* Any other walk setting (`--author`, `--first-parent`, `--since`...): `configure` is run
|
|
87
|
+
* on each {@link RevListCommand} this command walks with; `names` says it names revisions
|
|
88
|
+
* (so the input is not read).
|
|
89
|
+
*/
|
|
90
|
+
configureRevisions(configure: (revisions: RevListCommand) => void, names?: boolean): this;
|
|
91
|
+
/** What git printed on stderr (`error:` lines of the mailmap's reading). */
|
|
92
|
+
getErrors(): string[];
|
|
93
|
+
/** The groups, in output order. */
|
|
94
|
+
call(): Promise<ShortlogEntry[]>;
|
|
95
|
+
/** git shortlog's output. */
|
|
96
|
+
callText(): Promise<string>;
|
|
97
|
+
/** git shortlog's output as bytes (the log output encoding's bytes kept as they were). */
|
|
98
|
+
callBytes(): Promise<Uint8Array>;
|
|
99
|
+
private run;
|
|
100
|
+
/** get_from_rev: every commit of the walk added (shortlog_add_commit). */
|
|
101
|
+
private walk;
|
|
102
|
+
/**
|
|
103
|
+
* Each commit of the walk formatted with each of `parts` (git's format_commit_message),
|
|
104
|
+
* in walk order: one walk for parts that cannot affect each other, another after a part
|
|
105
|
+
* whose state would reach the next.
|
|
106
|
+
*/
|
|
107
|
+
private formatParts;
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=shortlog-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortlog-command.d.ts","sourceRoot":"","sources":["../../src/commands/shortlog-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAML,KAAK,aAAa,EAElB,KAAK,YAAY,EAElB,MAAM,eAAe,CAAC;AAUvB;;;;;;;;;;;GAWG;AACH,qBAAa,eAAgB,SAAQ,UAAU,CAAC,aAAa,EAAE,CAAC;IAC9D,OAAO,CAAC,OAAO,CAAS;IACxB,OAA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E,MAAM,GAAG,IAAI,CAKlC;IAED,sGAAsG;IACtG,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAK7B;IAED,uCAAuC;IACvC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED,wCAAwC;IACxC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAIlC;IAED;;;;OAIG;IACH,kBAAkB,CAAC,SAAS,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,EAAE,KAAK,UAAQ,GAAG,IAAI,CAKtF;IAED,4EAA4E;IAC5E,SAAS,IAAI,MAAM,EAAE,CAEpB;IAED,mCAAmC;IAC7B,IAAI,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAErC;IAED,6BAA6B;IACvB,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAEhC;IAED,0FAA0F;IACpF,SAAS,IAAI,OAAO,CAAC,UAAU,CAAC,CAErC;YAEa,GAAG;IAoBjB,0EAA0E;YAC5D,IAAI;IAkElB;;;;OAIG;YACW,WAAW;CAqC1B"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's shortlog (builtin/shortlog.c): commits grouped by author (or committer, trailer
|
|
3
|
+
* values, formatted fields), each group's subjects oldest first, sorted by name or by count.
|
|
4
|
+
* {@link ShortlogCommand} walks a repository's history into it, `format-patch`'s cover letter
|
|
5
|
+
* uses it for its summary, and {@link readShortlogInput} reads `git log` output into it as
|
|
6
|
+
* `git log | git shortlog` does.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const log = new Shortlog({ wrap: { width: 76, indent1: 6, indent2: 9 } });
|
|
11
|
+
* log.insert("A U Thor", "Second commit");
|
|
12
|
+
* log.insert("A U Thor", "First commit");
|
|
13
|
+
* log.text(); // "A U Thor (2):\n First commit\n Second commit\n\n"
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
*/
|
|
18
|
+
import type { Mailmap } from "./mailmap.js";
|
|
19
|
+
/** `-w[<width>[,<indent1>[,<indent2>]]]`: how each subject is wrapped. */
|
|
20
|
+
export interface ShortlogWrap {
|
|
21
|
+
/** The width (0: indented, not wrapped) */
|
|
22
|
+
width: number;
|
|
23
|
+
/** The first line's indent */
|
|
24
|
+
indent1: number;
|
|
25
|
+
/** The other lines' indent */
|
|
26
|
+
indent2: number;
|
|
27
|
+
}
|
|
28
|
+
/** How a {@link Shortlog} prints. */
|
|
29
|
+
export interface ShortlogOptions {
|
|
30
|
+
/** `-s`: only each group's count */
|
|
31
|
+
summary?: boolean;
|
|
32
|
+
/** `-n`: groups sorted by count, largest first (else by name, in byte order) */
|
|
33
|
+
numbered?: boolean;
|
|
34
|
+
/** `-w`: subjects wrapped (else indented by six spaces) */
|
|
35
|
+
wrap?: ShortlogWrap;
|
|
36
|
+
}
|
|
37
|
+
/** One group of a shortlog: its name and its subjects (oldest first) or count. */
|
|
38
|
+
export interface ShortlogEntry {
|
|
39
|
+
/** The group's name (an author's name, with `-e` its email too; a trailer's value...) */
|
|
40
|
+
ident: string;
|
|
41
|
+
/** How many commits the group has */
|
|
42
|
+
count: number;
|
|
43
|
+
/** The subjects, oldest first (empty with `-s`) */
|
|
44
|
+
subjects: string[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* How a commit's records are written in the log output encoding (logmsg_reencode): in
|
|
48
|
+
* `output` when its text (`text`, as UTF-8) converts, else in the commit's own encoding
|
|
49
|
+
* (`stored`), else as stored (UTF-8, bytes that are no UTF-8 kept as they were). Only UTF-8
|
|
50
|
+
* and ISO-8859-1 are converted.
|
|
51
|
+
*/
|
|
52
|
+
export declare function outputEncoderFor(output: string, text: string, stored: string): (s: string) => Uint8Array;
|
|
53
|
+
/** git's `-w` without a value. */
|
|
54
|
+
export declare const SHORTLOG_DEFAULT_WRAP: ShortlogWrap;
|
|
55
|
+
/**
|
|
56
|
+
* pretty.c's format_subject: the lines of the first paragraph, each without its trailing
|
|
57
|
+
* blanks, joined by `separator`.
|
|
58
|
+
*/
|
|
59
|
+
export declare function formatSubject(text: string, separator?: string): string;
|
|
60
|
+
/**
|
|
61
|
+
* A commit message's `%s`: its first paragraph after any blank lines, the lines joined by
|
|
62
|
+
* spaces (pretty.c's subject).
|
|
63
|
+
*/
|
|
64
|
+
export declare function commitSubject(message: string): string;
|
|
65
|
+
/**
|
|
66
|
+
* The groups of a shortlog, as builtin/shortlog.c keeps them: a sorted list of names, each
|
|
67
|
+
* with its subjects (insert_one_record) or its count (`-s`). A tag passed with a record
|
|
68
|
+
* comes back with its output (format-patch encodes each line as its commit asks).
|
|
69
|
+
*/
|
|
70
|
+
export declare class Shortlog<T = undefined> {
|
|
71
|
+
private readonly options;
|
|
72
|
+
private readonly groups;
|
|
73
|
+
constructor(options?: ShortlogOptions);
|
|
74
|
+
/** insert_one_record: a commit's `oneline` (its subject, or the format's output) under `ident`. */
|
|
75
|
+
insert(ident: string, oneline: string, tag?: T): void;
|
|
76
|
+
/** The groups in output order (by name in byte order, or by count with `-n`). */
|
|
77
|
+
entries(): ShortlogEntry[];
|
|
78
|
+
private sorted;
|
|
79
|
+
/**
|
|
80
|
+
* shortlog_output: the text, in pieces, each with the tag of the record it shows (a
|
|
81
|
+
* group's header has its first record's tag; separators have none).
|
|
82
|
+
*/
|
|
83
|
+
pieces(): {
|
|
84
|
+
text: string;
|
|
85
|
+
tag?: T;
|
|
86
|
+
}[];
|
|
87
|
+
/** shortlog_output's text. */
|
|
88
|
+
text(): string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* parse_wrap_args: `-w` (undefined: 76, 6, 9) or `-w<width>[,<indent1>[,<indent2>]]`, each
|
|
92
|
+
* omitted number its default; throws git's `error: -w[...]` (exit 129) for a bad one.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* parseShortlogWrap("60,2"); // { width: 60, indent1: 2, indent2: 9 }
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
export declare function parseShortlogWrap(arg?: string): ShortlogWrap;
|
|
100
|
+
/** One `--group` of a shortlog. */
|
|
101
|
+
export type ShortlogGroup = {
|
|
102
|
+
kind: "author";
|
|
103
|
+
} | {
|
|
104
|
+
kind: "committer";
|
|
105
|
+
} | {
|
|
106
|
+
kind: "trailer";
|
|
107
|
+
key: string;
|
|
108
|
+
} | {
|
|
109
|
+
kind: "format";
|
|
110
|
+
format: string;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* parse_group_option: `author`, `committer` (without case), `trailer:<key>`,
|
|
114
|
+
* `format:<format>`, or a format with a `%` in it; throws git's `error: unknown group
|
|
115
|
+
* type: <arg>` (exit 129) for anything else.
|
|
116
|
+
*/
|
|
117
|
+
export declare function parseShortlogGroup(arg: string): ShortlogGroup;
|
|
118
|
+
/**
|
|
119
|
+
* ident.c's split_ident_line, for the name and the email: the name before the first `<`
|
|
120
|
+
* (without trailing blanks), the email up to the first `>` after it; undefined without both.
|
|
121
|
+
*/
|
|
122
|
+
export declare function splitIdent(text: string): {
|
|
123
|
+
name: string;
|
|
124
|
+
email: string;
|
|
125
|
+
} | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* shortlog.c's parse_ident: an identity (`Name <email> ...`) through the mailmap, as a
|
|
128
|
+
* group's name (`Name`, with `email` `Name <email>`); undefined when it does not parse.
|
|
129
|
+
*/
|
|
130
|
+
export declare function shortlogIdent(text: string, mailmap: Mailmap | undefined, email: boolean): string | undefined;
|
|
131
|
+
/** The lines of a text as strbuf_getline_lf reads them (the LF dropped, a CR kept). */
|
|
132
|
+
export declare function inputLines(text: string): string[];
|
|
133
|
+
/**
|
|
134
|
+
* read_from_stdin: the commits of `git log` output (any format with `Author:`/`author `
|
|
135
|
+
* or, for committers, `Commit:`/`committer ` lines: medium, full, raw...) added to `log`, each
|
|
136
|
+
* under its identity through `mailmap` (with `email`, `Name <email>`) and the first
|
|
137
|
+
* non-blank line after its headers. Only one group, author or committer, can be read: git's
|
|
138
|
+
* errors (exit 128) for the others.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```typescript
|
|
142
|
+
* const log = new Shortlog();
|
|
143
|
+
* readShortlogInput(logText, log, { group: "author" });
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
export declare function readShortlogInput<T>(text: string, log: Shortlog<T>, options?: {
|
|
147
|
+
groups?: ShortlogGroup[];
|
|
148
|
+
mailmap?: Mailmap;
|
|
149
|
+
email?: boolean;
|
|
150
|
+
}): void;
|
|
151
|
+
//# sourceMappingURL=shortlog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortlog.d.ts","sourceRoot":"","sources":["../../src/commands/shortlog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAI5C,0EAA0E;AAC1E,MAAM,WAAW,YAAY;IAC3B,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qCAAqC;AACrC,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,kFAAkF;AAClF,MAAM,WAAW,aAAa;IAC5B,yFAAyF;IACzF,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAWD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAA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AM,CAAA;CAAE,CAAC;AAEvC;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAQ7D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAQpF;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,GAAG,SAAS,EAC5B,KAAK,EAAE,OAAO,GACb,MAAM,GAAG,SAAS,CAKpB;AAED,uFAAuF;AACvF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAKjD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,EAChB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAC7E,IAAI,CAyBN"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ShowBranchCommand - `git show-branch` (builtin/show-branch.c): the commit-ancestry table of
|
|
3
|
+
* branches, and its other modes: `--list`, `--more=<n>`, `--independent`, `--merge-base`,
|
|
4
|
+
* `--topics`, `--sparse`, `--reflog` (`-g`).
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* // git show-branch main topic
|
|
9
|
+
* const { stdout } = await git.showBranch().setArguments(["main", "topic"]).call();
|
|
10
|
+
* // ! [main] subject of main
|
|
11
|
+
* // * [topic] subject of topic
|
|
12
|
+
* // --
|
|
13
|
+
* // * [topic] subject of topic
|
|
14
|
+
* // +* [main] subject of main
|
|
15
|
+
*
|
|
16
|
+
* // git show-branch --merge-base main topic: exit status 1 when there is none
|
|
17
|
+
* const { exitCode, stdout: base } = await git.showBranch()
|
|
18
|
+
* .setArguments(["--merge-base", "main", "topic"]).call();
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
import { GitCommand } from "../git-command.js";
|
|
22
|
+
import type { PlumbingTextOutput } from "./check-ref-format-command.js";
|
|
23
|
+
/**
|
|
24
|
+
* `git show-branch` with git's argv (`setArguments`), its output as git's process ends
|
|
25
|
+
* (stdout, stderr, exit status: 129 for git's usage errors, 128 where it dies). With no
|
|
26
|
+
* arguments the `showbranch.default` values are taken as the argv, as git does. Relative
|
|
27
|
+
* reflog dates count from {@link setNow} (git's `GIT_TEST_DATE_NOW`), else the clock.
|
|
28
|
+
*/
|
|
29
|
+
export declare class ShowBranchCommand extends GitCommand<PlumbingTextOutput> {
|
|
30
|
+
private args;
|
|
31
|
+
private now?;
|
|
32
|
+
private maxRevs;
|
|
33
|
+
/** git before 2.45 reads `<ref>@{<n>}` one record early (refs.c's read_ref_at) */
|
|
34
|
+
private legacyReflog;
|
|
35
|
+
/** The arguments after `git show-branch`, as git parses them. */
|
|
36
|
+
setArguments(args: readonly string[]): this;
|
|
37
|
+
/** The time relative reflog dates are counted from, in seconds (git's `GIT_TEST_DATE_NOW`). */
|
|
38
|
+
setNow(now: number): this;
|
|
39
|
+
/**
|
|
40
|
+
* The git version followed (`git version 2.43.0`, default the newest): before 2.54 git
|
|
41
|
+
* keeps one flag bit fewer, so it handles 26 refs at once instead of 27; before 2.45 its
|
|
42
|
+
* reflog reads show `<ref>@{<n>}` (n > 0) with the message and date of the newer entry.
|
|
43
|
+
*/
|
|
44
|
+
setVersionString(version: string): this;
|
|
45
|
+
call(): Promise<PlumbingTextOutput>;
|
|
46
|
+
private run;
|
|
47
|
+
/**
|
|
48
|
+
* read_ref_at's choice of the id of reflog entry `k` (newest first): the entry's new id
|
|
49
|
+
* when a newer entry exists (with git's warning when it does not follow on), else the
|
|
50
|
+
* ref's value `current` (with git's warning when the newest entry differs).
|
|
51
|
+
*/
|
|
52
|
+
private gapWarning;
|
|
53
|
+
private nowSeconds;
|
|
54
|
+
/** refs_resolve_refdup("HEAD", RESOLVE_REF_READING): the ref HEAD ends at, and its value. */
|
|
55
|
+
private readHead;
|
|
56
|
+
}
|
|
57
|
+
/** show-branch.c's version_cmp: runs of digits compared as numbers, the rest by byte. */
|
|
58
|
+
export declare function versionCmp(a: string, b: string): number;
|
|
59
|
+
//# sourceMappingURL=show-branch-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-branch-command.d.ts","sourceRoot":"","sources":["../../src/commands/show-branch-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AA+ExE;;;;;GAKG;AACH,qBAAa,iBAAkB,SAAQ,UAAU,CAAC,kBAAkB,CAAC;IACnE,OAAO,CAAC,IAAI,CAAgB;IAC5B,OAAO,CAAC,GAAG,CAAC,CAAS;IACrB,OAAO,CAAC,OAAO,CAAM;IACrB,kFAAkF;IAClF,OAAO,CAAC,YAAY,CAAS;IAE7B,iEAAiE;IACjE,YAAY,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAI1C;IAED,+FAA+F;IAC/F,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAIxB;IAED;;;;OAIG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAQtC;IAEK,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAqBxC;YAEa,GAAG;IA8YjB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAsBlB,OAAO,CAAC,UAAU;IAIlB,6FAA6F;YAC/E,QAAQ;CAcvB;AA2KD,yFAAyF;AACzF,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAuBvD"}
|