@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
|
@@ -1,12 +1,23 @@
|
|
|
1
|
+
import { type ObjectId } from "@statewalker/vcs-core";
|
|
1
2
|
import { type XdiffAlgorithm } from "@statewalker/vcs-utils";
|
|
2
3
|
import { type Staging } from "@statewalker/vcs-working-tree";
|
|
3
4
|
import { GitCommand } from "../git-command.js";
|
|
4
5
|
import { ChangeType, type DiffEntry } from "../results/diff-entry.js";
|
|
5
|
-
import { type DiffOutputOptions, type DiffstatFile, type DiffstatOptions } from "../results/diff-output.js";
|
|
6
|
+
import { type DiffDriver, type DiffOutputOptions, type DiffstatFile, type DiffstatOptions } from "../results/diff-output.js";
|
|
6
7
|
import { type DiffColorOptions, type DiffColorSettings } from "./diff-color-config.js";
|
|
7
8
|
import { type SubmoduleIgnoreMode } from "./submodule-config.js";
|
|
8
9
|
import { type SubmoduleDiffFormat } from "./submodule-summary.js";
|
|
9
|
-
export type DiffOutputFormat =
|
|
10
|
+
export type DiffOutputFormat =
|
|
11
|
+
/**
|
|
12
|
+
* `--raw` (diff.c's `diff_flush_raw`): `:<old mode> <new mode> <old id> <new id> <status>`,
|
|
13
|
+
* a tab and the path(s); ids abbreviated unless {@link DiffTextOptions.rawFullIds}
|
|
14
|
+
*/
|
|
15
|
+
"raw" | "patch" | "stat" | "numstat" | "shortstat" | "summary" | "name-only" | "name-status"
|
|
16
|
+
/**
|
|
17
|
+
* `--dirstat`: the share of the change each directory holds (see
|
|
18
|
+
* {@link DiffTextOptions.dirstat}, `diff.dirstat`)
|
|
19
|
+
*/
|
|
20
|
+
| "dirstat"
|
|
10
21
|
/**
|
|
11
22
|
* `--check`: the whitespace errors and leftover conflict markers the change adds (see
|
|
12
23
|
* {@link writePairCheck}); it turns the other formats off, and {@link DiffCommand.exitCode}
|
|
@@ -14,7 +25,7 @@ export type DiffOutputFormat = "patch" | "stat" | "numstat" | "shortstat" | "sum
|
|
|
14
25
|
*/
|
|
15
26
|
| "check";
|
|
16
27
|
/** Options of the text output that `git diff` takes on its command line */
|
|
17
|
-
export interface DiffTextOptions extends Omit<DiffOutputOptions, "driver" | "algorithm" | "indentHeuristic" | "ignoreRegex" | "colors" | "wsHighlight" | "whitespaceRule" | "defaultWordRegex">, DiffColorOptions {
|
|
28
|
+
export interface DiffTextOptions extends Omit<DiffOutputOptions, "driver" | "algorithm" | "indentHeuristic" | "ignoreRegex" | "colors" | "wsHighlight" | "whitespaceRule" | "defaultWordRegex" | "anchors">, DiffColorOptions {
|
|
18
29
|
/**
|
|
19
30
|
* The builtin diff drivers (funcname and word regexes) of that git version (default 2.56):
|
|
20
31
|
* 2.43 has no `ini`, `r` and `swift` drivers and older `bash`, `csharp` and `scheme` ones
|
|
@@ -37,6 +48,16 @@ export interface DiffTextOptions extends Omit<DiffOutputOptions, "driver" | "alg
|
|
|
37
48
|
abbrev?: number;
|
|
38
49
|
/** `--stat=...` widths (default width 80, as git without a terminal) */
|
|
39
50
|
stat?: DiffstatOptions;
|
|
51
|
+
/**
|
|
52
|
+
* `-z`: the `raw`, `name-only`, `name-status` and `numstat` outputs end each field with a
|
|
53
|
+
* NUL instead of a tab or a newline, paths unquoted; the separator before a patch is a NUL
|
|
54
|
+
*/
|
|
55
|
+
nullTerminated?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The `raw` output's ids in full, as the plumbing commands print them (`opt->abbrev = 0`)
|
|
58
|
+
* unless `--abbrev` is given ({@link abbrev}); default false (`git diff --raw` abbreviates)
|
|
59
|
+
*/
|
|
60
|
+
rawFullIds?: boolean;
|
|
40
61
|
/**
|
|
41
62
|
* Score renames counting a last line without a newline, as git 2.50 and later (default
|
|
42
63
|
* true); false scores them as older git
|
|
@@ -89,6 +110,15 @@ export interface DiffTextOptions extends Omit<DiffOutputOptions, "driver" | "alg
|
|
|
89
110
|
* `installTextconvRunner`, without one no textconv applies
|
|
90
111
|
*/
|
|
91
112
|
textconv?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* `--ext-diff` / `--no-ext-diff`: run external diff programs (`GIT_EXTERNAL_DIFF`,
|
|
115
|
+
* `diff.external`, `diff.<driver>.command`) instead of the builtin patch. Default false;
|
|
116
|
+
* `Git.diff()` (porcelain `git diff`) turns it on, as git, while `git log`/`show` and the
|
|
117
|
+
* plumbing diffs need it asked. The programs run through the host's `hookRunner`, their
|
|
118
|
+
* sides written in its `tempDirectory` through `hostFilesOf`; without those the builtin
|
|
119
|
+
* patch is shown. See `diff-external.ts`.
|
|
120
|
+
*/
|
|
121
|
+
extDiff?: boolean;
|
|
92
122
|
/**
|
|
93
123
|
* `-R`: the two sides swapped (an addition shows as a deletion, the new side first), their
|
|
94
124
|
* prefixes with them (`diff --git b/f a/f`). Combined diffs of conflicted paths are not swapped.
|
|
@@ -163,6 +193,39 @@ export interface DiffTextOptions extends Omit<DiffOutputOptions, "driver" | "alg
|
|
|
163
193
|
pickaxeAll?: boolean;
|
|
164
194
|
/** `-i` / `--regexp-ignore-case` of `-S`/`-G` (ASCII case folded) */
|
|
165
195
|
pickaxeIgnoreCase?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* `-M[<n>]` / `--find-renames[=<n>]`: detect renames, at least this similar (git's
|
|
198
|
+
* syntax: `90%`, `9` and `.9` alike; `true` the default 50%); `false` is `--no-renames`.
|
|
199
|
+
* Wins over {@link DiffCommand.setRenames} and `diff.renames`. Trailing text throws git's
|
|
200
|
+
* `error: invalid argument to find-renames` (exit 129).
|
|
201
|
+
*/
|
|
202
|
+
findRenames?: boolean | string;
|
|
203
|
+
/**
|
|
204
|
+
* `-C[<n>]` / `--find-copies[=<n>]`: renames and copies, from the modified paths too (the
|
|
205
|
+
* threshold as {@link findRenames}). With `diff.renames=copies` and nothing else asking,
|
|
206
|
+
* git's second `-C` is found: copies are then found harder.
|
|
207
|
+
*/
|
|
208
|
+
findCopies?: boolean | string;
|
|
209
|
+
/** `--find-copies-harder` (or `-C -C`): unchanged paths are copy sources too */
|
|
210
|
+
findCopiesHarder?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* `-B[<n>][/<m>]` / `--break-rewrites`: modifications that changed at least `<n>` (default
|
|
213
|
+
* 50%) are broken into a deletion and a creation for rename detection, and merged back
|
|
214
|
+
* unless they removed at least `<m>` (default 60%) of the old content, shown then as a
|
|
215
|
+
* complete rewrite (`dissimilarity index`, `M<score>`)
|
|
216
|
+
*/
|
|
217
|
+
breakRewrites?: boolean | string;
|
|
218
|
+
/**
|
|
219
|
+
* `--dirstat=<params>` for the `dirstat` format: comma-separated `changes`, `lines`,
|
|
220
|
+
* `files`, `cumulative`, `noncumulative` and a cut-off percentage (default `diff.dirstat`,
|
|
221
|
+
* else `changes,noncumulative,3`)
|
|
222
|
+
*/
|
|
223
|
+
dirstat?: string;
|
|
224
|
+
/**
|
|
225
|
+
* `--anchored=<text>`: the patience diff, lines starting with one of these texts kept
|
|
226
|
+
* unchanged where they are unique on both sides
|
|
227
|
+
*/
|
|
228
|
+
anchored?: readonly string[];
|
|
166
229
|
}
|
|
167
230
|
/** Whether options ask for a pickaxe (git's `DIFF_PICKAXE_KINDS_MASK`) */
|
|
168
231
|
export declare function hasPickaxe(o: DiffTextOptions): boolean;
|
|
@@ -171,6 +234,28 @@ export declare function hasPickaxe(o: DiffTextOptions): boolean;
|
|
|
171
234
|
* diff_setup_done's combinations), before anything is read
|
|
172
235
|
*/
|
|
173
236
|
export declare function checkPickaxeOptions(o: DiffTextOptions): void;
|
|
237
|
+
/** What {@link DiffCommand.setQueue} runs over a queue given */
|
|
238
|
+
export interface PresetQueueOptions {
|
|
239
|
+
/**
|
|
240
|
+
* Run diffcore's rename and break detection over it as over a comparison's queue
|
|
241
|
+
* (`diffcore_std`), with `-M`/`-C`/`-B` as the text options give them (no `diff.renames`)
|
|
242
|
+
*/
|
|
243
|
+
diffcore?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* `--find-copies-harder`'s sources besides the queue's: every file of the old side (the
|
|
246
|
+
* old tree, the index of `diff-files`)
|
|
247
|
+
*/
|
|
248
|
+
copySources?: () => Promise<Map<string, {
|
|
249
|
+
mode: number;
|
|
250
|
+
id: ObjectId;
|
|
251
|
+
}>>;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* `diff.renames` as git_config_rename reads it: `copies`/`copy` detect copies too.
|
|
255
|
+
*
|
|
256
|
+
* @internal
|
|
257
|
+
*/
|
|
258
|
+
export declare function renamesValue(value: string | undefined): boolean | "copies" | undefined;
|
|
174
259
|
/**
|
|
175
260
|
* Show changes between commits, trees, the index and the worktree.
|
|
176
261
|
*
|
|
@@ -273,6 +358,10 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
273
358
|
private changesFound;
|
|
274
359
|
/** git's `check_failed`: `--check` found an error in the last call */
|
|
275
360
|
private checkFailed;
|
|
361
|
+
/** git's `diff_path_counter`: the external diff calls made so far */
|
|
362
|
+
private externalCounter;
|
|
363
|
+
/** What external diff programs wrote on stderr in the last call */
|
|
364
|
+
private externalStderr;
|
|
276
365
|
/** The revisions given resolved (ranges, `--merge-base`) */
|
|
277
366
|
private sidesResolved;
|
|
278
367
|
/** The compiled pickaxe (`-S`, `-G`, `--find-object`), once the options are checked */
|
|
@@ -322,8 +411,10 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
322
411
|
/** Whether the last call found differences (git's `has_changes`) */
|
|
323
412
|
get hasChanges(): boolean;
|
|
324
413
|
/**
|
|
325
|
-
* Show intent-to-add entries
|
|
326
|
-
*
|
|
414
|
+
* Show intent-to-add entries as the empty files they name, as plumbing's
|
|
415
|
+
* `diff-index --cached` and `diff-files` do (porcelain `git diff` sets
|
|
416
|
+
* `ita_invisible_in_index`): in a `--cached` comparison on the index side, against the
|
|
417
|
+
* worktree as the old side (`git add -e`'s diff).
|
|
327
418
|
*
|
|
328
419
|
* @internal
|
|
329
420
|
*/
|
|
@@ -388,11 +479,19 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
388
479
|
* of `diff.submodule` it does not know.
|
|
389
480
|
*/
|
|
390
481
|
get warnings(): readonly string[];
|
|
482
|
+
/** What the external diff programs of the last call wrote on stderr (git passes it through) */
|
|
483
|
+
get programStderr(): Uint8Array;
|
|
391
484
|
/**
|
|
392
485
|
* git_diff_ui_config, which `git diff` (and log, show) runs before any option is read:
|
|
393
486
|
* `diff.submodule`, its warnings, and the failure of a variable without a value.
|
|
394
487
|
*/
|
|
395
488
|
private readUiConfig;
|
|
489
|
+
/** `diff.dirstat`'s parameters (git's defaults without it) */
|
|
490
|
+
private configuredDirstat?;
|
|
491
|
+
/** The dirstat's parameters: `diff.dirstat`, then {@link DiffTextOptions.dirstat} */
|
|
492
|
+
private dirstatParams;
|
|
493
|
+
/** show_dirstat (or show_dirstat_by_line): the dirstat of the pairs */
|
|
494
|
+
private writeDirstat;
|
|
396
495
|
/**
|
|
397
496
|
* Compare HEAD (or the old tree) to the index instead of the worktree.
|
|
398
497
|
*
|
|
@@ -426,6 +525,56 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
426
525
|
* <pathspec>`) does: paths from the top, with wildcards and magic (see `LogCommand.addPath`).
|
|
427
526
|
*/
|
|
428
527
|
setPathspec(paths: string[]): this;
|
|
528
|
+
/**
|
|
529
|
+
* The queue {@link callFormats} prints instead of comparing the trees: pairs a caller found
|
|
530
|
+
* itself (`git log -L` queues each commit's pairs with their line ranges, line-log.c's
|
|
531
|
+
* `line_log_queue_pairs`). diffcore's later stages (pickaxe, order, `--diff-filter`) still
|
|
532
|
+
* apply.
|
|
533
|
+
*
|
|
534
|
+
* @internal
|
|
535
|
+
*/
|
|
536
|
+
setQueue(entries: DiffEntry[], options?: PresetQueueOptions): this;
|
|
537
|
+
private presetQueue?;
|
|
538
|
+
private presetQueueOptions;
|
|
539
|
+
/**
|
|
540
|
+
* How a comparison of trees walks them (tree-diff.c): `recursive` lists the blobs below the
|
|
541
|
+
* subtrees that differ (`-r`, the porcelain's default), `flat` the differing entries of the
|
|
542
|
+
* top tree, subtrees as entries of mode 040000 (plumbing's default without `-r`), and
|
|
543
|
+
* `show-trees` the blobs and the subtrees on the way to them (`-t`)
|
|
544
|
+
*
|
|
545
|
+
* @internal
|
|
546
|
+
*/
|
|
547
|
+
setTreeWalk(walk: "recursive" | "flat" | "show-trees"): this;
|
|
548
|
+
private treeWalk;
|
|
549
|
+
/**
|
|
550
|
+
* Compare the worktree as the plumbing commands do (`diff-files`, `diff-index` without
|
|
551
|
+
* `--cached`): no refresh, a file whose stat differs from its entry is a change even when
|
|
552
|
+
* its content is the same, and its raw id is the null id (not hashed); an unmerged path's
|
|
553
|
+
* raw line gives the worktree file's mode
|
|
554
|
+
*
|
|
555
|
+
* @internal
|
|
556
|
+
*/
|
|
557
|
+
setPlumbingWorktree(plumbing: boolean): this;
|
|
558
|
+
private plumbingWorktree;
|
|
559
|
+
/** The sides an unmerged path's raw line shows (diff_unmerge's pair), by path */
|
|
560
|
+
private readonly unmergedRaw;
|
|
561
|
+
/** {@link setQueue}'s diffcore run, when asked */
|
|
562
|
+
private presetDiffcore;
|
|
563
|
+
/**
|
|
564
|
+
* diffcore's filtering stages over a queue a caller found (the pickaxe, `-O`,
|
|
565
|
+
* `--diff-filter`): git 2.43's `git log -L` runs them on the pairs it follows renames with
|
|
566
|
+
*
|
|
567
|
+
* @internal
|
|
568
|
+
*/
|
|
569
|
+
filterQueue(entries: DiffEntry[]): Promise<DiffEntry[]>;
|
|
570
|
+
/**
|
|
571
|
+
* The diff driver of a path as a diff of two trees finds it (the worktree's attributes,
|
|
572
|
+
* `diff.<driver>.*`, the builtin drivers): `git log -L :<funcname>:<file>` finds functions
|
|
573
|
+
* by its funcname pattern (line-range.c's `userdiff_find_by_path`)
|
|
574
|
+
*
|
|
575
|
+
* @internal
|
|
576
|
+
*/
|
|
577
|
+
driverOf(path: string): Promise<DiffDriver | undefined>;
|
|
429
578
|
/**
|
|
430
579
|
* Detect renames (`-M`, `--no-renames`). Default: off for `call()` (each path as added and
|
|
431
580
|
* deleted), `diff.renames` (default on) for `callText()`.
|
|
@@ -435,6 +584,23 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
435
584
|
setRenameLimit(limit: number): this;
|
|
436
585
|
/** `diff` stores no objects: its abbreviations read each loose fan-out directory once */
|
|
437
586
|
protected writesNoObjects(): boolean;
|
|
587
|
+
/** diff.c's `additional_path_headers` (see {@link setAdditionalHeaders}) */
|
|
588
|
+
private additionalHeaders?;
|
|
589
|
+
/**
|
|
590
|
+
* diff.c's `additional_path_headers` (`--remerge-diff`'s `remerge CONFLICT` lines), by path:
|
|
591
|
+
* the paths within the pathspec keep theirs (log-tree.c's setup_additional_headers). A
|
|
592
|
+
* pair's headers follow its rename lines; a path with headers and no change is shown as a
|
|
593
|
+
* `diff --git` line with its headers alone, unless a pickaxe or a `--diff-filter` without
|
|
594
|
+
* `U` is given (`include_conflict_headers`).
|
|
595
|
+
*/
|
|
596
|
+
setAdditionalHeaders(headers: ReadonlyMap<string, readonly string[]>): this;
|
|
597
|
+
/** The additional headers within the pathspec, undefined for none */
|
|
598
|
+
private headersInPathspec;
|
|
599
|
+
/**
|
|
600
|
+
* diff.c's `include_conflict_headers`: headers present, no pickaxe, and no `--diff-filter`
|
|
601
|
+
* or one that keeps `U`
|
|
602
|
+
*/
|
|
603
|
+
private includesConflictHeaders;
|
|
438
604
|
/** Text output options: context, algorithm, whitespace, `--stat` widths, ... */
|
|
439
605
|
setOptions(options: DiffTextOptions): this;
|
|
440
606
|
/**
|
|
@@ -496,6 +662,16 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
496
662
|
private followSource;
|
|
497
663
|
/** The formats of the collected comparison, in diff_flush's order */
|
|
498
664
|
private writeFormats;
|
|
665
|
+
/**
|
|
666
|
+
* The raw output's ids: full under {@link DiffTextOptions.rawFullIds} without `--abbrev`,
|
|
667
|
+
* else each abbreviated as git's `diff_aligned_abbrev` (unique, at least `--abbrev` digits)
|
|
668
|
+
*/
|
|
669
|
+
private rawAbbreviator;
|
|
670
|
+
/**
|
|
671
|
+
* create_filepairs_for_header_only_notifications: the pairs, and the paths with headers
|
|
672
|
+
* none of them names first (as strings), sorted by first name (diffcore_fix_diff_index)
|
|
673
|
+
*/
|
|
674
|
+
private withHeaderOnlyPairs;
|
|
499
675
|
/**
|
|
500
676
|
* builtin_diff's submodule branch: `--submodule=log` (show_submodule_diff_summary) or
|
|
501
677
|
* `--submodule=diff` (show_submodule_inline_diff) for a pair of submodules (or a submodule
|
|
@@ -515,15 +691,65 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
515
691
|
* the path's `diff.<driver>.textconv` over the blob as checkout writes it, or undefined
|
|
516
692
|
* when no textconv applies (not a regular file, no driver, no command or no runner
|
|
517
693
|
* installed, `textconv: false`). The attributes are the worktree's alone (git show reads
|
|
518
|
-
* no index).
|
|
519
|
-
|
|
520
|
-
|
|
694
|
+
* no index). With the blob's `id`, the driver's textconv cache applies
|
|
695
|
+
* (`diff.<driver>.cachetextconv`). `worktreeFile`: `read` gives a file as it lies in the
|
|
696
|
+
* worktree (blame's working-tree file, `--contents <file>`), converted as it is, never
|
|
697
|
+
* smudged nor cached (git's prepare_temp_file reuses the file; its object id is unknown).
|
|
698
|
+
*/
|
|
699
|
+
textconvBlob(path: string, mode: number, read: () => Promise<Uint8Array>, id?: string, options?: {
|
|
700
|
+
worktreeFile?: boolean;
|
|
701
|
+
}): Promise<Uint8Array | undefined>;
|
|
702
|
+
/** The textconv caches of this command (git's per-process caches) */
|
|
703
|
+
private textconvCaches;
|
|
704
|
+
/** diff.c's fill_textconv: the runner's output, through the driver's notes cache */
|
|
705
|
+
private runTextconv;
|
|
521
706
|
/** A blob's content as checkout writes it to the worktree (the worktree's smudge filter) */
|
|
522
707
|
private smudged;
|
|
523
708
|
/** git 2.5x's names from contents (see {@link DiffTextOptions.namesFromContents}) */
|
|
524
709
|
private get namesFromContents();
|
|
525
710
|
/** The pairs `--name-only` lists: with whitespace options or `-I`, those whose patch shows a change */
|
|
526
711
|
private shownNames;
|
|
712
|
+
/** The host environment the working copy's configuration was opened with */
|
|
713
|
+
private get hostEnvironment();
|
|
714
|
+
/** diff_setup_done: the external diff calls of a new output start from 1 */
|
|
715
|
+
private resetExternal;
|
|
716
|
+
/**
|
|
717
|
+
* diff.c's `external_diff()` where external diffs are allowed (`--ext-diff`, porcelain
|
|
718
|
+
* `git diff`): `GIT_EXTERNAL_DIFF`, else `diff.external` of the UI configuration
|
|
719
|
+
*/
|
|
720
|
+
private externalProgram;
|
|
721
|
+
/**
|
|
722
|
+
* The program run_diff_cmd runs for a pair, if any: the pair's `diff.<driver>.command`
|
|
723
|
+
* (attributes of its first path), else {@link externalProgram}; none without a runner to
|
|
724
|
+
* run it or a place to write its files. `split`: a change between a file and a symbolic
|
|
725
|
+
* link that only a driver's program takes (run_diff splits it in two when no
|
|
726
|
+
* `GIT_EXTERNAL_DIFF`/`diff.external` is set).
|
|
727
|
+
*/
|
|
728
|
+
private externalDiffFor;
|
|
729
|
+
/**
|
|
730
|
+
* A pair's patch, through its external program or the builtin one: whether it shows a
|
|
731
|
+
* change (git's `found_changes`). `quiet`: nothing is written (diff_flush_patch_quietly).
|
|
732
|
+
*/
|
|
733
|
+
private patchOf;
|
|
734
|
+
/**
|
|
735
|
+
* diff.c's run_external_diff for a pair (both halves of a split one): the program's stdout
|
|
736
|
+
* into `out` (nothing when `quiet`), its stderr kept; whether the pair counts as changed.
|
|
737
|
+
* Without `trustExitCode` a quiet check does not run the program and counts a change.
|
|
738
|
+
*
|
|
739
|
+
* @throws ExternalDiffDiedError on an exit code git does not accept
|
|
740
|
+
*/
|
|
741
|
+
private runExternalDiff;
|
|
742
|
+
/**
|
|
743
|
+
* prepare_temp_file: the three arguments naming one side. An absent side is `/dev/null . .`;
|
|
744
|
+
* the worktree's file is passed by its path from the top (the null id when the comparison
|
|
745
|
+
* did not hash it, a symbolic link's target in a temporary file); a stored side whose
|
|
746
|
+
* index entry the worktree's file still matches is passed as that file
|
|
747
|
+
* (`reuse_worktree_file`, only when the diff reads the index); any other side is a
|
|
748
|
+
* temporary file of its content as checkout writes it.
|
|
749
|
+
*/
|
|
750
|
+
private externalSide;
|
|
751
|
+
/** reuse_worktree_file: the index's entry of `path` holds the side and its file matches it */
|
|
752
|
+
private reusesWorktreeFile;
|
|
527
753
|
private get config();
|
|
528
754
|
/** What this diff compares */
|
|
529
755
|
private get sides();
|
|
@@ -626,8 +852,21 @@ export declare class DiffCommand extends GitCommand<DiffEntry[]> {
|
|
|
626
852
|
*/
|
|
627
853
|
private pairUp;
|
|
628
854
|
/**
|
|
629
|
-
*
|
|
630
|
-
* `
|
|
855
|
+
* diffcore's settings of a run: rename or copy detection (`renames` as configured or set,
|
|
856
|
+
* then `-M`/`-C`), its threshold, `--find-copies-harder`, `-B`; option errors are thrown here
|
|
857
|
+
*/
|
|
858
|
+
private diffcoreSettings;
|
|
859
|
+
/**
|
|
860
|
+
* diffcore_std's pair stages: `diffcore_break` (`-B`), `diffcore_rename` (renames, copies,
|
|
861
|
+
* `--find-copies-harder`), `diffcore_merge_broken`, then `diff_resolve_rename_copy`. The
|
|
862
|
+
* entries are changed in place, in git's queue order.
|
|
863
|
+
*/
|
|
864
|
+
private diffcore;
|
|
865
|
+
/**
|
|
866
|
+
* git's `diffcore_rename` over the queue: deleted paths (broken deletions too) as sources,
|
|
867
|
+
* with copies the modified paths (and, harder, the unmodified ones) as sources that stay,
|
|
868
|
+
* created paths as destinations. A destination paired becomes a rename (resolved into a
|
|
869
|
+
* copy or a rename by {@link diffcore}); a deletion its rename takes is dropped.
|
|
631
870
|
*/
|
|
632
871
|
private detectRenames;
|
|
633
872
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-command.d.ts","sourceRoot":"","sources":["../../src/commands/diff-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"diff-command.d.ts","sourceRoot":"","sources":["../../src/commands/diff-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EAGd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAQL,KAAK,OAAO,EAKb,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAwB/C,OAAO,EAAE,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGtE,OAAO,EAIL,KAAK,UAAU,EAEf,KAAK,iBAAiB,EAEtB,KAAK,YAAY,EACjB,KAAK,eAAe,EAYrB,MAAM,2BAA2B,CAAC;AAWnC,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAGvB,MAAM,wBAAwB,CAAC;AAkBhC,OA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AAiB;IAU/B,0GAA0G;IAC1G,OAAO,CAAC,gBAAgB;IAmCxB,2FAA2F;YAC7E,YAAY;IAkC1B,4EAA4E;IAC5E,OAAO,KAAK,cAAc,GAGzB;IAED,OAAO,CAAC,OAAO;IAWf;;;OAGG;IACH,OAAO,CAAC,MAAM;IAmFd;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA+BxB;;;;OAIG;YACW,QAAQ;IA0ItB;;;;;OAKG;YACW,aAAa;IAgJ3B;;;;OAIG;YACW,QAAQ;IAetB;;;;OAIG;YACW,aAAa;IA6B3B;;;;OAIG;YACW,aAAa;IA0D3B;;;OAGG;YACW,YAAY;IA6C1B,sFAAsF;YACxE,UAAU;IAaxB,yEAAyE;YAC3D,OAAO;IASrB,oFAAoF;IACpF,OAAO,CAAC,WAAW;IAWnB;;;OAGG;YACW,SAAS;IAsBvB;;;;;;OAMG;YACW,YAAY;IA0I1B;;;OAGG;YACW,aAAa;YAyBb,MAAM;IAQpB;;OAEG;YACW,kBAAkB;CAiBjC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAaxD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { GitHostEnvironment } from "@statewalker/vcs-working-tree";
|
|
2
|
+
import { GitApiError } from "../errors/index.js";
|
|
3
|
+
/** A program git runs instead of its builtin patch */
|
|
4
|
+
export interface ExternalDiffProgram {
|
|
5
|
+
/** The command, run through the shell with the arguments after it */
|
|
6
|
+
command: string;
|
|
7
|
+
/** `trustExitCode` (git 2.46+): exit code 0 means the pair shows no change, 1 a change */
|
|
8
|
+
trustExitCode: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* diff.c's `external_diff()`: `$GIT_EXTERNAL_DIFF` (with
|
|
12
|
+
* `$GIT_EXTERNAL_DIFF_TRUST_EXIT_CODE`), else `diff.external` (with `diff.trustExitCode`),
|
|
13
|
+
* which only git's UI configuration reads (`config` undefined for plumbing).
|
|
14
|
+
*/
|
|
15
|
+
export declare function externalDiffProgramOf(environment: Pick<GitHostEnvironment, "diffVariables"> | undefined, config: ((key: string) => string | undefined) | undefined): ExternalDiffProgram | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The temporary files of one external diff call (tempfile.c's `mks_tempfile_dt`): each side
|
|
18
|
+
* in a directory `git-blob-XXXXXX` of the host's temporary directory, named as the file's
|
|
19
|
+
* basename (an external program then sees a "pretty" name), removed by {@link removeAll}.
|
|
20
|
+
*/
|
|
21
|
+
export declare class ExternalDiffTempFiles {
|
|
22
|
+
private readonly environment;
|
|
23
|
+
private readonly made;
|
|
24
|
+
constructor(environment: Pick<GitHostEnvironment, "hostFilesOf" | "tempDirectory">);
|
|
25
|
+
/** Whether files can be written for a program to read (a host FilesApi of the directory) */
|
|
26
|
+
get available(): boolean;
|
|
27
|
+
/** Writes `content` as `<tmp>/git-blob-XXXXXX/<basename of path>`; its host path */
|
|
28
|
+
write(path: string, content: Uint8Array): Promise<string>;
|
|
29
|
+
/** Removes every directory {@link write} made (git's `remove_tempfile`) */
|
|
30
|
+
removeAll(): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Thrown where git dies after an external diff program failed (`fatal: external diff died,
|
|
34
|
+
* stopping at <path>`, exit status 128): an exit code other than 0 (or 1 under
|
|
35
|
+
* `trustExitCode`), or a program the host could not run.
|
|
36
|
+
*/
|
|
37
|
+
export declare class ExternalDiffDiedError extends GitApiError {
|
|
38
|
+
readonly path: string;
|
|
39
|
+
/** What git wrote on stdout before it died (the programs' output, earlier patches) */
|
|
40
|
+
output: Uint8Array;
|
|
41
|
+
constructor(path: string);
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=diff-external.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-external.d.ts","sourceRoot":"","sources":["../../src/commands/diff-external.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,sDAAsD;AACtD,MAAM,WAAW,mBAAmB;IAClC,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,0FAA0F;IAC1F,aAAa,EAAE,OAAO,CAAC;CACxB;AAYD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,IAAI,CAAC,kBAAkB,EAAE,eAAe,CAAC,GAAG,SAAS,EAClE,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,GAAG,SAAS,GACxD,mBAAmB,GAAG,SAAS,CASjC;AAID;;;;GAIG;AACH,qBAAa,qBAAqB;IAI9B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAH9B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA+C;IAEpE,YACmB,WAAW,EAAE,IAAI,CAAC,kBAAkB,EAAE,aAAa,GAAG,eAAe,CAAC,EACrF;IAEJ,4FAA4F;IAC5F,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,oFAAoF;IAC9E,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAmB9D;IAED,2EAA2E;IACrE,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAQ/B;CACF;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IAIxC,QAAQ,CAAC,IAAI,EAAE,MAAM;IAHjC,sFAAsF;IACtF,MAAM,EAAE,UAAU,CAAqB;IAEvC,YAAqB,IAAI,EAAE,MAAM,EAGhC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git diff-pairs -z [<diff-options>]` (builtin/diff-pairs.c, git 2.50 and later): the pairs
|
|
3
|
+
* of a raw diff read back (`git diff-tree -r -z` output) and shown in any diff format.
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* const raw = await git.diffTree().addArgument("base").addArgument("new")
|
|
7
|
+
* .setRecursive(true).setNullTerminated(true).call();
|
|
8
|
+
* const patch = await git.diffPairs().setNullTerminated(true).setInput(raw)
|
|
9
|
+
* .setFormats(["patch"]).call();
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
import { DiffPlumbingCommand } from "./diff-plumbing-command.js";
|
|
13
|
+
/**
|
|
14
|
+
* Show the pairs of a NUL-terminated raw diff (`setInput`, git's stdin): each record
|
|
15
|
+
* `:<mode> <mode> <id> <id> <status>[<score>]` followed by its path (two for a rename or a
|
|
16
|
+
* copy), in the patch format unless another is asked for. A lone NUL flushes the pairs read
|
|
17
|
+
* so far, followed by a NUL in the output. The renames and copies of the input are kept
|
|
18
|
+
* unless `-M`/`-C` asks to detect them again; trees, pathspecs and input without `-z` are
|
|
19
|
+
* refused as git refuses them.
|
|
20
|
+
*/
|
|
21
|
+
export declare class DiffPairsCommand extends DiffPlumbingCommand {
|
|
22
|
+
private input;
|
|
23
|
+
/** The raw diff read (git's stdin) */
|
|
24
|
+
setInput(input: string | Uint8Array): this;
|
|
25
|
+
call(): Promise<Uint8Array>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=diff-pairs-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-pairs-command.d.ts","sourceRoot":"","sources":["../../../src/commands/diff-plumbing/diff-pairs-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;;;;;GAOG;AACH,qBAAa,gBAAiB,SAAQ,mBAAmB;IACvD,OAAO,CAAC,KAAK,CAAiC;IAE9C,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAIzC;IAEK,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAmHhC;CACF"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The plumbing diffs: `git diff-tree`, `git diff-index` and `git diff-files` (builtin/diff-tree.c,
|
|
3
|
+
* builtin/diff-index.c, builtin/diff-files.c), on top of {@link DiffCommand}'s comparisons and
|
|
4
|
+
* {@link LogCommand}'s log_tree_commit.
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git diff-tree -r -z HEAD~1 HEAD
|
|
8
|
+
* const raw = await git.diffTree().addArgument("HEAD~1").addArgument("HEAD")
|
|
9
|
+
* .setRecursive(true).setNullTerminated(true).call();
|
|
10
|
+
*
|
|
11
|
+
* // git diff-files --name-status
|
|
12
|
+
* const text = await git.diffFiles().setFormats(["name-status"]).callText();
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* Their defaults are git's plumbing ones: the raw format (`:<modes> <ids> <status>\t<path>`)
|
|
16
|
+
* with full ids unless `--abbrev` is given, no rename detection unless `-M`/`-C` asks, no
|
|
17
|
+
* `diff.*` porcelain configuration (`git_diff_basic_config`).
|
|
18
|
+
*/
|
|
19
|
+
import { GitCommand } from "../../git-command.js";
|
|
20
|
+
import { DiffCommand, type DiffOutputFormat, type DiffTextOptions } from "../diff-command.js";
|
|
21
|
+
/** What the plumbing diffs share: formats, diff options, pathspec */
|
|
22
|
+
export declare abstract class DiffPlumbingCommand extends GitCommand<Uint8Array> {
|
|
23
|
+
protected formats?: DiffOutputFormat[];
|
|
24
|
+
protected textOptions: DiffTextOptions;
|
|
25
|
+
protected pathspec: string[];
|
|
26
|
+
private abbrevGiven;
|
|
27
|
+
/**
|
|
28
|
+
* The outputs, as their options ask (`--raw`, `-p`, `--stat`, `--name-only`...; the raw
|
|
29
|
+
* format alone by default). `--patch-with-raw` is `["raw", "patch"]`, `--patch-with-stat`
|
|
30
|
+
* `["stat", "patch"]`.
|
|
31
|
+
*/
|
|
32
|
+
setFormats(formats: DiffOutputFormat[]): this;
|
|
33
|
+
/** Diff options (`-M`, `-C`, `-B`, `-R`, `-U<n>`, `--diff-filter`, `-O`, ...) */
|
|
34
|
+
setOptions(options: DiffTextOptions): this;
|
|
35
|
+
/** The paths compared (git's pathspec) */
|
|
36
|
+
setPathspec(paths: string[]): this;
|
|
37
|
+
/**
|
|
38
|
+
* `--abbrev[=<n>]`: the raw output's ids abbreviated (at least `n` digits, unique), as
|
|
39
|
+
* the patches' `index` lines are anyway
|
|
40
|
+
*/
|
|
41
|
+
setAbbrev(length?: number): this;
|
|
42
|
+
/** `-z`: NUL-terminated fields, paths unquoted */
|
|
43
|
+
setNullTerminated(z: boolean): this;
|
|
44
|
+
/** The output as text (paths decoded as {@link decodeGitPath} decodes them) */
|
|
45
|
+
callText(): Promise<string>;
|
|
46
|
+
/** The formats asked for, git's default otherwise, with diff_setup_done's exclusions */
|
|
47
|
+
protected outputFormats(fallback?: DiffOutputFormat): DiffOutputFormat[];
|
|
48
|
+
/** Whether a format needs the whole tree walked (anything but raw and the names) */
|
|
49
|
+
protected impliesRecursive(formats: DiffOutputFormat[]): boolean;
|
|
50
|
+
/** The diff options of a plumbing run: no ui configuration, no renames unless asked */
|
|
51
|
+
protected plumbingOptions(): DiffTextOptions;
|
|
52
|
+
/** A DiffCommand set up with the run's options and pathspec */
|
|
53
|
+
protected diffCommand(): DiffCommand;
|
|
54
|
+
/** The bytes a DiffCommand prints for these formats (nothing for an empty diff) */
|
|
55
|
+
protected printed(diff: DiffCommand, formats: DiffOutputFormat[]): Promise<Uint8Array>;
|
|
56
|
+
}
|
|
57
|
+
/** How `git diff-tree` shows a merge: not at all (default), `-m`, `-c` or `--cc` */
|
|
58
|
+
export type DiffTreeMerges = "none" | "separate" | "combined" | "dense-combined";
|
|
59
|
+
/**
|
|
60
|
+
* `git diff-tree [--stdin] [-m] [-c | --cc] [-r] [-t] [--root] [--no-commit-id] [--pretty]
|
|
61
|
+
* <tree-ish> [<tree-ish>] [<path>...]`.
|
|
62
|
+
*
|
|
63
|
+
* Two tree-ishes are compared as trees; one names a commit, shown with its id (or its log
|
|
64
|
+
* with `--pretty`) and its diff against its parent, nothing when that diff is empty (a root
|
|
65
|
+
* commit only with `--root`, a merge only with `-m`, `-c` or `--cc`). `--stdin` reads
|
|
66
|
+
* `<commit> [<parent>...]` lines (the parents grafted for that diff) and `<tree> <tree>` lines
|
|
67
|
+
* (printed before their diff); any other line is echoed. Without `-r` the top tree's entries
|
|
68
|
+
* are compared (subtrees as `040000` entries); a patch or a stat walks the whole tree.
|
|
69
|
+
*/
|
|
70
|
+
export declare class DiffTreeCommand extends DiffPlumbingCommand {
|
|
71
|
+
private args;
|
|
72
|
+
private recursive;
|
|
73
|
+
private showTrees;
|
|
74
|
+
private root;
|
|
75
|
+
private stdin?;
|
|
76
|
+
private merges;
|
|
77
|
+
private noCommitId;
|
|
78
|
+
private pretty?;
|
|
79
|
+
/** A tree-ish (one: a commit; two: the trees compared) */
|
|
80
|
+
addArgument(treeish: string): this;
|
|
81
|
+
/** `-r`: the subtrees' contents compared */
|
|
82
|
+
setRecursive(recursive: boolean): this;
|
|
83
|
+
/** `-t`: the subtrees shown too on the way to their contents (implies `-r`) */
|
|
84
|
+
setShowTrees(show: boolean): this;
|
|
85
|
+
/** `--root`: a root commit shown against the empty tree */
|
|
86
|
+
setRoot(root: boolean): this;
|
|
87
|
+
/** `--stdin`: the lines read (git's standard input) */
|
|
88
|
+
setStdin(input: string | Uint8Array): this;
|
|
89
|
+
/** `-m`, `-c`, `--cc`: how a merge is shown */
|
|
90
|
+
setMerges(merges: DiffTreeMerges): this;
|
|
91
|
+
/** `--no-commit-id`: no commit id before a commit's diff */
|
|
92
|
+
setNoCommitId(noCommitId: boolean): this;
|
|
93
|
+
/** `--pretty[=<format>]`: the commit's log instead of its id (`medium` for `--pretty`) */
|
|
94
|
+
setPretty(format: string): this;
|
|
95
|
+
call(): Promise<Uint8Array>;
|
|
96
|
+
/** The tree walk the run asks for (diff_setup_done: a patch or a stat recurses) */
|
|
97
|
+
private walk;
|
|
98
|
+
/** Two trees compared: their diff alone */
|
|
99
|
+
private diffTrees;
|
|
100
|
+
/** One commit (its log and diff), or the tree a single argument names against nothing */
|
|
101
|
+
private commitOrTree;
|
|
102
|
+
/** A tree-ish's object id (a commit's, or a tree's for a tree) */
|
|
103
|
+
private resolveTreeish;
|
|
104
|
+
/** Whether an id names a commit or a tree (anything else: undefined) */
|
|
105
|
+
private objectKind;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* `git diff-index [--cached] <tree-ish> [<path>...]`: a tree against the index
|
|
109
|
+
* (`--cached`) or against the worktree, the index telling which files are unchanged by their
|
|
110
|
+
* stat; a worktree file whose stat differs shows the null id in the raw output.
|
|
111
|
+
*/
|
|
112
|
+
export declare class DiffIndexCommand extends DiffPlumbingCommand {
|
|
113
|
+
private tree?;
|
|
114
|
+
private cached;
|
|
115
|
+
/** The tree-ish compared */
|
|
116
|
+
setTree(treeish: string): this;
|
|
117
|
+
/** `--cached`: the index, not the worktree */
|
|
118
|
+
setCached(cached: boolean): this;
|
|
119
|
+
call(): Promise<Uint8Array>;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* `git diff-files [<path>...]`: the index against the worktree, by the entries' stat (a file
|
|
123
|
+
* whose stat differs is listed even when its content did not change, its raw id the null
|
|
124
|
+
* id); an unmerged path is listed as `U`, then against stage 2.
|
|
125
|
+
*/
|
|
126
|
+
export declare class DiffFilesCommand extends DiffPlumbingCommand {
|
|
127
|
+
call(): Promise<Uint8Array>;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=diff-plumbing-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-plumbing-command.d.ts","sourceRoot":"","sources":["../../../src/commands/diff-plumbing/diff-plumbing-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC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