@statewalker/vcs-commands 0.7.0 → 0.9.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/dist/commands/add-command.d.ts +70 -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.map +1 -1
- package/dist/commands/am/am-command.d.ts +102 -1
- package/dist/commands/am/am-command.d.ts.map +1 -1
- package/dist/commands/am/index.d.ts +1 -0
- package/dist/commands/am/index.d.ts.map +1 -1
- package/dist/commands/am/mailsplit.d.ts +88 -0
- package/dist/commands/am/mailsplit.d.ts.map +1 -0
- 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-engine.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/bisect/bisect-command.d.ts +2 -0
- package/dist/commands/bisect/bisect-command.d.ts.map +1 -1
- package/dist/commands/blame-command.d.ts +303 -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/branch-command.d.ts +148 -18
- package/dist/commands/branch-command.d.ts.map +1 -1
- package/dist/commands/branch-info-command.d.ts +55 -0
- package/dist/commands/branch-info-command.d.ts.map +1 -0
- package/dist/commands/branch-tracking.d.ts +106 -17
- package/dist/commands/branch-tracking.d.ts.map +1 -1
- package/dist/commands/branch-upstream-command.d.ts +83 -0
- package/dist/commands/branch-upstream-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/checkout-command.d.ts +26 -3
- package/dist/commands/checkout-command.d.ts.map +1 -1
- 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 +82 -1
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clean-command.d.ts +44 -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 +116 -2
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +239 -5
- package/dist/commands/commit-command.d.ts.map +1 -1
- package/dist/commands/commit-reuse.d.ts +33 -0
- package/dist/commands/commit-reuse.d.ts.map +1 -0
- package/dist/commands/config-command.d.ts +236 -0
- package/dist/commands/config-command.d.ts.map +1 -0
- package/dist/commands/config-value-types.d.ts +91 -0
- package/dist/commands/config-value-types.d.ts.map +1 -0
- package/dist/commands/core-config.d.ts +20 -0
- package/dist/commands/core-config.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-color-config.d.ts +73 -0
- package/dist/commands/diff-color-config.d.ts.map +1 -0
- package/dist/commands/diff-command.d.ts +369 -10
- package/dist/commands/diff-command.d.ts.map +1 -1
- package/dist/commands/fetch-command.d.ts +80 -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/fmt-merge-msg-command.d.ts +124 -0
- package/dist/commands/fmt-merge-msg-command.d.ts.map +1 -0
- package/dist/commands/fork-point.d.ts +38 -0
- package/dist/commands/fork-point.d.ts.map +1 -0
- package/dist/commands/format-patch-command.d.ts +69 -3
- package/dist/commands/format-patch-command.d.ts.map +1 -1
- package/dist/commands/fsck/fetch-fsck.d.ts +51 -0
- package/dist/commands/fsck/fetch-fsck.d.ts.map +1 -1
- package/dist/commands/gc-command.d.ts +8 -0
- package/dist/commands/gc-command.d.ts.map +1 -1
- package/dist/commands/git-describe.d.ts +81 -4
- package/dist/commands/git-describe.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +50 -1
- package/dist/commands/git-hooks.d.ts.map +1 -1
- package/dist/commands/grep/grep-command.d.ts +210 -0
- package/dist/commands/grep/grep-command.d.ts.map +1 -0
- package/dist/commands/grep/grep-engine.d.ts +218 -0
- package/dist/commands/grep/grep-engine.d.ts.map +1 -0
- package/dist/commands/grep/index.d.ts +3 -0
- package/dist/commands/grep/index.d.ts.map +1 -0
- package/dist/commands/index-adder.d.ts +13 -2
- package/dist/commands/index-adder.d.ts.map +1 -1
- package/dist/commands/index.d.ts +38 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +5 -3
- package/dist/commands/init-command.d.ts +89 -0
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/interpret-trailers-command.d.ts +90 -0
- package/dist/commands/interpret-trailers-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 +36 -5
- package/dist/commands/local-transport.d.ts.map +1 -1
- package/dist/commands/log-command.d.ts +527 -13
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-graph.d.ts +30 -3
- package/dist/commands/log-graph.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +199 -6
- package/dist/commands/log-output.d.ts.map +1 -1
- package/dist/commands/ls-remote-command.d.ts +2 -0
- package/dist/commands/ls-remote-command.d.ts.map +1 -1
- package/dist/commands/mailmap.d.ts +53 -0
- package/dist/commands/mailmap.d.ts.map +1 -1
- package/dist/commands/merge-base-command.d.ts +60 -0
- package/dist/commands/merge-base-command.d.ts.map +1 -0
- package/dist/commands/merge-bases.d.ts +23 -0
- package/dist/commands/merge-bases.d.ts.map +1 -1
- package/dist/commands/merge-command.d.ts +147 -10
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-drivers.d.ts +2 -0
- 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 +10 -0
- package/dist/commands/merge-support.d.ts.map +1 -1
- package/dist/commands/message-cleanup.d.ts +2 -0
- package/dist/commands/message-cleanup.d.ts.map +1 -1
- package/dist/commands/mv-command.d.ts +4 -0
- package/dist/commands/mv-command.d.ts.map +1 -1
- 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 +136 -0
- package/dist/commands/name-rev.d.ts.map +1 -0
- package/dist/commands/notes-command.d.ts.map +1 -1
- 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 +16 -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.d.ts +58 -0
- package/dist/commands/patch-id.d.ts.map +1 -1
- package/dist/commands/pathspec-file.d.ts +39 -0
- package/dist/commands/pathspec-file.d.ts.map +1 -0
- package/dist/commands/pathspec.d.ts +3 -0
- package/dist/commands/pathspec.d.ts.map +1 -1
- package/dist/commands/pretty-format.d.ts +43 -3
- package/dist/commands/pretty-format.d.ts.map +1 -1
- package/dist/commands/promisor-remote.d.ts.map +1 -1
- package/dist/commands/pull-command.d.ts +186 -32
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +225 -9
- 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 +20 -0
- package/dist/commands/read-tree-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +189 -8
- package/dist/commands/rebase-command.d.ts.map +1 -1
- package/dist/commands/ref-filter/for-each-ref-command.d.ts +121 -0
- package/dist/commands/ref-filter/for-each-ref-command.d.ts.map +1 -0
- package/dist/commands/ref-filter/index.d.ts +8 -0
- package/dist/commands/ref-filter/index.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-atoms.d.ts +88 -0
- package/dist/commands/ref-filter/ref-atoms.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-filter.d.ts +178 -0
- package/dist/commands/ref-filter/ref-filter.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-format.d.ts +222 -0
- package/dist/commands/ref-filter/ref-format.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-listing-command.d.ts +56 -0
- package/dist/commands/ref-filter/ref-listing-command.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-quote.d.ts +20 -0
- package/dist/commands/ref-filter/ref-quote.d.ts.map +1 -0
- package/dist/commands/ref-filter/version-compare.d.ts +20 -0
- package/dist/commands/ref-filter/version-compare.d.ts.map +1 -0
- package/dist/commands/reflog-command.d.ts +120 -0
- package/dist/commands/reflog-command.d.ts.map +1 -1
- package/dist/commands/reflog-walk.d.ts +72 -0
- package/dist/commands/reflog-walk.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 +179 -29
- package/dist/commands/remote-command.d.ts.map +1 -1
- 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 +7 -1
- package/dist/commands/remote-transport.d.ts.map +1 -1
- package/dist/commands/reset-command.d.ts +21 -4
- package/dist/commands/reset-command.d.ts.map +1 -1
- package/dist/commands/restore-command.d.ts +9 -3
- package/dist/commands/restore-command.d.ts.map +1 -1
- package/dist/commands/rev-filter/commit-filter.d.ts +95 -0
- package/dist/commands/rev-filter/commit-filter.d.ts.map +1 -0
- package/dist/commands/rev-filter/commit-grep.d.ts +91 -0
- package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -0
- package/dist/commands/rev-filter/index.d.ts +3 -0
- package/dist/commands/rev-filter/index.d.ts.map +1 -0
- package/dist/commands/rev-list-command.d.ts +226 -2
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +54 -1
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +34 -1
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/revision-resolver.d.ts +15 -0
- package/dist/commands/revision-resolver.d.ts.map +1 -1
- package/dist/commands/rm-command.d.ts +70 -2
- package/dist/commands/rm-command.d.ts.map +1 -1
- package/dist/commands/sequencer-pick.d.ts +186 -5
- package/dist/commands/sequencer-pick.d.ts.map +1 -1
- package/dist/commands/sequencer-support.d.ts +12 -1
- package/dist/commands/sequencer-support.d.ts.map +1 -1
- package/dist/commands/serve-repository.d.ts +7 -0
- package/dist/commands/serve-repository.d.ts.map +1 -1
- 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-command.d.ts +130 -0
- package/dist/commands/show-command.d.ts.map +1 -0
- package/dist/commands/show-commit.d.ts +11 -0
- package/dist/commands/show-commit.d.ts.map +1 -0
- package/dist/commands/signature-check.d.ts +164 -0
- package/dist/commands/signature-check.d.ts.map +1 -0
- package/dist/commands/signing.d.ts +160 -0
- package/dist/commands/signing.d.ts.map +1 -0
- package/dist/commands/sparse-checkout-command.d.ts.map +1 -1
- package/dist/commands/sparse-index-view.d.ts +45 -0
- package/dist/commands/sparse-index-view.d.ts.map +1 -0
- package/dist/commands/ssh-signer.d.ts +29 -0
- package/dist/commands/ssh-signer.d.ts.map +1 -0
- package/dist/commands/ssh-verifier.d.ts +42 -0
- package/dist/commands/ssh-verifier.d.ts.map +1 -0
- package/dist/commands/stash-apply-command.d.ts +5 -0
- package/dist/commands/stash-apply-command.d.ts.map +1 -1
- package/dist/commands/stash-branch-command.d.ts +34 -0
- package/dist/commands/stash-branch-command.d.ts.map +1 -0
- package/dist/commands/stash-create-command.d.ts +17 -0
- package/dist/commands/stash-create-command.d.ts.map +1 -1
- package/dist/commands/stash-info.d.ts +93 -0
- package/dist/commands/stash-info.d.ts.map +1 -0
- package/dist/commands/stash-list-command.d.ts +16 -0
- package/dist/commands/stash-list-command.d.ts.map +1 -1
- package/dist/commands/stash-pop-command.d.ts +39 -0
- package/dist/commands/stash-pop-command.d.ts.map +1 -0
- package/dist/commands/stash-show-command.d.ts +48 -0
- package/dist/commands/stash-show-command.d.ts.map +1 -0
- package/dist/commands/stash-store-command.d.ts +29 -0
- package/dist/commands/stash-store-command.d.ts.map +1 -0
- package/dist/commands/stash-working-tree.d.ts.map +1 -1
- package/dist/commands/status-command.d.ts +31 -2
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/status-header.d.ts +5 -0
- package/dist/commands/status-header.d.ts.map +1 -1
- package/dist/commands/submodule-add-command.d.ts +89 -0
- package/dist/commands/submodule-add-command.d.ts.map +1 -0
- package/dist/commands/submodule-auth.d.ts +90 -0
- package/dist/commands/submodule-auth.d.ts.map +1 -0
- package/dist/commands/submodule-commands.d.ts +463 -0
- package/dist/commands/submodule-commands.d.ts.map +1 -0
- 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 +296 -0
- package/dist/commands/submodule-model.d.ts.map +1 -0
- 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 +206 -0
- package/dist/commands/submodule-update-command.d.ts.map +1 -0
- 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/tag-command.d.ts +259 -10
- package/dist/commands/tag-command.d.ts.map +1 -1
- package/dist/commands/trailers.d.ts +218 -17
- package/dist/commands/trailers.d.ts.map +1 -1
- package/dist/commands/tree-restore.d.ts +7 -0
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/verify-command.d.ts +92 -0
- package/dist/commands/verify-command.d.ts.map +1 -0
- package/dist/commands/worktree-add-command.d.ts +79 -7
- package/dist/commands/worktree-add-command.d.ts.map +1 -1
- package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
- package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
- package/dist/commands/worktree-path-rules.d.ts +66 -0
- package/dist/commands/worktree-path-rules.d.ts.map +1 -0
- package/dist/commands/worktree-remove-command.d.ts +10 -3
- package/dist/commands/worktree-remove-command.d.ts.map +1 -1
- package/dist/commands/worktree-repair-command.d.ts +15 -2
- package/dist/commands/worktree-repair-command.d.ts.map +1 -1
- package/dist/commands/worktree-support.d.ts +5 -0
- package/dist/commands/worktree-support.d.ts.map +1 -1
- package/dist/{commands-DIJ91NnD.js → commands-CNvli5bl.js} +49442 -54941
- package/dist/errors/checkout-errors.d.ts +19 -0
- package/dist/errors/checkout-errors.d.ts.map +1 -1
- package/dist/errors/command-errors.d.ts +25 -0
- package/dist/errors/command-errors.d.ts.map +1 -1
- package/dist/errors/index.js +85 -3
- package/dist/errors/ref-errors.d.ts +19 -0
- package/dist/errors/ref-errors.d.ts.map +1 -1
- package/dist/errors/worktree-errors.d.ts +6 -1
- package/dist/errors/worktree-errors.d.ts.map +1 -1
- package/dist/fsck-CPeDh9fh.js +5138 -0
- package/dist/git-command.d.ts +58 -2
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +363 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/guarded-transport-command.d.ts +82 -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 +6 -5
- package/dist/remote-config/index.d.ts +1 -1
- package/dist/remote-config/index.d.ts.map +1 -1
- package/dist/remote-config/remote-config-store.d.ts +55 -0
- package/dist/remote-config/remote-config-store.d.ts.map +1 -1
- package/dist/remote-transport-CCmBadm-.js +1606 -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/clone-result.d.ts +9 -0
- package/dist/results/clone-result.d.ts.map +1 -1
- package/dist/results/combined-diff.d.ts +3 -0
- package/dist/results/combined-diff.d.ts.map +1 -1
- package/dist/results/diff-check.d.ts +38 -0
- package/dist/results/diff-check.d.ts.map +1 -0
- package/dist/results/diff-color.d.ts +135 -0
- package/dist/results/diff-color.d.ts.map +1 -0
- 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 +10 -0
- package/dist/results/diff-entry.d.ts.map +1 -1
- package/dist/results/diff-formatter.d.ts.map +1 -1
- package/dist/results/diff-output.d.ts +103 -1
- package/dist/results/diff-output.d.ts.map +1 -1
- package/dist/results/diff-pickaxe.d.ts +67 -0
- package/dist/results/diff-pickaxe.d.ts.map +1 -0
- package/dist/results/diff-words.d.ts +55 -0
- package/dist/results/diff-words.d.ts.map +1 -0
- package/dist/results/fetch-result.d.ts +12 -1
- package/dist/results/fetch-result.d.ts.map +1 -1
- package/dist/results/index.d.ts +6 -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 +8 -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 +12 -0
- package/dist/results/push-result.d.ts.map +1 -1
- package/dist/results/rebase-result.d.ts +2 -0
- package/dist/results/rebase-result.d.ts.map +1 -1
- package/dist/results/stash-result.d.ts +6 -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-BDuEgdLU.js +46847 -0
- package/dist/transport-command.d.ts +14 -0
- package/dist/transport-command.d.ts.map +1 -1
- package/dist/whitespace/index.d.ts +2 -0
- package/dist/whitespace/index.d.ts.map +1 -0
- package/dist/whitespace/whitespace-rule.d.ts +94 -0
- package/dist/whitespace/whitespace-rule.d.ts.map +1 -0
- package/package.json +12 -12
- package/src/commands/add-command.ts +293 -17
- package/src/commands/add-patch/add-patch.ts +8 -0
- package/src/commands/add-patch/patch-backend.ts +20 -2
- package/src/commands/am/am-command.ts +400 -46
- package/src/commands/am/index.ts +1 -0
- package/src/commands/am/mailsplit.ts +326 -0
- package/src/commands/apply/apply-command.ts +58 -15
- package/src/commands/apply/apply-engine.ts +1 -1
- package/src/commands/apply/apply-parse.ts +17 -8
- package/src/commands/apply/index.ts +8 -1
- package/src/commands/bisect/bisect-command.ts +18 -5
- package/src/commands/blame-command.ts +1450 -51
- package/src/commands/blame-ignore.ts +307 -0
- package/src/commands/branch-command.ts +528 -53
- package/src/commands/branch-info-command.ts +150 -0
- package/src/commands/branch-tracking.ts +335 -60
- package/src/commands/branch-upstream-command.ts +218 -0
- package/src/commands/check-mailmap-command.ts +129 -0
- package/src/commands/checkout-command.ts +166 -55
- package/src/commands/checkout-paths.ts +28 -0
- package/src/commands/cherry-command.ts +187 -0
- package/src/commands/cherry-pick-command.ts +185 -1
- package/src/commands/clean-command.ts +126 -15
- package/src/commands/clean-interactive.ts +522 -0
- package/src/commands/clone-command.ts +598 -45
- package/src/commands/commit-command.ts +925 -74
- package/src/commands/commit-reuse.ts +94 -0
- package/src/commands/config-command.ts +1256 -0
- package/src/commands/config-value-types.ts +358 -0
- package/src/commands/core-config.ts +40 -0
- package/src/commands/describe-command.ts +341 -254
- package/src/commands/diff-color-config.ts +274 -0
- package/src/commands/diff-command.ts +1619 -99
- package/src/commands/fetch-command.ts +495 -14
- package/src/commands/fetch-multiple-command.ts +665 -0
- package/src/commands/fmt-merge-msg-command.ts +715 -0
- package/src/commands/fork-point.ts +63 -0
- package/src/commands/format-patch-command.ts +496 -116
- package/src/commands/fsck/fetch-fsck.ts +172 -18
- package/src/commands/gc-command.ts +31 -1
- package/src/commands/git-describe.ts +460 -201
- package/src/commands/git-hooks.ts +123 -3
- package/src/commands/grep/grep-command.ts +1077 -0
- package/src/commands/grep/grep-engine.ts +1024 -0
- package/src/commands/grep/index.ts +2 -0
- package/src/commands/index-adder.ts +46 -7
- package/src/commands/index.ts +43 -0
- package/src/commands/init-command.ts +603 -49
- package/src/commands/interpret-trailers-command.ts +256 -0
- package/src/commands/line-log.ts +931 -0
- package/src/commands/local-transport.ts +109 -10
- package/src/commands/log-command.ts +2599 -326
- package/src/commands/log-graph.ts +129 -29
- package/src/commands/log-output.ts +449 -27
- package/src/commands/ls-remote-command.ts +5 -0
- package/src/commands/mailmap.ts +155 -0
- package/src/commands/merge-base-command.ts +170 -0
- package/src/commands/merge-bases.ts +63 -8
- package/src/commands/merge-command.ts +601 -95
- package/src/commands/merge-drivers.ts +3 -0
- package/src/commands/merge-strategy-options.ts +224 -0
- package/src/commands/merge-support.ts +115 -22
- package/src/commands/message-cleanup.ts +1 -1
- package/src/commands/mv-command.ts +6 -3
- package/src/commands/name-rev-command.ts +184 -0
- package/src/commands/name-rev.ts +762 -0
- package/src/commands/notes-command.ts +11 -1
- package/src/commands/octopus-merge.ts +35 -11
- package/src/commands/ort-merge.ts +41 -7
- package/src/commands/ort-recursive.ts +40 -2
- package/src/commands/patch-id.ts +109 -0
- package/src/commands/pathspec-file.ts +72 -0
- package/src/commands/pathspec.ts +14 -2
- package/src/commands/pretty-format.ts +103 -19
- package/src/commands/promisor-remote.ts +10 -1
- package/src/commands/pull-command.ts +734 -221
- package/src/commands/push-command.ts +1035 -68
- 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 +102 -4
- package/src/commands/rebase-command.ts +1074 -194
- package/src/commands/ref-filter/for-each-ref-command.ts +298 -0
- package/src/commands/ref-filter/index.ts +7 -0
- package/src/commands/ref-filter/ref-atoms.ts +581 -0
- package/src/commands/ref-filter/ref-filter.ts +651 -0
- package/src/commands/ref-filter/ref-format.ts +1070 -0
- package/src/commands/ref-filter/ref-listing-command.ts +421 -0
- package/src/commands/ref-filter/ref-quote.ts +69 -0
- package/src/commands/ref-filter/version-compare.ts +177 -0
- package/src/commands/reflog-command.ts +492 -2
- package/src/commands/reflog-walk.ts +234 -0
- package/src/commands/remerge-diff.ts +241 -0
- package/src/commands/remote-command.ts +537 -69
- package/src/commands/remote-show-command.ts +836 -0
- package/src/commands/remote-transport.ts +9 -1
- package/src/commands/reset-command.ts +114 -34
- package/src/commands/restore-command.ts +27 -41
- package/src/commands/rev-filter/commit-filter.ts +159 -0
- package/src/commands/rev-filter/commit-grep.ts +444 -0
- package/src/commands/rev-filter/index.ts +2 -0
- package/src/commands/rev-list-command.ts +578 -15
- package/src/commands/revert-command.ts +123 -1
- package/src/commands/revision-range.ts +207 -5
- package/src/commands/revision-resolver.ts +23 -8
- package/src/commands/rm-command.ts +282 -21
- package/src/commands/sequencer-pick.ts +818 -111
- package/src/commands/sequencer-support.ts +184 -4
- package/src/commands/serve-repository.ts +18 -3
- package/src/commands/shortlog-command.ts +354 -0
- package/src/commands/shortlog.ts +361 -0
- package/src/commands/show-command.ts +491 -0
- package/src/commands/show-commit.ts +24 -0
- package/src/commands/signature-check.ts +657 -0
- package/src/commands/signing.ts +385 -0
- package/src/commands/sparse-checkout-command.ts +2 -9
- package/src/commands/sparse-checkout-support.ts +2 -2
- package/src/commands/sparse-index-view.ts +135 -0
- package/src/commands/ssh-signer.ts +199 -0
- package/src/commands/ssh-verifier.ts +523 -0
- package/src/commands/stash-apply-command.ts +16 -4
- package/src/commands/stash-branch-command.ts +88 -0
- package/src/commands/stash-create-command.ts +28 -0
- package/src/commands/stash-info.ts +243 -0
- package/src/commands/stash-list-command.ts +33 -0
- package/src/commands/stash-pop-command.ts +83 -0
- package/src/commands/stash-show-command.ts +141 -0
- package/src/commands/stash-store-command.ts +82 -0
- package/src/commands/stash-working-tree.ts +2 -2
- package/src/commands/status-command.ts +120 -27
- package/src/commands/status-format.ts +1 -1
- package/src/commands/status-header.ts +41 -7
- package/src/commands/submodule-add-command.ts +509 -0
- package/src/commands/submodule-auth.ts +276 -0
- package/src/commands/submodule-commands.ts +1835 -0
- package/src/commands/submodule-fetch.ts +789 -0
- package/src/commands/submodule-model.ts +938 -0
- package/src/commands/submodule-unpack.ts +265 -0
- package/src/commands/submodule-update-command.ts +1126 -0
- package/src/commands/subtree-shift.ts +215 -0
- package/src/commands/switch-command.ts +12 -1
- package/src/commands/tag-command.ts +876 -64
- package/src/commands/trailers.ts +837 -100
- package/src/commands/tree-restore.ts +44 -11
- package/src/commands/verify-command.ts +235 -0
- package/src/commands/worktree-add-command.ts +268 -24
- package/src/commands/worktree-overwrite-checks.ts +5 -0
- package/src/commands/worktree-path-rules.ts +183 -0
- package/src/commands/worktree-remove-command.ts +39 -5
- package/src/commands/worktree-repair-command.ts +52 -5
- package/src/commands/worktree-support.ts +22 -1
- package/src/errors/checkout-errors.ts +29 -0
- package/src/errors/command-errors.ts +37 -1
- package/src/errors/ref-errors.ts +23 -0
- package/src/errors/worktree-errors.ts +8 -1
- package/src/git-command.ts +153 -2
- package/src/git.ts +550 -1
- package/src/guarded-transport-command.ts +171 -0
- package/src/index.ts +1 -0
- package/src/remote-config/index.ts +2 -0
- package/src/remote-config/remote-config-store.ts +101 -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/clone-result.ts +6 -0
- package/src/results/combined-diff.ts +38 -18
- package/src/results/diff-check.ts +185 -0
- package/src/results/diff-color.ts +868 -0
- package/src/results/diff-dirstat.ts +117 -0
- package/src/results/diff-entry.ts +12 -0
- package/src/results/diff-formatter.ts +1 -0
- package/src/results/diff-output.ts +322 -32
- package/src/results/diff-pickaxe.ts +304 -0
- package/src/results/diff-words.ts +395 -0
- package/src/results/fetch-result.ts +12 -1
- package/src/results/index.ts +6 -0
- package/src/results/init-result.ts +10 -1
- package/src/results/line-range-hunks.ts +126 -0
- package/src/results/merge-result.ts +9 -0
- package/src/results/pull-result.ts +7 -0
- package/src/results/push-result.ts +12 -0
- package/src/results/rebase-result.ts +3 -0
- package/src/results/stash-result.ts +7 -0
- package/src/results/status-result.ts +2 -2
- package/src/transport-command.ts +34 -3
- package/src/whitespace/index.ts +1 -0
- package/src/{commands/apply/whitespace.ts → whitespace/whitespace-rule.ts} +173 -23
- package/dist/commands/apply/whitespace.d.ts +0 -58
- package/dist/commands/apply/whitespace.d.ts.map +0 -1
- package/dist/git-command-BGiOJ8Zk.js +0 -7246
- package/dist/results-WVlBhVb1.js +0 -2935
|
@@ -16,6 +16,11 @@ export interface RenameCandidate {
|
|
|
16
16
|
* once from the start (git's `rename_used++` at register_rename_src), so it is only copied
|
|
17
17
|
*/
|
|
18
18
|
kept?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* An unmodified path (`--find-copies-harder`): over the rename limit, `-C -C` falls back to
|
|
21
|
+
* copies from modified paths only (git's `skip_unmodified`)
|
|
22
|
+
*/
|
|
23
|
+
unmodified?: boolean;
|
|
19
24
|
}
|
|
20
25
|
/** A source paired with a destination. */
|
|
21
26
|
export interface RenamePair {
|
|
@@ -96,6 +101,21 @@ export interface DetectRenamesOptions {
|
|
|
96
101
|
* merge options.
|
|
97
102
|
*/
|
|
98
103
|
copies?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Some sources are halves of broken pairs (`-B`, git's `break_idx`): as with copies, no
|
|
106
|
+
* basename matches and every source stays in the matrix (used ones only skipped)
|
|
107
|
+
*/
|
|
108
|
+
breakMode?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Called when `--find-copies-harder` went over the rename limit and copies were looked for
|
|
111
|
+
* from modified paths only (git's `degraded_cc_to_c`)
|
|
112
|
+
*/
|
|
113
|
+
onDegraded?(): void;
|
|
114
|
+
/**
|
|
115
|
+
* Called once detection is done with how many times each source (by path) is used (git's
|
|
116
|
+
* `rename_used`: kept sources count once, each pair once more)
|
|
117
|
+
*/
|
|
118
|
+
onUses?(uses: Map<string, number>): void;
|
|
99
119
|
}
|
|
100
120
|
/** A source a merge needs for its content (the other side changed it). */
|
|
101
121
|
export declare const RELEVANT_CONTENT = 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect-renames.d.ts","sourceRoot":"","sources":["../../src/rename/detect-renames.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAiB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAYrE,sDAAsD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C1D,eAAO,MAAM,iBAAiB,IAAI,CAAC;AA2FnC,wCAAwC;AACxC,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAwEzC;;;;;;;;;;GAUG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,eAAe,EAAE,EAC1B,YAAY,EAAE,eAAe,EAAE,EAC/B,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,UAAU,EAAE,CAAC,CAqTvB;AAED,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IAC3B,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,eAAe,EAAE,EAC1B,WAAW,EAAE,eAAe,EAC5B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAC5B,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,GAAG,eAAe,CAAC,GACtF,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAuFnC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's break-rewrite detection (`diffcore-break.c`) and the option parsing of `-M`, `-C`
|
|
3
|
+
* and `-B` (diff.c's `parse_rename_score`, `diff_opt_break_rewrites`).
|
|
4
|
+
*/
|
|
5
|
+
import { type SimilaritySide, type SpanCounts } from "./git-similarity.js";
|
|
6
|
+
/** git's `DEFAULT_BREAK_SCORE`: a pair is broken from 50% of edit on */
|
|
7
|
+
export declare const DEFAULT_BREAK_SCORE = 30000;
|
|
8
|
+
/** git's `DEFAULT_MERGE_SCORE`: a broken pair that removed less than 60% is merged back */
|
|
9
|
+
export declare const DEFAULT_MERGE_SCORE = 36000;
|
|
10
|
+
/** git's `MINIMUM_BREAK_SIZE`: smaller pairs are never broken */
|
|
11
|
+
export declare const MINIMUM_BREAK_SIZE = 400;
|
|
12
|
+
/**
|
|
13
|
+
* diff.c's `parse_rename_score`: `50%`, `5` (tenths, as `.5`), `.5`, `95.5%`; the score in
|
|
14
|
+
* {@link GIT_MAX_SCORE} units and the text left after it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseRenameScore(text: string): {
|
|
17
|
+
score: number;
|
|
18
|
+
rest: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The score of `-M<n>` / `-C<n>` (`true`: none given, the default threshold); git's
|
|
22
|
+
* `error: invalid argument to <option>` (exit 129) for trailing text.
|
|
23
|
+
*/
|
|
24
|
+
export declare function renameScoreOption(spec: boolean | string, option: "find-renames" | "find-copies"): number | undefined;
|
|
25
|
+
/** The two thresholds of `-B[<n>][/<m>]` */
|
|
26
|
+
export interface BreakScores {
|
|
27
|
+
/** Break a pair edited this much (git's `break_score`) */
|
|
28
|
+
breakScore: number;
|
|
29
|
+
/** Merge a broken pair back that removed less than this (git's `merge_score`) */
|
|
30
|
+
mergeScore: number;
|
|
31
|
+
}
|
|
32
|
+
/** diff.c's `diff_opt_break_rewrites` and diffcore_break's defaults */
|
|
33
|
+
export declare function parseBreakRewrites(spec: boolean | string): BreakScores;
|
|
34
|
+
/**
|
|
35
|
+
* diffcore-delta.c's `diffcore_count_changes`: the bytes of the destination the source has
|
|
36
|
+
* (`copied`) and the bytes it adds (`added`).
|
|
37
|
+
*/
|
|
38
|
+
export declare function countChanges(src: SpanCounts, dst: SpanCounts): {
|
|
39
|
+
copied: number;
|
|
40
|
+
added: number;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* diffcore-break.c's `should_break`: whether a modification is better shown as a deletion and
|
|
44
|
+
* a creation, and how much of the source it removed (`mergeScore`, git's `*merge_score_p`).
|
|
45
|
+
* `same` is whether both sides are known to be the same object.
|
|
46
|
+
*/
|
|
47
|
+
export declare function shouldBreak(src: SimilaritySide, dst: SimilaritySide, breakScore: number, same: boolean): Promise<{
|
|
48
|
+
broken: boolean;
|
|
49
|
+
mergeScore: number;
|
|
50
|
+
}>;
|
|
51
|
+
//# sourceMappingURL=diffcore-break.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diffcore-break.d.ts","sourceRoot":"","sources":["../../src/rename/diffcore-break.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE1F,wEAAwE;AACxE,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AACzC,2FAA2F;AAC3F,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AACzC,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAuB9E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,GAAG,MAAM,EACtB,MAAM,EAAE,cAAc,GAAG,aAAa,GACrC,MAAM,GAAG,SAAS,CAWpB;AAED,4CAA4C;AAC5C,MAAM,WAAW,WAAW;IAC1B,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,WAAW,CAwBtE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAqBhG;AAKD;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,GAAG,EAAE,cAAc,EACnB,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CA0BlD"}
|
package/dist/rename/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Rename detection utilities for Git commands.
|
|
3
3
|
*/
|
|
4
4
|
export * from "./detect-renames.js";
|
|
5
|
+
export * from "./diffcore-break.js";
|
|
5
6
|
export * from "./git-similarity.js";
|
|
6
7
|
export { DEFAULT_RENAME_SCORE, MAX_SCORE, SimilarityIndex } from "./similarity-index.js";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rename/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rename/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -12,12 +12,22 @@
|
|
|
12
12
|
* @module
|
|
13
13
|
*/
|
|
14
14
|
import type { BlameResult } from "../commands/blame-command.js";
|
|
15
|
+
import { type DateMode, type ShowDateContext } from "../commands/date-format.js";
|
|
15
16
|
/** Options of {@link formatBlamePorcelain} */
|
|
16
17
|
export interface BlamePorcelainOptions {
|
|
17
18
|
/** Repeat the commit details on every line (`--line-porcelain`) */
|
|
18
19
|
linePorcelain?: boolean;
|
|
19
20
|
/** `core.quotePath` (default true) */
|
|
20
21
|
quotePath?: boolean;
|
|
22
|
+
/** An `ignored` line under each ignored line (default the result's `markIgnoredLines`) */
|
|
23
|
+
markIgnoredLines?: boolean;
|
|
24
|
+
/** An `unblamable` line under each (default the result's `markUnblamableLines`) */
|
|
25
|
+
markUnblamableLines?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the `ignored`/`unblamable` lines are written at all: git 2.50+ writes them
|
|
28
|
+
* (default true), older git marks only its default output
|
|
29
|
+
*/
|
|
30
|
+
lineMarks?: boolean;
|
|
21
31
|
}
|
|
22
32
|
/** Options of {@link formatBlame} (git's default output) */
|
|
23
33
|
export interface BlameFormatOptions {
|
|
@@ -47,9 +57,60 @@ export interface BlameFormatOptions {
|
|
|
47
57
|
* it only when a boundary commit is shown (default false)
|
|
48
58
|
*/
|
|
49
59
|
alwaysWidenAbbrev?: boolean;
|
|
60
|
+
/** `?` before the ids of ignored lines (default the result's `markIgnoredLines`) */
|
|
61
|
+
markIgnoredLines?: boolean;
|
|
62
|
+
/** `*` before the ids of unblamable lines (default the result's `markUnblamableLines`) */
|
|
63
|
+
markUnblamableLines?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* git annotate's columns (`-c`): `<id>\t(<author>\t<date>\t<line>)<text>`, no boundary
|
|
66
|
+
* marks and no colors
|
|
67
|
+
*/
|
|
68
|
+
annotate?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The date mode (`--date`, a `DateMode` or as written; default the result's `blame.date`,
|
|
71
|
+
* else `iso`)
|
|
72
|
+
*/
|
|
73
|
+
date?: DateMode | string;
|
|
74
|
+
/** What relative and human dates and `color.blame.highlightRecent` are relative to */
|
|
75
|
+
dateContext?: ShowDateContext;
|
|
76
|
+
/**
|
|
77
|
+
* Color the metadata of a line repeating the previous line's commit (`--color-lines`).
|
|
78
|
+
* With neither this nor `colorByAge`, the result's `blame.coloring` applies.
|
|
79
|
+
*/
|
|
80
|
+
colorLines?: boolean;
|
|
81
|
+
/** Color the metadata by the author's date (`--color-by-age`) */
|
|
82
|
+
colorByAge?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* `--color-lines` repeats only within an entry, not across adjacent entries of one commit
|
|
85
|
+
* (git before 2.54, whose `--ignore-rev` left such entries; default false)
|
|
86
|
+
*/
|
|
87
|
+
colorLinesWithinEntries?: boolean;
|
|
88
|
+
/** `color.blame.repeatedLines`'s escape sequence (default the result's, else cyan) */
|
|
89
|
+
repeatedLinesColor?: string;
|
|
90
|
+
/**
|
|
91
|
+
* `color.blame.highlightRecent`: `<color>,<date>,<color>,...` (default the result's, else
|
|
92
|
+
* `blue,12 month ago,white,1 month ago,red`)
|
|
93
|
+
*/
|
|
94
|
+
highlightRecent?: string;
|
|
95
|
+
}
|
|
96
|
+
/** An error git dies with on a bad `color.blame.highlightRecent` */
|
|
97
|
+
export declare class BlameColorError extends Error {
|
|
50
98
|
}
|
|
51
99
|
/** `git blame --porcelain` (or `--line-porcelain`) */
|
|
52
100
|
export declare function formatBlamePorcelain(result: BlameResult, options?: BlamePorcelainOptions): Uint8Array;
|
|
53
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* git's default `blame` output (and `blame -c`, git annotate's columns, with `annotate`)
|
|
103
|
+
*
|
|
104
|
+
* @throws BlameColorError for a `highlightRecent` git cannot parse
|
|
105
|
+
*/
|
|
54
106
|
export declare function formatBlame(result: BlameResult, options?: BlameFormatOptions): Uint8Array;
|
|
107
|
+
/** Options of {@link formatAnnotate} */
|
|
108
|
+
export type AnnotateFormatOptions = Omit<BlameFormatOptions, "annotate" | "date" | "colorLines" | "colorByAge" | "showName" | "showNumber" | "noAuthor">;
|
|
109
|
+
/**
|
|
110
|
+
* `git annotate`: blame's `-c` columns with ISO dates whatever `--date` says (only the
|
|
111
|
+
* `-local` of `blame.date` is kept, as git keeps it)
|
|
112
|
+
*/
|
|
113
|
+
export declare function formatAnnotate(result: BlameResult, options?: AnnotateFormatOptions): Uint8Array;
|
|
114
|
+
/** `git blame --incremental`: each entry as blame found it, with its commit's details once */
|
|
115
|
+
export declare function formatBlameIncremental(result: BlameResult, options?: Pick<BlamePorcelainOptions, "quotePath">): Uint8Array;
|
|
55
116
|
//# sourceMappingURL=blame-format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blame-format.d.ts","sourceRoot":"","sources":["../../src/results/blame-format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"blame-format.d.ts","sourceRoot":"","sources":["../../src/results/blame-format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,EACL,KAAK,QAAQ,EAEb,KAAK,eAAe,EAErB,MAAM,4BAA4B,CAAC;AAIpC,8CAA8C;AAC9C,MAAM,WAAW,qBAAqB;IACpC,mEAAmE;IACnE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mFAAmF;IACnF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,4DAA4D;AAC5D,MAAM,WAAW,kBAAkB;IACjC,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6BAA6B;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,4BAA4B;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gCAAgC;IAChC,QAAQ,CAAC,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B,MAAM,EAAE,WAAW,EACnB,OAAO,GAAE,qBAA0B,GAClC,UAAU,CAWZ;AAED,8FAA8F;AAC9F,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,WAAW,EACnB,OAAO,GAAE,IAAI,CAAC,qBAAqB,EAAE,WAAW,CAAM,GACrD,UAAU,CAsBZ"}
|
|
@@ -32,6 +32,15 @@ export interface CloneResult {
|
|
|
32
32
|
* itself stands)
|
|
33
33
|
*/
|
|
34
34
|
hookExitCode?: number;
|
|
35
|
+
/**
|
|
36
|
+
* `--recurse-submodules`: what the submodules' `git submodule update` printed (stdout,
|
|
37
|
+
* stderr) and its exit status, which git's clone exits with (the clone itself stands)
|
|
38
|
+
*/
|
|
39
|
+
submodules?: {
|
|
40
|
+
stdout: string;
|
|
41
|
+
stderr: string;
|
|
42
|
+
exitCode: number;
|
|
43
|
+
};
|
|
35
44
|
/**
|
|
36
45
|
* What git prints on stderr besides progress: `--reference-if-able`'s "info: Could not add
|
|
37
46
|
* alternate for '<path>': <reason>" lines, each with its newline
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-result.d.ts","sourceRoot":"","sources":["../../src/results/clone-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,qDAAqD;IACrD,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,8BAA8B;IAC9B,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
|
|
1
|
+
{"version":3,"file":"clone-result.d.ts","sourceRoot":"","sources":["../../src/results/clone-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,qDAAqD;IACrD,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,8BAA8B;IAC9B,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAElE;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
* @module
|
|
29
29
|
*/
|
|
30
30
|
import { type ByteSink, type UnifiedDiffOptions } from "@statewalker/vcs-utils";
|
|
31
|
+
import type { DiffColors } from "./diff-color.js";
|
|
31
32
|
/** One version of a combined diff: a parent or the result */
|
|
32
33
|
export interface CombinedSide {
|
|
33
34
|
/** Object id (the null id for a worktree file) */
|
|
@@ -49,6 +50,8 @@ export interface CombinedDiffOptions extends Pick<UnifiedDiffOptions, "algorithm
|
|
|
49
50
|
context?: number;
|
|
50
51
|
/** `core.quotePath` (default true) */
|
|
51
52
|
quotePath?: boolean;
|
|
53
|
+
/** The colors of `--color` (`color.diff.<slot>`); unset, none are written */
|
|
54
|
+
colors?: DiffColors;
|
|
52
55
|
/** Treat the files as binary (a `diff` attribute) or text, regardless of content */
|
|
53
56
|
binary?: boolean;
|
|
54
57
|
/** Prefix of old paths (default "a/") */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combined-diff.d.ts","sourceRoot":"","sources":["../../src/results/combined-diff.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAOxB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"combined-diff.d.ts","sourceRoot":"","sources":["../../src/results/combined-diff.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAOxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,6DAA6D;AAC7D,MAAM,WAAW,YAAY;IAC3B,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,gCAAgC;AAChC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,2CAA2C;AAC3C,MAAM,WAAW,mBACf,SAAQ,IAAI,CACV,kBAAkB,EAChB,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,kBAAkB,GAClB,wBAAwB,GACxB,uBAAuB,GACvB,eAAe,GACf,kBAAkB,CACrB;IACD,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,oFAAoF;IACpF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAqbD;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,YAAY,EAClB,OAAO,GAAE,mBAAwB,GAChC,IAAI,CAkDN"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git diff --check` (diff.c's `builtin_checkdiff` and `checkdiff_consume`): the whitespace
|
|
3
|
+
* errors and leftover conflict markers the new side of a pair adds, one
|
|
4
|
+
* `<file>:<line>: <error>.` line each, followed by the offending line with its errors in the
|
|
5
|
+
* `whitespace` color.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const sink = new ByteSink();
|
|
10
|
+
* const failed = await writePairCheck(sink, pair, { whitespaceRule: () => WS_DEFAULT_RULE });
|
|
11
|
+
* // sink: "x:2: trailing whitespace.\n+foo(); \n"
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
*/
|
|
16
|
+
import { type ByteSink } from "@statewalker/vcs-utils";
|
|
17
|
+
import { type DiffFilePair, type DiffOutputOptions } from "./diff-output.js";
|
|
18
|
+
/** `DEFAULT_CONFLICT_MARKER_SIZE` */
|
|
19
|
+
export declare const DEFAULT_CONFLICT_MARKER_SIZE = 7;
|
|
20
|
+
/** What {@link writePairCheck} reads besides the diff options */
|
|
21
|
+
export interface PairCheckOptions {
|
|
22
|
+
/** The `conflict-marker-size` of a path (`ll_merge_marker_size`), default 7 */
|
|
23
|
+
conflictMarkerSize?: (path: string) => Promise<number> | number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* merge-ll.c's `ll_merge_marker_size` over a `conflict-marker-size` attribute value: its
|
|
27
|
+
* integer, else 7 (with git's warning for a value that is no integer)
|
|
28
|
+
*/
|
|
29
|
+
export declare function conflictMarkerSizeOf(attribute: boolean | string | undefined, warn?: (message: string) => void): number;
|
|
30
|
+
/** merge-ll.c's `is_conflict_marker_line` over a line (its LF included) */
|
|
31
|
+
export declare function isConflictMarkerLine(line: Uint8Array, markerSize: number): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Writes the `--check` report of one pair (`run_checkdiff`); true when it found an error
|
|
34
|
+
* (git's `check_failed`). A tree side or an unmerged pair is not checked; the new side's
|
|
35
|
+
* whitespace rule and marker size are those of its path, and a binary new side is not read.
|
|
36
|
+
*/
|
|
37
|
+
export declare function writePairCheck(sink: ByteSink, pair: DiffFilePair, options?: DiffOutputOptions, check?: PairCheckOptions): Promise<boolean>;
|
|
38
|
+
//# sourceMappingURL=diff-check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-check.d.ts","sourceRoot":"","sources":["../../src/results/diff-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAoB,MAAM,wBAAwB,CAAC;AAWzE,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAIvB,MAAM,kBAAkB,CAAC;AAK1B,qCAAqC;AACrC,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,+EAA+E;IAC/E,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;CACjE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,EACvC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC/B,MAAM,CAaR;AAED,2EAA2E;AAC3E,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CASlF;AAWD;;;;GAIG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,YAAY,EAClB,OAAO,GAAE,iBAAsB,EAC/B,KAAK,GAAE,gBAAqB,GAC3B,OAAO,CAAC,OAAO,CAAC,CAkFlB"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's colored diff output (diff.c's `emit_*` functions, ws.c's `ws_check_emit`) and its
|
|
3
|
+
* moved-line detection (`--color-moved`: `add_lines_to_move_detection`,
|
|
4
|
+
* `mark_color_as_moved`, `dim_moved_lines`), byte for byte as `git diff --color=always`
|
|
5
|
+
* prints them.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const colors = { ...DEFAULT_DIFF_COLORS, old: parseGitColor("magenta") ?? "" };
|
|
10
|
+
* const patch = await formatPatch(pairs, { colors, colorMoved: "zebra" });
|
|
11
|
+
* // "\x1b[1mdiff --git a/f b/f\x1b[m\n...\x1b[31m-old line\x1b[m\n..."
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* The palette ({@link DiffColors}) holds the escape sequence of each of git's
|
|
15
|
+
* `color.diff.<slot>` slots; an empty string is git's `normal` (nothing written before the
|
|
16
|
+
* text, a reset still written after it). With a palette, every `+` line (`-` and context
|
|
17
|
+
* lines too, with `--ws-error-highlight`) shows the whitespace errors of the path's
|
|
18
|
+
* whitespace rule (`core.whitespace`, the `whitespace` attribute) in the `whitespace` color.
|
|
19
|
+
* Moved lines are found over all the files of one diff: a writer buffers the lines in a
|
|
20
|
+
* {@link MovedLineBuffer} and {@link MovedLineBuffer.flushTo} marks and prints them.
|
|
21
|
+
*
|
|
22
|
+
* @module
|
|
23
|
+
*/
|
|
24
|
+
import { ByteSink } from "@statewalker/vcs-utils";
|
|
25
|
+
/** git's color slots of the diff (`color.diff.<slot>`, diff.c's `color_diff_slots`) */
|
|
26
|
+
export declare const DIFF_COLOR_SLOTS: readonly ["context", "meta", "frag", "old", "new", "commit", "whitespace", "func", "oldMoved", "oldMovedAlternative", "oldMovedDimmed", "oldMovedAlternativeDimmed", "newMoved", "newMovedAlternative", "newMovedDimmed", "newMovedAlternativeDimmed", "contextDimmed", "oldDimmed", "newDimmed", "contextBold", "oldBold", "newBold"];
|
|
27
|
+
/** One of {@link DIFF_COLOR_SLOTS} */
|
|
28
|
+
export type DiffColorSlot = (typeof DIFF_COLOR_SLOTS)[number];
|
|
29
|
+
/** The escape sequence of each slot ("" for `normal`), and the reset that ends one */
|
|
30
|
+
export type DiffColors = Record<DiffColorSlot, string> & {
|
|
31
|
+
reset: string;
|
|
32
|
+
};
|
|
33
|
+
/** diff.c's `diff_colors`: git's default palette */
|
|
34
|
+
export declare const DEFAULT_DIFF_COLORS: Readonly<DiffColors>;
|
|
35
|
+
/** `parse_diff_color_slot`: the slot a `color.diff.<name>` names (any case), `plain` the context */
|
|
36
|
+
export declare function diffColorSlotOf(name: string): DiffColorSlot | undefined;
|
|
37
|
+
/** `--color-moved=<mode>` (`default` is `zebra`) */
|
|
38
|
+
export type ColorMovedMode = "no" | "plain" | "blocks" | "zebra" | "dimmed-zebra";
|
|
39
|
+
/**
|
|
40
|
+
* `parse_color_moved`: a boolean (`true` is `zebra`), `no`, `plain`, `blocks`, `zebra`,
|
|
41
|
+
* `default`, `dimmed-zebra` (or `dimmed_zebra`); undefined for anything else
|
|
42
|
+
*/
|
|
43
|
+
export declare function parseColorMoved(arg: string | undefined): ColorMovedMode | undefined;
|
|
44
|
+
/** The message git gives a `--color-moved` mode it does not know */
|
|
45
|
+
export declare const COLOR_MOVED_MODE_ERROR = "error: color moved setting must be one of 'no', 'default', 'blocks', 'zebra', 'dimmed-zebra', 'plain'";
|
|
46
|
+
/** `COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE` (the `XDF_*` whitespace bits are xdiff's) */
|
|
47
|
+
export declare const COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE: number;
|
|
48
|
+
/**
|
|
49
|
+
* `parse_color_moved_ws`: the comma-separated modes as flags, with git's `error:` lines
|
|
50
|
+
* for the modes it refuses (the flags are not to be used then)
|
|
51
|
+
*/
|
|
52
|
+
export declare function parseColorMovedWs(arg: string): {
|
|
53
|
+
flags: number;
|
|
54
|
+
errors: string[];
|
|
55
|
+
};
|
|
56
|
+
/** `WSEH_NEW`: whitespace errors highlighted on `+` lines */
|
|
57
|
+
export declare const WSEH_NEW: number;
|
|
58
|
+
/** `WSEH_CONTEXT`: on context lines */
|
|
59
|
+
export declare const WSEH_CONTEXT: number;
|
|
60
|
+
/** `WSEH_OLD`: on `-` lines */
|
|
61
|
+
export declare const WSEH_OLD: number;
|
|
62
|
+
/**
|
|
63
|
+
* `parse_ws_error_highlight`: `none`, `default`, `all`, `new`, `old`, `context`, comma
|
|
64
|
+
* separated; undefined for anything else
|
|
65
|
+
*/
|
|
66
|
+
export declare function parseWsErrorHighlight(arg: string): number | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* {@link parseWsErrorHighlight}, or for a value git refuses the text before the token it
|
|
69
|
+
* stopped at (what its error message quotes)
|
|
70
|
+
*/
|
|
71
|
+
export declare function wsErrorHighlightOf(arg: string): number | {
|
|
72
|
+
badPrefix: string;
|
|
73
|
+
};
|
|
74
|
+
/** What the colored writer needs besides the palette */
|
|
75
|
+
export interface ColoredLineOptions {
|
|
76
|
+
colors: DiffColors;
|
|
77
|
+
/** `--ws-error-highlight` (`WSEH_*` bits, default {@link WSEH_NEW}) */
|
|
78
|
+
wsErrorHighlight: number;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The output of one diff's patches while moved lines are looked for: what the writers push
|
|
82
|
+
* is kept, `+` and `-` lines apart ({@link MovedLineBuffer.content}), until
|
|
83
|
+
* {@link MovedLineBuffer.flushTo} marks the moved lines and prints everything.
|
|
84
|
+
*/
|
|
85
|
+
export declare class MovedLineBuffer extends ByteSink {
|
|
86
|
+
private readonly mode;
|
|
87
|
+
/** `--color-moved-ws` flags */
|
|
88
|
+
private readonly wsFlags;
|
|
89
|
+
private readonly symbols;
|
|
90
|
+
private buffered;
|
|
91
|
+
constructor(mode: Exclude<ColorMovedMode, "no">,
|
|
92
|
+
/** `--color-moved-ws` flags */
|
|
93
|
+
wsFlags: number);
|
|
94
|
+
push(bytes: Uint8Array): void;
|
|
95
|
+
get length(): number;
|
|
96
|
+
bytes(): Uint8Array;
|
|
97
|
+
/** A `+` or `-` line (the line without its sign, LF included) and its flags */
|
|
98
|
+
content(kind: "+" | "-", line: Uint8Array, flags: number): void;
|
|
99
|
+
/** diff_flush_patch_all_file_pairs' end: marks the moved lines and prints everything */
|
|
100
|
+
flushTo(sink: ByteSink, o: ColoredLineOptions): void;
|
|
101
|
+
}
|
|
102
|
+
/** A text line of a hunk as {@link writeColoredHunks} gets it */
|
|
103
|
+
export interface ColoredHunkLine {
|
|
104
|
+
kind: " " | "-" | "+";
|
|
105
|
+
/** The line without its sign; an incomplete last line without LF */
|
|
106
|
+
bytes: Uint8Array;
|
|
107
|
+
}
|
|
108
|
+
/** A hunk: its header (as git prints it, LF included) and lines */
|
|
109
|
+
export interface ColoredHunk {
|
|
110
|
+
header: Uint8Array;
|
|
111
|
+
oldStart: number;
|
|
112
|
+
newStart: number;
|
|
113
|
+
lines: ColoredHunkLine[];
|
|
114
|
+
}
|
|
115
|
+
/** What {@link writeColoredHunks} knows of the pair */
|
|
116
|
+
export interface ColoredPatchContext extends ColoredLineOptions {
|
|
117
|
+
/** The whitespace rule of the path (`whitespace_rule`) */
|
|
118
|
+
wsRule: number;
|
|
119
|
+
/** The two sides' contents, for `blank-at-eof` (`check_blank_at_eof`) */
|
|
120
|
+
oldContent: Uint8Array;
|
|
121
|
+
newContent: Uint8Array;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The hunks of a text pair as diff.c's `fn_out_consume` prints them in color: the header
|
|
125
|
+
* in `frag` (`func` for its function line), each line in its color with its whitespace
|
|
126
|
+
* errors marked; into a {@link MovedLineBuffer}, the `+` and `-` lines are kept for move
|
|
127
|
+
* detection.
|
|
128
|
+
*/
|
|
129
|
+
export declare function writeColoredHunks(sink: ByteSink, hunks: readonly ColoredHunk[], ctx: ColoredPatchContext): void;
|
|
130
|
+
/**
|
|
131
|
+
* diff.c's `emit_hunk_header` in color: the `@@ ... @@` part in `frag`, the function line in
|
|
132
|
+
* `func` (the header as xdiff made it, LF included)
|
|
133
|
+
*/
|
|
134
|
+
export declare function coloredHunkHeader(line: Uint8Array, c: DiffColors): Uint8Array;
|
|
135
|
+
//# sourceMappingURL=diff-color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-color.d.ts","sourceRoot":"","sources":["../../src/results/diff-color.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,QAAQ,EAAoD,MAAM,wBAAwB,CAAC;AAapG,uFAAuF;AACvF,eAAO,MAAM,gBAAgB,YAC3B,SAAS,EACT,MAAM,EACN,MAAM,E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1B,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,eAAe,EAAE,CAAC;CAC1B;AAED,uDAAuD;AACvD,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,0DAA0D;IAC1D,MAAM,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,GAAG,EAAE,mBAAmB,GACvB,IAAI,CA4FN;AAwDD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,UAAU,CAE7E"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `--dirstat` (diff.c's `show_dirstat`, `show_dirstat_by_line`, `gather_dirstat`): how much
|
|
3
|
+
* of the change each directory holds, as a percentage of the whole.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* formatDirstat([{ name: "a/x", changed: 3 }, { name: "b/y", changed: 1 }], DEFAULT_DIRSTAT);
|
|
8
|
+
* // " 75.0% a/\n 25.0% b/\n"
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
/** The dirstat's parameters (`diff_options`' dirstat flags and `dirstat_permille`) */
|
|
12
|
+
export interface DirstatParams {
|
|
13
|
+
/** `lines`: damage from the diffstat's line counts */
|
|
14
|
+
byLine: boolean;
|
|
15
|
+
/** `files`: each changed file counts one */
|
|
16
|
+
byFile: boolean;
|
|
17
|
+
/** `cumulative`: a directory's count includes its subdirectories' */
|
|
18
|
+
cumulative: boolean;
|
|
19
|
+
/** The cut-off, in tenths of a percent (default 30: 3%) */
|
|
20
|
+
permille: number;
|
|
21
|
+
}
|
|
22
|
+
/** git's defaults: `changes,noncumulative,3` */
|
|
23
|
+
export declare const DEFAULT_DIRSTAT: DirstatParams;
|
|
24
|
+
/**
|
|
25
|
+
* diff.c's `parse_dirstat_params`: the comma-separated parameters applied over `params`;
|
|
26
|
+
* returns git's error lines (` Unknown dirstat parameter '<p>'`), the valid ones applied.
|
|
27
|
+
*/
|
|
28
|
+
export declare function parseDirstatParams(text: string, params: DirstatParams): string[];
|
|
29
|
+
/** One file's damage (`struct dirstat_file`) */
|
|
30
|
+
export interface DirstatFile {
|
|
31
|
+
name: string;
|
|
32
|
+
changed: number;
|
|
33
|
+
}
|
|
34
|
+
/** `conclude_dirstat` / `gather_dirstat`: the directories at or above the cut-off */
|
|
35
|
+
export declare function formatDirstat(files: readonly DirstatFile[], params: DirstatParams): string;
|
|
36
|
+
//# sourceMappingURL=diff-dirstat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-dirstat.d.ts","sourceRoot":"","sources":["../../src/results/diff-dirstat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,sFAAsF;AACtF,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,MAAM,EAAE,OAAO,CAAC;IAChB,4CAA4C;IAC5C,MAAM,EAAE,OAAO,CAAC;IAChB,qEAAqE;IACrE,UAAU,EAAE,OAAO,CAAC;IACpB,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,gDAAgD;AAChD,eAAO,MAAM,eAAe,EAAE,aAK7B,CAAC;AAIF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,MAAM,EAAE,CA8BhF;AAED,gDAAgD;AAChD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,EAAE,MAAM,EAAE,aAAa,GAAG,MAAM,CAsC1F"}
|
|
@@ -85,6 +85,16 @@ export interface DiffEntry {
|
|
|
85
85
|
* when that commit is the old side's, and no rename pairs with it.
|
|
86
86
|
*/
|
|
87
87
|
newIdUnknown?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* `git log -L`: the line ranges of the new side the patch is cut to (0-based, end
|
|
90
|
+
* exclusive, sorted and apart; line-log.c's `line_ranges` of the pair)
|
|
91
|
+
*/
|
|
92
|
+
lineRanges?: readonly LineRange[];
|
|
93
|
+
}
|
|
94
|
+
/** Lines `[start, end)` of a file, 0-based (line-log.c's `struct range`) */
|
|
95
|
+
export interface LineRange {
|
|
96
|
+
start: number;
|
|
97
|
+
end: number;
|
|
88
98
|
}
|
|
89
99
|
/**
|
|
90
100
|
* Create a DiffEntry for an added file.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-entry.d.ts","sourceRoot":"","sources":["../../src/results/diff-entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAErE;;GAEG;AACH,oBAAY,UAAU;IACpB,qBAAqB;IACrB,GAAG,QAAQ;IAEX,wBAAwB;IACxB,MAAM,WAAW;IAEjB,uBAAuB;IACvB,MAAM,WAAW;IAEjB,uBAAuB;IACvB,MAAM,WAAW;IAEjB,sBAAsB;IACtB,IAAI,SAAS;CACd;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,SAAS;IACxB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAC;IAEvB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB,kDAAkD;IAClD,K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