@statewalker/vcs-commands 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commands/add-command.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-backend.d.ts +2 -0
- package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-modes.d.ts +6 -2
- package/dist/commands/add-patch/patch-modes.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-session.d.ts +4 -0
- package/dist/commands/add-patch/patch-session.d.ts.map +1 -1
- package/dist/commands/am/am-command.d.ts +41 -2
- package/dist/commands/am/am-command.d.ts.map +1 -1
- package/dist/commands/apply/index.d.ts +1 -1
- package/dist/commands/apply/index.d.ts.map +1 -1
- package/dist/commands/archive/archive-command.d.ts +169 -0
- package/dist/commands/archive/archive-command.d.ts.map +1 -0
- package/dist/commands/archive/archive-entry.d.ts +60 -0
- package/dist/commands/archive/archive-entry.d.ts.map +1 -0
- package/dist/commands/archive/index.d.ts +8 -0
- package/dist/commands/archive/index.d.ts.map +1 -0
- package/dist/commands/archive/remote-archive-command.d.ts +56 -0
- package/dist/commands/archive/remote-archive-command.d.ts.map +1 -0
- package/dist/commands/archive/tar-archive.d.ts +31 -0
- package/dist/commands/archive/tar-archive.d.ts.map +1 -0
- package/dist/commands/archive/tar-commit-id.d.ts +13 -0
- package/dist/commands/archive/tar-commit-id.d.ts.map +1 -0
- package/dist/commands/archive/upload-archive-writer.d.ts +48 -0
- package/dist/commands/archive/upload-archive-writer.d.ts.map +1 -0
- package/dist/commands/archive/zip-archive.d.ts +42 -0
- package/dist/commands/archive/zip-archive.d.ts.map +1 -0
- package/dist/commands/attributes-source.d.ts +10 -0
- package/dist/commands/attributes-source.d.ts.map +1 -1
- package/dist/commands/blame-command.d.ts +43 -1
- package/dist/commands/blame-command.d.ts.map +1 -1
- package/dist/commands/bundle/bundle-create-command.d.ts +67 -0
- package/dist/commands/bundle/bundle-create-command.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-format.d.ts +89 -0
- package/dist/commands/bundle/bundle-format.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-list.d.ts +92 -0
- package/dist/commands/bundle/bundle-list.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-read-commands.d.ts +81 -0
- package/dist/commands/bundle/bundle-read-commands.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-support.d.ts +32 -0
- package/dist/commands/bundle/bundle-support.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-transport.d.ts +38 -0
- package/dist/commands/bundle/bundle-transport.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-uri-host.d.ts +43 -0
- package/dist/commands/bundle/bundle-uri-host.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-uri.d.ts +55 -0
- package/dist/commands/bundle/bundle-uri.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-verify.d.ts +63 -0
- package/dist/commands/bundle/bundle-verify.d.ts.map +1 -0
- package/dist/commands/bundle/index.d.ts +14 -0
- package/dist/commands/bundle/index.d.ts.map +1 -0
- package/dist/commands/cat-file/batch-format.d.ts +58 -0
- package/dist/commands/cat-file/batch-format.d.ts.map +1 -0
- package/dist/commands/cat-file/cat-file-command.d.ts +135 -0
- package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -0
- package/dist/commands/cat-file/index.d.ts +3 -0
- package/dist/commands/cat-file/index.d.ts.map +1 -0
- package/dist/commands/check-attr-command.d.ts +66 -0
- package/dist/commands/check-attr-command.d.ts.map +1 -0
- package/dist/commands/check-ignore-command.d.ts +58 -0
- package/dist/commands/check-ignore-command.d.ts.map +1 -0
- package/dist/commands/check-ref-format-command.d.ts +60 -0
- package/dist/commands/check-ref-format-command.d.ts.map +1 -0
- package/dist/commands/checkout-command.d.ts.map +1 -1
- package/dist/commands/checkout-index-command.d.ts +96 -0
- package/dist/commands/checkout-index-command.d.ts.map +1 -0
- package/dist/commands/cherry-pick-command.d.ts +10 -0
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clone-command.d.ts +19 -0
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +9 -1
- package/dist/commands/commit-command.d.ts.map +1 -1
- package/dist/commands/config-command.d.ts +2 -0
- package/dist/commands/config-command.d.ts.map +1 -1
- package/dist/commands/daemon-access-hook.d.ts +36 -0
- package/dist/commands/daemon-access-hook.d.ts.map +1 -0
- package/dist/commands/default-branch.d.ts +42 -0
- package/dist/commands/default-branch.d.ts.map +1 -1
- package/dist/commands/diff-command.d.ts +132 -5
- package/dist/commands/diff-command.d.ts.map +1 -1
- package/dist/commands/diff-external.d.ts +43 -0
- package/dist/commands/diff-external.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/diff-pairs-command.d.ts +27 -0
- package/dist/commands/diff-plumbing/diff-pairs-command.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts +129 -0
- package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/index.d.ts +3 -0
- package/dist/commands/diff-plumbing/index.d.ts.map +1 -0
- package/dist/commands/diff-textconv.d.ts +5 -1
- package/dist/commands/diff-textconv.d.ts.map +1 -1
- package/dist/commands/fast-export/fast-export-command.d.ts +135 -0
- package/dist/commands/fast-export/fast-export-command.d.ts.map +1 -0
- package/dist/commands/fast-export/fast-import-command.d.ts +182 -0
- package/dist/commands/fast-export/fast-import-command.d.ts.map +1 -0
- package/dist/commands/fast-export/fast-stream-support.d.ts +64 -0
- package/dist/commands/fast-export/fast-stream-support.d.ts.map +1 -0
- package/dist/commands/fast-export/index.d.ts +4 -0
- package/dist/commands/fast-export/index.d.ts.map +1 -0
- package/dist/commands/fetch-command.d.ts +65 -0
- package/dist/commands/fetch-command.d.ts.map +1 -1
- package/dist/commands/fetch-multiple-command.d.ts.map +1 -1
- package/dist/commands/format-rev-command.d.ts +58 -0
- package/dist/commands/format-rev-command.d.ts.map +1 -0
- package/dist/commands/fsck/fsck-command.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-msg-ids.d.ts +18 -3
- package/dist/commands/fsck/fsck-msg-ids.d.ts.map +1 -1
- package/dist/commands/fsmonitor-refresh.d.ts +69 -0
- package/dist/commands/fsmonitor-refresh.d.ts.map +1 -0
- package/dist/commands/gc-command.d.ts +5 -0
- package/dist/commands/gc-command.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +32 -0
- package/dist/commands/git-hooks.d.ts.map +1 -1
- package/dist/commands/git-paths.d.ts +26 -0
- package/dist/commands/git-paths.d.ts.map +1 -0
- package/dist/commands/grep/grep-command.d.ts +2 -1
- package/dist/commands/grep/grep-command.d.ts.map +1 -1
- package/dist/commands/history-command.d.ts +156 -0
- package/dist/commands/history-command.d.ts.map +1 -0
- package/dist/commands/http-config.d.ts +38 -0
- package/dist/commands/http-config.d.ts.map +1 -0
- package/dist/commands/index-adder.d.ts +12 -1
- package/dist/commands/index-adder.d.ts.map +1 -1
- package/dist/commands/index-host.d.ts.map +1 -1
- package/dist/commands/index.d.ts +44 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +6 -5
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/last-modified-command.d.ts +102 -0
- package/dist/commands/last-modified-command.d.ts.map +1 -0
- package/dist/commands/lfs/go-url.d.ts +43 -0
- package/dist/commands/lfs/go-url.d.ts.map +1 -0
- package/dist/commands/lfs/index.d.ts +3 -0
- package/dist/commands/lfs/index.d.ts.map +1 -0
- package/dist/commands/lfs/lfs-config.d.ts +174 -0
- package/dist/commands/lfs/lfs-config.d.ts.map +1 -0
- package/dist/commands/lfs/lfs-endpoint-command.d.ts +83 -0
- package/dist/commands/lfs/lfs-endpoint-command.d.ts.map +1 -0
- package/dist/commands/local-transport.d.ts.map +1 -1
- package/dist/commands/log-command.d.ts +26 -0
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +22 -1
- package/dist/commands/log-output.d.ts.map +1 -1
- package/dist/commands/ls-files-command.d.ts +153 -0
- package/dist/commands/ls-files-command.d.ts.map +1 -0
- package/dist/commands/ls-remote-command.d.ts +5 -0
- package/dist/commands/ls-remote-command.d.ts.map +1 -1
- package/dist/commands/ls-tree-command.d.ts +105 -0
- package/dist/commands/ls-tree-command.d.ts.map +1 -0
- package/dist/commands/maintenance-run-command.d.ts +122 -0
- package/dist/commands/maintenance-run-command.d.ts.map +1 -0
- package/dist/commands/merge-command.d.ts +7 -0
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-config.d.ts +7 -0
- package/dist/commands/merge-config.d.ts.map +1 -1
- package/dist/commands/merge-drivers.d.ts +67 -5
- package/dist/commands/merge-drivers.d.ts.map +1 -1
- package/dist/commands/merge-support.d.ts +6 -0
- package/dist/commands/merge-support.d.ts.map +1 -1
- package/dist/commands/merge-tree-command.d.ts +122 -0
- package/dist/commands/merge-tree-command.d.ts.map +1 -0
- package/dist/commands/mktag-command.d.ts +51 -0
- package/dist/commands/mktag-command.d.ts.map +1 -0
- package/dist/commands/object-store/count-objects-command.d.ts +58 -0
- package/dist/commands/object-store/count-objects-command.d.ts.map +1 -0
- package/dist/commands/object-store/index.d.ts +5 -0
- package/dist/commands/object-store/index.d.ts.map +1 -0
- package/dist/commands/object-store/objects-directory.d.ts +12 -0
- package/dist/commands/object-store/objects-directory.d.ts.map +1 -0
- package/dist/commands/object-store/prune-command.d.ts +38 -0
- package/dist/commands/object-store/prune-command.d.ts.map +1 -0
- package/dist/commands/object-store/show-index-command.d.ts +23 -0
- package/dist/commands/object-store/show-index-command.d.ts.map +1 -0
- package/dist/commands/ort-merge.d.ts +24 -0
- package/dist/commands/ort-merge.d.ts.map +1 -1
- package/dist/commands/patch-id-command.d.ts +30 -0
- package/dist/commands/patch-id-command.d.ts.map +1 -0
- package/dist/commands/patch-id.d.ts +24 -0
- package/dist/commands/patch-id.d.ts.map +1 -1
- package/dist/commands/plumbing-command.d.ts +66 -0
- package/dist/commands/plumbing-command.d.ts.map +1 -0
- package/dist/commands/plumbing-input.d.ts +38 -0
- package/dist/commands/plumbing-input.d.ts.map +1 -0
- package/dist/commands/promisor-remote-reply.d.ts +35 -0
- package/dist/commands/promisor-remote-reply.d.ts.map +1 -0
- package/dist/commands/promisor-remote.d.ts.map +1 -1
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +17 -2
- package/dist/commands/push-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +108 -2
- package/dist/commands/rebase-command.d.ts.map +1 -1
- package/dist/commands/refs-command.d.ts +81 -0
- package/dist/commands/refs-command.d.ts.map +1 -0
- package/dist/commands/remote-object-info-command.d.ts +55 -0
- package/dist/commands/remote-object-info-command.d.ts.map +1 -0
- package/dist/commands/remote-transport.d.ts +40 -3
- package/dist/commands/remote-transport.d.ts.map +1 -1
- package/dist/commands/repack-command.d.ts +115 -0
- package/dist/commands/repack-command.d.ts.map +1 -0
- package/dist/commands/replace-command.d.ts +143 -0
- package/dist/commands/replace-command.d.ts.map +1 -0
- package/dist/commands/replay-command.d.ts +117 -0
- package/dist/commands/replay-command.d.ts.map +1 -0
- package/dist/commands/repo-command.d.ts +136 -0
- package/dist/commands/repo-command.d.ts.map +1 -0
- package/dist/commands/request-pull-command.d.ts +82 -0
- package/dist/commands/request-pull-command.d.ts.map +1 -0
- package/dist/commands/rerere-command.d.ts +36 -0
- package/dist/commands/rerere-command.d.ts.map +1 -0
- package/dist/commands/rerere.d.ts +102 -0
- package/dist/commands/rerere.d.ts.map +1 -0
- package/dist/commands/rev-filter/commit-grep.d.ts +3 -1
- package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -1
- package/dist/commands/rev-list-command.d.ts +3 -0
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/rev-parse-command.d.ts +9 -0
- package/dist/commands/rev-parse-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +10 -0
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +5 -0
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/revision-resolver.d.ts +12 -0
- package/dist/commands/revision-resolver.d.ts.map +1 -1
- package/dist/commands/sequencer-pick.d.ts +18 -0
- package/dist/commands/sequencer-pick.d.ts.map +1 -1
- package/dist/commands/serve-repository.d.ts +23 -1
- package/dist/commands/serve-repository.d.ts.map +1 -1
- package/dist/commands/session-id.d.ts +18 -0
- package/dist/commands/session-id.d.ts.map +1 -0
- package/dist/commands/show-branch-command.d.ts +59 -0
- package/dist/commands/show-branch-command.d.ts.map +1 -0
- package/dist/commands/show-ref-command.d.ts +112 -0
- package/dist/commands/show-ref-command.d.ts.map +1 -0
- package/dist/commands/signature-check.d.ts +9 -2
- package/dist/commands/signature-check.d.ts.map +1 -1
- package/dist/commands/signing.d.ts +22 -1
- package/dist/commands/signing.d.ts.map +1 -1
- package/dist/commands/stash-apply-command.d.ts.map +1 -1
- package/dist/commands/stash-export-command.d.ts +115 -0
- package/dist/commands/stash-export-command.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +2 -1
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/stripspace-command.d.ts +44 -0
- package/dist/commands/stripspace-command.d.ts.map +1 -0
- package/dist/commands/submodule-add-command.d.ts +10 -1
- package/dist/commands/submodule-add-command.d.ts.map +1 -1
- package/dist/commands/submodule-auth.d.ts +3 -1
- package/dist/commands/submodule-auth.d.ts.map +1 -1
- package/dist/commands/submodule-commands.d.ts +9 -1
- package/dist/commands/submodule-commands.d.ts.map +1 -1
- package/dist/commands/submodule-update-command.d.ts +13 -1
- package/dist/commands/submodule-update-command.d.ts.map +1 -1
- package/dist/commands/textconv-cache.d.ts +58 -0
- package/dist/commands/textconv-cache.d.ts.map +1 -0
- package/dist/commands/tree-restore.d.ts +5 -0
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/unpack-objects-command.d.ts +47 -0
- package/dist/commands/unpack-objects-command.d.ts.map +1 -0
- package/dist/commands/update-index-command.d.ts +110 -0
- package/dist/commands/update-index-command.d.ts.map +1 -0
- package/dist/commands/uri-protocols.d.ts +13 -0
- package/dist/commands/uri-protocols.d.ts.map +1 -0
- package/dist/commands/url-parse-command.d.ts +30 -0
- package/dist/commands/url-parse-command.d.ts.map +1 -0
- package/dist/commands/var-command.d.ts +42 -0
- package/dist/commands/var-command.d.ts.map +1 -0
- package/dist/{commands-CNvli5bl.js → commands-Mlo1dxQN.js} +52078 -44471
- package/dist/errors/command-errors.d.ts +33 -0
- package/dist/errors/command-errors.d.ts.map +1 -1
- package/dist/errors/index.js +39 -1
- package/dist/{fsck-CPeDh9fh.js → fsck-CrhVMNIH.js} +184 -143
- package/dist/git-command.d.ts +58 -2
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +532 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/guarded-transport-command.d.ts +3 -1
- package/dist/guarded-transport-command.d.ts.map +1 -1
- package/dist/index.js +7 -6
- package/dist/maintenance-run-command-Bw21HEkH.js +13539 -0
- package/dist/{remote-transport-CCmBadm-.js → remote-transport-Bu4PGSMD.js} +1009 -10
- package/dist/results/cherry-pick-result.d.ts +6 -0
- package/dist/results/cherry-pick-result.d.ts.map +1 -1
- package/dist/results/diff-entry.d.ts +10 -0
- package/dist/results/diff-entry.d.ts.map +1 -1
- package/dist/results/diff-formatter.d.ts.map +1 -1
- package/dist/results/diff-output.d.ts +49 -3
- package/dist/results/diff-output.d.ts.map +1 -1
- package/dist/results/fetch-result.d.ts +12 -0
- package/dist/results/fetch-result.d.ts.map +1 -1
- package/dist/results/index.js +2 -2
- package/dist/results/merge-result.d.ts +5 -0
- package/dist/results/merge-result.d.ts.map +1 -1
- package/dist/results/push-result.d.ts +5 -0
- package/dist/results/push-result.d.ts.map +1 -1
- package/dist/results/rebase-result.d.ts +7 -0
- package/dist/results/rebase-result.d.ts.map +1 -1
- package/dist/results/revert-result.d.ts +6 -0
- package/dist/results/revert-result.d.ts.map +1 -1
- package/dist/results/stash-result.d.ts +5 -0
- package/dist/results/stash-result.d.ts.map +1 -1
- package/dist/{results-BDuEgdLU.js → results-ERo9vELd.js} +28511 -25685
- package/dist/transport-command.d.ts +79 -1
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/commands/add-command.ts +3 -0
- package/src/commands/add-patch/patch-backend.ts +4 -1
- package/src/commands/add-patch/patch-modes.ts +26 -2
- package/src/commands/add-patch/patch-session.ts +6 -0
- package/src/commands/am/am-command.ts +163 -8
- package/src/commands/apply/index.ts +1 -0
- package/src/commands/archive/archive-command.ts +1148 -0
- package/src/commands/archive/archive-entry.ts +93 -0
- package/src/commands/archive/index.ts +7 -0
- package/src/commands/archive/remote-archive-command.ts +140 -0
- package/src/commands/archive/tar-archive.ts +207 -0
- package/src/commands/archive/tar-commit-id.ts +72 -0
- package/src/commands/archive/upload-archive-writer.ts +213 -0
- package/src/commands/archive/zip-archive.ts +317 -0
- package/src/commands/attributes-source.ts +26 -12
- package/src/commands/blame-command.ts +118 -19
- package/src/commands/bundle/bundle-create-command.ts +405 -0
- package/src/commands/bundle/bundle-format.ts +228 -0
- package/src/commands/bundle/bundle-list.ts +276 -0
- package/src/commands/bundle/bundle-read-commands.ts +157 -0
- package/src/commands/bundle/bundle-support.ts +85 -0
- package/src/commands/bundle/bundle-transport.ts +107 -0
- package/src/commands/bundle/bundle-uri-host.ts +204 -0
- package/src/commands/bundle/bundle-uri.ts +236 -0
- package/src/commands/bundle/bundle-verify.ts +152 -0
- package/src/commands/bundle/index.ts +14 -0
- package/src/commands/cat-file/batch-format.ts +193 -0
- package/src/commands/cat-file/cat-file-command.ts +857 -0
- package/src/commands/cat-file/index.ts +2 -0
- package/src/commands/check-attr-command.ts +333 -0
- package/src/commands/check-ignore-command.ts +261 -0
- package/src/commands/check-ref-format-command.ts +129 -0
- package/src/commands/checkout-command.ts +39 -21
- package/src/commands/checkout-index-command.ts +568 -0
- package/src/commands/checkout-paths.ts +7 -0
- package/src/commands/cherry-pick-command.ts +21 -1
- package/src/commands/clone-command.ts +208 -7
- package/src/commands/commit-command.ts +22 -4
- package/src/commands/config-command.ts +9 -0
- package/src/commands/daemon-access-hook.ts +78 -0
- package/src/commands/default-branch.ts +99 -1
- package/src/commands/diff-command.ts +573 -46
- package/src/commands/diff-external.ts +131 -0
- package/src/commands/diff-plumbing/diff-pairs-command.ts +193 -0
- package/src/commands/diff-plumbing/diff-plumbing-command.ts +424 -0
- package/src/commands/diff-plumbing/index.ts +2 -0
- package/src/commands/diff-textconv.ts +5 -1
- package/src/commands/fast-export/fast-export-command.ts +911 -0
- package/src/commands/fast-export/fast-import-command.ts +1553 -0
- package/src/commands/fast-export/fast-stream-support.ts +162 -0
- package/src/commands/fast-export/index.ts +3 -0
- package/src/commands/fetch-command.ts +312 -8
- package/src/commands/fetch-multiple-command.ts +4 -1
- package/src/commands/format-rev-command.ts +251 -0
- package/src/commands/fsck/fsck-command.ts +47 -20
- package/src/commands/fsck/fsck-msg-ids.ts +19 -3
- package/src/commands/fsck/fsck-pack.ts +2 -2
- package/src/commands/fsmonitor-refresh.ts +315 -0
- package/src/commands/gc-command.ts +10 -0
- package/src/commands/git-hooks.ts +123 -6
- package/src/commands/git-paths.ts +136 -0
- package/src/commands/grep/grep-command.ts +38 -15
- package/src/commands/history-command.ts +617 -0
- package/src/commands/http-config.ts +139 -0
- package/src/commands/index-adder.ts +37 -3
- package/src/commands/index-host.ts +6 -1
- package/src/commands/index.ts +45 -0
- package/src/commands/init-command.ts +14 -0
- package/src/commands/last-modified-command.ts +804 -0
- package/src/commands/lfs/go-url.ts +370 -0
- package/src/commands/lfs/index.ts +2 -0
- package/src/commands/lfs/lfs-config.ts +738 -0
- package/src/commands/lfs/lfs-endpoint-command.ts +180 -0
- package/src/commands/local-transport.ts +252 -4
- package/src/commands/log-command.ts +104 -5
- package/src/commands/log-output.ts +55 -5
- package/src/commands/ls-files-command.ts +1177 -0
- package/src/commands/ls-remote-command.ts +6 -0
- package/src/commands/ls-tree-command.ts +684 -0
- package/src/commands/maintenance-run-command.ts +949 -0
- package/src/commands/merge-command.ts +78 -32
- package/src/commands/merge-config.ts +23 -1
- package/src/commands/merge-drivers.ts +109 -20
- package/src/commands/merge-support.ts +29 -5
- package/src/commands/merge-tree-command.ts +786 -0
- package/src/commands/mktag-command.ts +149 -0
- package/src/commands/object-store/count-objects-command.ts +404 -0
- package/src/commands/object-store/index.ts +4 -0
- package/src/commands/object-store/objects-directory.ts +24 -0
- package/src/commands/object-store/prune-command.ts +129 -0
- package/src/commands/object-store/show-index-command.ts +151 -0
- package/src/commands/ort-merge.ts +92 -25
- package/src/commands/patch-id-command.ts +65 -0
- package/src/commands/patch-id.ts +218 -0
- package/src/commands/plumbing-command.ts +141 -0
- package/src/commands/plumbing-input.ts +87 -0
- package/src/commands/promisor-remote-reply.ts +276 -0
- package/src/commands/promisor-remote.ts +25 -2
- package/src/commands/pull-command.ts +2 -0
- package/src/commands/push-command.ts +87 -5
- package/src/commands/rebase-command.ts +507 -19
- package/src/commands/refs-command.ts +274 -0
- package/src/commands/remote-object-info-command.ts +109 -0
- package/src/commands/remote-transport.ts +116 -1
- package/src/commands/repack-command.ts +383 -0
- package/src/commands/replace-command.ts +816 -0
- package/src/commands/replay-command.ts +674 -0
- package/src/commands/repo-command.ts +967 -0
- package/src/commands/request-pull-command.ts +356 -0
- package/src/commands/rerere-command.ts +179 -0
- package/src/commands/rerere.ts +925 -0
- package/src/commands/rev-filter/commit-grep.ts +7 -2
- package/src/commands/rev-list-command.ts +9 -0
- package/src/commands/rev-parse-command.ts +62 -4
- package/src/commands/revert-command.ts +21 -1
- package/src/commands/revision-range.ts +7 -2
- package/src/commands/revision-resolver.ts +44 -3
- package/src/commands/sequencer-pick.ts +47 -0
- package/src/commands/serve-repository.ts +65 -0
- package/src/commands/session-id.ts +31 -0
- package/src/commands/show-branch-command.ts +981 -0
- package/src/commands/show-command.ts +1 -1
- package/src/commands/show-ref-command.ts +439 -0
- package/src/commands/signature-check.ts +37 -5
- package/src/commands/signing.ts +122 -16
- package/src/commands/stash-apply-command.ts +3 -0
- package/src/commands/stash-export-command.ts +397 -0
- package/src/commands/status-command.ts +43 -6
- package/src/commands/stripspace-command.ts +118 -0
- package/src/commands/submodule-add-command.ts +22 -1
- package/src/commands/submodule-auth.ts +61 -6
- package/src/commands/submodule-commands.ts +12 -2
- package/src/commands/submodule-update-command.ts +29 -0
- package/src/commands/textconv-cache.ts +143 -0
- package/src/commands/tree-restore.ts +14 -0
- package/src/commands/unpack-objects-command.ts +235 -0
- package/src/commands/update-index-command.ts +1016 -0
- package/src/commands/uri-protocols.ts +13 -0
- package/src/commands/url-parse-command.ts +67 -0
- package/src/commands/var-command.ts +219 -0
- package/src/errors/command-errors.ts +45 -0
- package/src/git-command.ts +131 -1
- package/src/git.ts +808 -1
- package/src/guarded-transport-command.ts +6 -1
- package/src/results/cherry-pick-result.ts +6 -0
- package/src/results/diff-entry.ts +12 -0
- package/src/results/diff-formatter.ts +7 -4
- package/src/results/diff-output.ts +117 -11
- package/src/results/diff-pickaxe.ts +1 -1
- package/src/results/fetch-result.ts +12 -0
- package/src/results/merge-result.ts +5 -0
- package/src/results/push-result.ts +5 -0
- package/src/results/rebase-result.ts +7 -0
- package/src/results/revert-result.ts +6 -0
- package/src/results/stash-result.ts +6 -0
- package/src/transport-command.ts +182 -1
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git repo info` and `git repo structure` (builtin/repo.c, git 2.52+).
|
|
3
|
+
*
|
|
4
|
+
* ```typescript
|
|
5
|
+
* const { stdout } = await git.repoInfo().addKeys("layout.bare", "object.format").callOutput();
|
|
6
|
+
* // "layout.bare=false\nobject.format=sha1\n"
|
|
7
|
+
* const table = await git.repoStructure().callOutput(); // the "Repository structure" table
|
|
8
|
+
* ```
|
|
9
|
+
*
|
|
10
|
+
* Both write stdout as git does and return git's exit status ({@link PlumbingCommand}). The
|
|
11
|
+
* keys of `repo info` depend on the git version ({@link RepoInfoCommand.setCompatibility}).
|
|
12
|
+
*/
|
|
13
|
+
import { type ObjectId } from "@statewalker/vcs-core";
|
|
14
|
+
import { PlumbingCommand } from "./plumbing-command.js";
|
|
15
|
+
/**
|
|
16
|
+
* The `repo info` key sets: "2.54" (2.54 and 2.55: `layout.*`, `object.format`,
|
|
17
|
+
* `references.format`), "2.56" (2.56.x: also `path.commondir.*` and `path.gitdir.*`), "2.57"
|
|
18
|
+
* (git master after 2.56: `objects.storageFormat`, the other `path.*` keys, and
|
|
19
|
+
* `references.format` renamed `references.storageFormat`). `repo structure` is the same in all.
|
|
20
|
+
*/
|
|
21
|
+
export type RepoCompatibility = "2.54" | "2.56" | "2.57";
|
|
22
|
+
/** path.c's relative_path (POSIX: `/` the only separator). */
|
|
23
|
+
export declare function gitRelativePath(input: string, prefix: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* `git repo info [--format=(lines|nul) | -z] [--all | <key>...]` and `git repo info --keys`.
|
|
26
|
+
*
|
|
27
|
+
* Paths are host paths: the FilesApi's root directory joined with its paths, resolved through
|
|
28
|
+
* the host's `realPath`; without a root directory the path keys are empty. Not followed:
|
|
29
|
+
* `$GIT_DIR`/`$GIT_COMMON_DIR` given apart from the working copy (the working copy's own
|
|
30
|
+
* directories are reported). `path.superprojectworkingtree.*` is found where the repository's
|
|
31
|
+
* git directory is `<super>/.git/modules/<name>` and the superproject's worktree holds the
|
|
32
|
+
* repository at its place (git asks the superproject's index).
|
|
33
|
+
*/
|
|
34
|
+
export declare class RepoInfoCommand extends PlumbingCommand {
|
|
35
|
+
private format;
|
|
36
|
+
private all;
|
|
37
|
+
private showKeys;
|
|
38
|
+
private keys;
|
|
39
|
+
private compatibility;
|
|
40
|
+
private currentDirectory;
|
|
41
|
+
/** `--format=<format>` (`lines`, `nul`; `table` is refused when printing values) */
|
|
42
|
+
setFormat(format: string): this;
|
|
43
|
+
/** `-z`: `--format=nul` */
|
|
44
|
+
setNul(): this;
|
|
45
|
+
/** `--all`: every key */
|
|
46
|
+
setAll(all: boolean): this;
|
|
47
|
+
/** `--keys`: the key names instead of values */
|
|
48
|
+
setShowKeys(keys: boolean): this;
|
|
49
|
+
/** The keys asked for, in order (repeats allowed). */
|
|
50
|
+
addKeys(...keys: string[]): this;
|
|
51
|
+
/** The git version whose keys are known (default 2.57: git master). */
|
|
52
|
+
setCompatibility(compatibility: RepoCompatibility): this;
|
|
53
|
+
/** The directory git runs from, below the worktree top (`path.prefix`, relative paths). */
|
|
54
|
+
setCurrentDirectory(path: string): this;
|
|
55
|
+
protected run(): Promise<number>;
|
|
56
|
+
private facts;
|
|
57
|
+
/** get_superproject_working_tree, for a git directory under `<super>/.git/modules/`. */
|
|
58
|
+
private superprojectOf;
|
|
59
|
+
}
|
|
60
|
+
/** Counts and sizes `repo structure` prints of each object type. */
|
|
61
|
+
interface ObjectValues {
|
|
62
|
+
commits: number;
|
|
63
|
+
trees: number;
|
|
64
|
+
blobs: number;
|
|
65
|
+
tags: number;
|
|
66
|
+
}
|
|
67
|
+
interface Largest {
|
|
68
|
+
id: ObjectId | undefined;
|
|
69
|
+
value: number;
|
|
70
|
+
}
|
|
71
|
+
/** What `git repo structure` counted. */
|
|
72
|
+
export interface RepoStructure {
|
|
73
|
+
references: {
|
|
74
|
+
branches: number;
|
|
75
|
+
tags: number;
|
|
76
|
+
remotes: number;
|
|
77
|
+
others: number;
|
|
78
|
+
};
|
|
79
|
+
counts: ObjectValues;
|
|
80
|
+
inflatedSizes: ObjectValues;
|
|
81
|
+
diskSizes: ObjectValues;
|
|
82
|
+
largest: {
|
|
83
|
+
commitSize: Largest;
|
|
84
|
+
treeSize: Largest;
|
|
85
|
+
blobSize: Largest;
|
|
86
|
+
tagSize: Largest;
|
|
87
|
+
parentCount: Largest;
|
|
88
|
+
treeEntries: Largest;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/** strbuf.c's humanise_count. */
|
|
92
|
+
export declare function humaniseCount(count: number): {
|
|
93
|
+
value: string;
|
|
94
|
+
unit?: string;
|
|
95
|
+
};
|
|
96
|
+
/** strbuf.c's humanise_bytes with HUMANISE_COMPACT. */
|
|
97
|
+
export declare function humaniseBytesCompact(bytes: number): {
|
|
98
|
+
value: string;
|
|
99
|
+
unit: string;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* `git repo structure [--format=(table|lines|nul) | -z] [--[no-]progress]`: the references
|
|
103
|
+
* by kind and the objects reachable from them (path-walk.c's walk over every ref, as git
|
|
104
|
+
* walks it, so ties of the largest objects go to the object git meets first), with their
|
|
105
|
+
* inflated and on-disk sizes (a packed object's entry, a loose object's file; an object only
|
|
106
|
+
* an alternate holds counts 0 bytes on disk).
|
|
107
|
+
*/
|
|
108
|
+
export declare class RepoStructureCommand extends PlumbingCommand {
|
|
109
|
+
private format;
|
|
110
|
+
private showProgress;
|
|
111
|
+
private counted?;
|
|
112
|
+
/** `--format=<format>` (`table`, `lines`, `nul`) */
|
|
113
|
+
setFormat(format: string): this;
|
|
114
|
+
/** `-z`: `--format=nul` */
|
|
115
|
+
setNul(): this;
|
|
116
|
+
/** `--progress`: the final progress lines on stderr (git's default: on a terminal only) */
|
|
117
|
+
setShowProgress(progress: boolean): this;
|
|
118
|
+
/** What the last run counted. */
|
|
119
|
+
getStructure(): RepoStructure | undefined;
|
|
120
|
+
protected run(): Promise<number>;
|
|
121
|
+
/** count_references: every ref under refs/ (symbolic ones resolved), in name order. */
|
|
122
|
+
private countReferences;
|
|
123
|
+
/** structure_count_objects: path-walk.c's walk_objects_by_path from the refs. */
|
|
124
|
+
private countObjects;
|
|
125
|
+
/**
|
|
126
|
+
* The bytes an object takes on disk, as odb_read_object_info_extended's `disk_sizep`: its
|
|
127
|
+
* pack entry (to the next entry by offset, or the trailer), else its loose file.
|
|
128
|
+
*/
|
|
129
|
+
private diskSizer;
|
|
130
|
+
/** stats_table_setup_structure + stats_table_print_structure. */
|
|
131
|
+
private table;
|
|
132
|
+
/** structure_keyvalue_print. */
|
|
133
|
+
private keyValues;
|
|
134
|
+
}
|
|
135
|
+
export {};
|
|
136
|
+
//# sourceMappingURL=repo-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repo-command.d.ts","sourceRoot":"","sources":["../../src/commands/repo-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAIL,KAAK,QAAQ,EAId,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAAE,eAAe,EAAiB,MAAM,uBAAuB,CAAC;AAGvE;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAUzD,8DAA8D;AAC9D,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CA8CrE;AAsED;;;;;;;;;GASG;AACH,qBAAa,eAAgB,SAAQ,eAAe;IAClD,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,IAAI,CAAgB;IAC5B,OAAO,CAAC,aAAa,CAA6B;IAClD,OAAO,CAAC,gBAAgB,CAAM;IAE9B,oFAAoF;IACpF,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAM9B;IAED,2BAA2B;IAC3B,MAAM,IAAI,IAAI,CAEb;IAED,yBAAyB;IACzB,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAIzB;IAED,gDAAgD;IAChD,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED,sDAAsD;IACtD,OAAO,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAI/B;IAED,uEAAuE;IACvE,gBAAgB,CAAC,aAAa,EAAE,iBAAiB,GAAG,IAAI,CAIvD;IAED,2FAA2F;IA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,SAAQ,eAAe;IACvD,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,OAAO,CAAC,CAAgB;IAEhC,oDAAoD;IACpD,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAM9B;IAED,2BAA2B;IAC3B,MAAM,IAAI,IAAI,CAEb;IAED,2FAA2F;IAC3F,eAAe,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAIvC;IAED,iCAAiC;IACjC,YAAY,IAAI,aAAa,GAAG,SAAS,CAExC;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CA4BrC;IAED,uFAAuF;YACzE,eAAe;IAmB7B,iFAAiF;YACnE,YAAY;IAmL1B;;;OAGG;YACW,SAAS;IAqDvB,iEAAiE;IACjE,OAAO,CAAC,KAAK;IA2Eb,gCAAgC;IAChC,OAAO,CAAC,SAAS;CAkClB"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git request-pull` (git-request-pull.sh) as a library command: the text asking someone to
|
|
3
|
+
* pull a branch or tag of a published repository, with the range's shortlog and diffstat.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git request-pull v1.0 https://example.com/repo.git main:for-linus
|
|
8
|
+
* const { stdout, stderr, exitCode } = await git
|
|
9
|
+
* .requestPull()
|
|
10
|
+
* .setStart("v1.0")
|
|
11
|
+
* .setUrl("https://example.com/repo.git")
|
|
12
|
+
* .setEnd("main:for-linus")
|
|
13
|
+
* .call();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import { TransportCommand } from "../transport-command.js";
|
|
17
|
+
import type { PlumbingTextOutput } from "./check-ref-format-command.js";
|
|
18
|
+
/**
|
|
19
|
+
* `git request-pull [-p] <start> <url> [<end>]`. The result is git's stdout, stderr and exit
|
|
20
|
+
* status: 1 with git's `warn:` lines when `<url>` has no ref of the remote name (default
|
|
21
|
+
* `HEAD`) at the commit asked for, or one at another object (the text is still printed), 1
|
|
22
|
+
* with git's `fatal:` line when a revision names nothing or the two have no common history.
|
|
23
|
+
*
|
|
24
|
+
* The remote's refs are listed through the command's transports (credentials and headers as
|
|
25
|
+
* {@link TransportCommand} gives them); everything else is read from the repository: the
|
|
26
|
+
* merge base, the shortlog (`git shortlog ^<start> <end>`, mailmap applied) and `git diff -M
|
|
27
|
+
* --stat --summary [-p]` of the merge base and the end.
|
|
28
|
+
*/
|
|
29
|
+
export declare class RequestPullCommand extends TransportCommand<PlumbingTextOutput> {
|
|
30
|
+
private start;
|
|
31
|
+
private url;
|
|
32
|
+
private end;
|
|
33
|
+
private patch;
|
|
34
|
+
private compatibility;
|
|
35
|
+
/** `<start>`: the commit the changes are based on (the upstream's), any committish. */
|
|
36
|
+
setStart(start: string): this;
|
|
37
|
+
/** `<url>`: the repository to pull from, a URL or a remote's name. */
|
|
38
|
+
setUrl(url: string): this;
|
|
39
|
+
/**
|
|
40
|
+
* `<end>`: what to pull, `<local>[:<remote>]` (default `HEAD`, asked as the remote's
|
|
41
|
+
* `HEAD`); the remote side is the name looked for among the remote's refs.
|
|
42
|
+
*/
|
|
43
|
+
setEnd(end: string): this;
|
|
44
|
+
/** `-p`: the patch after the diffstat. */
|
|
45
|
+
setPatch(patch: boolean): this;
|
|
46
|
+
/**
|
|
47
|
+
* The git version to follow (default 2.56). Before 2.50 a Perl script matched the remote's
|
|
48
|
+
* refs and kept the last ref matching, from 2.50 a shell loop keeps the first.
|
|
49
|
+
*/
|
|
50
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
51
|
+
call(): Promise<PlumbingTextOutput>;
|
|
52
|
+
private run;
|
|
53
|
+
/** `git rev-parse --verify --quiet <name>`: undefined when it names no single object. */
|
|
54
|
+
private verify;
|
|
55
|
+
/** `git symbolic-ref -q <name>`: the ref a symbolic ref names, else undefined. */
|
|
56
|
+
private symbolicRef;
|
|
57
|
+
/**
|
|
58
|
+
* `git show-ref --heads --tags <name> | cut -d' ' -f2`: the branches and tags the name ends
|
|
59
|
+
* (several lines when it names several, which `rev-parse` then refuses).
|
|
60
|
+
*/
|
|
61
|
+
private showRef;
|
|
62
|
+
/**
|
|
63
|
+
* `git ls-remote <url>`: HEAD first, then each ref and its peeled object (`<ref>^{}`). A
|
|
64
|
+
* listing that fails leaves its lines on stderr and lists nothing, as the pipe does.
|
|
65
|
+
*/
|
|
66
|
+
private listRemote;
|
|
67
|
+
/**
|
|
68
|
+
* find_matching_ref: the remote ref named `asked` (or ending in `/<asked>`) at `headrev`,
|
|
69
|
+
* with the object the remote's matching unpeeled ref names. 2.50+ (a shell loop) stops at
|
|
70
|
+
* the first match; 2.43's Perl script meant to (`break` is no Perl statement) and keeps the
|
|
71
|
+
* last one, the object of the last unpeeled matching ref.
|
|
72
|
+
*/
|
|
73
|
+
private matchRef;
|
|
74
|
+
/** `git show -s --format=<format> <id>` */
|
|
75
|
+
private show;
|
|
76
|
+
/**
|
|
77
|
+
* `git cat-file tag <head> | sed -n -e '1,/^$/d' -e '/^-----BEGIN \(PGP\|SSH\|SIGNED\) /q'
|
|
78
|
+
* -e p` when the end names a tag: its message up to the signature (undefined otherwise).
|
|
79
|
+
*/
|
|
80
|
+
private tagMessage;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=request-pull-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-pull-command.d.ts","sourceRoot":"","sources":["../../src/commands/request-pull-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAqBxE;;;;;;;;;;GAUG;AACH,qBAAa,kBAAmB,SAAQ,gBAAgB,CAAC,kBAAkB,CAAC;IAC1E,OAAO,CAAC,KAAK,CAAM;IACnB,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,aAAa,CAA2B;IAEhD,uFAAuF;IACvF,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAI5B;IAED,sEAAsE;IACtE,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAIxB;IAED;;;OAGG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAIxB;IAED,0CAA0C;IAC1C,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAEK,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAaxC;YAEa,GAAG;IA2FjB,yFAAyF;YAC3E,MAAM;IASpB,kFAAkF;YACpE,WAAW;IASzB;;;OAGG;YACW,OAAO;IAcrB;;;OAGG;YACW,UAAU;IAmBxB;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;IAsChB,2CAA2C;YAC7B,IAAI;IAMlB;;;OAGG;YACW,UAAU;CAgCzB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git rerere` (builtin/rerere.c): with no subcommand, rerere's record and replay (what the
|
|
3
|
+
* merge family runs on conflicts and `git commit` after a commit); `clear`, `forget
|
|
4
|
+
* <pathspec>`, `status`, `remaining`, `diff` and `gc`.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* const { stdout } = await git.rerere().setSubcommand("status").call(); // "f\n"
|
|
9
|
+
* await git.rerere().setSubcommand("forget").addPath("f").call();
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
import { GitCommand } from "../git-command.js";
|
|
13
|
+
import type { PlumbingTextOutput } from "./check-ref-format-command.js";
|
|
14
|
+
/** The subcommands of `git rerere` (`record` is the bare `git rerere`). */
|
|
15
|
+
export type RerereSubcommand = "record" | "clear" | "forget" | "status" | "remaining" | "diff" | "gc";
|
|
16
|
+
/**
|
|
17
|
+
* `git rerere [--[no-]rerere-autoupdate] [<subcommand>]`: git's stdout, stderr and exit
|
|
18
|
+
* status.
|
|
19
|
+
*/
|
|
20
|
+
export declare class RerereCommand extends GitCommand<PlumbingTextOutput> {
|
|
21
|
+
private subcommand;
|
|
22
|
+
private readonly paths;
|
|
23
|
+
private autoUpdate?;
|
|
24
|
+
/** The subcommand (default `record`, the bare `git rerere`); an unknown one is git's usage */
|
|
25
|
+
setSubcommand(subcommand: RerereSubcommand | string): this;
|
|
26
|
+
/** A pathspec element of `forget` */
|
|
27
|
+
addPath(path: string): this;
|
|
28
|
+
/** `--rerere-autoupdate` (true) / `--no-rerere-autoupdate` (false) */
|
|
29
|
+
setAutoUpdate(value: boolean): this;
|
|
30
|
+
call(): Promise<PlumbingTextOutput>;
|
|
31
|
+
private run;
|
|
32
|
+
/** The bytes git writes on stdout for `diff` are its paths' bytes. */
|
|
33
|
+
static stdoutBytes(output: PlumbingTextOutput): Uint8Array;
|
|
34
|
+
private rerereHost;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=rerere-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rerere-command.d.ts","sourceRoot":"","sources":["../../src/commands/rerere-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAexE,2EAA2E;AAC3E,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,MAAM,GACN,IAAI,CAAC;AAOT;;;GAGG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,kBAAkB,CAAC;IAC/D,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,UAAU,CAAC,CAAU;IAE7B,8FAA8F;IAC9F,aAAa,CAAC,UAAU,EAAE,gBAAgB,GAAG,MAAM,GAAG,IAAI,CAIzD;IAED,qCAAqC;IACrC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED,sEAAsE;IACtE,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAIlC;IAEK,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAYxC;YAEa,GAAG;IAuEjB,sEAAsE;IACtE,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,kBAAkB,GAAG,UAAU,CAEzD;IAED,OAAO,CAAC,UAAU;CAWnB"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's rerere (rerere.c): conflicts recorded in `rr-cache/<conflict id>/` (`preimage`,
|
|
3
|
+
* `postimage`, `thisimage`, a variant's `preimage.<n>`...) and the paths waiting for their
|
|
4
|
+
* resolution in `MERGE_RR` (`<id>[.<variant>]\t<path>\0`, sorted by path), in git's format
|
|
5
|
+
* byte for byte, so native git replays what ours recorded and the reverse.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* // after a merge left conflicts in the index and the worktree (what `suggest_conflicts` runs)
|
|
10
|
+
* const { messages } = await runRerere(rerereHostOf(workingCopy, staging, worktree, blobs, format));
|
|
11
|
+
* // ["Recorded preimage for 'f'"], or ["Resolved 'f' using previous resolution."]
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* The conflict id is the hash (the repository's) of each conflict hunk's two sides, the
|
|
15
|
+
* smaller first, each followed by a NUL (`handle_path`); the preimage is the conflicted file
|
|
16
|
+
* with every hunk normalised (`<<<<<<<`, the sides in that order, no common ancestor's part).
|
|
17
|
+
* A recorded resolution is replayed as a three-way merge (`ll_merge`, Myers) of the preimage,
|
|
18
|
+
* the file now and the postimage.
|
|
19
|
+
*/
|
|
20
|
+
import type { Blobs } from "@statewalker/vcs-core";
|
|
21
|
+
import type { ObjectFormat } from "@statewalker/vcs-utils";
|
|
22
|
+
import type { FilesApi } from "@statewalker/vcs-utils/files";
|
|
23
|
+
import type { Staging, WorkingCopy, Worktree } from "@statewalker/vcs-working-tree";
|
|
24
|
+
/** What rerere works on: the working copy's config and state, its index, worktree and blobs. */
|
|
25
|
+
export interface RerereHost {
|
|
26
|
+
workingCopy: WorkingCopy;
|
|
27
|
+
staging: Staging;
|
|
28
|
+
worktree: Worktree;
|
|
29
|
+
blobs: Blobs;
|
|
30
|
+
objectFormat: ObjectFormat;
|
|
31
|
+
}
|
|
32
|
+
/** What a rerere run printed on stderr, line by line. */
|
|
33
|
+
export interface RerereOutcome {
|
|
34
|
+
messages: string[];
|
|
35
|
+
/** Whether rerere is enabled (`rerere.enabled`, or unset and `rr-cache/` there) */
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
}
|
|
38
|
+
/** `git rerere` died: its stderr lines (the last `fatal:`), exit status 128. */
|
|
39
|
+
export declare class RerereError extends Error {
|
|
40
|
+
readonly lines: string[];
|
|
41
|
+
readonly exitCode = 128;
|
|
42
|
+
constructor(lines: string[]);
|
|
43
|
+
}
|
|
44
|
+
/** What {@link normalizeConflicts} found. */
|
|
45
|
+
export interface NormalizedConflicts {
|
|
46
|
+
/** `handle_path`'s result: 1 when the last hunk parsed, 0 without any, -1 on a bad one */
|
|
47
|
+
status: number;
|
|
48
|
+
/** The conflict id (hex), when asked for */
|
|
49
|
+
id?: string;
|
|
50
|
+
/** The file with its hunks normalised, as far as it was parsed */
|
|
51
|
+
output: Uint8Array;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* git's `handle_path` over a file's bytes: the hunks normalised, their sides hashed into the
|
|
55
|
+
* conflict id.
|
|
56
|
+
*/
|
|
57
|
+
export declare function normalizeConflicts(content: Uint8Array, markerSize: number, format?: ObjectFormat): NormalizedConflicts;
|
|
58
|
+
/**
|
|
59
|
+
* git's `rerere()` (`do_plain_rerere`), as the merge family runs it on conflicts and `git
|
|
60
|
+
* commit` after its commit: each conflicted path's preimage recorded or a recorded
|
|
61
|
+
* resolution replayed, each resolved path's postimage recorded, `MERGE_RR` rewritten.
|
|
62
|
+
* `autoUpdate` is `--rerere-autoupdate` / `--no-rerere-autoupdate` (else
|
|
63
|
+
* `rerere.autoUpdate`): replayed resolutions are staged.
|
|
64
|
+
*/
|
|
65
|
+
export declare function runRerere(host: RerereHost, options?: {
|
|
66
|
+
autoUpdate?: boolean;
|
|
67
|
+
}): Promise<RerereOutcome>;
|
|
68
|
+
/**
|
|
69
|
+
* `rerere_clear` (`git rerere clear`, `rebase --skip`/`--abort`, `am --skip`/`--abort`): the
|
|
70
|
+
* waiting paths' records without a resolution removed, `MERGE_RR` deleted.
|
|
71
|
+
*/
|
|
72
|
+
export declare function rerereClear(host: RerereHost): Promise<RerereOutcome>;
|
|
73
|
+
/** `git rerere status`: the paths `MERGE_RR` lists. */
|
|
74
|
+
export declare function rerereStatus(host: RerereHost): Promise<string[]>;
|
|
75
|
+
/**
|
|
76
|
+
* `git rerere remaining`: the paths `MERGE_RR` lists that the index has not resolved, and
|
|
77
|
+
* the conflicts rerere cannot handle (not two regular files), in path order.
|
|
78
|
+
*/
|
|
79
|
+
export declare function rerereRemaining(host: RerereHost): Promise<string[]>;
|
|
80
|
+
/**
|
|
81
|
+
* `git rerere diff`: for each path `MERGE_RR` lists, the diff from its preimage to the
|
|
82
|
+
* worktree file (`diff_two`, xdiff with 3 lines of context, no function names).
|
|
83
|
+
*/
|
|
84
|
+
export declare function rerereDiff(host: RerereHost, diff: (minus: Uint8Array, plus: Uint8Array) => Uint8Array): Promise<{
|
|
85
|
+
stdout: Uint8Array[];
|
|
86
|
+
fatal?: string;
|
|
87
|
+
}>;
|
|
88
|
+
/**
|
|
89
|
+
* `git rerere forget <pathspec>` (`rerere_forget`): the paths' conflicts recreated from the
|
|
90
|
+
* index (resolved ones from its resolve-undo records, in memory only), the resolution that
|
|
91
|
+
* replays cleanly onto each removed and its preimage written again, the path waiting in
|
|
92
|
+
* `MERGE_RR` once more.
|
|
93
|
+
*/
|
|
94
|
+
export declare function rerereForget(host: RerereHost, matches: (path: string) => boolean): Promise<RerereOutcome>;
|
|
95
|
+
/** The {@link RerereHost} of a working copy. */
|
|
96
|
+
export declare function rerereHostOf(workingCopy: WorkingCopy, staging: Staging, worktree: Worktree, blobs: Blobs, objectFormat: ObjectFormat): RerereHost;
|
|
97
|
+
/** Where rr-cache lives for `git rerere gc`: the FilesApi and the common git directory. */
|
|
98
|
+
export declare function rerereGcLocation(workingCopy: WorkingCopy): Promise<{
|
|
99
|
+
files: FilesApi;
|
|
100
|
+
gitDir: string;
|
|
101
|
+
} | undefined>;
|
|
102
|
+
//# sourceMappingURL=rerere.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rerere.d.ts","sourceRoot":"","sources":["../../src/commands/rerere.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAY,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAepF,gGAAgG;AAChG,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,yDAAyD;AACzD,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAA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,EAAE,MAAM,CAAA;CAAE,CAAC,CAsBnD;AAUD;;;;;GAKG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GACjC,OAAO,CAAC,aAAa,CAAC,CAmCxB;AAsFD,gDAAgD;AAChD,wBAAgB,YAAY,CAC1B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,GACzB,UAAU,CAEZ;AAED,2FAA2F;AAC3F,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,WAAW,GACvB,OAAO,CAAC;IAAE,KAAK,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,CAI1D"}
|
|
@@ -87,5 +87,7 @@ export declare function compileCommitGrep(options: CommitGrepOptions): CommitGre
|
|
|
87
87
|
* ident.c's apply_mailmap_to_header: the `author`/`committer` lines of the header part
|
|
88
88
|
* rewritten to the mailmap's name and email (`Name <email>`, the rest of the line kept).
|
|
89
89
|
*/
|
|
90
|
-
export declare function applyMailmapToHeader(raw: Uint8Array, mailmap: Mailmap
|
|
90
|
+
export declare function applyMailmapToHeader(raw: Uint8Array, mailmap: Mailmap,
|
|
91
|
+
/** The header lines rewritten (default `author `, `committer `; cat-file adds `tagger `) */
|
|
92
|
+
prefixes?: readonly Uint8Array[]): Uint8Array;
|
|
91
93
|
//# sourceMappingURL=commit-grep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-grep.d.ts","sourceRoot":"","sources":["../../../src/commands/rev-filter/commit-grep.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MA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,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CA+IxE;AAoCD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,OAAO;AAChB,4FAA4F;AAC5F,QAAQ,GAAE,SAAS,UAAU,EAAiB,GAC7C,UAAU,CAwBZ"}
|
|
@@ -38,6 +38,7 @@ export declare class RevListCommand extends GitCommand<AsyncIterable<LogResult>>
|
|
|
38
38
|
private readonly revisions;
|
|
39
39
|
private readonly mixed;
|
|
40
40
|
private committish;
|
|
41
|
+
private ignoreMissing;
|
|
41
42
|
private logConfig;
|
|
42
43
|
private readonly configure;
|
|
43
44
|
/** The paths of {@link addPath}, for `--bisect`'s walk */
|
|
@@ -227,6 +228,8 @@ export declare class RevListCommand extends GitCommand<AsyncIterable<LogResult>>
|
|
|
227
228
|
* ```
|
|
228
229
|
*/
|
|
229
230
|
addArgument(arg: string): this;
|
|
231
|
+
/** `--ignore-missing`: revisions that name nothing are skipped instead of dying. */
|
|
232
|
+
setIgnoreMissing(ignore: boolean): this;
|
|
230
233
|
/**
|
|
231
234
|
* Read plain revisions as committishes, as `git log` does (the default), or as given, as
|
|
232
235
|
* `git rev-list` does (it matters only to an abbreviated id that names several objects).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rev-list-command.d.ts","sourceRoot":"","sources":["../../src/commands/rev-list-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAQ/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAc,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAa,MAAM,kBAAkB,CAAC;AACxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AA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,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,CAE1C;IAED,mFAAmF;IACnF,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAEhC;IAED;;;;OAIG;IACH,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAIhC;IAED,4DAA4D;IAC5D,eAAe,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAE1C;IAED,OAAO,CAAC,UAAU;IAMlB;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,mBAAmB,CAAC,CA4B5C;IAED,wFAAwF;YAC1E,OAAO;IAYf,IAAI,IAAI,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAG9C;IAED;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAyBhC;IAED,8DAA8D;IAC9D,OAAO,CAAC,YAAY;IAQpB;;;;;;;;;;OAUG;IACG,WAAW,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CAKjE;IAED,gGAAgG;IAC1F,YAAY,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC,CAItE;IAED,6FAA6F;YAC/E,UAAU;IA2CxB,+EAA+E;YACjE,OAAO;CAqEtB"}
|
|
@@ -74,6 +74,15 @@ export declare class RevParseCommand extends GitCommand<RevParseResult> {
|
|
|
74
74
|
* paths too (`x: no such path in the working tree.`).
|
|
75
75
|
*/
|
|
76
76
|
private parseArgs;
|
|
77
|
+
/**
|
|
78
|
+
* A full id of the compatibility format under `--output-object-format` (git's
|
|
79
|
+
* `GET_OID_HASH_ANY`): printed as given in that format, else as the storage id the map
|
|
80
|
+
* gives (as given when it has none, as git's ignored `repo_oid_to_algop` failure leaves it).
|
|
81
|
+
* Undefined for anything else.
|
|
82
|
+
*/
|
|
83
|
+
private translatedRevision;
|
|
84
|
+
/** `id` in the compatibility format, as the map gives it (else as it is, as git) */
|
|
85
|
+
private outputCompat;
|
|
77
86
|
/**
|
|
78
87
|
* git's `try_difference`: `a..b` prints b and ^a; `a...b` prints b, a and ^ each merge base.
|
|
79
88
|
* A symmetric difference with a side that is no commit has printed b and a when git finds
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rev-parse-command.d.ts","sourceRoot":"","sources":["../../src/commands/rev-parse-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAkB,MAAM,kBAAkB,CAAC;AAIrE,0CAA0C;AAC1C,MAAM,WAAW,cAAc;IAC7B,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,uFAAuF;IACvF,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,qBAAa,eAAgB,SAAQ,UAAU,CAAC,cAAc,CAAC;IAC7D,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IACrC,OAAO,CAAC,MAAM,CAAM;IAEpB;;;;OAIG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI7B;IAED;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED;;;OAGG;IACH,gBAAgB,IAAI,MAAM,CAEzB;IAED,6FAA6F;IAC7F,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAIlC;IAEK,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,CAmCpC;IAED;;;;;;;;OAQG;YACW,SAAS;
|
|
1
|
+
{"version":3,"file":"rev-parse-command.d.ts","s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,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAChD,CAAC,EAAE,QAAQ,EACX,CAAC,EAAE,QAAQ,GACV,OAAO,CAAC,QAAQ,EAAE,CAAC,CAIrB"}
|
|
@@ -185,6 +185,16 @@ export declare class RevertCommand extends GitCommand<RevertResult> {
|
|
|
185
185
|
private checkOptions;
|
|
186
186
|
/** What the sparse checkout printed while the result was written. */
|
|
187
187
|
private readonly sparseWarnings;
|
|
188
|
+
/** What rerere printed on stderr (a stopped pick, a `--continue`'s commit) */
|
|
189
|
+
private readonly rerereLines;
|
|
190
|
+
/** `--[no-]rerere-autoupdate` */
|
|
191
|
+
private rerereAutoUpdate?;
|
|
192
|
+
/**
|
|
193
|
+
* `--rerere-autoupdate` (true) / `--no-rerere-autoupdate` (false): whether resolutions
|
|
194
|
+
* rerere replays at a conflict are staged (default `rerere.autoUpdate`); kept for the
|
|
195
|
+
* picks `--continue` makes, refused with `--continue`, `--skip`, `--abort`, `--quit`.
|
|
196
|
+
*/
|
|
197
|
+
setRerereAutoUpdate(autoUpdate: boolean): this;
|
|
188
198
|
private run;
|
|
189
199
|
}
|
|
190
200
|
//# sourceMappingURL=revert-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revert-command.d.ts","sourceRoot":"","sources":["../../src/commands/revert-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,KAAK,oBAAoB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIvE,OAAO,EAKL,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAC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AIG;IACH,uBAAuB,CAAC,eAAe,EAAE,oBAAoB,GAAG,IAAI,CAInE;IAED;;OAEG;IACH,uBAAuB,IAAI,oBAAoB,GAAG,SAAS,CAE1D;IAED;;;;OAIG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAInC;IAED;;OAEG;IACH,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAErC;IAED;;;;OAIG;IACH,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIpC;IAED;;OAEG;IACH,eAAe,IAAI,MAAM,CAExB;IAED;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAIhD;IAED;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,CAIzC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAIvC;IAED,6DAA6D;IAC7D,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIjC;IAED;;;;;OAKG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED;;;;;OAKG;IACH,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAIrC;IAED;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAIpC;IAED;;;;OAIG;YACW,SAAS;
|
|
1
|
+
{"version":3,"file":"revert-command.d.ts","sourceRoot":"","sources":["../../src/commands/revert-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,KAAK,oBAAoB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,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AAC,YAAY;IAsBpB,qEAAqE;IACrE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;IAC/C,8EAA8E;IAC9E,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgB;IAC5C,iCAAiC;IACjC,OAAO,CAAC,gBAAgB,CAAC,CAAU;IAEnC;;;;OAIG;IACH,mBAAmB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAI7C;YAEa,GAAG;CAgDlB"}
|
|
@@ -50,6 +50,11 @@ export interface RevisionArgOptions {
|
|
|
50
50
|
refs?(): Promise<RefTip[]>;
|
|
51
51
|
/** What HEAD names (`--all` adds it after the refs); undefined when it names nothing */
|
|
52
52
|
head?(): Promise<ObjectId | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* `--ignore-missing`: a revision that names nothing is skipped instead of dying
|
|
55
|
+
* (handle_revision_arg's `revs->ignore_missing`), on the command line and in `--stdin`
|
|
56
|
+
*/
|
|
57
|
+
ignoreMissing?: boolean;
|
|
53
58
|
}
|
|
54
59
|
/**
|
|
55
60
|
* The revisions `--stdin` reads (revision.c's read_revisions_from_stdin): one per line, up
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revision-range.d.ts","sourceRoot":"","sources":["../../src/commands/revision-range.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,KAAK,EAAoB,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEjF,kFAAkF;AAClF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC;IACtB,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,sFAAsF;IACtF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,qFAAqF;IACrF,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;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AC3B,GAAG,EAAE,gBAAgB,EAAE,EACvB,cAAc,EAAE,OAAO,GACtB,OAAO,CAAC,KAAK,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAwC1C"}
|
|
@@ -45,6 +45,11 @@ export interface RevisionSources {
|
|
|
45
45
|
id: ObjectId;
|
|
46
46
|
mode: number;
|
|
47
47
|
} | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* The tree's stored bytes: a tree holding a name the store refuses to decode (`..`) is
|
|
50
|
+
* read through them, as git's `find_tree_entry` reads any tree
|
|
51
|
+
*/
|
|
52
|
+
raw?(id: ObjectId): Promise<Uint8Array | undefined>;
|
|
48
53
|
};
|
|
49
54
|
blobs: {
|
|
50
55
|
has(id: ObjectId): Promise<boolean>;
|
|
@@ -116,6 +121,12 @@ export declare class RevisionResolver {
|
|
|
116
121
|
* against which `<rev>:./<path>`, `<rev>:../<path>` and `:./<path>` are read
|
|
117
122
|
*/
|
|
118
123
|
cwdPrefix: string;
|
|
124
|
+
/**
|
|
125
|
+
* The mode of the tree or index entry the last {@link resolve} read a path from (git's
|
|
126
|
+
* `GET_OID_RECORD_PATH` `object_context.mode`: `<rev>:<path>`, `:<path>`); undefined for a
|
|
127
|
+
* name that read no entry (`S_IFINVALID`), `<rev>:` (the tree itself) included
|
|
128
|
+
*/
|
|
129
|
+
lastMode: number | undefined;
|
|
119
130
|
private config?;
|
|
120
131
|
private disambiguateChecked;
|
|
121
132
|
/** Refs read while resolving one revision (`HEAD~3` reads HEAD once) */
|
|
@@ -261,6 +272,7 @@ export declare class RevisionResolver {
|
|
|
261
272
|
* itself for ""). Components are matched exactly: an empty one (`/a`, `d//b`) names
|
|
262
273
|
* nothing, and a trailing `/` only follows a directory (`d/` is d, `a.txt/` nothing).
|
|
263
274
|
*/
|
|
275
|
+
private findTreeEntry;
|
|
264
276
|
private treeEntry;
|
|
265
277
|
/** `:<n>:<path>`: the index entry of `path` at `stage`. */
|
|
266
278
|
private indexEntry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revision-resolver.d.ts","sourceRoot":"","sources":["../../src/commands/revision-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"revision-resolver.d.ts","sourceRoot":"","sources":["../../src/commands/revision-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAU7F,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAS1E,0CAA0C;AAC1C,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE;QACP,IAAI,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAChD,GAAG,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;KACrC,CAAC;IACF,KAAK,EAAE;QACL,GAAG,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;YAAE,EAAE,EAAE,QAAQ,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,GAAG,SAAS,CAAC,CAAC;QAC9F;;;WAGG;QACH,GAAG,CAAC,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;KACrD,CAAC;IACF,KAA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AAU,GAAG,SAAS,CAAA;KAAE,CAAC,CAUpF;IAED;;;;;OAKG;IACG,eAAe,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAOjE;IAED,iEAAiE;IAC3D,SAAS,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAC,CAE7D;IAED,8DAA8D;YAChD,SAAS;IAWvB;;;;OAIG;YACW,aAAa;YAqBb,SAAS;IAwBvB,2DAA2D;IAC3D,OAAO,CAAC,UAAU;YAIJ,YAAY;IAa1B,+EAA+E;YACjE,aAAa;YAgBb,gBAAgB;IAM9B;;;;OAIG;YACW,OAAO;IA4DrB;;;;;;;OAOG;YACW,QAAQ;IAkCtB,+FAA+F;YACjF,eAAe;IA2C7B,sFAAsF;YACxE,iBAAiB;IAe/B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAO/B,6FAA6F;IAC7F,OAAO,CAAC,WAAW;IAcnB,+FAA+F;YACjF,SAAS;IAoBvB;;;OAGG;YACW,YAAY;IAY1B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAcpB;;;;;;;;OAQG;IACG,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAMzD;IAED,4DAA4D;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgC;IAE1D,OAAO,CAAC,GAAG;IAMX;;;OAGG;YACW,MAAM;IAMpB,kFAAkF;YACpE,gBAAgB;IAoB9B,gFAAgF;YAClE,iBAAiB;IAgC/B,OAAO,CAAC,YAAY;IAKpB,wFAAwF;IACxF,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,KAAK;CAGd"}
|
|
@@ -59,6 +59,11 @@ export interface SequencerDeps extends MergeWriteContext {
|
|
|
59
59
|
* resolved conflict is committed in process.
|
|
60
60
|
*/
|
|
61
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[];
|
|
62
67
|
}
|
|
63
68
|
/** The `git commit` the sequencer runs (see {@link SequencerDeps.gitCommit}). */
|
|
64
69
|
export type PickCommitMode = {
|
|
@@ -115,6 +120,12 @@ export interface PickOptions {
|
|
|
115
120
|
allowEmpty?: boolean;
|
|
116
121
|
/** `--allow-empty-message` (saved in `sequencer/opts`; the sequencer commits any message) */
|
|
117
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;
|
|
118
129
|
/**
|
|
119
130
|
* `--keep-redundant-commits` / `--empty=keep`: a commit that becomes empty is committed
|
|
120
131
|
* (implies {@link allowEmpty})
|
|
@@ -162,7 +173,14 @@ export declare class PickSequencer {
|
|
|
162
173
|
private strategy;
|
|
163
174
|
/** `-X` options (git's opts->xopts), or saved in the opts */
|
|
164
175
|
private xopts;
|
|
176
|
+
/** `--[no-]rerere-autoupdate` (git's opts->allow_rerere_auto), or saved in the opts */
|
|
177
|
+
private rerereAutoUpdate;
|
|
165
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;
|
|
166
184
|
/** The git version to follow where they differ */
|
|
167
185
|
private get compatibility();
|
|
168
186
|
private config;
|