@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
|
@@ -22,9 +22,16 @@
|
|
|
22
22
|
*/
|
|
23
23
|
import { type Blobs } from "@statewalker/vcs-core";
|
|
24
24
|
import { ByteSink, type FindFunction, type UnifiedDiffOptions, type UnifiedDiffResult, type XdiffAlgorithm } from "@statewalker/vcs-utils";
|
|
25
|
+
import { type DiffColors } from "./diff-color.js";
|
|
26
|
+
import type { LineRange } from "./diff-entry.js";
|
|
25
27
|
/** One side of a file pair */
|
|
26
28
|
export interface DiffSideSpec {
|
|
27
29
|
path: string;
|
|
30
|
+
/**
|
|
31
|
+
* The path attributes (the diff driver, textconv) are looked up by, when {@link path} is
|
|
32
|
+
* shown shortened (`--relative` strips its prefix from the names, not from attributes)
|
|
33
|
+
*/
|
|
34
|
+
attrPath?: string;
|
|
28
35
|
/** git file mode, e.g. `0o100644` */
|
|
29
36
|
mode: number;
|
|
30
37
|
/** Object id of the content (a worktree file: the id of its cleaned content) */
|
|
@@ -71,6 +78,11 @@ export interface DiffFilePair {
|
|
|
71
78
|
new?: DiffSideSpec;
|
|
72
79
|
/** Similarity percentage of a rename or copy */
|
|
73
80
|
score?: number;
|
|
81
|
+
/**
|
|
82
|
+
* `git log -L`: the patch shows only the changes of these lines of the new side (diff.c's
|
|
83
|
+
* `line_ranges`, see {@link cutToLineRanges})
|
|
84
|
+
*/
|
|
85
|
+
lineRanges?: readonly LineRange[];
|
|
74
86
|
}
|
|
75
87
|
/** What a diff driver (`diff=<name>` attribute) changes */
|
|
76
88
|
export interface DiffDriver {
|
|
@@ -80,6 +92,8 @@ export interface DiffDriver {
|
|
|
80
92
|
findFunction?: FindFunction;
|
|
81
93
|
/** `diff.<name>.algorithm` */
|
|
82
94
|
algorithm?: XdiffAlgorithm;
|
|
95
|
+
/** `diff.<name>.wordRegex`, or the builtin driver's word regex (extended POSIX) */
|
|
96
|
+
wordRegex?: Uint8Array;
|
|
83
97
|
/** The driver's name (`diff=<name>`) */
|
|
84
98
|
name?: string;
|
|
85
99
|
/** `diff.<name>.textconv`: the command git would run to turn the content into text */
|
|
@@ -101,6 +115,11 @@ export interface DiffOutputOptions extends Omit<UnifiedDiffOptions, "findFunctio
|
|
|
101
115
|
indentHeuristic?: boolean;
|
|
102
116
|
/** Length of abbreviated object ids in `index` lines (default 7) */
|
|
103
117
|
abbrev?: number;
|
|
118
|
+
/**
|
|
119
|
+
* diff.c's `additional_path_headers` (`--remerge-diff`'s `remerge CONFLICT` lines): the
|
|
120
|
+
* headers shown after a pair's rename lines, by the pair's first name
|
|
121
|
+
*/
|
|
122
|
+
additionalHeaders?: (name: string) => readonly string[] | undefined;
|
|
104
123
|
/**
|
|
105
124
|
* The length of each id in `index` lines, as git abbreviates them (`DiffCommand` finds
|
|
106
125
|
* them from `core.abbrev`, the repository's size and the other objects); ids not in it
|
|
@@ -132,12 +151,86 @@ export interface DiffOutputOptions extends Omit<UnifiedDiffOptions, "findFunctio
|
|
|
132
151
|
dstPrefix?: string;
|
|
133
152
|
/** The diff driver of a path (from its `diff` attribute), if any */
|
|
134
153
|
driver?: (path: string) => Promise<DiffDriver | undefined> | DiffDriver | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* The colors of the patch (`--color`, `color.diff.<slot>`); unset, none are written. Moved
|
|
156
|
+
* lines are colored when the sink is a {@link MovedLineBuffer}.
|
|
157
|
+
*/
|
|
158
|
+
colors?: DiffColors;
|
|
159
|
+
/** `--ws-error-highlight` (`WSEH_*` bits; default {@link WSEH_NEW}), with `colors` */
|
|
160
|
+
wsHighlight?: number;
|
|
161
|
+
/**
|
|
162
|
+
* The whitespace rule of a path (`core.whitespace`, its `whitespace` attribute: git's
|
|
163
|
+
* `whitespace_rule`), whose errors a colored patch marks; default git's
|
|
164
|
+
* `blank-at-eol,space-before-tab,blank-at-eof`
|
|
165
|
+
*/
|
|
166
|
+
whitespaceRule?: (path: string) => Promise<number> | number;
|
|
167
|
+
/**
|
|
168
|
+
* `--word-diff=<mode>` (`--color-words` is `color`, which also turns `--color` on); unset
|
|
169
|
+
* or `none`, the patch shows lines
|
|
170
|
+
*/
|
|
171
|
+
wordDiff?: "plain" | "color" | "porcelain" | "none";
|
|
172
|
+
/**
|
|
173
|
+
* `--word-diff-regex=<regex>` (`--color-words=<regex>`): what a word is, over the drivers'
|
|
174
|
+
* `wordRegex` and `diff.wordRegex` (extended POSIX, `REG_NEWLINE`); without `wordDiff`, it
|
|
175
|
+
* asks for the plain word diff
|
|
176
|
+
*/
|
|
177
|
+
wordDiffRegex?: string;
|
|
178
|
+
/** `diff.wordRegex`: the word regex of a pair whose drivers give none */
|
|
179
|
+
defaultWordRegex?: string;
|
|
135
180
|
}
|
|
181
|
+
/** @internal git diff's `big_file_threshold` default (512 MiB) */
|
|
182
|
+
export declare const GIT_DIFF_BIG_FILE_THRESHOLD: number;
|
|
136
183
|
/**
|
|
137
184
|
* The driver of a `diff` attribute value (git's `userdiff_find_by_path`): set means text,
|
|
138
185
|
* unset means binary, a name means `diff.<name>.*` from `config` or a builtin driver.
|
|
139
186
|
*/
|
|
140
|
-
export declare function diffDriverOf(attribute: true | false | string | undefined | null, config?: (key: string) => string | undefined
|
|
187
|
+
export declare function diffDriverOf(attribute: true | false | string | undefined | null, config?: (key: string) => string | undefined,
|
|
188
|
+
/** The builtin drivers of that git version (2.43 lacks `ini`, `r`, `swift`, ...) */
|
|
189
|
+
compatibility?: "2.43" | "2.56"): DiffDriver | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* A side as the diff reads it: its content and binary state, read once
|
|
192
|
+
*
|
|
193
|
+
* @internal
|
|
194
|
+
*/
|
|
195
|
+
export declare class LoadedSide {
|
|
196
|
+
readonly spec: DiffSideSpec | undefined;
|
|
197
|
+
readonly driver: DiffDriver | undefined;
|
|
198
|
+
/** The other side's id: an absent side's null id is as long (64 zeros in SHA-256) */
|
|
199
|
+
private readonly otherId?;
|
|
200
|
+
private content?;
|
|
201
|
+
private probed?;
|
|
202
|
+
constructor(spec: DiffSideSpec | undefined, driver: DiffDriver | undefined,
|
|
203
|
+
/** The other side's id: an absent side's null id is as long (64 zeros in SHA-256) */
|
|
204
|
+
otherId?: string | undefined);
|
|
205
|
+
get valid(): boolean;
|
|
206
|
+
get mode(): number;
|
|
207
|
+
get id(): string;
|
|
208
|
+
read(): Promise<Uint8Array>;
|
|
209
|
+
/** The bytes textconv converts ({@link DiffSideSpec.readTextconvInput}) */
|
|
210
|
+
textconvInput(): Promise<Uint8Array>;
|
|
211
|
+
/** `diff_filespec_is_binary` */
|
|
212
|
+
isBinary(threshold: number): Promise<boolean>;
|
|
213
|
+
probe(threshold: number): Promise<{
|
|
214
|
+
size: number;
|
|
215
|
+
binary: boolean;
|
|
216
|
+
}>;
|
|
217
|
+
size(threshold: number): Promise<number>;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* The driver a side's content is read with (`diff_filespec_load_driver`): a regular file's;
|
|
221
|
+
* an absent side, a symbolic link and a submodule take the default driver
|
|
222
|
+
*
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
225
|
+
export declare function contentDriver(spec: DiffSideSpec | undefined, driver: DiffDriver | undefined): DiffDriver | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* The full path of a pair's side for attributes; the other side's for an absent one
|
|
228
|
+
*
|
|
229
|
+
* @internal
|
|
230
|
+
*/
|
|
231
|
+
export declare function attrPathOf(side: DiffSideSpec | undefined, other: DiffSideSpec | undefined, fallback: string): string;
|
|
232
|
+
/** @internal The diff driver of a path, from {@link DiffOutputOptions.driver} */
|
|
233
|
+
export declare function driverOf(options: DiffOutputOptions, path: string | undefined): Promise<DiffDriver | undefined>;
|
|
141
234
|
/**
|
|
142
235
|
* The patch of the pairs, as `git diff` prints it.
|
|
143
236
|
*/
|
|
@@ -158,6 +251,13 @@ export interface PairPatchReport {
|
|
|
158
251
|
}
|
|
159
252
|
/** Writes one pair as `run_diff` does: a file/symlink change as deletion and addition */
|
|
160
253
|
export declare function writePairPatch(sink: ByteSink, pair: DiffFilePair, options?: DiffOutputOptions, report?: PairPatchReport): Promise<void>;
|
|
254
|
+
/**
|
|
255
|
+
* A pair create_filepairs_for_header_only_notifications adds for a path with headers but no
|
|
256
|
+
* change (`--remerge-diff`): its `diff --git` line and the headers alone.
|
|
257
|
+
*/
|
|
258
|
+
export declare function writeHeaderOnlyPatch(sink: ByteSink, path: string, headers: readonly string[], options?: DiffOutputOptions): void;
|
|
259
|
+
/** diff.c's `count_lines`: lines, a last one without a newline counted */
|
|
260
|
+
export declare function countLines(data: Uint8Array): number;
|
|
161
261
|
/** One file of a diffstat (`struct diffstat_file`) */
|
|
162
262
|
export interface DiffstatFile {
|
|
163
263
|
/** The old name of a renamed (or differently named) pair */
|
|
@@ -185,6 +285,8 @@ export interface DiffstatOptions {
|
|
|
185
285
|
count?: number;
|
|
186
286
|
/** `core.quotePath` (default true) */
|
|
187
287
|
quotePath?: boolean;
|
|
288
|
+
/** The colors of `--color` (the `+` run in `new`, the `-` run in `old`) */
|
|
289
|
+
colors?: DiffColors;
|
|
188
290
|
}
|
|
189
291
|
/** git's `pprint_rename`: `a/{b => c}/d` */
|
|
190
292
|
export declare function pprintRename(a: string, b: string, quote?: boolean): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-output.d.ts","sourceRoot":"","sources":["../../src/results/diff-output.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,KAAK,KAAK,EAAa,MAAM,uBAAuB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"diff-output.d.ts","sourceRoot":"","sources":["../../src/results/diff-output.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,KAAK,KAAK,EAAa,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAKL,QAAQ,EAIR,KAAK,YAAY,EAGjB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EAKtB,K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67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pickaxe (git's diffcore-pickaxe.c): which pairs of a diff queue mention a string, a regex
|
|
3
|
+
* or an object. `-S<string>` keeps a pair whose two sides hold the string a different number
|
|
4
|
+
* of times, `-G<regex>` a pair whose added or removed lines match the regex, `--find-object`
|
|
5
|
+
* a pair with that object on either side.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const pickaxe = DiffPickaxe.compile({ string: "frotz" });
|
|
10
|
+
* const kept = await pickaxe.filter(pairs, (p) => p, outputOptions);
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* Both sides are read as the patch reads them: through the path's textconv when one applies,
|
|
14
|
+
* and `-G` passes over binary pairs unless `--text` is given (or textconv makes them text),
|
|
15
|
+
* as git does. `-S` counts non-overlapping occurrences, ASCII case folded under `-i`;
|
|
16
|
+
* `--pickaxe-regex` and `-G` compile POSIX extended regexes with `REG_NEWLINE` (and
|
|
17
|
+
* `REG_ICASE` under `-i`), so no JavaScript `RegExp` ever runs a user's pattern. `-G`
|
|
18
|
+
* diffs the two texts with xdiff's defaults (Myers, no indent heuristic, no whitespace
|
|
19
|
+
* options), whatever the patch shown uses.
|
|
20
|
+
*
|
|
21
|
+
* @module
|
|
22
|
+
*/
|
|
23
|
+
import { type DiffFilePair, type DiffOutputOptions } from "./diff-output.js";
|
|
24
|
+
/** What a pickaxe looks for (one kind of `-S`, `-G`, `--find-object`) */
|
|
25
|
+
export interface PickaxeSpec {
|
|
26
|
+
/** `-S<string>`: pairs whose sides hold it a different number of times */
|
|
27
|
+
string?: string;
|
|
28
|
+
/** `-G<regex>`: pairs whose added or removed lines match it */
|
|
29
|
+
grep?: string;
|
|
30
|
+
/** `--find-object=<id>`: pairs with one of these objects on either side */
|
|
31
|
+
objects?: ReadonlySet<string>;
|
|
32
|
+
/** `--pickaxe-regex`: `-S` takes a POSIX extended regex */
|
|
33
|
+
regex?: boolean;
|
|
34
|
+
/** `--pickaxe-all`: a match keeps the whole queue, none empties it */
|
|
35
|
+
all?: boolean;
|
|
36
|
+
/** `-i` / `--regexp-ignore-case` */
|
|
37
|
+
ignoreCase?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/** The compiled pickaxe of a diff (git's `diffcore_pickaxe`) */
|
|
40
|
+
export declare class DiffPickaxe {
|
|
41
|
+
private readonly spec;
|
|
42
|
+
/** `-G`, `--pickaxe-regex`, or `-S -i` of a non-ASCII string */
|
|
43
|
+
private readonly regex;
|
|
44
|
+
/** `-S`'s string, lowercased under `-i` (kwset) */
|
|
45
|
+
private readonly needle;
|
|
46
|
+
private constructor();
|
|
47
|
+
/**
|
|
48
|
+
* Compiles a pickaxe as diffcore_pickaxe does; an invalid regex throws git's `fatal:
|
|
49
|
+
* invalid regex: <glibc's message>` (exit 128).
|
|
50
|
+
*/
|
|
51
|
+
static compile(spec: PickaxeSpec): DiffPickaxe;
|
|
52
|
+
/** Whether the pickaxe reads the blobs of the pairs (`-S`, `-G`; not `--find-object`) */
|
|
53
|
+
get readsContent(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The queue the pickaxe leaves (git's `pickaxe`): the items whose pair matches, or, under
|
|
56
|
+
* `--pickaxe-all`, every item when one matches and none otherwise. An item without a pair
|
|
57
|
+
* (an unmerged path) never matches.
|
|
58
|
+
*/
|
|
59
|
+
filter<T>(queue: readonly T[], pairOf: (item: T) => DiffFilePair | undefined, options: DiffOutputOptions): Promise<T[]>;
|
|
60
|
+
/** pickaxe_match: whether one pair matches */
|
|
61
|
+
matches(pair: DiffFilePair, options: DiffOutputOptions): Promise<boolean>;
|
|
62
|
+
/** diff_grep: whether an added or removed line of the xdiff of `a` and `b` matches */
|
|
63
|
+
private diffGrep;
|
|
64
|
+
/** contains(): the occurrences in `data`, up to `limit` (0: all) */
|
|
65
|
+
private contains;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=diff-pickaxe.d.ts.map
|
|
@@ -0,0 +1 @@
|
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IAED,sFAAsF;IACtF,OAAO,CAAC,QAAQ;IA4BhB,oEAAoE;IACpE,OAAO,CAAC,QAAQ;CAwCjB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's word diff (diff.c's `diff_words_*` and `fn_out_diff_words_*`): `--word-diff=plain`,
|
|
3
|
+
* `--word-diff=color` (`--color-words`) and `--word-diff=porcelain`, byte for byte as git
|
|
4
|
+
* prints the hunks of a text pair.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* const words = compileWordRegex("[a-z]+");
|
|
9
|
+
* writeWordDiffHunks(sink, hunks, { mode: "plain", regex: words });
|
|
10
|
+
* // "@@ -1 +1 @@\nh(4),{+hh+}[44]\n"
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* The removed and added lines between two context lines are gathered, split into words
|
|
14
|
+
* (each match of the word regex, cut at a newline; without one, each run of non-spaces),
|
|
15
|
+
* and the two word lists are diffed as lines (xdiff with no context, the common tail
|
|
16
|
+
* trimmed). The added side's text is printed with the removed words before the added ones
|
|
17
|
+
* that replace them: `[-old-]{+new+}` in plain mode, the `old` and `new` colors in color
|
|
18
|
+
* mode, one `-`/`+`/` ` line per piece with `~` for each newline in porcelain mode. Context
|
|
19
|
+
* lines are printed without their sign (porcelain: with it, followed by `~`).
|
|
20
|
+
*
|
|
21
|
+
* Not reproduced: under `log --graph` git writes the graph's line prefix in word mode only
|
|
22
|
+
* where a word hunk starts on a new line or a piece's text has a newline, so porcelain lines
|
|
23
|
+
* (and some plain or color lines) go without it; `git log` prefixes every line of ours.
|
|
24
|
+
*
|
|
25
|
+
* @module
|
|
26
|
+
*/
|
|
27
|
+
import { type ByteSink, type PosixRegex } from "@statewalker/vcs-utils";
|
|
28
|
+
import { type ColoredHunk, type DiffColors } from "./diff-color.js";
|
|
29
|
+
/** `--word-diff=<mode>` (`--color-words` is `color`) */
|
|
30
|
+
export type WordDiffMode = "plain" | "color" | "porcelain";
|
|
31
|
+
/** The modes `--word-diff=` takes (`none` turns the word diff off) */
|
|
32
|
+
export declare const WORD_DIFF_MODES: readonly ["plain", "color", "porcelain", "none"];
|
|
33
|
+
/** What {@link writeWordDiffHunks} prints with */
|
|
34
|
+
export interface WordDiffOptions {
|
|
35
|
+
mode: WordDiffMode;
|
|
36
|
+
/** The word regex (`--word-diff-regex`, the driver's, `diff.wordRegex`); unset, non-spaces */
|
|
37
|
+
regex?: PosixRegex;
|
|
38
|
+
/** The palette of `--color`; unset, no colors */
|
|
39
|
+
colors?: DiffColors;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The word regex as `init_diff_words_data` compiles it (`REG_EXTENDED | REG_NEWLINE`).
|
|
43
|
+
*
|
|
44
|
+
* @throws GitApiError git's `fatal: invalid regular expression: <regex>` (exit 128)
|
|
45
|
+
*/
|
|
46
|
+
export declare function compileWordRegex(pattern: string | Uint8Array): PosixRegex;
|
|
47
|
+
/**
|
|
48
|
+
* The hunks of a text pair as diff.c's `fn_out_consume` prints them under `--word-diff`:
|
|
49
|
+
* each header as usual (in color, `frag` and `func`), the removed and added lines between
|
|
50
|
+
* two context lines as their word diff, context lines without their sign (porcelain mode:
|
|
51
|
+
* with it, then `~`). An incomplete last line counts as ending in a newline; git's
|
|
52
|
+
* "" is not printed.
|
|
53
|
+
*/
|
|
54
|
+
export declare function writeWordDiffHunks(sink: ByteSink, hunks: readonly ColoredHunk[], options: WordDiffOptions): void;
|
|
55
|
+
//# sourceMappingURL=diff-words.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-words.d.ts","sourceRoot":"","sources":["../../src/results/diff-words.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EACL,KAAK,QAAQ,EAEb,KAAK,UAAU,EAEhB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EAAE,KAAK,WAAW,EAAqB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEvF,wDAAwD;AACxD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,CAAC;AAE3D,sEAAsE;AACtE,eAAO,MAAM,eAAe,YAAI,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,CAAU,CAAC;AAEhF,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,YAAY,CAAC;IACnB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,iDAAiD;IACjD,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB;AA+DD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAezE;AAqND;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,OAAO,EAAE,eAAe,GACvB,IAAI,CA6BN"}
|
|
@@ -89,8 +89,19 @@ export interface FetchResult {
|
|
|
89
89
|
* and exits 1; absent when nothing failed
|
|
90
90
|
*/
|
|
91
91
|
errors?: string[];
|
|
92
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* The submodules' fetch results (`--recurse-submodules`), by submodule path; absent when
|
|
94
|
+
* no submodule was fetched
|
|
95
|
+
*/
|
|
93
96
|
submodules?: Map<string, FetchResult>;
|
|
97
|
+
/**
|
|
98
|
+
* What the submodule recursion printed on stderr after the superproject's lines, as git
|
|
99
|
+
* prints it: `Fetching submodule <path>`, each submodule's fetch output, `Errors during
|
|
100
|
+
* submodule fetch:` and the failed submodules' names
|
|
101
|
+
*/
|
|
102
|
+
submoduleOutput?: string;
|
|
103
|
+
/** A submodule's fetch failed (or one could not be accessed): git exits 1 */
|
|
104
|
+
submodulesFailed?: boolean;
|
|
94
105
|
/**
|
|
95
106
|
* The layer hashes of the commit-graph chain the fetch wrote (`fetch.writeCommitGraph`,
|
|
96
107
|
* `--write-commit-graph`), base first; absent when it wrote none
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-result.d.ts","sourceRoot":"","sources":["../../src/results/fetch-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,mCAAmC;IACnC,WAAW,EAAE,QAAQ,CAAC;IACtB,2BAA2B;IAC3B,MAAM,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gGAAgG;IAChG,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,oBAAY,eAAe;IACzB,wCAAwC;IACxC,GAAG,QAAQ;IACX,gCAAgC;IAChC,YAAY,iBAAiB;IAC7B,2CAA2C;IAC3C,MAAM,WAAW;IACjB,4CAA4C;IAC5C,SAAS,cAAc;IACvB,uDAAuD;IACvD,QAAQ,aAAa;IACrB,sCAAsC;IACtC,YAAY,iBAAiB;IAC7B,sBAAsB;IACtB,OAAO,YAAY;IACnB,6BAA6B;IAC7B,OAAO,YAAY;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,8CAA8C;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtC,+CAA+C;IAC/C,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2BAA2B;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,8CAA8C;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AE,iBAAiB,EAAE,CAAC;IACxC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2BAA2B;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACtC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,WAAW,GAAG,iBAAiB,EAAE,CAO7E"}
|
package/dist/results/index.d.ts
CHANGED
|
@@ -2,12 +2,18 @@ export * from "./blame-format.js";
|
|
|
2
2
|
export * from "./cherry-pick-result.js";
|
|
3
3
|
export * from "./clone-result.js";
|
|
4
4
|
export * from "./combined-diff.js";
|
|
5
|
+
export * from "./diff-check.js";
|
|
6
|
+
export * from "./diff-color.js";
|
|
7
|
+
export * from "./diff-dirstat.js";
|
|
5
8
|
export * from "./diff-entry.js";
|
|
6
9
|
export * from "./diff-formatter.js";
|
|
7
10
|
export * from "./diff-order.js";
|
|
8
11
|
export * from "./diff-output.js";
|
|
12
|
+
export * from "./diff-pickaxe.js";
|
|
13
|
+
export * from "./diff-words.js";
|
|
9
14
|
export * from "./fetch-result.js";
|
|
10
15
|
export * from "./init-result.js";
|
|
16
|
+
export * from "./line-range-hunks.js";
|
|
11
17
|
export * from "./merge-result.js";
|
|
12
18
|
export * from "./pull-result.js";
|
|
13
19
|
export * from "./push-result.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/results/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/results/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
package/dist/results/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ChangeType, CherryPickStatus, ContentMergeStrategy, DiffFormatter, FastForwardMode, MergeStatus, MergeStrategy, PushStatus, RebaseAction, RebaseStatus, RefUpdateStatus, RevertStatus, StashApplyStatus, StatusImpl, blobIdOf, blobSide, computeDiffstat, contentSide, createAddEntry, createCopyEntry, createDeleteEntry, createModifyEntry, createRenameEntry, diffDriverOf, diffEntryToPair, displayWidth, formatBlame, formatBlamePorcelain, formatNameOnly, formatNameStatus, formatNoIndexDiff, formatNumstat, formatPatch, formatShortstat, formatStat, formatStatusPorcelain, formatSummary, getFailedUpdates, getSuccessfulUpdates, hasUpdates, isMergeSuccessful, isPullSuccessful, isPushSuccessful, isRebaseSuccessful, noIndexPair, orderByPatterns, orderRank, parseOrderFile, pprintRename, quoteCStyleBody, quotePath, quoteTwo, statSummary, submoduleToken, utf8, writeCombinedDiff, writePairPatch };
|
|
1
|
+
import { $a as formatSummary, Aa as DEFAULT_CONFLICT_MARKER_SIZE, Ba as contentDriver, Ca as createCopyEntry, Co as parseWsErrorHighlight, Da as DEFAULT_DIRSTAT, Do as quoteCStyleBody, Ea as createRenameEntry, Eo as writeCombinedDiff, Fa as LoadedSide, Fi as MergeStrategy, Ga as driverOf, Ha as countLines, Ia as attrPathOf, Ii as isMergeSuccessful, Ja as formatNoIndexDiff, Ka as formatNameOnly, La as blobIdOf, Ma as isConflictMarkerLine, Mi as ContentMergeStrategy, Na as writePairCheck, Ni as FastForwardMode, Oa as formatDirstat, Oo as quotePath, Pa as GIT_DIFF_BIG_FILE_THRESHOLD, Pi as MergeStatus, Qa as formatStat, Ra as blobSide, Sa as createAddEntry, So as parseColorMovedWs, Ta as createModifyEntry, To as wsErrorHighlightOf, Ua as diffDriverOf, Va as contentSide, Wa as displayWidth, X as formatStatusPorcelain, Xa as formatPatch, Y as StatusImpl, Ya as formatNumstat, Z as submoduleToken, Za as formatShortstat, _ as formatBlamePorcelain, _a as orderRank, _o as WSEH_NEW, a as PushStatus, ao as writePairPatch, ba as diffEntryToPair, bo as diffColorSlotOf, c as isPullSuccessful, co as WORD_DIFF_MODES, d as hasUpdates, do as COLOR_MOVED_MODE_ERROR, eo as noIndexPair, f as CherryPickStatus, fa as StashApplyStatus, fo as COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE, g as formatBlameIncremental, ga as orderByPatterns, go as WSEH_CONTEXT, h as formatBlame, ha as DiffPickaxe, ho as MovedLineBuffer, i as isRebaseSuccessful, io as writeHeaderOnlyPatch, ja as conflictMarkerSizeOf, ka as parseDirstatParams, ko as quoteTwo, l as RefUpdateStatus, lo as compileWordRegex, m as formatAnnotate, mo as DIFF_COLOR_SLOTS, n as RebaseAction, no as statSummary, o as getFailedUpdates, oo as cutToLineRanges, p as BlameColorError, po as DEFAULT_DIFF_COLORS, qa as formatNameStatus, r as RebaseStatus, ro as utf8, s as isPushSuccessful, so as lineRangesSpan, t as RevertStatus, to as pprintRename, u as getSuccessfulUpdates, uo as writeWordDiffHunks, va as parseOrderFile, vo as WSEH_OLD, wa as createDeleteEntry, wo as writeColoredHunks, xa as ChangeType, xo as parseColorMoved, ya as DiffFormatter, yo as coloredHunkHeader, za as computeDiffstat } from "../results-BDuEgdLU.js";
|
|
2
|
+
export { BlameColorError, COLOR_MOVED_MODE_ERROR, COLOR_MOVED_WS_ALLOW_INDENTATION_CHANGE, ChangeType, CherryPickStatus, ContentMergeStrategy, DEFAULT_CONFLICT_MARKER_SIZE, DEFAULT_DIFF_COLORS, DEFAULT_DIRSTAT, DIFF_COLOR_SLOTS, DiffFormatter, DiffPickaxe, FastForwardMode, GIT_DIFF_BIG_FILE_THRESHOLD, LoadedSide, MergeStatus, MergeStrategy, MovedLineBuffer, PushStatus, RebaseAction, RebaseStatus, RefUpdateStatus, RevertStatus, StashApplyStatus, StatusImpl, WORD_DIFF_MODES, WSEH_CONTEXT, WSEH_NEW, WSEH_OLD, attrPathOf, blobIdOf, blobSide, coloredHunkHeader, compileWordRegex, computeDiffstat, conflictMarkerSizeOf, contentDriver, contentSide, countLines, createAddEntry, createCopyEntry, createDeleteEntry, createModifyEntry, createRenameEntry, cutToLineRanges, diffColorSlotOf, diffDriverOf, diffEntryToPair, displayWidth, driverOf, formatAnnotate, formatBlame, formatBlameIncremental, formatBlamePorcelain, formatDirstat, formatNameOnly, formatNameStatus, formatNoIndexDiff, formatNumstat, formatPatch, formatShortstat, formatStat, formatStatusPorcelain, formatSummary, getFailedUpdates, getSuccessfulUpdates, hasUpdates, isConflictMarkerLine, isMergeSuccessful, isPullSuccessful, isPushSuccessful, isRebaseSuccessful, lineRangesSpan, noIndexPair, orderByPatterns, orderRank, parseColorMoved, parseColorMovedWs, parseDirstatParams, parseOrderFile, parseWsErrorHighlight, pprintRename, quoteCStyleBody, quotePath, quoteTwo, statSummary, submoduleToken, utf8, writeColoredHunks, writeCombinedDiff, writeHeaderOnlyPatch, writePairCheck, writePairPatch, writeWordDiffHunks, wsErrorHighlightOf };
|
|
@@ -24,7 +24,14 @@ export interface InitResult {
|
|
|
24
24
|
warnings?: string[];
|
|
25
25
|
/** Whether this is a bare repository */
|
|
26
26
|
bare: boolean;
|
|
27
|
-
/** Path to the .git directory */
|
|
27
|
+
/** Path to the .git directory (with `--separate-git-dir`, where the repository is) */
|
|
28
28
|
gitDir: string;
|
|
29
|
+
/** Whether an existing repository was re-initialised (git's "Reinitialized existing") */
|
|
30
|
+
reinitialized?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* `core.sharedRepository` as the repository got it (git_config_perm: 0 not shared,
|
|
33
|
+
* `0o660` group, `0o664` everybody, a negated octal mode): git's "shared" in its message
|
|
34
|
+
*/
|
|
35
|
+
shared?: number;
|
|
29
36
|
}
|
|
30
37
|
//# sourceMappingURL=init-result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-result.d.ts","sourceRoot":"","sources":["../../src/results/init-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,uCAAuC;IACvC,GAAG,EAAE,GAAG,CAAC;IAET,+CAA+C;IAC/C,WAAW,EAAE,WAAW,CAAC;IAEzB,0CAA0C;IAC1C,UAAU,EAAE,OAAO,CAAC;IAEpB,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB,wCAAwC;IACxC,IAAI,EAAE,OAAO,CAAC;IAEd,
|
|
1
|
+
{"version":3,"file":"init-result.d.ts","sourceRoot":"","sources":["../../src/results/init-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,uCAAuC;IACvC,GAAG,EAAE,GAAG,CAAC;IAET,+CAA+C;IAC/C,WAAW,EAAE,WAAW,CAAC;IAEzB,0CAA0C;IAC1C,UAAU,EAAE,OAAO,CAAC;IAEpB,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB,wCAAwC;IACxC,IAAI,EAAE,OAAO,CAAC;IAEd,sFAAsF;IACtF,MAAM,EAAE,MAAM,CAAC;IAEf,yFAAyF;IACzF,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The hunks of a patch cut to line ranges of its new side, as git 2.5x's `git log -L` prints a
|
|
3
|
+
* commit's diff (diff.c's `line_range_hunk_fn`, `line_range_line_fn` and `flush_rhunk`).
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* // the diff made with at least the widest range's span as context, then cut
|
|
8
|
+
* const hunks = cutToLineRanges(result.hunks, [{ start: 5, end: 9 }]);
|
|
9
|
+
* // one hunk per range that holds a change, headed `@@ -6,4 +6,4 @@`
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* The patch is diffed with its context widened to the widest range, so the changes of one
|
|
13
|
+
* range fall into one hunk; each line is then placed by its new-side line number. Context and
|
|
14
|
+
* added lines inside a range are kept, removed lines only when the next context or added line
|
|
15
|
+
* is inside it (they have no new-side line of their own). A range's lines make one hunk,
|
|
16
|
+
* dropped when it holds no change; its header always prints both counts, with the function
|
|
17
|
+
* line of the last hunk the diff gave.
|
|
18
|
+
*
|
|
19
|
+
* @module
|
|
20
|
+
*/
|
|
21
|
+
import type { EmittedHunk } from "@statewalker/vcs-utils";
|
|
22
|
+
import type { LineRange } from "./diff-entry.js";
|
|
23
|
+
/** The widest span of `ranges`: the context a patch cut to them is diffed with (at least) */
|
|
24
|
+
export declare function lineRangesSpan(ranges: readonly LineRange[]): number;
|
|
25
|
+
/** `hunks` cut to the new-side lines of `ranges` (0-based, end exclusive, sorted) */
|
|
26
|
+
export declare function cutToLineRanges(hunks: readonly EmittedHunk[], ranges: readonly LineRange[]): EmittedHunk[];
|
|
27
|
+
//# sourceMappingURL=line-range-hunks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-range-hunks.d.ts","sourceRoot":"","sources":["../../src/results/line-range-hunks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,6FAA6F;AAC7F,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,MAAM,CAInE;AAED,qFAAqF;AACrF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,MAAM,EAAE,SAAS,SAAS,EAAE,GAC3B,WAAW,EAAE,CA0Ff"}
|
|
@@ -65,6 +65,8 @@ export declare enum MergeStrategy {
|
|
|
65
65
|
* performs three-way merge on each file.
|
|
66
66
|
*/
|
|
67
67
|
RECURSIVE = "recursive",
|
|
68
|
+
/** git's merge-ort by its own name (`-s ort`): as RECURSIVE */
|
|
69
|
+
ORT = "ort",
|
|
68
70
|
/**
|
|
69
71
|
* Always take our side.
|
|
70
72
|
*
|
|
@@ -87,7 +89,12 @@ export declare enum MergeStrategy {
|
|
|
87
89
|
* Similar to recursive but doesn't handle criss-cross merges.
|
|
88
90
|
* Uses a single merge base.
|
|
89
91
|
*/
|
|
90
|
-
RESOLVE = "resolve"
|
|
92
|
+
RESOLVE = "resolve",
|
|
93
|
+
/**
|
|
94
|
+
* git's subtree strategy: merge-ort with the other side (and the base) shifted to match
|
|
95
|
+
* ours' tree shape (`match-trees.c`'s shift_tree); never a fast-forward.
|
|
96
|
+
*/
|
|
97
|
+
SUBTREE = "subtree"
|
|
91
98
|
}
|
|
92
99
|
/**
|
|
93
100
|
* Result of a merge operation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-result.d.ts","sourceRoot":"","sources":["../../src/results/merge-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;GAIG;AACH,oBAAY,WAAW;IACrB,gDAAgD;IAChD,YAAY,iBAAiB;IAC7B,sEAAsE;IACtE,qBAAqB,0BAA0B;IAC/C,6CAA6C;IAC7C,kBAAkB,uBAAuB;IACzC,0DAA0D;IAC1D,MAAM,WAAW;IACjB,sDAAsD;IACtD,oBAAoB,yBAAyB;IAC7C,2DAA2D;IAC3D,eAAe,oBAAoB;IACnC,mDAAmD;IACnD,WAAW,gBAAgB;IAC3B,2CAA2C;IAC3C,MAAM,WAAW;IACjB,sDAAsD;IACtD,OAAO,YAAY;CACpB;AAED;;;;GAIG;AACH,oBAAY,eAAe;IACzB,iDAAiD;IACjD,EAAE,OAAO;IACT,qDAAqD;IACrD,KAAK,UAAU;IACf,qDAAqD;IACrD,OAAO,YAAY;CACpB;AAED;;;;;GAKG;AACH,oBAAY,oBAAoB;IAC9B,qCAAqC;IACrC,IAAI,SAAS;IACb,uCAAuC;IACvC,MAAM,WAAW;IACjB,uCAAuC;IACvC,KAAK,UAAU;CAChB;AAED;;;;GAIG;AACH,oBAAY,aAAa;IACvB;;;;;OAKG;IACH,SAAS,cAAc;IAEvB;;;;;;OAMG;IACH,IAAI,SAAS;IAEb;;;;;;OAMG;IACH,MAAM,WAAW;IAEjB;;;;;OAKG;IACH,OAAO,YAAY;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,oCAAoC;IACpC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,kDAAkD;IAClD,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAC5B,0CAA0C;IAC1C,QAAQ,CAAC,SAAS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's refusal, `UNCOMMITTED_CHANGES`)
|
|
13
13
|
*/
|
|
14
14
|
fetchResult?: FetchResult;
|
|
15
|
+
/** Every remote's fetch of a `--all` pull over several remotes (`fetchResult` is the last) */
|
|
16
|
+
fetchResults?: FetchResult[];
|
|
15
17
|
/** Result of the merge phase (if applicable; also the fast-forward of a rebasing pull) */
|
|
16
18
|
mergeResult?: MergeResult;
|
|
17
19
|
/**
|
|
@@ -21,6 +23,15 @@ export interface PullResult {
|
|
|
21
23
|
rebaseResult?: RebaseResult;
|
|
22
24
|
/** Whether rebase was used instead of merge */
|
|
23
25
|
rebaseUsed: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* `--recurse-submodules` / `submodule.recurse`: what the submodules' `git submodule update
|
|
28
|
+
* --recursive --checkout|--rebase` printed and its exit status (the pull's, when it failed)
|
|
29
|
+
*/
|
|
30
|
+
submodules?: {
|
|
31
|
+
stdout: string;
|
|
32
|
+
stderr: string;
|
|
33
|
+
exitCode: number;
|
|
34
|
+
};
|
|
24
35
|
/** Whether pull was successful */
|
|
25
36
|
successful: boolean;
|
|
26
37
|
/** Fetch-from remote */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pull-result.d.ts","sourceRoot":"","sources":["../../src/results/pull-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,0FAA0F;IAC1F,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,+CAA+C;IAC/C,UAAU,EAAE,OAAO,CAAC;IACpB,kCAAkC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAE5D"}
|
|
1
|
+
{"version":3,"file":"pull-result.d.ts","sourceRoot":"","sources":["../../src/results/pull-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,8FAA8F;IAC9F,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,0FAA0F;IAC1F,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,+CAA+C;IAC/C,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAClE,kCAAkC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAE5D"}
|
|
@@ -107,6 +107,18 @@ export interface PushResult {
|
|
|
107
107
|
* '<ref>': ...`); the push itself succeeded (git exits 0)
|
|
108
108
|
*/
|
|
109
109
|
errors?: string[];
|
|
110
|
+
/**
|
|
111
|
+
* What `-u` printed on stdout (transport.c's `set_upstreams`): `branch '<b>' set up to
|
|
112
|
+
* track '<remote>/<branch>'.` per branch whose upstream was set (`... by rebasing.` under
|
|
113
|
+
* `branch.autoSetupRebase`), or in a dry run `Would set upstream of '<b>' to '<branch>' of
|
|
114
|
+
* '<remote>'`; absent when none. Under `--porcelain` git prints them before `Done`.
|
|
115
|
+
*/
|
|
116
|
+
upstreamMessages?: string[];
|
|
117
|
+
/**
|
|
118
|
+
* `--recurse-submodules`: what the submodules' pushes printed on stderr before this push's
|
|
119
|
+
* report (`Pushing submodule '<path>'`, each push's report), git's order
|
|
120
|
+
*/
|
|
121
|
+
submoduleOutput?: string;
|
|
110
122
|
/**
|
|
111
123
|
* The push failed although every ref's status says otherwise: the server's report broke
|
|
112
124
|
* git's rules (an `option` line without its `ok`; git exits 1, its porcelain output has no
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-result.d.ts","sourceRoot":"","sources":["../../src/results/push-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;;GAIG;AACH,oBAAY,UAAU;IACpB,wCAAwC;IACxC,EAAE,OAAO;IACT,6CAA6C;IAC7C,uBAAuB,4BAA4B;IACnD,gGAAgG;IAChG,uBAAuB,4BAA4B;IACnD,yCAAyC;IACzC,cAAc,mBAAmB;IACjC,mCAAmC;IACnC,MAAM,WAAW;IACjB,6CAA6C;IAC7C,aAAa,kBAAkB;IAC/B,gCAAgC;IAChC,UAAU,eAAe;IACzB,0DAA0D;IAC1D,eAAe,oBAAoB;CACpC;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,mBAAmB,CAAC,EAAE,QAAQ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AC;IACvB,yCAAyC;IACzC,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,+CAA+C;IAC/C,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,kCAAkC;IAClC,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,uBAAuB;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAI5D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,eAAe,EAAE,CAOtE"}
|
|
@@ -127,6 +127,8 @@ export interface RebaseResult {
|
|
|
127
127
|
readonly output?: string[];
|
|
128
128
|
/** Uncommitted changes that prevented rebase */
|
|
129
129
|
readonly uncommittedChanges?: string[];
|
|
130
|
+
/** What `--show-current-patch` prints on stdout (`git show REBASE_HEAD`) */
|
|
131
|
+
readonly currentPatch?: string;
|
|
130
132
|
}
|
|
131
133
|
/**
|
|
132
134
|
* Check if rebase status indicates success.
|
|
@@ -1 +1 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;IAC5C,0FAA0F;IAC1F,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,sFAAsF;IACtF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B,gDAAgD;IAChD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEvC,4EAA4E;IAC5E,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAMhE"}
|
|
@@ -44,6 +44,12 @@ export interface StashApplyResult {
|
|
|
44
44
|
readonly stashCommit?: ObjectId;
|
|
45
45
|
/** List of conflicting paths */
|
|
46
46
|
readonly conflicts?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* What the merge printed on stdout (merge-ort's `Auto-merging x`, `CONFLICT (...)` lines,
|
|
49
|
+
* or `Already up to date.`), line by line, as `git stash apply` prints them before its
|
|
50
|
+
* status.
|
|
51
|
+
*/
|
|
52
|
+
readonly messages?: string[];
|
|
47
53
|
/**
|
|
48
54
|
* What the apply printed on stderr while applying the sparse checkout's patterns, line
|
|
49
55
|
* by line; absent when there was nothing to say.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stash-result.d.ts","sourceRoot":"","sources":["../../src/results/stash-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB,0BAA0B;IAC1B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAE5B,6CAA6C;IAC7C,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC;IAE9B,wCAAwC;IACxC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC;IAE/B,4CAA4C;IAC5C,QAAQ,CAAC,eAAe,CAAC,EAAE,QAAQ,CAAC;IAEpC,w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M,CAAC;CAC5B;AAED;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,qCAAqC;IACrC,EAAE,OAAO;IAET,wCAAwC;IACxC,SAAS,cAAc;IAEvB,yBAAyB;IACzB,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,0BAA0B;IAC1B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAElC,wCAAwC;IACxC,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEhC,gCAAgC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAE7B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B"}
|
|
@@ -5,7 +5,7 @@ import type { StageStateValue } from "@statewalker/vcs-working-tree";
|
|
|
5
5
|
* worktree against the index). `" "` unchanged, `M` modified, `T` type changed, `A` added,
|
|
6
6
|
* `D` deleted, `R` renamed, `U` unmerged, `?` untracked, `!` ignored.
|
|
7
7
|
*/
|
|
8
|
-
export type StatusCode = " " | "M" | "T" | "A" | "D" | "R" | "U" | "?" | "!";
|
|
8
|
+
export type StatusCode = " " | "M" | "T" | "A" | "D" | "R" | "C" | "U" | "?" | "!";
|
|
9
9
|
/** A side of a path: its mode and object id. */
|
|
10
10
|
export interface StatusSide {
|
|
11
11
|
mode: number;
|