@statewalker/vcs-commands 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commands/add-command.d.ts +32 -0
- package/dist/commands/add-command.d.ts.map +1 -1
- package/dist/commands/add-patch/add-patch.d.ts +7 -0
- package/dist/commands/add-patch/add-patch.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-backend.d.ts +2 -0
- package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-modes.d.ts +6 -2
- package/dist/commands/add-patch/patch-modes.d.ts.map +1 -1
- package/dist/commands/add-patch/patch-session.d.ts +4 -0
- package/dist/commands/add-patch/patch-session.d.ts.map +1 -1
- package/dist/commands/am/am-command.d.ts +88 -2
- package/dist/commands/am/am-command.d.ts.map +1 -1
- package/dist/commands/apply/apply-command.d.ts +2 -0
- package/dist/commands/apply/apply-command.d.ts.map +1 -1
- package/dist/commands/apply/apply-parse.d.ts +7 -0
- package/dist/commands/apply/apply-parse.d.ts.map +1 -1
- package/dist/commands/apply/index.d.ts +1 -1
- package/dist/commands/apply/index.d.ts.map +1 -1
- package/dist/commands/archive/archive-command.d.ts +169 -0
- package/dist/commands/archive/archive-command.d.ts.map +1 -0
- package/dist/commands/archive/archive-entry.d.ts +60 -0
- package/dist/commands/archive/archive-entry.d.ts.map +1 -0
- package/dist/commands/archive/index.d.ts +8 -0
- package/dist/commands/archive/index.d.ts.map +1 -0
- package/dist/commands/archive/remote-archive-command.d.ts +56 -0
- package/dist/commands/archive/remote-archive-command.d.ts.map +1 -0
- package/dist/commands/archive/tar-archive.d.ts +31 -0
- package/dist/commands/archive/tar-archive.d.ts.map +1 -0
- package/dist/commands/archive/tar-commit-id.d.ts +13 -0
- package/dist/commands/archive/tar-commit-id.d.ts.map +1 -0
- package/dist/commands/archive/upload-archive-writer.d.ts +48 -0
- package/dist/commands/archive/upload-archive-writer.d.ts.map +1 -0
- package/dist/commands/archive/zip-archive.d.ts +42 -0
- package/dist/commands/archive/zip-archive.d.ts.map +1 -0
- package/dist/commands/attributes-source.d.ts +10 -0
- package/dist/commands/attributes-source.d.ts.map +1 -1
- package/dist/commands/blame-command.d.ts +345 -8
- package/dist/commands/blame-command.d.ts.map +1 -1
- package/dist/commands/blame-ignore.d.ts +48 -0
- package/dist/commands/blame-ignore.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-create-command.d.ts +67 -0
- package/dist/commands/bundle/bundle-create-command.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-format.d.ts +89 -0
- package/dist/commands/bundle/bundle-format.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-list.d.ts +92 -0
- package/dist/commands/bundle/bundle-list.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-read-commands.d.ts +81 -0
- package/dist/commands/bundle/bundle-read-commands.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-support.d.ts +32 -0
- package/dist/commands/bundle/bundle-support.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-transport.d.ts +38 -0
- package/dist/commands/bundle/bundle-transport.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-uri-host.d.ts +43 -0
- package/dist/commands/bundle/bundle-uri-host.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-uri.d.ts +55 -0
- package/dist/commands/bundle/bundle-uri.d.ts.map +1 -0
- package/dist/commands/bundle/bundle-verify.d.ts +63 -0
- package/dist/commands/bundle/bundle-verify.d.ts.map +1 -0
- package/dist/commands/bundle/index.d.ts +14 -0
- package/dist/commands/bundle/index.d.ts.map +1 -0
- package/dist/commands/cat-file/batch-format.d.ts +58 -0
- package/dist/commands/cat-file/batch-format.d.ts.map +1 -0
- package/dist/commands/cat-file/cat-file-command.d.ts +135 -0
- package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -0
- package/dist/commands/cat-file/index.d.ts +3 -0
- package/dist/commands/cat-file/index.d.ts.map +1 -0
- package/dist/commands/check-attr-command.d.ts +66 -0
- package/dist/commands/check-attr-command.d.ts.map +1 -0
- package/dist/commands/check-ignore-command.d.ts +58 -0
- package/dist/commands/check-ignore-command.d.ts.map +1 -0
- package/dist/commands/check-mailmap-command.d.ts +49 -0
- package/dist/commands/check-mailmap-command.d.ts.map +1 -0
- package/dist/commands/check-ref-format-command.d.ts +60 -0
- package/dist/commands/check-ref-format-command.d.ts.map +1 -0
- package/dist/commands/checkout-command.d.ts +7 -0
- package/dist/commands/checkout-command.d.ts.map +1 -1
- package/dist/commands/checkout-index-command.d.ts +96 -0
- package/dist/commands/checkout-index-command.d.ts.map +1 -0
- package/dist/commands/checkout-paths.d.ts +4 -0
- package/dist/commands/checkout-paths.d.ts.map +1 -1
- package/dist/commands/cherry-command.d.ts +61 -0
- package/dist/commands/cherry-command.d.ts.map +1 -0
- package/dist/commands/cherry-pick-command.d.ts +33 -1
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clean-command.d.ts +32 -0
- package/dist/commands/clean-command.d.ts.map +1 -1
- package/dist/commands/clean-interactive.d.ts +56 -0
- package/dist/commands/clean-interactive.d.ts.map +1 -0
- package/dist/commands/clone-command.d.ts +135 -2
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +59 -3
- package/dist/commands/commit-command.d.ts.map +1 -1
- package/dist/commands/config-command.d.ts +2 -0
- package/dist/commands/config-command.d.ts.map +1 -1
- package/dist/commands/daemon-access-hook.d.ts +36 -0
- package/dist/commands/daemon-access-hook.d.ts.map +1 -0
- package/dist/commands/default-branch.d.ts +42 -0
- package/dist/commands/default-branch.d.ts.map +1 -1
- package/dist/commands/describe-command.d.ts +71 -64
- package/dist/commands/describe-command.d.ts.map +1 -1
- package/dist/commands/diff-command.d.ts +249 -10
- package/dist/commands/diff-command.d.ts.map +1 -1
- package/dist/commands/diff-external.d.ts +43 -0
- package/dist/commands/diff-external.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/diff-pairs-command.d.ts +27 -0
- package/dist/commands/diff-plumbing/diff-pairs-command.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts +129 -0
- package/dist/commands/diff-plumbing/diff-plumbing-command.d.ts.map +1 -0
- package/dist/commands/diff-plumbing/index.d.ts +3 -0
- package/dist/commands/diff-plumbing/index.d.ts.map +1 -0
- package/dist/commands/diff-textconv.d.ts +5 -1
- package/dist/commands/diff-textconv.d.ts.map +1 -1
- package/dist/commands/fast-export/fast-export-command.d.ts +135 -0
- package/dist/commands/fast-export/fast-export-command.d.ts.map +1 -0
- package/dist/commands/fast-export/fast-import-command.d.ts +182 -0
- package/dist/commands/fast-export/fast-import-command.d.ts.map +1 -0
- package/dist/commands/fast-export/fast-stream-support.d.ts +64 -0
- package/dist/commands/fast-export/fast-stream-support.d.ts.map +1 -0
- package/dist/commands/fast-export/index.d.ts +4 -0
- package/dist/commands/fast-export/index.d.ts.map +1 -0
- package/dist/commands/fetch-command.d.ts +125 -0
- package/dist/commands/fetch-command.d.ts.map +1 -1
- package/dist/commands/fetch-multiple-command.d.ts +193 -0
- package/dist/commands/fetch-multiple-command.d.ts.map +1 -0
- package/dist/commands/format-patch-command.d.ts +28 -2
- package/dist/commands/format-patch-command.d.ts.map +1 -1
- package/dist/commands/format-rev-command.d.ts +58 -0
- package/dist/commands/format-rev-command.d.ts.map +1 -0
- package/dist/commands/fsck/fsck-command.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-msg-ids.d.ts +18 -3
- package/dist/commands/fsck/fsck-msg-ids.d.ts.map +1 -1
- package/dist/commands/fsmonitor-refresh.d.ts +69 -0
- package/dist/commands/fsmonitor-refresh.d.ts.map +1 -0
- package/dist/commands/gc-command.d.ts +5 -0
- package/dist/commands/gc-command.d.ts.map +1 -1
- package/dist/commands/git-describe.d.ts +77 -4
- package/dist/commands/git-describe.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +47 -1
- package/dist/commands/git-hooks.d.ts.map +1 -1
- package/dist/commands/git-paths.d.ts +26 -0
- package/dist/commands/git-paths.d.ts.map +1 -0
- package/dist/commands/grep/grep-command.d.ts +2 -1
- package/dist/commands/grep/grep-command.d.ts.map +1 -1
- package/dist/commands/history-command.d.ts +156 -0
- package/dist/commands/history-command.d.ts.map +1 -0
- package/dist/commands/http-config.d.ts +38 -0
- package/dist/commands/http-config.d.ts.map +1 -0
- package/dist/commands/index-adder.d.ts +12 -1
- package/dist/commands/index-adder.d.ts.map +1 -1
- package/dist/commands/index-host.d.ts.map +1 -1
- package/dist/commands/index.d.ts +56 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +6 -3
- package/dist/commands/init-command.d.ts +89 -0
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/last-modified-command.d.ts +102 -0
- package/dist/commands/last-modified-command.d.ts.map +1 -0
- package/dist/commands/lfs/go-url.d.ts +43 -0
- package/dist/commands/lfs/go-url.d.ts.map +1 -0
- package/dist/commands/lfs/index.d.ts +3 -0
- package/dist/commands/lfs/index.d.ts.map +1 -0
- package/dist/commands/lfs/lfs-config.d.ts +174 -0
- package/dist/commands/lfs/lfs-config.d.ts.map +1 -0
- package/dist/commands/lfs/lfs-endpoint-command.d.ts +83 -0
- package/dist/commands/lfs/lfs-endpoint-command.d.ts.map +1 -0
- package/dist/commands/line-log.d.ts +161 -0
- package/dist/commands/line-log.d.ts.map +1 -0
- package/dist/commands/local-transport.d.ts.map +1 -1
- package/dist/commands/log-command.d.ts +261 -6
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-graph.d.ts +4 -2
- package/dist/commands/log-graph.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +88 -2
- package/dist/commands/log-output.d.ts.map +1 -1
- package/dist/commands/ls-files-command.d.ts +153 -0
- package/dist/commands/ls-files-command.d.ts.map +1 -0
- package/dist/commands/ls-remote-command.d.ts +5 -0
- package/dist/commands/ls-remote-command.d.ts.map +1 -1
- package/dist/commands/ls-tree-command.d.ts +105 -0
- package/dist/commands/ls-tree-command.d.ts.map +1 -0
- package/dist/commands/mailmap.d.ts +24 -1
- package/dist/commands/mailmap.d.ts.map +1 -1
- package/dist/commands/maintenance-run-command.d.ts +122 -0
- package/dist/commands/maintenance-run-command.d.ts.map +1 -0
- package/dist/commands/merge-command.d.ts +58 -1
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-config.d.ts +7 -0
- package/dist/commands/merge-config.d.ts.map +1 -1
- package/dist/commands/merge-drivers.d.ts +69 -5
- package/dist/commands/merge-drivers.d.ts.map +1 -1
- package/dist/commands/merge-strategy-options.d.ts +69 -0
- package/dist/commands/merge-strategy-options.d.ts.map +1 -0
- package/dist/commands/merge-support.d.ts +16 -0
- package/dist/commands/merge-support.d.ts.map +1 -1
- package/dist/commands/merge-tree-command.d.ts +122 -0
- package/dist/commands/merge-tree-command.d.ts.map +1 -0
- package/dist/commands/message-cleanup.d.ts +2 -0
- package/dist/commands/message-cleanup.d.ts.map +1 -1
- package/dist/commands/mktag-command.d.ts +51 -0
- package/dist/commands/mktag-command.d.ts.map +1 -0
- package/dist/commands/name-rev-command.d.ts +65 -0
- package/dist/commands/name-rev-command.d.ts.map +1 -0
- package/dist/commands/name-rev.d.ts +110 -22
- package/dist/commands/name-rev.d.ts.map +1 -1
- package/dist/commands/object-store/count-objects-command.d.ts +58 -0
- package/dist/commands/object-store/count-objects-command.d.ts.map +1 -0
- package/dist/commands/object-store/index.d.ts +5 -0
- package/dist/commands/object-store/index.d.ts.map +1 -0
- package/dist/commands/object-store/objects-directory.d.ts +12 -0
- package/dist/commands/object-store/objects-directory.d.ts.map +1 -0
- package/dist/commands/object-store/prune-command.d.ts +38 -0
- package/dist/commands/object-store/prune-command.d.ts.map +1 -0
- package/dist/commands/object-store/show-index-command.d.ts +23 -0
- package/dist/commands/object-store/show-index-command.d.ts.map +1 -0
- package/dist/commands/octopus-merge.d.ts +26 -1
- package/dist/commands/octopus-merge.d.ts.map +1 -1
- package/dist/commands/ort-merge.d.ts +40 -0
- package/dist/commands/ort-merge.d.ts.map +1 -1
- package/dist/commands/ort-recursive.d.ts.map +1 -1
- package/dist/commands/patch-id-command.d.ts +30 -0
- package/dist/commands/patch-id-command.d.ts.map +1 -0
- package/dist/commands/patch-id.d.ts +82 -0
- package/dist/commands/patch-id.d.ts.map +1 -1
- package/dist/commands/plumbing-command.d.ts +66 -0
- package/dist/commands/plumbing-command.d.ts.map +1 -0
- package/dist/commands/plumbing-input.d.ts +38 -0
- package/dist/commands/plumbing-input.d.ts.map +1 -0
- package/dist/commands/promisor-remote-reply.d.ts +35 -0
- package/dist/commands/promisor-remote-reply.d.ts.map +1 -0
- package/dist/commands/promisor-remote.d.ts.map +1 -1
- package/dist/commands/pull-command.d.ts +182 -38
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +82 -2
- package/dist/commands/push-command.d.ts.map +1 -1
- package/dist/commands/range-diff/index.d.ts +4 -0
- package/dist/commands/range-diff/index.d.ts.map +1 -0
- package/dist/commands/range-diff/linear-assignment.d.ts +27 -0
- package/dist/commands/range-diff/linear-assignment.d.ts.map +1 -0
- package/dist/commands/range-diff/range-diff-command.d.ts +121 -0
- package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -0
- package/dist/commands/range-diff/range-diff.d.ts +106 -0
- package/dist/commands/range-diff/range-diff.d.ts.map +1 -0
- package/dist/commands/read-tree-command.d.ts +14 -0
- package/dist/commands/read-tree-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +129 -4
- package/dist/commands/rebase-command.d.ts.map +1 -1
- package/dist/commands/refs-command.d.ts +81 -0
- package/dist/commands/refs-command.d.ts.map +1 -0
- package/dist/commands/remerge-diff.d.ts +59 -0
- package/dist/commands/remerge-diff.d.ts.map +1 -0
- package/dist/commands/remote-command.d.ts +41 -0
- package/dist/commands/remote-command.d.ts.map +1 -1
- package/dist/commands/remote-object-info-command.d.ts +55 -0
- package/dist/commands/remote-object-info-command.d.ts.map +1 -0
- package/dist/commands/remote-show-command.d.ts +204 -0
- package/dist/commands/remote-show-command.d.ts.map +1 -0
- package/dist/commands/remote-transport.d.ts +40 -3
- package/dist/commands/remote-transport.d.ts.map +1 -1
- package/dist/commands/repack-command.d.ts +115 -0
- package/dist/commands/repack-command.d.ts.map +1 -0
- package/dist/commands/replace-command.d.ts +143 -0
- package/dist/commands/replace-command.d.ts.map +1 -0
- package/dist/commands/replay-command.d.ts +117 -0
- package/dist/commands/replay-command.d.ts.map +1 -0
- package/dist/commands/repo-command.d.ts +136 -0
- package/dist/commands/repo-command.d.ts.map +1 -0
- package/dist/commands/request-pull-command.d.ts +82 -0
- package/dist/commands/request-pull-command.d.ts.map +1 -0
- package/dist/commands/rerere-command.d.ts +36 -0
- package/dist/commands/rerere-command.d.ts.map +1 -0
- package/dist/commands/rerere.d.ts +102 -0
- package/dist/commands/rerere.d.ts.map +1 -0
- package/dist/commands/reset-command.d.ts +19 -1
- package/dist/commands/reset-command.d.ts.map +1 -1
- package/dist/commands/restore-command.d.ts +7 -0
- package/dist/commands/restore-command.d.ts.map +1 -1
- package/dist/commands/rev-filter/commit-grep.d.ts +3 -1
- package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -1
- package/dist/commands/rev-list-command.d.ts +78 -3
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/rev-parse-command.d.ts +9 -0
- package/dist/commands/rev-parse-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +32 -1
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +7 -0
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/revision-resolver.d.ts +12 -0
- package/dist/commands/revision-resolver.d.ts.map +1 -1
- package/dist/commands/sequencer-pick.d.ts +120 -1
- package/dist/commands/sequencer-pick.d.ts.map +1 -1
- package/dist/commands/sequencer-support.d.ts +10 -1
- package/dist/commands/sequencer-support.d.ts.map +1 -1
- package/dist/commands/serve-repository.d.ts +23 -1
- package/dist/commands/serve-repository.d.ts.map +1 -1
- package/dist/commands/session-id.d.ts +18 -0
- package/dist/commands/session-id.d.ts.map +1 -0
- package/dist/commands/shortlog-command.d.ts +109 -0
- package/dist/commands/shortlog-command.d.ts.map +1 -0
- package/dist/commands/shortlog.d.ts +151 -0
- package/dist/commands/shortlog.d.ts.map +1 -0
- package/dist/commands/show-branch-command.d.ts +59 -0
- package/dist/commands/show-branch-command.d.ts.map +1 -0
- package/dist/commands/show-ref-command.d.ts +112 -0
- package/dist/commands/show-ref-command.d.ts.map +1 -0
- package/dist/commands/signature-check.d.ts +9 -2
- package/dist/commands/signature-check.d.ts.map +1 -1
- package/dist/commands/signing.d.ts +22 -1
- package/dist/commands/signing.d.ts.map +1 -1
- package/dist/commands/stash-apply-command.d.ts.map +1 -1
- package/dist/commands/stash-export-command.d.ts +115 -0
- package/dist/commands/stash-export-command.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +33 -3
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/stripspace-command.d.ts +44 -0
- package/dist/commands/stripspace-command.d.ts.map +1 -0
- package/dist/commands/submodule-add-command.d.ts +10 -1
- package/dist/commands/submodule-add-command.d.ts.map +1 -1
- package/dist/commands/submodule-auth.d.ts +3 -1
- package/dist/commands/submodule-auth.d.ts.map +1 -1
- package/dist/commands/submodule-commands.d.ts +99 -3
- package/dist/commands/submodule-commands.d.ts.map +1 -1
- package/dist/commands/submodule-fetch.d.ts +149 -0
- package/dist/commands/submodule-fetch.d.ts.map +1 -0
- package/dist/commands/submodule-model.d.ts +8 -0
- package/dist/commands/submodule-model.d.ts.map +1 -1
- package/dist/commands/submodule-unpack.d.ts +120 -0
- package/dist/commands/submodule-unpack.d.ts.map +1 -0
- package/dist/commands/submodule-update-command.d.ts +21 -1
- package/dist/commands/submodule-update-command.d.ts.map +1 -1
- package/dist/commands/subtree-shift.d.ts +27 -0
- package/dist/commands/subtree-shift.d.ts.map +1 -0
- package/dist/commands/switch-command.d.ts +3 -0
- package/dist/commands/switch-command.d.ts.map +1 -1
- package/dist/commands/textconv-cache.d.ts +58 -0
- package/dist/commands/textconv-cache.d.ts.map +1 -0
- package/dist/commands/tree-restore.d.ts +5 -0
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/unpack-objects-command.d.ts +47 -0
- package/dist/commands/unpack-objects-command.d.ts.map +1 -0
- package/dist/commands/update-index-command.d.ts +110 -0
- package/dist/commands/update-index-command.d.ts.map +1 -0
- package/dist/commands/uri-protocols.d.ts +13 -0
- package/dist/commands/uri-protocols.d.ts.map +1 -0
- package/dist/commands/url-parse-command.d.ts +30 -0
- package/dist/commands/url-parse-command.d.ts.map +1 -0
- package/dist/commands/var-command.d.ts +42 -0
- package/dist/commands/var-command.d.ts.map +1 -0
- package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
- package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
- package/dist/{commands-ISM52N0n.js → commands-Mlo1dxQN.js} +56133 -70269
- package/dist/errors/command-errors.d.ts +58 -0
- package/dist/errors/command-errors.d.ts.map +1 -1
- package/dist/errors/index.js +67 -1
- package/dist/fsck-CrhVMNIH.js +5179 -0
- package/dist/git-command.d.ts +89 -3
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +628 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/guarded-transport-command.d.ts +84 -0
- package/dist/guarded-transport-command.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -5
- package/dist/maintenance-run-command-Bw21HEkH.js +13539 -0
- package/dist/remote-transport-Bu4PGSMD.js +2605 -0
- package/dist/rename/detect-renames.d.ts +20 -0
- package/dist/rename/detect-renames.d.ts.map +1 -1
- package/dist/rename/diffcore-break.d.ts +51 -0
- package/dist/rename/diffcore-break.d.ts.map +1 -0
- package/dist/rename/index.d.ts +1 -0
- package/dist/rename/index.d.ts.map +1 -1
- package/dist/results/blame-format.d.ts +62 -1
- package/dist/results/blame-format.d.ts.map +1 -1
- package/dist/results/cherry-pick-result.d.ts +6 -0
- package/dist/results/cherry-pick-result.d.ts.map +1 -1
- package/dist/results/clone-result.d.ts +9 -0
- package/dist/results/clone-result.d.ts.map +1 -1
- package/dist/results/diff-dirstat.d.ts +36 -0
- package/dist/results/diff-dirstat.d.ts.map +1 -0
- package/dist/results/diff-entry.d.ts +20 -0
- package/dist/results/diff-entry.d.ts.map +1 -1
- package/dist/results/diff-formatter.d.ts.map +1 -1
- package/dist/results/diff-output.d.ts +67 -3
- package/dist/results/diff-output.d.ts.map +1 -1
- package/dist/results/fetch-result.d.ts +24 -1
- package/dist/results/fetch-result.d.ts.map +1 -1
- package/dist/results/index.d.ts +2 -0
- package/dist/results/index.d.ts.map +1 -1
- package/dist/results/index.js +2 -2
- package/dist/results/init-result.d.ts +8 -1
- package/dist/results/init-result.d.ts.map +1 -1
- package/dist/results/line-range-hunks.d.ts +27 -0
- package/dist/results/line-range-hunks.d.ts.map +1 -0
- package/dist/results/merge-result.d.ts +13 -1
- package/dist/results/merge-result.d.ts.map +1 -1
- package/dist/results/pull-result.d.ts +11 -0
- package/dist/results/pull-result.d.ts.map +1 -1
- package/dist/results/push-result.d.ts +10 -0
- package/dist/results/push-result.d.ts.map +1 -1
- package/dist/results/rebase-result.d.ts +7 -0
- package/dist/results/rebase-result.d.ts.map +1 -1
- package/dist/results/revert-result.d.ts +6 -0
- package/dist/results/revert-result.d.ts.map +1 -1
- package/dist/results/stash-result.d.ts +5 -0
- package/dist/results/stash-result.d.ts.map +1 -1
- package/dist/results/status-result.d.ts +1 -1
- package/dist/results/status-result.d.ts.map +1 -1
- package/dist/results-ERo9vELd.js +49673 -0
- package/dist/transport-command.d.ts +93 -1
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/commands/add-command.ts +118 -0
- package/src/commands/add-patch/add-patch.ts +8 -0
- package/src/commands/add-patch/patch-backend.ts +24 -3
- package/src/commands/add-patch/patch-modes.ts +26 -2
- package/src/commands/add-patch/patch-session.ts +6 -0
- package/src/commands/am/am-command.ts +301 -12
- package/src/commands/apply/apply-command.ts +52 -9
- package/src/commands/apply/apply-parse.ts +10 -0
- package/src/commands/apply/index.ts +9 -1
- package/src/commands/archive/archive-command.ts +1148 -0
- package/src/commands/archive/archive-entry.ts +93 -0
- package/src/commands/archive/index.ts +7 -0
- package/src/commands/archive/remote-archive-command.ts +140 -0
- package/src/commands/archive/tar-archive.ts +207 -0
- package/src/commands/archive/tar-commit-id.ts +72 -0
- package/src/commands/archive/upload-archive-writer.ts +213 -0
- package/src/commands/archive/zip-archive.ts +317 -0
- package/src/commands/attributes-source.ts +26 -12
- package/src/commands/blame-command.ts +1551 -53
- package/src/commands/blame-ignore.ts +307 -0
- package/src/commands/bundle/bundle-create-command.ts +405 -0
- package/src/commands/bundle/bundle-format.ts +228 -0
- package/src/commands/bundle/bundle-list.ts +276 -0
- package/src/commands/bundle/bundle-read-commands.ts +157 -0
- package/src/commands/bundle/bundle-support.ts +85 -0
- package/src/commands/bundle/bundle-transport.ts +107 -0
- package/src/commands/bundle/bundle-uri-host.ts +204 -0
- package/src/commands/bundle/bundle-uri.ts +236 -0
- package/src/commands/bundle/bundle-verify.ts +152 -0
- package/src/commands/bundle/index.ts +14 -0
- package/src/commands/cat-file/batch-format.ts +193 -0
- package/src/commands/cat-file/cat-file-command.ts +857 -0
- package/src/commands/cat-file/index.ts +2 -0
- package/src/commands/check-attr-command.ts +333 -0
- package/src/commands/check-ignore-command.ts +261 -0
- package/src/commands/check-mailmap-command.ts +129 -0
- package/src/commands/check-ref-format-command.ts +129 -0
- package/src/commands/checkout-command.ts +131 -28
- package/src/commands/checkout-index-command.ts +568 -0
- package/src/commands/checkout-paths.ts +35 -0
- package/src/commands/cherry-command.ts +187 -0
- package/src/commands/cherry-pick-command.ts +63 -2
- package/src/commands/clean-command.ts +92 -12
- package/src/commands/clean-interactive.ts +522 -0
- package/src/commands/clone-command.ts +803 -50
- package/src/commands/commit-command.ts +202 -51
- package/src/commands/config-command.ts +9 -0
- package/src/commands/daemon-access-hook.ts +78 -0
- package/src/commands/default-branch.ts +99 -1
- package/src/commands/describe-command.ts +341 -254
- package/src/commands/diff-command.ts +1186 -99
- package/src/commands/diff-external.ts +131 -0
- package/src/commands/diff-plumbing/diff-pairs-command.ts +193 -0
- package/src/commands/diff-plumbing/diff-plumbing-command.ts +424 -0
- package/src/commands/diff-plumbing/index.ts +2 -0
- package/src/commands/diff-textconv.ts +5 -1
- package/src/commands/fast-export/fast-export-command.ts +911 -0
- package/src/commands/fast-export/fast-import-command.ts +1553 -0
- package/src/commands/fast-export/fast-stream-support.ts +162 -0
- package/src/commands/fast-export/index.ts +3 -0
- package/src/commands/fetch-command.ts +665 -14
- package/src/commands/fetch-multiple-command.ts +668 -0
- package/src/commands/format-patch-command.ts +189 -77
- package/src/commands/format-rev-command.ts +251 -0
- package/src/commands/fsck/fsck-command.ts +47 -20
- package/src/commands/fsck/fsck-msg-ids.ts +19 -3
- package/src/commands/fsck/fsck-pack.ts +2 -2
- package/src/commands/fsmonitor-refresh.ts +315 -0
- package/src/commands/gc-command.ts +10 -0
- package/src/commands/git-describe.ts +456 -217
- package/src/commands/git-hooks.ts +165 -9
- package/src/commands/git-paths.ts +136 -0
- package/src/commands/grep/grep-command.ts +38 -15
- package/src/commands/history-command.ts +617 -0
- package/src/commands/http-config.ts +139 -0
- package/src/commands/index-adder.ts +37 -3
- package/src/commands/index-host.ts +6 -1
- package/src/commands/index.ts +62 -0
- package/src/commands/init-command.ts +617 -49
- package/src/commands/last-modified-command.ts +804 -0
- package/src/commands/lfs/go-url.ts +370 -0
- package/src/commands/lfs/index.ts +2 -0
- package/src/commands/lfs/lfs-config.ts +738 -0
- package/src/commands/lfs/lfs-endpoint-command.ts +180 -0
- package/src/commands/line-log.ts +931 -0
- package/src/commands/local-transport.ts +252 -4
- package/src/commands/log-command.ts +1518 -182
- package/src/commands/log-graph.ts +6 -3
- package/src/commands/log-output.ts +228 -15
- package/src/commands/ls-files-command.ts +1177 -0
- package/src/commands/ls-remote-command.ts +6 -0
- package/src/commands/ls-tree-command.ts +684 -0
- package/src/commands/mailmap.ts +41 -5
- package/src/commands/maintenance-run-command.ts +949 -0
- package/src/commands/merge-command.ts +351 -47
- package/src/commands/merge-config.ts +23 -1
- package/src/commands/merge-drivers.ts +112 -20
- package/src/commands/merge-strategy-options.ts +224 -0
- package/src/commands/merge-support.ts +130 -26
- package/src/commands/merge-tree-command.ts +786 -0
- package/src/commands/message-cleanup.ts +1 -1
- package/src/commands/mktag-command.ts +149 -0
- package/src/commands/name-rev-command.ts +184 -0
- package/src/commands/name-rev.ts +700 -109
- package/src/commands/object-store/count-objects-command.ts +404 -0
- package/src/commands/object-store/index.ts +4 -0
- package/src/commands/object-store/objects-directory.ts +24 -0
- package/src/commands/object-store/prune-command.ts +129 -0
- package/src/commands/object-store/show-index-command.ts +151 -0
- package/src/commands/octopus-merge.ts +35 -11
- package/src/commands/ort-merge.ts +124 -23
- package/src/commands/ort-recursive.ts +40 -2
- package/src/commands/patch-id-command.ts +65 -0
- package/src/commands/patch-id.ts +327 -0
- package/src/commands/plumbing-command.ts +141 -0
- package/src/commands/plumbing-input.ts +87 -0
- package/src/commands/promisor-remote-reply.ts +276 -0
- package/src/commands/promisor-remote.ts +25 -2
- package/src/commands/pull-command.ts +720 -224
- package/src/commands/push-command.ts +440 -8
- package/src/commands/range-diff/index.ts +3 -0
- package/src/commands/range-diff/linear-assignment.ts +203 -0
- package/src/commands/range-diff/range-diff-command.ts +433 -0
- package/src/commands/range-diff/range-diff.ts +617 -0
- package/src/commands/read-tree-command.ts +74 -3
- package/src/commands/rebase-command.ts +647 -83
- package/src/commands/refs-command.ts +274 -0
- package/src/commands/remerge-diff.ts +241 -0
- package/src/commands/remote-command.ts +98 -10
- package/src/commands/remote-object-info-command.ts +109 -0
- package/src/commands/remote-show-command.ts +836 -0
- package/src/commands/remote-transport.ts +116 -1
- package/src/commands/repack-command.ts +383 -0
- package/src/commands/replace-command.ts +816 -0
- package/src/commands/replay-command.ts +674 -0
- package/src/commands/repo-command.ts +967 -0
- package/src/commands/request-pull-command.ts +356 -0
- package/src/commands/rerere-command.ts +179 -0
- package/src/commands/rerere.ts +925 -0
- package/src/commands/reset-command.ts +78 -3
- package/src/commands/restore-command.ts +15 -0
- package/src/commands/rev-filter/commit-grep.ts +7 -2
- package/src/commands/rev-list-command.ts +196 -11
- package/src/commands/rev-parse-command.ts +62 -4
- package/src/commands/revert-command.ts +62 -2
- package/src/commands/revision-range.ts +10 -3
- package/src/commands/revision-resolver.ts +44 -3
- package/src/commands/sequencer-pick.ts +370 -29
- package/src/commands/sequencer-support.ts +164 -2
- package/src/commands/serve-repository.ts +65 -0
- package/src/commands/session-id.ts +31 -0
- package/src/commands/shortlog-command.ts +354 -0
- package/src/commands/shortlog.ts +361 -0
- package/src/commands/show-branch-command.ts +981 -0
- package/src/commands/show-command.ts +3 -2
- package/src/commands/show-ref-command.ts +439 -0
- package/src/commands/signature-check.ts +37 -5
- package/src/commands/signing.ts +122 -16
- package/src/commands/stash-apply-command.ts +3 -0
- package/src/commands/stash-export-command.ts +397 -0
- package/src/commands/status-command.ts +158 -31
- package/src/commands/status-format.ts +1 -1
- package/src/commands/stripspace-command.ts +118 -0
- package/src/commands/submodule-add-command.ts +22 -1
- package/src/commands/submodule-auth.ts +61 -6
- package/src/commands/submodule-commands.ts +333 -5
- package/src/commands/submodule-fetch.ts +789 -0
- package/src/commands/submodule-model.ts +9 -1
- package/src/commands/submodule-unpack.ts +265 -0
- package/src/commands/submodule-update-command.ts +68 -5
- package/src/commands/subtree-shift.ts +215 -0
- package/src/commands/switch-command.ts +9 -0
- package/src/commands/textconv-cache.ts +143 -0
- package/src/commands/tree-restore.ts +20 -1
- package/src/commands/unpack-objects-command.ts +235 -0
- package/src/commands/update-index-command.ts +1016 -0
- package/src/commands/uri-protocols.ts +13 -0
- package/src/commands/url-parse-command.ts +67 -0
- package/src/commands/var-command.ts +219 -0
- package/src/commands/worktree-overwrite-checks.ts +5 -0
- package/src/errors/command-errors.ts +80 -0
- package/src/git-command.ts +218 -2
- package/src/git.ts +1033 -80
- package/src/guarded-transport-command.ts +176 -0
- package/src/index.ts +1 -0
- package/src/rename/detect-renames.ts +42 -8
- package/src/rename/diffcore-break.ts +166 -0
- package/src/rename/index.ts +1 -0
- package/src/results/blame-format.ts +268 -43
- package/src/results/cherry-pick-result.ts +6 -0
- package/src/results/clone-result.ts +6 -0
- package/src/results/diff-dirstat.ts +117 -0
- package/src/results/diff-entry.ts +24 -0
- package/src/results/diff-formatter.ts +8 -4
- package/src/results/diff-output.ts +239 -8
- package/src/results/diff-pickaxe.ts +1 -1
- package/src/results/fetch-result.ts +24 -1
- package/src/results/index.ts +2 -0
- package/src/results/init-result.ts +10 -1
- package/src/results/line-range-hunks.ts +126 -0
- package/src/results/merge-result.ts +14 -0
- package/src/results/pull-result.ts +7 -0
- package/src/results/push-result.ts +10 -0
- package/src/results/rebase-result.ts +7 -0
- package/src/results/revert-result.ts +6 -0
- package/src/results/stash-result.ts +6 -0
- package/src/results/status-result.ts +2 -2
- package/src/transport-command.ts +216 -4
- package/dist/fsck-DLRpbwTj.js +0 -13405
- package/dist/results-TB2IJ64h.js +0 -4700
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's linear-assignment.c: the Jonker-Volgenant shortest augmenting path solver of the
|
|
3
|
+
* linear assignment problem (Jonker, R., & Volgenant, A. (1987). A shortest augmenting path
|
|
4
|
+
* algorithm for dense and sparse linear assignment problems. Computing, 38(4), 325-340),
|
|
5
|
+
* step for step as git runs it, so that ties end in git's pairing.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* // two columns, two rows: column 0 costs 1 in row 0 and 2 in row 1
|
|
10
|
+
* const { columnToRow } = computeAssignment(2, 2, [1, 5, 2, 1]);
|
|
11
|
+
* // columnToRow: [0, 1]
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/** git's `INT_MAX` */
|
|
16
|
+
const INT_MAX = 2147483647;
|
|
17
|
+
|
|
18
|
+
/** The pairing found: the row of each column and the column of each row. */
|
|
19
|
+
export interface Assignment {
|
|
20
|
+
columnToRow: Int32Array;
|
|
21
|
+
rowToColumn: Int32Array;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* `compute_assignment`: the assignment of columns to rows of least total cost. `cost` is the
|
|
26
|
+
* cost matrix, the cost of assigning column `j` to row `i` at `cost[j + columnCount * i]`.
|
|
27
|
+
* With fewer than two columns every column and row is paired with 0, as git leaves them.
|
|
28
|
+
*
|
|
29
|
+
* @throws Error where git hits its `BUG("negative j")`
|
|
30
|
+
*/
|
|
31
|
+
export function computeAssignment(
|
|
32
|
+
columnCount: number,
|
|
33
|
+
rowCount: number,
|
|
34
|
+
cost: ArrayLike<number>,
|
|
35
|
+
): Assignment {
|
|
36
|
+
const column2row = new Int32Array(columnCount);
|
|
37
|
+
const row2column = new Int32Array(rowCount);
|
|
38
|
+
if (columnCount < 2) return { columnToRow: column2row, rowToColumn: row2column };
|
|
39
|
+
const COST = (column: number, row: number) => cost[column + columnCount * row] as number;
|
|
40
|
+
|
|
41
|
+
column2row.fill(-1);
|
|
42
|
+
row2column.fill(-1);
|
|
43
|
+
const v = new Int32Array(columnCount);
|
|
44
|
+
|
|
45
|
+
// column reduction
|
|
46
|
+
for (let j = columnCount - 1; j >= 0; j--) {
|
|
47
|
+
let i1 = 0;
|
|
48
|
+
for (let i = 1; i < rowCount; i++) if (COST(j, i1) > COST(j, i)) i1 = i;
|
|
49
|
+
v[j] = COST(j, i1);
|
|
50
|
+
if (row2column[i1] === -1) {
|
|
51
|
+
// row i1 unassigned
|
|
52
|
+
row2column[i1] = j;
|
|
53
|
+
column2row[j] = i1;
|
|
54
|
+
} else {
|
|
55
|
+
if ((row2column[i1] as number) >= 0) row2column[i1] = -2 - (row2column[i1] as number);
|
|
56
|
+
column2row[j] = -1;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// reduction transfer
|
|
61
|
+
const freeRow = new Int32Array(rowCount);
|
|
62
|
+
let freeCount = 0;
|
|
63
|
+
for (let i = 0; i < rowCount; i++) {
|
|
64
|
+
const j1 = row2column[i] as number;
|
|
65
|
+
if (j1 === -1) freeRow[freeCount++] = i;
|
|
66
|
+
else if (j1 < -1) row2column[i] = -2 - j1;
|
|
67
|
+
else {
|
|
68
|
+
const other = j1 === 0 ? 1 : 0;
|
|
69
|
+
let min = COST(other, i) - (v[other] as number);
|
|
70
|
+
for (let j = 1; j < columnCount; j++)
|
|
71
|
+
if (j !== j1 && min > COST(j, i) - (v[j] as number)) min = COST(j, i) - (v[j] as number);
|
|
72
|
+
v[j1] = (v[j1] as number) - min;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (freeCount === (columnCount < rowCount ? rowCount - columnCount : 0)) {
|
|
77
|
+
return { columnToRow: column2row, rowToColumn: row2column };
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// augmenting row reduction
|
|
81
|
+
for (let phase = 0; phase < 2; phase++) {
|
|
82
|
+
let k = 0;
|
|
83
|
+
const savedFreeCount = freeCount;
|
|
84
|
+
freeCount = 0;
|
|
85
|
+
while (k < savedFreeCount) {
|
|
86
|
+
let j1 = 0;
|
|
87
|
+
const i = freeRow[k++] as number;
|
|
88
|
+
let u1 = COST(j1, i) - (v[j1] as number);
|
|
89
|
+
let j2 = -1;
|
|
90
|
+
let u2 = INT_MAX;
|
|
91
|
+
for (let j = 1; j < columnCount; j++) {
|
|
92
|
+
const c = COST(j, i) - (v[j] as number);
|
|
93
|
+
if (u2 > c) {
|
|
94
|
+
if (u1 < c) {
|
|
95
|
+
u2 = c;
|
|
96
|
+
j2 = j;
|
|
97
|
+
} else {
|
|
98
|
+
u2 = u1;
|
|
99
|
+
u1 = c;
|
|
100
|
+
j2 = j1;
|
|
101
|
+
j1 = j;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (j2 < 0) {
|
|
106
|
+
j2 = j1;
|
|
107
|
+
u2 = u1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
let i0 = column2row[j1] as number;
|
|
111
|
+
if (u1 < u2) v[j1] = (v[j1] as number) - (u2 - u1);
|
|
112
|
+
else if (i0 >= 0) {
|
|
113
|
+
j1 = j2;
|
|
114
|
+
i0 = column2row[j1] as number;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (i0 >= 0) {
|
|
118
|
+
if (u1 < u2) freeRow[--k] = i0;
|
|
119
|
+
else freeRow[freeCount++] = i0;
|
|
120
|
+
}
|
|
121
|
+
row2column[i] = j1;
|
|
122
|
+
column2row[j1] = i;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// augmentation
|
|
127
|
+
const savedFreeCount = freeCount;
|
|
128
|
+
const d = new Int32Array(columnCount);
|
|
129
|
+
const pred = new Int32Array(columnCount);
|
|
130
|
+
const col = new Int32Array(columnCount);
|
|
131
|
+
for (freeCount = 0; freeCount < savedFreeCount; freeCount++) {
|
|
132
|
+
const i1 = freeRow[freeCount] as number;
|
|
133
|
+
let low = 0;
|
|
134
|
+
let up = 0;
|
|
135
|
+
let last = 0;
|
|
136
|
+
let min = 0;
|
|
137
|
+
let i = 0;
|
|
138
|
+
|
|
139
|
+
for (let j = 0; j < columnCount; j++) {
|
|
140
|
+
d[j] = COST(j, i1) - (v[j] as number);
|
|
141
|
+
pred[j] = i1;
|
|
142
|
+
col[j] = j;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
let j = -1;
|
|
146
|
+
update: do {
|
|
147
|
+
last = low;
|
|
148
|
+
min = d[col[up++] as number] as number;
|
|
149
|
+
for (let k = up; k < columnCount; k++) {
|
|
150
|
+
j = col[k] as number;
|
|
151
|
+
const c = d[j] as number;
|
|
152
|
+
if (c <= min) {
|
|
153
|
+
if (c < min) {
|
|
154
|
+
up = low;
|
|
155
|
+
min = c;
|
|
156
|
+
}
|
|
157
|
+
col[k] = col[up] as number;
|
|
158
|
+
col[up++] = j;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// (git leaves j at the last column scanned when it finds a free one here)
|
|
162
|
+
for (let k = low; k < up; k++) if (column2row[col[k] as number] === -1) break update;
|
|
163
|
+
|
|
164
|
+
// scan a row
|
|
165
|
+
do {
|
|
166
|
+
const j1 = col[low++] as number;
|
|
167
|
+
i = column2row[j1] as number;
|
|
168
|
+
const u1 = COST(j1, i) - (v[j1] as number) - min;
|
|
169
|
+
for (let k = up; k < columnCount; k++) {
|
|
170
|
+
j = col[k] as number;
|
|
171
|
+
const c = COST(j, i) - (v[j] as number) - u1;
|
|
172
|
+
if (c < (d[j] as number)) {
|
|
173
|
+
d[j] = c;
|
|
174
|
+
pred[j] = i;
|
|
175
|
+
if (c === min) {
|
|
176
|
+
if (column2row[j] === -1) break update;
|
|
177
|
+
col[k] = col[up] as number;
|
|
178
|
+
col[up++] = j;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
} while (low !== up);
|
|
183
|
+
} while (low === up);
|
|
184
|
+
|
|
185
|
+
// updating of the column pieces
|
|
186
|
+
for (let k = 0; k < last; k++) {
|
|
187
|
+
const j1 = col[k] as number;
|
|
188
|
+
v[j1] = (v[j1] as number) + (d[j1] as number) - min;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// augmentation
|
|
192
|
+
do {
|
|
193
|
+
if (j < 0) throw new Error(`BUG: negative j: ${j}`);
|
|
194
|
+
i = pred[j] as number;
|
|
195
|
+
column2row[j] = i;
|
|
196
|
+
const swap = row2column[i] as number;
|
|
197
|
+
row2column[i] = j;
|
|
198
|
+
j = swap;
|
|
199
|
+
} while (i1 !== i);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return { columnToRow: column2row, rowToColumn: row2column };
|
|
203
|
+
}
|
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git range-diff` (builtin/range-diff.c and range-diff.c): two versions of a patch series
|
|
3
|
+
* compared commit by commit.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // git range-diff main..topic main..topic-v2
|
|
8
|
+
* const text = await git.rangeDiff().addArgument("main..topic").addArgument("main..topic-v2").callText();
|
|
9
|
+
* // "1: 4de457d = 1: a4b3333 s/5/A/\n2: fccce22 ! 2: f51d370 s/4/A/\n @@ ..."
|
|
10
|
+
* // git range-diff topic...topic-v2, and git range-diff main topic topic-v2, the same
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* The arguments are git's: `<base> <old-tip> <new-tip>`, `<old-range> <new-range>` or
|
|
14
|
+
* `<old-tip>...<new-tip>` (either side defaulting to HEAD), each form recognized as git
|
|
15
|
+
* recognizes it, a `--` among them saying which one is meant; what follows the ranges (paths
|
|
16
|
+
* after `--`) goes to the `git log` that reads each range.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import type { ObjectId } from "@statewalker/vcs-core";
|
|
20
|
+
|
|
21
|
+
import { GitApiError } from "../../errors/index.js";
|
|
22
|
+
import { GitCommand } from "../../git-command.js";
|
|
23
|
+
import { bytesToLatin1, latin1ToBytes } from "../apply/latin1.js";
|
|
24
|
+
import { readDiffColorSettings } from "../diff-color-config.js";
|
|
25
|
+
import type { LogOutputOptions } from "../log-output.js";
|
|
26
|
+
import { formatCommitPretty } from "../pretty-format.js";
|
|
27
|
+
import { RevListCommand } from "../rev-list-command.js";
|
|
28
|
+
import {
|
|
29
|
+
findExactMatches,
|
|
30
|
+
getCorrespondences,
|
|
31
|
+
parseRangeDiffMaxMemory,
|
|
32
|
+
RANGE_DIFF_CREATION_FACTOR_DEFAULT,
|
|
33
|
+
RangeDiffError,
|
|
34
|
+
RangeDiffMemoryError,
|
|
35
|
+
type RangeDiffPatch,
|
|
36
|
+
readRangeDiffPatches,
|
|
37
|
+
writeRangeDiff,
|
|
38
|
+
} from "./range-diff.js";
|
|
39
|
+
|
|
40
|
+
const USAGE = [
|
|
41
|
+
"usage: git range-diff [<options>] <old-base>..<old-tip> <new-base>..<new-tip>",
|
|
42
|
+
" or: git range-diff [<options>] <old-tip>...<new-tip>",
|
|
43
|
+
" or: git range-diff [<options>] <base> <old-tip> <new-tip>",
|
|
44
|
+
].join("\n");
|
|
45
|
+
|
|
46
|
+
/** git's MINIMUM_ABBREV */
|
|
47
|
+
const MINIMUM_ABBREV = 4;
|
|
48
|
+
|
|
49
|
+
/** `--notes`, `--notes=<ref>` and `--no-notes` as given: true, the ref, false. */
|
|
50
|
+
export type RangeDiffNotesOption = boolean | string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* What the `git log` reading a range is told of notes (`--show-notes-by-default` and the
|
|
54
|
+
* notes options after it, revision.c's display_notes_opt).
|
|
55
|
+
*/
|
|
56
|
+
export function rangeDiffNotesOptions(
|
|
57
|
+
given: readonly RangeDiffNotesOption[],
|
|
58
|
+
): Pick<LogOutputOptions, "notes" | "notesRefs"> {
|
|
59
|
+
let show = false;
|
|
60
|
+
let useDefault = -1;
|
|
61
|
+
let refs: string[] = [];
|
|
62
|
+
for (const value of given) {
|
|
63
|
+
if (value === true) {
|
|
64
|
+
show = true;
|
|
65
|
+
useDefault = 1;
|
|
66
|
+
} else if (value === false) {
|
|
67
|
+
show = false;
|
|
68
|
+
useDefault = -1;
|
|
69
|
+
refs = [];
|
|
70
|
+
} else {
|
|
71
|
+
show = true;
|
|
72
|
+
refs.push(value);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// --show-notes-by-default: the default notes when no notes option was given
|
|
76
|
+
if (given.length === 0) return { notes: true };
|
|
77
|
+
if (!show) return { notes: false };
|
|
78
|
+
if (useDefault > 0 || (useDefault === -1 && refs.length === 0))
|
|
79
|
+
return { notes: true, notesRefs: refs };
|
|
80
|
+
return { notesRefs: refs };
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** What reads the patches of a range and prints the pairs (shared with format-patch). */
|
|
84
|
+
export interface RangeDiffRun {
|
|
85
|
+
creationFactor: number;
|
|
86
|
+
/** `--notes`... passed to the log reading each range */
|
|
87
|
+
notes: readonly RangeDiffNotesOption[];
|
|
88
|
+
/** More arguments of that log (paths after `--`) */
|
|
89
|
+
logArgs?: readonly string[];
|
|
90
|
+
dualColor: boolean;
|
|
91
|
+
/** The color of the output (`--color`): undefined reads the configuration */
|
|
92
|
+
color?: boolean;
|
|
93
|
+
leftOnly?: boolean;
|
|
94
|
+
rightOnly?: boolean;
|
|
95
|
+
patch?: boolean;
|
|
96
|
+
stat?: boolean;
|
|
97
|
+
noPatch?: boolean;
|
|
98
|
+
/** `--abbrev=<n>` (undefined: the default length) */
|
|
99
|
+
abbrev?: number;
|
|
100
|
+
/** `--max-memory`: the largest cost matrix in bytes (default 4 GiB) */
|
|
101
|
+
maxMemory?: bigint;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The base of commands printing range-diffs (`show_range_diff`): `git range-diff` and
|
|
106
|
+
* format-patch's `--range-diff`.
|
|
107
|
+
*/
|
|
108
|
+
export abstract class RangeDiffBase<T> extends GitCommand<T> {
|
|
109
|
+
/** `show_range_diff`: the output for two ranges, as bytes. */
|
|
110
|
+
protected async showRangeDiff(
|
|
111
|
+
range1: string,
|
|
112
|
+
range2: string,
|
|
113
|
+
run: RangeDiffRun,
|
|
114
|
+
): Promise<Uint8Array> {
|
|
115
|
+
if (run.leftOnly && run.rightOnly) {
|
|
116
|
+
throw new GitApiError(
|
|
117
|
+
"error: options '--left-only' and '--right-only' cannot be used together",
|
|
118
|
+
{
|
|
119
|
+
exitCode: 255,
|
|
120
|
+
},
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
const a = await this.readPatches(range1, run);
|
|
124
|
+
const b = await this.readPatches(range2, run);
|
|
125
|
+
findExactMatches(a, b);
|
|
126
|
+
try {
|
|
127
|
+
getCorrespondences(a, b, run.creationFactor, run.maxMemory);
|
|
128
|
+
} catch (error) {
|
|
129
|
+
if (error instanceof RangeDiffMemoryError)
|
|
130
|
+
throw new GitApiError(`fatal: ${error.message}`, { exitCode: 128 });
|
|
131
|
+
throw error;
|
|
132
|
+
}
|
|
133
|
+
const colors =
|
|
134
|
+
run.color === false
|
|
135
|
+
? undefined
|
|
136
|
+
: readDiffColorSettings(this.workingCopy, run.color ? { color: true } : {}).colors;
|
|
137
|
+
const text = await writeRangeDiff(a, b, {
|
|
138
|
+
...(colors ? { colors } : {}),
|
|
139
|
+
dualColor: run.dualColor,
|
|
140
|
+
leftOnly: !!run.leftOnly,
|
|
141
|
+
rightOnly: !!run.rightOnly,
|
|
142
|
+
patch: !!run.patch,
|
|
143
|
+
stat: !!run.stat,
|
|
144
|
+
noPatch: !!run.noPatch,
|
|
145
|
+
abbrev: (id) => this.shortId(id, run.abbrev),
|
|
146
|
+
subject: (id) => this.subjectOf(id),
|
|
147
|
+
});
|
|
148
|
+
return latin1ToBytes(text);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
private async readPatches(range: string, run: RangeDiffRun): Promise<RangeDiffPatch[]> {
|
|
152
|
+
const log = new RevListCommand(this._workingCopy)
|
|
153
|
+
.setNoMerges(true)
|
|
154
|
+
.setOrder("date")
|
|
155
|
+
.setReverse(true)
|
|
156
|
+
.setDiffOptions({ color: false, noPrefix: true, submoduleFormat: "short" });
|
|
157
|
+
log.addArgument(range);
|
|
158
|
+
for (const arg of run.logArgs ?? []) log.addArgument(arg);
|
|
159
|
+
let bytes: Uint8Array;
|
|
160
|
+
try {
|
|
161
|
+
bytes = await log.callLogBytes({
|
|
162
|
+
patch: true,
|
|
163
|
+
pretty: "medium",
|
|
164
|
+
decorate: "no",
|
|
165
|
+
abbrevCommit: false,
|
|
166
|
+
...rangeDiffNotesOptions(run.notes),
|
|
167
|
+
});
|
|
168
|
+
} catch (error) {
|
|
169
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
170
|
+
throw new GitApiError(`${message}\nerror: could not parse log for '${range}'`, {
|
|
171
|
+
exitCode: 255,
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
try {
|
|
175
|
+
return readRangeDiffPatches(bytesToLatin1(bytes));
|
|
176
|
+
} catch (error) {
|
|
177
|
+
if (error instanceof RangeDiffError)
|
|
178
|
+
throw new GitApiError(
|
|
179
|
+
`error: ${error.message}\nerror: could not parse log for '${range}'`,
|
|
180
|
+
{
|
|
181
|
+
exitCode: 255,
|
|
182
|
+
},
|
|
183
|
+
);
|
|
184
|
+
throw error;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/** `find_unique_abbrev(oid, abbrev)` */
|
|
189
|
+
private async shortId(id: ObjectId, abbrev: number | undefined): Promise<string> {
|
|
190
|
+
if (abbrev === undefined) return this.abbreviateObjectId(id);
|
|
191
|
+
if (abbrev >= id.length) return id;
|
|
192
|
+
const lengths = await this.idAbbreviator().lengths([id], abbrev);
|
|
193
|
+
return id.slice(0, lengths.get(id) ?? abbrev);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/** `pp_commit_easy(CMIT_FMT_ONELINE)` as a binary string. */
|
|
197
|
+
private async subjectOf(id: ObjectId): Promise<string> {
|
|
198
|
+
const commit = await this.commits.load(id);
|
|
199
|
+
if (!commit) return "";
|
|
200
|
+
const subject = await formatCommitPretty("%s", commit, id);
|
|
201
|
+
return bytesToLatin1(new TextEncoder().encode(subject));
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/** `is_range_diff_range`: a revision argument with both a positive and a negative side. */
|
|
205
|
+
protected async isRangeDiffRange(arg: string): Promise<boolean> {
|
|
206
|
+
let entries: { id: ObjectId; exclude?: boolean }[];
|
|
207
|
+
try {
|
|
208
|
+
({ entries } = await new RevListCommand(this._workingCopy).addRevision(arg).resolve());
|
|
209
|
+
} catch {
|
|
210
|
+
// setup_revisions with a `--` after the argument: what is no revision dies
|
|
211
|
+
throw new GitApiError(`fatal: bad revision '${arg}'`, { exitCode: 128 });
|
|
212
|
+
}
|
|
213
|
+
// the flags are the objects': one named on both sides (`main..main`) is only negative
|
|
214
|
+
const negative = new Set(entries.filter((e) => e.exclude).map((e) => e.id));
|
|
215
|
+
return negative.size > 0 && entries.some((e) => !negative.has(e.id));
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/** `repo_get_oid_committish` succeeds */
|
|
219
|
+
protected async isCommittish(arg: string): Promise<boolean> {
|
|
220
|
+
const resolver = this.revisionResolver();
|
|
221
|
+
const id = await resolver.resolve(arg).catch(() => undefined);
|
|
222
|
+
if (id === undefined) return false;
|
|
223
|
+
return (await resolver.commitReference(id).catch(() => undefined)) !== undefined;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** `git range-diff`. */
|
|
228
|
+
export class RangeDiffCommand extends RangeDiffBase<Uint8Array> {
|
|
229
|
+
private readonly args: string[] = [];
|
|
230
|
+
private creationFactor = RANGE_DIFF_CREATION_FACTOR_DEFAULT;
|
|
231
|
+
/** `--no-dual-color` (1), `--dual-color` (0), neither (-1) */
|
|
232
|
+
private simpleColor = -1;
|
|
233
|
+
private color?: boolean;
|
|
234
|
+
private leftOnly = false;
|
|
235
|
+
private rightOnly = false;
|
|
236
|
+
private readonly notes: RangeDiffNotesOption[] = [];
|
|
237
|
+
private noPatch = false;
|
|
238
|
+
private stat = false;
|
|
239
|
+
private patch = false;
|
|
240
|
+
private abbrev?: number;
|
|
241
|
+
private maxMemory?: string | bigint;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* A positional argument as git takes it: a range, a commit, `--`, or what follows the
|
|
245
|
+
* ranges (paths after `--`).
|
|
246
|
+
*/
|
|
247
|
+
addArgument(arg: string): this {
|
|
248
|
+
this.checkCallable();
|
|
249
|
+
this.args.push(arg);
|
|
250
|
+
return this;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/** A path the ranges' logs are limited to (after a `--`, added when not there yet). */
|
|
254
|
+
addPath(path: string): this {
|
|
255
|
+
this.checkCallable();
|
|
256
|
+
if (!this.args.includes("--")) this.args.push("--");
|
|
257
|
+
this.args.push(path);
|
|
258
|
+
return this;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/** `--creation-factor=<percent>` (default 60). */
|
|
262
|
+
setCreationFactor(factor: number): this {
|
|
263
|
+
this.checkCallable();
|
|
264
|
+
this.creationFactor = factor;
|
|
265
|
+
return this;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/** `--dual-color` (true: also forces colors) / `--no-dual-color` (false). */
|
|
269
|
+
setDualColor(dual: boolean): this {
|
|
270
|
+
this.checkCallable();
|
|
271
|
+
this.simpleColor = dual ? 0 : 1;
|
|
272
|
+
return this;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/** `--color` / `--no-color` (unset: `color.diff`/`color.ui`, `auto` is none). */
|
|
276
|
+
setColor(color: boolean): this {
|
|
277
|
+
this.checkCallable();
|
|
278
|
+
this.color = color;
|
|
279
|
+
return this;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/** `--left-only`: only what concerns the first range. */
|
|
283
|
+
setLeftOnly(value: boolean): this {
|
|
284
|
+
this.checkCallable();
|
|
285
|
+
this.leftOnly = value;
|
|
286
|
+
return this;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/** `--right-only`: only what concerns the second range. */
|
|
290
|
+
setRightOnly(value: boolean): this {
|
|
291
|
+
this.checkCallable();
|
|
292
|
+
this.rightOnly = value;
|
|
293
|
+
return this;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/** `--notes` (true), `--notes=<ref>`, `--no-notes` (false), in order. */
|
|
297
|
+
addNotes(value: RangeDiffNotesOption): this {
|
|
298
|
+
this.checkCallable();
|
|
299
|
+
this.notes.push(value);
|
|
300
|
+
return this;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/** `-s` / `--no-patch`: only the pairs. */
|
|
304
|
+
setNoPatch(value: boolean): this {
|
|
305
|
+
this.checkCallable();
|
|
306
|
+
this.noPatch = value;
|
|
307
|
+
return this;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/** `--stat`: the diffstat of each changed pair's patches. */
|
|
311
|
+
setStat(value: boolean): this {
|
|
312
|
+
this.checkCallable();
|
|
313
|
+
this.stat = value;
|
|
314
|
+
return this;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/** `-p`: the patches' diff too (with `--stat`). */
|
|
318
|
+
setPatch(value: boolean): this {
|
|
319
|
+
this.checkCallable();
|
|
320
|
+
this.patch = value;
|
|
321
|
+
return this;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/** `--abbrev[=<n>]` of the commit ids (true: the default length). */
|
|
325
|
+
setAbbrev(abbrev: number | true): this {
|
|
326
|
+
this.checkCallable();
|
|
327
|
+
this.abbrev = abbrev === true ? undefined : Math.max(abbrev, MINIMUM_ABBREV);
|
|
328
|
+
return this;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* `--max-memory=<size>` (git 2.52): the largest cost matrix built, in bytes or with a `k`,
|
|
333
|
+
* `m` or `g` unit (default 4 GiB, which ours applies whatever the version). A value git
|
|
334
|
+
* refuses fails the call with its `invalid max-memory value` and the usage (exit 129).
|
|
335
|
+
*/
|
|
336
|
+
setMaxMemory(size: string | number | bigint): this {
|
|
337
|
+
this.checkCallable();
|
|
338
|
+
this.maxMemory = typeof size === "number" ? BigInt(size) : size;
|
|
339
|
+
return this;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/** The output as bytes. */
|
|
343
|
+
async call(): Promise<Uint8Array> {
|
|
344
|
+
this.checkCallable();
|
|
345
|
+
this.setCallable(false);
|
|
346
|
+
let maxMemory: bigint | undefined;
|
|
347
|
+
if (typeof this.maxMemory === "string") {
|
|
348
|
+
maxMemory = parseRangeDiffMaxMemory(this.maxMemory);
|
|
349
|
+
if (maxMemory === undefined)
|
|
350
|
+
throw new GitApiError(`error: invalid max-memory value: ${this.maxMemory}\n\n${USAGE}`, {
|
|
351
|
+
exitCode: 129,
|
|
352
|
+
});
|
|
353
|
+
} else maxMemory = this.maxMemory;
|
|
354
|
+
const { range1, range2, logArgs } = await this.ranges();
|
|
355
|
+
const color = this.simpleColor === 0 ? true : this.color;
|
|
356
|
+
return this.showRangeDiff(range1, range2, {
|
|
357
|
+
creationFactor: this.creationFactor,
|
|
358
|
+
notes: this.notes,
|
|
359
|
+
logArgs,
|
|
360
|
+
dualColor: this.simpleColor < 1,
|
|
361
|
+
...(color !== undefined ? { color } : {}),
|
|
362
|
+
leftOnly: this.leftOnly,
|
|
363
|
+
rightOnly: this.rightOnly,
|
|
364
|
+
patch: this.patch,
|
|
365
|
+
stat: this.stat,
|
|
366
|
+
noPatch: this.noPatch,
|
|
367
|
+
...(this.abbrev !== undefined ? { abbrev: this.abbrev } : {}),
|
|
368
|
+
...(maxMemory !== undefined ? { maxMemory } : {}),
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/** {@link call} as bytes. */
|
|
373
|
+
callBytes(): Promise<Uint8Array> {
|
|
374
|
+
return this.call();
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/** {@link call} as text (UTF-8). */
|
|
378
|
+
async callText(): Promise<string> {
|
|
379
|
+
return new TextDecoder().decode(await this.call());
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/** cmd_range_diff's reading of the arguments. */
|
|
383
|
+
private async ranges(): Promise<{ range1: string; range2: string; logArgs: string[] }> {
|
|
384
|
+
const argv = this.args;
|
|
385
|
+
const dashDash = argv.indexOf("--");
|
|
386
|
+
const usage = (message: string) =>
|
|
387
|
+
new GitApiError(`fatal: ${message}\n\n${USAGE}`, { exitCode: 129 });
|
|
388
|
+
const argc = argv.length;
|
|
389
|
+
const arg = (k: number) => argv[k] as string;
|
|
390
|
+
if (
|
|
391
|
+
dashDash === 3 ||
|
|
392
|
+
(dashDash < 0 &&
|
|
393
|
+
argc > 2 &&
|
|
394
|
+
(await this.isCommittish(arg(0))) &&
|
|
395
|
+
(await this.isCommittish(arg(1))) &&
|
|
396
|
+
(await this.isCommittish(arg(2))))
|
|
397
|
+
) {
|
|
398
|
+
if (dashDash >= 0)
|
|
399
|
+
for (const k of [0, 1, 2])
|
|
400
|
+
if (!(await this.isCommittish(arg(k)))) throw usage(`not a revision: '${arg(k)}'`);
|
|
401
|
+
return {
|
|
402
|
+
range1: `${arg(0)}..${arg(1)}`,
|
|
403
|
+
range2: `${arg(0)}..${arg(2)}`,
|
|
404
|
+
logArgs: argv.slice(dashDash < 0 ? 3 : dashDash),
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
if (
|
|
408
|
+
dashDash === 2 ||
|
|
409
|
+
(dashDash < 0 &&
|
|
410
|
+
argc > 1 &&
|
|
411
|
+
(await this.isRangeDiffRange(arg(0))) &&
|
|
412
|
+
(await this.isRangeDiffRange(arg(1))))
|
|
413
|
+
) {
|
|
414
|
+
if (dashDash >= 0)
|
|
415
|
+
for (const k of [0, 1])
|
|
416
|
+
if (!(await this.isRangeDiffRange(arg(k))))
|
|
417
|
+
throw usage(`not a commit range: '${arg(k)}'`);
|
|
418
|
+
return { range1: arg(0), range2: arg(1), logArgs: argv.slice(dashDash < 0 ? 2 : dashDash) };
|
|
419
|
+
}
|
|
420
|
+
if (dashDash === 1 || (dashDash < 0 && argc > 0 && arg(0).includes("..."))) {
|
|
421
|
+
const dots = arg(0).indexOf("...");
|
|
422
|
+
if (dots < 0) throw usage(`not a symmetric range: '${arg(0)}'`);
|
|
423
|
+
const a = dots === 0 ? "HEAD" : arg(0).slice(0, dots);
|
|
424
|
+
const b = arg(0).slice(dots + 3) || "HEAD";
|
|
425
|
+
return {
|
|
426
|
+
range1: `${b}..${a}`,
|
|
427
|
+
range2: `${a}..${b}`,
|
|
428
|
+
logArgs: argv.slice(dashDash < 0 ? 1 : dashDash),
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
throw usage("need two commit ranges");
|
|
432
|
+
}
|
|
433
|
+
}
|