@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-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,YAAY,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAUtE;YAEa,KAAK;IAInB;;;OAGG;YACW,iBAAiB;IAuF/B;;;OAGG;YACW,SAAS;IAqBvB,2EAA2E;IACrE,UAAU,CAAC,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAElE;IAED,uFAAuF;IACjF,cAAc,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAazE;IAED;;;OAGG;IACG,eAAe,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAY5D;IAED;;;OAGG;IACG,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAKxD;IAED;;;;OAIG;IACG,iBAAiB,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAS9D;CACF;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,QAAQ,EAChB,UAAU,EAAE,QAAQ,EAAE,GACrB,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAS/B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ObjectId, PersonIdent } from "@statewalker/vcs-core";
|
|
2
2
|
import { GitCommand } from "../git-command.js";
|
|
3
3
|
import { ContentMergeStrategy, FastForwardMode, type MergeResult, MergeStrategy } from "../results/merge-result.js";
|
|
4
|
+
import { type CommitEditor } from "./commit-command.js";
|
|
4
5
|
import { type CleanupMode } from "./message-cleanup.js";
|
|
5
6
|
/** What `git merge` is asked to do. */
|
|
6
7
|
export declare enum MergeOperation {
|
|
@@ -51,18 +52,56 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
51
52
|
private includes;
|
|
52
53
|
private fastForwardMode;
|
|
53
54
|
private strategy;
|
|
55
|
+
/** Whether `-s` was given (`-s recursive` names itself in git's messages) */
|
|
56
|
+
private strategyGiven;
|
|
54
57
|
private contentStrategy?;
|
|
58
|
+
/** `-X <option>`s, in order */
|
|
59
|
+
private strategyOptions;
|
|
55
60
|
private squash;
|
|
56
61
|
private commit;
|
|
57
62
|
private message?;
|
|
58
63
|
private cleanupMode?;
|
|
59
64
|
private inProcess;
|
|
60
65
|
private noVerify;
|
|
66
|
+
/** `-S[<keyid>]` / `--no-gpg-sign` (undefined: `commit.gpgSign`) */
|
|
67
|
+
private sign?;
|
|
68
|
+
/** `--[no-]verify-signatures` (undefined: `merge.verifySignatures`) */
|
|
69
|
+
private verifySignatures?;
|
|
70
|
+
/** git's stdout lines of the signatures checked (`Commit <id> has a good GPG signature`) */
|
|
71
|
+
private readonly signatureLines;
|
|
72
|
+
/**
|
|
73
|
+
* `--verify-signatures` (true) / `--no-verify-signatures` (false): every commit merged
|
|
74
|
+
* must carry a good signature of at least marginal trust (with `gpg.minTrustLevel` set,
|
|
75
|
+
* that level instead), checked through the host's verifier before anything is written
|
|
76
|
+
* (commit.c's `verify_merge_signature`); undefined (the default) leaves it to
|
|
77
|
+
* `merge.verifySignatures`. A refusal throws {@link SignatureVerificationError} with git's
|
|
78
|
+
* death; a good signature adds `Commit <id> has a good GPG signature by <signer>` to the
|
|
79
|
+
* output.
|
|
80
|
+
*/
|
|
81
|
+
setVerifySignatures(verify: boolean | undefined): this;
|
|
82
|
+
/** Whether the commits merged are checked (the option, else `merge.verifySignatures`). */
|
|
83
|
+
private verifiesSignatures;
|
|
84
|
+
/** verify_merge_signature of one commit merged, its good line kept for the output */
|
|
85
|
+
private verifyMergedCommit;
|
|
61
86
|
/**
|
|
62
87
|
* `--no-verify`: the `pre-merge-commit` and `commit-msg` hooks do not run
|
|
63
88
|
* (`prepare-commit-msg` and `post-merge` still do).
|
|
64
89
|
*/
|
|
65
90
|
setNoVerify(noVerify: boolean): this;
|
|
91
|
+
/**
|
|
92
|
+
* `-S` (true) / `--no-gpg-sign` (false): whether to sign the merge commit; undefined (the
|
|
93
|
+
* default) leaves it to `commit.gpgSign`. The merge commit is signed through the host's
|
|
94
|
+
* signer (`GitHostEnvironment.signer`) as git's commit_tree signs it; when it cannot be
|
|
95
|
+
* signed (no signer, a failing one) the merge fails as git's does (`error: gpg failed to
|
|
96
|
+
* sign the data:`, `fatal: failed to write commit object`, exit 128:
|
|
97
|
+
* {@link SigningFailedError}), left in progress as git leaves it (MERGE_HEAD, the merged
|
|
98
|
+
* index and files) and no commit made. A fast-forward or a merge stopped before its commit
|
|
99
|
+
* signs nothing. `merge --continue` commits as git runs a plain `git commit`: signed only
|
|
100
|
+
* under `commit.gpgSign`.
|
|
101
|
+
*/
|
|
102
|
+
setSign(sign: boolean | undefined): this;
|
|
103
|
+
/** `-S<keyid>`: sign with this key (see {@link setSign}). */
|
|
104
|
+
setSigningKey(keyId: string): this;
|
|
66
105
|
/**
|
|
67
106
|
* A merge another command makes in process (a rebase's `merge`), which reads no `git
|
|
68
107
|
* merge` configuration of its own (`git_merge_config`).
|
|
@@ -77,6 +116,15 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
77
116
|
private autoStash?;
|
|
78
117
|
private renormalize?;
|
|
79
118
|
private allowUnrelated;
|
|
119
|
+
/** `--log[=<n>]` / `--no-log` (undefined: `merge.log`) */
|
|
120
|
+
private log?;
|
|
121
|
+
private signoff;
|
|
122
|
+
/** `--edit` / `--no-edit` (undefined: no editor, as git without a terminal) */
|
|
123
|
+
private edit?;
|
|
124
|
+
private editor?;
|
|
125
|
+
private intoName?;
|
|
126
|
+
/** FETCH_HEAD-style lines naming the heads (a pull's), instead of merge_name's */
|
|
127
|
+
private mergeNames?;
|
|
80
128
|
/**
|
|
81
129
|
* Add a commit/branch to merge.
|
|
82
130
|
*
|
|
@@ -99,11 +147,24 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
99
147
|
* - RECURSIVE (default): git's merge-ort
|
|
100
148
|
* - OURS: Keep our tree, ignore their changes (creates merge commit)
|
|
101
149
|
* - THEIRS: Replace our tree with theirs (creates merge commit)
|
|
102
|
-
* - RESOLVE:
|
|
150
|
+
* - RESOLVE: git-merge-resolve (a trivial in-index merge, else `read-tree -m --aggressive`
|
|
151
|
+
* and git-merge-one-file)
|
|
152
|
+
* - SUBTREE: merge-ort with the other side shifted to ours' shape (never a fast-forward)
|
|
103
153
|
*
|
|
104
154
|
* @param strategy Merge strategy
|
|
105
155
|
*/
|
|
106
156
|
setStrategy(strategy: MergeStrategy): this;
|
|
157
|
+
/**
|
|
158
|
+
* git's `-X <option>`s, in order (merge-ort's parse_merge_opt): `ours`, `theirs`,
|
|
159
|
+
* `subtree[=<path>]`, `patience`, `histogram`, `diff-algorithm=<name>`,
|
|
160
|
+
* `ignore-space-change`, `ignore-all-space`, `ignore-space-at-eol`, `ignore-cr-at-eol`,
|
|
161
|
+
* `renormalize`, `no-renormalize`, `no-renames`, `find-renames[=<n>]`,
|
|
162
|
+
* `rename-threshold=<n>`. An unknown one fails the merge when merge-ort runs
|
|
163
|
+
* ({@link UnknownStrategyOptionError}, git's `unknown strategy option`).
|
|
164
|
+
*/
|
|
165
|
+
setStrategyOptions(options: readonly string[]): this;
|
|
166
|
+
/** Adds one `-X <option>` (see {@link setStrategyOptions}). */
|
|
167
|
+
addStrategyOption(option: string): this;
|
|
107
168
|
/**
|
|
108
169
|
* Set content merge strategy for handling file-level conflicts (git's `-X ours`,
|
|
109
170
|
* `-X theirs`, `merge=union`): conflicting hunks are resolved to that side instead of
|
|
@@ -183,6 +244,48 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
183
244
|
* merges against the empty tree.
|
|
184
245
|
*/
|
|
185
246
|
setAllowUnrelatedHistories(allow: boolean): this;
|
|
247
|
+
/**
|
|
248
|
+
* `--log[=<n>]`: the merge message lists the commits each head brings, at most `n` of them
|
|
249
|
+
* (true: 20), as git's fmt-merge-msg shortlog (`* <name>:` and their subjects; see
|
|
250
|
+
* {@link FmtMergeMsgCommand}); `--no-log` (false or 0) lists none. Undefined (the default)
|
|
251
|
+
* takes `merge.log` (or its old name `merge.summary`). With {@link setMessage} the list
|
|
252
|
+
* follows the message given.
|
|
253
|
+
*/
|
|
254
|
+
setLog(log: boolean | number | undefined): this;
|
|
255
|
+
/**
|
|
256
|
+
* `--signoff`: the merge commit's message gets the committer's `Signed-off-by:` trailer
|
|
257
|
+
* (git's append_signoff, before the hooks see MERGE_MSG); `--no-signoff` (false, the
|
|
258
|
+
* default) none. A merge stopped before its commit (conflicts, `--no-commit`) adds none.
|
|
259
|
+
*/
|
|
260
|
+
setSignoff(signoff: boolean): this;
|
|
261
|
+
/**
|
|
262
|
+
* `--edit` (true) / `--no-edit` (false): with `--edit` the merge commit's message goes
|
|
263
|
+
* through the editor ({@link setEditor}) as git's prepare_to_commit runs it: MERGE_MSG
|
|
264
|
+
* written with git's help comment below the message (and the sign-off), the
|
|
265
|
+
* `prepare-commit-msg` hook, the editor, `commit-msg`, then the text cleaned up as an
|
|
266
|
+
* edited message (`commit.cleanup`, else comments stripped). Without an editor set the
|
|
267
|
+
* message is taken as the editor would leave it. Default: no edit (git's without a
|
|
268
|
+
* terminal); a merge that stops before its commit runs no editor.
|
|
269
|
+
*/
|
|
270
|
+
setEdit(edit: boolean): this;
|
|
271
|
+
/**
|
|
272
|
+
* The editor `--edit` runs over MERGE_MSG: called with `"MERGE_MSG"` and the text, it
|
|
273
|
+
* returns the edited text (anything else keeps the text as it is), as
|
|
274
|
+
* `CommitCommand.setEditor`.
|
|
275
|
+
*/
|
|
276
|
+
setEditor(editor: CommitEditor): this;
|
|
277
|
+
/**
|
|
278
|
+
* `--into-name <branch>`: the default message names this branch as the one merged into
|
|
279
|
+
* (`into <branch>` left out as for HEAD's under `merge.suppressDest`).
|
|
280
|
+
*/
|
|
281
|
+
setIntoName(name: string | undefined): this;
|
|
282
|
+
/**
|
|
283
|
+
* The heads described as FETCH_HEAD describes them (`<id>\t\tbranch 'x' of <url>`), as
|
|
284
|
+
* `git pull` hands them to the merge, instead of describing the names included.
|
|
285
|
+
*
|
|
286
|
+
* @internal
|
|
287
|
+
*/
|
|
288
|
+
setMergeNames(lines: string): this;
|
|
186
289
|
/**
|
|
187
290
|
* The author of the merge commit (default: resolved as git resolves it, from
|
|
188
291
|
* `GIT_AUTHOR_*`, `author.*`, `user.*`).
|
|
@@ -207,6 +310,10 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
207
310
|
* {@link call}.
|
|
208
311
|
*/
|
|
209
312
|
callIntoVoid(mergeHead: ObjectId): Promise<MergeResult>;
|
|
313
|
+
/** The good-signature lines first in the output, as git prints them before the merge's */
|
|
314
|
+
private withSignatureLines;
|
|
315
|
+
/** A two-way switch from the empty tree to `mergeHead`, HEAD's branch created there. */
|
|
316
|
+
private intoVoid;
|
|
210
317
|
/**
|
|
211
318
|
* merge.c's `checkout_fast_forward(head, remote)`: a two-way switch of the index and worktree
|
|
212
319
|
* from `from`'s tree to `to`'s, refusing (unpack-trees' porcelain "merge" messages) where
|
|
@@ -222,6 +329,12 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
222
329
|
/** What the sparse checkout printed while the result was written (see MergeResult.warnings). */
|
|
223
330
|
private readonly sparseWarnings;
|
|
224
331
|
private run;
|
|
332
|
+
/**
|
|
333
|
+
* Runs a merge's write; when a tree holds a name the decoder refuses (`..`, `/` in a name,
|
|
334
|
+
* an empty name), answers as git: `error: invalid path '<path>'` (with merge-ort's
|
|
335
|
+
* `Merge with strategy ort failed.` when not a fast-forward), or the empty name's death.
|
|
336
|
+
*/
|
|
337
|
+
private refusingTreePaths;
|
|
225
338
|
/**
|
|
226
339
|
* git's fast-forward setting as the strategy leaves it: `ours` (NO_FAST_FORWARD) always
|
|
227
340
|
* makes a merge commit, whatever was asked.
|
|
@@ -245,6 +358,14 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
245
358
|
* Perform a three-way merge (git's merge-ort).
|
|
246
359
|
*/
|
|
247
360
|
private doMerge;
|
|
361
|
+
/**
|
|
362
|
+
* `-s resolve` of one head (builtin/merge.c with git-merge-resolve): with one merge base and
|
|
363
|
+
* a commit to make, first git's "really trivial in-index merge" (`read-tree` with
|
|
364
|
+
* trivial_merges_only: every path taken whole from a side, committed as `In-index merge`);
|
|
365
|
+
* otherwise, or when that is not trivial ("Nope."), git-merge-resolve's
|
|
366
|
+
* `read-tree -m --aggressive` and git-merge-one-file for the paths left.
|
|
367
|
+
*/
|
|
368
|
+
private doResolve;
|
|
248
369
|
/**
|
|
249
370
|
* A merge of several heads: git-merge-octopus (the heads merged one after the other) or,
|
|
250
371
|
* with strategy `ours`, git-merge-ours (HEAD's tree); written when it merged or left
|
|
@@ -253,8 +374,6 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
253
374
|
* (`SQUASH_MSG`, HEAD left alone).
|
|
254
375
|
*/
|
|
255
376
|
private doOctopus;
|
|
256
|
-
/** git's fmt-merge-msg title for several heads: `Merge branches 'a', 'b' and tag 'v1'`. */
|
|
257
|
-
private octopusMessage;
|
|
258
377
|
/** The heads MERGE_HEAD names (one per line: several for an octopus). */
|
|
259
378
|
private mergeHeads;
|
|
260
379
|
/** `git merge --continue`: commits the resolved merge with MERGE_MSG. */
|
|
@@ -279,11 +398,21 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
279
398
|
private resetAssumeUnchanged;
|
|
280
399
|
private context;
|
|
281
400
|
/**
|
|
282
|
-
* MERGE_MSG's text before any conflicts hint (git's `write_merge_state`):
|
|
283
|
-
*
|
|
284
|
-
* default message (already one line ended).
|
|
401
|
+
* MERGE_MSG's text before any conflicts hint (git's `write_merge_state`): merge_msg with
|
|
402
|
+
* a newline added, always (`-m "x\n"` gives `x` and a blank line).
|
|
285
403
|
*/
|
|
286
404
|
private stateMessage;
|
|
405
|
+
/**
|
|
406
|
+
* git's merge_msg (collect_parents): the message given (`-m`), followed by fmt-merge-msg's
|
|
407
|
+
* shortlog and tag messages under `--log`, or fmt-merge-msg's whole message without one;
|
|
408
|
+
* its last newline dropped (prepare_merge_message).
|
|
409
|
+
*/
|
|
410
|
+
private mergeMessage;
|
|
411
|
+
/**
|
|
412
|
+
* prepare_to_commit's `--signoff`: the committer's sign-off added to merge_msg
|
|
413
|
+
* (append_signoff with ignored_log_message_bytes).
|
|
414
|
+
*/
|
|
415
|
+
private signedOff;
|
|
287
416
|
/** git's merge exports GIT_REFLOG_ACTION before it writes a ref (see reflogActionValue). */
|
|
288
417
|
protected refTransactionHookEnv(): Record<string, string> | undefined;
|
|
289
418
|
/** `GIT_REFLOG_ACTION` as git's merge exports it (`merge <names>`, `pull` for a pull). */
|
|
@@ -300,8 +429,20 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
300
429
|
/** MERGE_HEAD, MERGE_MSG and MERGE_MODE of a merge stopped before its commit. */
|
|
301
430
|
private writeMergeState;
|
|
302
431
|
private strategyName;
|
|
432
|
+
/**
|
|
433
|
+
* prepare_to_commit's help below the message for the editor (merge_editor_comment and
|
|
434
|
+
* its scissors or no-scissors line), each line commented.
|
|
435
|
+
*/
|
|
436
|
+
private editorComment;
|
|
303
437
|
/** git's `cleanup_message` of a merge commit's message (prepare_to_commit, no editor). */
|
|
304
438
|
private cleanup;
|
|
439
|
+
/**
|
|
440
|
+
* The merge commit written, signed as `-S[<keyid>]` / `--no-gpg-sign` / `commit.gpgSign`
|
|
441
|
+
* ask (builtin/merge.c's `commit_tree` with `sign_commit`). When it cannot be signed git
|
|
442
|
+
* dies after prepare_to_commit has written the merge state (MERGE_MSG as the hooks left
|
|
443
|
+
* it): `writeState` writes it (not for an in-process merge), so the merge stays in progress
|
|
444
|
+
* for `git commit`, and the error is thrown.
|
|
445
|
+
*/
|
|
305
446
|
private storeCommit;
|
|
306
447
|
/**
|
|
307
448
|
* HEAD (its branch, when attached) moved to `id`, logged as git's merge logs it:
|
|
@@ -309,10 +450,6 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
|
|
|
309
450
|
* or with `message` as it is.
|
|
310
451
|
*/
|
|
311
452
|
private updateHead;
|
|
312
|
-
/** How git's merge message names what is merged: `branch 'x'`, `tag 'v1'`, ... */
|
|
313
|
-
private describeMergeSource;
|
|
314
|
-
/** git's default merge message: `Merge branch 'x'` (`into <branch>` off main/master). */
|
|
315
|
-
private defaultMessage;
|
|
316
453
|
/**
|
|
317
454
|
* Check if commitA is an ancestor of commitB.
|
|
318
455
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-command.d.ts","sourceRoot":"","sources":["../../src/commands/merge-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"merge-command.d.ts","sourceRoot":"","sources":["../../src/commands/merge-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AA4B3E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,KAAK,WAAW,EAEhB,aAAa,EACd,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAiB,KAAK,YAAY,EAAqB,MAAM,qBAAqB,CAAC;AAwB1F,OAAO,EACL,KAAK,WAAW,EAKjB,MAAM,sBAAsB,CAAC;AA2B9B,uCAAuC;AACvC,oBAAY,cAAc;IACxB,uDAAuD;IACvD,KAAK,UAAU;IACf,0DAA0D;IAC1D,KAAK,UAAU;IACf,qEAAqE;IACrE,QAAQ,aAAa;IACrB;;;OAGG;IACH,IAAI,SAAS;CACd;AAED,mEAAmE;AACnE,eAAO,MAAM,2BAA2B,iDAAiD,CAAC;AAE1F,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,WAAY,SAA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AgB,OAAO,CACrB,QAAQ,EAAE,oBAAoB,GAAG,SAAS,GACzC,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAWzC"}
|
|
@@ -99,6 +99,8 @@ export interface LowLevelMergeOptions {
|
|
|
99
99
|
bigFileThreshold?: number;
|
|
100
100
|
/** The diff algorithm: merge-ort's histogram, `checkout -m`'s myers */
|
|
101
101
|
algorithm?: LineMergeOptions["algorithm"];
|
|
102
|
+
/** xdiff's whitespace bits (merge-ort's `-X ignore-space-change` and the like) */
|
|
103
|
+
whitespace?: number;
|
|
102
104
|
}
|
|
103
105
|
/** What {@link lowLevelMerge} gives: `binary` is git's `LL_MERGE_BINARY_CONFLICT`. */
|
|
104
106
|
export interface LowLevelMergeResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-drivers.d.ts","sourceRoot":"","sources":["../../src/commands/merge-drivers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EAGtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAI3E,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEvE,sEAAsE;AACtE,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;AAEpE,uFAAuF;AACvF,MAAM,WAAW,gBAAgB;IAC/B,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,IAAI,EAAE,UAAU,CAAC;IACjB,kBAAkB;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,oBAAoB;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAA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C,EAAE,MAAM,CAAC;CACrB;AAED,sFAAsF;AACtF,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,IAAI,GAAG,UAAU,GAAG,QAAQ,CAAC;IACrC,OAAO,EAAE,UAAU,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,KAAK,EAAE,kBAAkB,EACzB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,mBAAmB,CAAC,CAsD9B;AAgBD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAC9B,SAAS,GAAE;IACT,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CACtB,GACL,OAAO,CAAC,eAAe,CAAC,CAiD1B"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's merge strategy options (`-X <option>`, merge-ort's `parse_merge_opt`): the side
|
|
3
|
+
* conflicting hunks are resolved to, the subtree shift, renormalization, and what tunes the
|
|
4
|
+
* diffs of the merge (algorithm, whitespace, rename detection).
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* const options = parseStrategyOptions(["ignore-space-change", "find-renames=40%"]);
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
import type { WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
11
|
+
import { GitApiError } from "../errors/git-api-error.js";
|
|
12
|
+
import type { OrtMergeOptions } from "./ort-merge.js";
|
|
13
|
+
/** What the `-X` options of a merge set (merge-ort's merge_options, as parse_merge_opt fills it). */
|
|
14
|
+
export interface MergeStrategyOptions {
|
|
15
|
+
/** `ours` / `theirs`: conflicting hunks resolved to that side (recursive_variant) */
|
|
16
|
+
favor?: "ours" | "theirs";
|
|
17
|
+
/** `subtree` (`""`: the shift detected) or `subtree=<path>` (subtree_shift) */
|
|
18
|
+
subtreeShift?: string;
|
|
19
|
+
/** `patience`, `histogram`, `diff-algorithm=<name>` (the xdl_opts algorithm bits) */
|
|
20
|
+
algorithm?: "myers" | "patience" | "histogram";
|
|
21
|
+
/** `diff-algorithm=minimal` (XDF_NEED_MINIMAL: kept until another algorithm clears it) */
|
|
22
|
+
minimal?: boolean;
|
|
23
|
+
/** `ignore-space-change`, `ignore-all-space`, `ignore-space-at-eol`, `ignore-cr-at-eol` */
|
|
24
|
+
whitespace?: number;
|
|
25
|
+
/** `renormalize` / `no-renormalize` */
|
|
26
|
+
renormalize?: boolean;
|
|
27
|
+
/** `no-renames` (false), `find-renames[=<n>]` / `rename-threshold=<n>` (true) */
|
|
28
|
+
renames?: boolean;
|
|
29
|
+
/** The rename score of `find-renames=<n>` (0..60000; 0: the default 50%) */
|
|
30
|
+
renameScore?: number;
|
|
31
|
+
}
|
|
32
|
+
/** `fatal: unknown strategy option: -X<option>` (exit 128): git merge's death. */
|
|
33
|
+
export declare class UnknownStrategyOptionError extends GitApiError {
|
|
34
|
+
readonly option: string;
|
|
35
|
+
constructor(option: string);
|
|
36
|
+
}
|
|
37
|
+
/** diff.c's parse_algorithm_value: the algorithm of a name, undefined when unknown. */
|
|
38
|
+
export declare function parseDiffAlgorithm(value: string): "myers" | "minimal" | "patience" | "histogram" | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* diff.c's parse_rename_score: `50`, `50%`, `.5`, `0.5` as a score of {@link GIT_MAX_SCORE};
|
|
41
|
+
* with the rest of the text not read (`rest`), as git checks it.
|
|
42
|
+
*/
|
|
43
|
+
export declare function parseRenameScore(text: string): {
|
|
44
|
+
score: number;
|
|
45
|
+
rest: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* merge-ort's parse_merge_opt: applies one `-X` option to `options`; false for an option git
|
|
49
|
+
* does not know (or a value it refuses), leaving `options` as it was.
|
|
50
|
+
*/
|
|
51
|
+
export declare function applyStrategyOption(options: MergeStrategyOptions, s: string): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The `-X` options of a merge, in order (the last of each kind wins); an unknown one throws
|
|
54
|
+
* {@link UnknownStrategyOptionError}, as `git merge` dies, unless `lenient` (the sequencer's
|
|
55
|
+
* do_recursive_merge, which ignores parse_merge_opt's answer).
|
|
56
|
+
*/
|
|
57
|
+
export declare function parseStrategyOptions(list: readonly string[], lenient?: boolean): MergeStrategyOptions;
|
|
58
|
+
/**
|
|
59
|
+
* What the `-X` options make of merge-ort's diff options, over a merge's own: the algorithm
|
|
60
|
+
* (the option, else `diff.algorithm` as init_ui_merge_options reads it, else histogram), the
|
|
61
|
+
* whitespace bits, rename detection and its score. The favored side, renormalization and
|
|
62
|
+
* the subtree shift are the caller's to apply.
|
|
63
|
+
*/
|
|
64
|
+
export declare function strategyOrtOptions(workingCopy: WorkingCopy | undefined, options: MergeStrategyOptions): Partial<OrtMergeOptions>;
|
|
65
|
+
/** quote.c's quote_cmdline of `-X` options as rebase saves them (`rebase-merge/strategy_opts`). */
|
|
66
|
+
export declare function quoteStrategyOptions(list: readonly string[]): string;
|
|
67
|
+
/** split_cmdline of `rebase-merge/strategy_opts`: the options it holds, quotes removed. */
|
|
68
|
+
export declare function splitStrategyOptions(text: string): string[];
|
|
69
|
+
//# sourceMappingURL=merge-strategy-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-strategy-options.d.ts","sourceRoot":"","sources":["../../src/commands/merge-strategy-options.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,qGAAqG;AACrG,MAAM,WAAW,oBAAoB;IACnC,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,+EAA+E;IAC/E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AC3F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CA4B3D"}
|
|
@@ -10,6 +10,7 @@ import type { ObjectFormat } from "@statewalker/vcs-utils/hash";
|
|
|
10
10
|
import { type CacheTree, type Checkout, type IndexEntryOptions, type Staging, type WorkingCopy, type Worktree } from "@statewalker/vcs-working-tree";
|
|
11
11
|
import type { CommandRefs, CommandTrees } from "../git-command.js";
|
|
12
12
|
import type { OrtConflict } from "./ort-merge.js";
|
|
13
|
+
import type { SubmoduleUnpack } from "./submodule-unpack.js";
|
|
13
14
|
import { type TreeRestorePlan } from "./tree-restore.js";
|
|
14
15
|
import { type CheckedEntry } from "./worktree-overwrite-checks.js";
|
|
15
16
|
/** The blobs, links and gitlinks of a tree, by path (none for no tree). */
|
|
@@ -245,6 +246,15 @@ export interface SwitchTreesOptions {
|
|
|
245
246
|
* (written, untracked files in the way refused), never as a staged deletion
|
|
246
247
|
*/
|
|
247
248
|
initialCheckout?: boolean;
|
|
249
|
+
/** `--recurse-submodules`: the active submodules checked and moved with the worktree */
|
|
250
|
+
submodules?: SubmoduleUnpack;
|
|
251
|
+
/** False (`read-tree -n`): the index is not written */
|
|
252
|
+
writeIndex?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* `read-tree -n` with `-u`: the checks an update makes (untracked files in the way, the
|
|
255
|
+
* submodules' dry runs) run, then nothing is written, neither worktree nor index
|
|
256
|
+
*/
|
|
257
|
+
checkOnly?: boolean;
|
|
248
258
|
}
|
|
249
259
|
/** git's default unpack-trees messages (`unpack_plumbing_errors`) for one refused path. */
|
|
250
260
|
export declare function plainUnpackError(kind: "wouldOverwrite" | "notUptodate" | "lostDir" | "untracked" | "untrackedRemoved", path: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-support.d.ts","sourceRoot":"","sources":["../../src/commands/merge-support.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,KAAK,E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AC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wFAAwF;IACxF,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,uDAAuD;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,gBAAgB,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,kBAAkB,EACrF,IAAI,EAAE,MAAM,GACX,MAAM,CAaR;AA+VD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,GACvE,MAAM,GAAG,SAAS,CAWpB;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,UAAmB,GAAG,MAAM,CAGpF;AAED,6EAA6E;AAC7E,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAUjD"}
|
|
@@ -45,6 +45,8 @@ export declare function completeLine(text: string): string;
|
|
|
45
45
|
* (`builtin/commit.c`), the first of `#;@!$%^&|:` that starts no line of it.
|
|
46
46
|
*/
|
|
47
47
|
export declare function commentPrefixOf(workingCopy: WorkingCopy, message?: string): string;
|
|
48
|
+
/** A cleanup mode given by name (`--cleanup=<name>`, `commit.cleanup`), as git parses it. */
|
|
49
|
+
export declare function parseCleanupMode(name: string): CleanupMode;
|
|
48
50
|
/**
|
|
49
51
|
* The cleanup of a message edited in an editor (git's `get_cleanup_mode` with `use_editor`):
|
|
50
52
|
* the mode given, else `commit.cleanup`, else `default`, which is `strip` (comments
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-cleanup.d.ts","sourceRoot":"","sources":["../../src/commands/message-cleanup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAKjE;;;;;;GAMG;AACH,oBAAY,WAAW;IACrB,kGAAkG;IAClG,OAAO,YAAY;IACnB,mDAAmD;IACnD,KAAK,UAAU;IACf,qGAAqG;IACrG,UAAU,eAAe;IACzB,qEAAqE;IACrE,QAAQ,aAAa;IACrB,oFAAoF;IACpF,QAAQ,aAAa;CACtB;AAKD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAqBvE;AAED,wFAAwF;AACxF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAQlF;
|
|
1
|
+
{"version":3,"file":"message-cleanup.d.ts","sourceRoot":"","sources":["../../src/commands/message-cleanup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAKjE;;;;;;GAMG;AACH,oBAAY,WAAW;IACrB,kGAAkG;IAClG,OAAO,YAAY;IACnB,mDAAmD;IACnD,KAAK,UAAU;IACf,qGAAqG;IACrG,UAAU,eAAe;IACzB,qEAAqE;IACrE,QAAQ,aAAa;IACrB,oFAAoF;IACpF,QAAQ,aAAa;CACtB;AAKD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAqBvE;AAED,wFAAwF;AACxF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,W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`git mv` (builtin/mv.c): move or rename files, directories and submodules in the worktree
|
|
3
|
+
* and the index together.
|
|
4
|
+
*/
|
|
1
5
|
import { GitCommand } from "../git-command.js";
|
|
2
6
|
/** One move `git mv` made (or, with `-n`, would make). */
|
|
3
7
|
export interface MvRename {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mv-command.d.ts","sourceRoot":"","sources":["../../src/commands/mv-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mv-command.d.ts","sourceRoot":"","sources":["../../src/commands/mv-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAaH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAe/C,0DAA0D;AAC1D,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,mCAAmC;AACnC,MAAM,WAAW,QAAQ;IACvB,iFAAiF;IACjF,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,8FAA8F;IAC9F,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAsDD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,SAAU,SAAQ,UAAU,CAAC,QAAQ,CAAC;IACjD,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,WAAW,CAAqB;IACxC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,aAAa,CAA2B;IAEhD,mEAAmE;IACnE,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED,kFAAkF;IAClF,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAIxC;IAED,iGAAiG;IACjG,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED,4EAA4E;IAC5E,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED,yFAAyF;IACzF,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED,6FAA6F;IAC7F,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;OAIG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAEK,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAoc9B;IAED,wCAAwC;YAC1B,YAAY;IAQ1B,sEAAsE;YACxD,UAAU;IAaxB,2EAA2E;YAC7D,eAAe;IAyB7B;;;;OAIG;YACW,oBAAoB;IA8BlC,oFAAoF;YACtE,mBAAmB;IAcjC;;;;OAIG;YACW,sBAAsB;CA2BrC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { GitCommand } from "../git-command.js";
|
|
2
|
+
/** `git name-rev`'s output. */
|
|
3
|
+
export interface NameRevResult {
|
|
4
|
+
/** git's stdout */
|
|
5
|
+
stdout: string;
|
|
6
|
+
/** git's stderr lines (`Could not get sha1 for <rev>. Skipping.`) */
|
|
7
|
+
stderr: string[];
|
|
8
|
+
/** Each revision given and its name (undefined where git prints `undefined`) */
|
|
9
|
+
names: {
|
|
10
|
+
revision: string;
|
|
11
|
+
name: string | undefined;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Find symbolic names for commits: git name-rev (builtin/name-rev.c). Every ref (or the
|
|
16
|
+
* ones `--tags`/`--refs`/`--exclude` keep) names the commits it reaches, the nearest first:
|
|
17
|
+
* `main~2`, `tags/v1.0^0`, `main^2~3`; generations of the commit-graph (else commit dates
|
|
18
|
+
* less a day) stop the walk below the oldest commit asked about.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```typescript
|
|
22
|
+
* const { stdout } = await git.nameRev().addRevisions("HEAD~2").call();
|
|
23
|
+
* // "HEAD~2 main~2\n"
|
|
24
|
+
* const { stdout } = await git.nameRev().setTags(true).setNameOnly(true).addRevisions(id).call();
|
|
25
|
+
* const { stdout } = await git.nameRev().setAnnotateStdin(text).call(); // ids annotated
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class NameRevCommand extends GitCommand<NameRevResult> {
|
|
29
|
+
private revisions;
|
|
30
|
+
private nameOnly;
|
|
31
|
+
private tags;
|
|
32
|
+
private refs;
|
|
33
|
+
private exclude;
|
|
34
|
+
private allowUndefined;
|
|
35
|
+
private always;
|
|
36
|
+
private all;
|
|
37
|
+
private annotate?;
|
|
38
|
+
private peelTag;
|
|
39
|
+
/** The revisions to name (`<commit>...`). */
|
|
40
|
+
addRevisions(...revisions: string[]): this;
|
|
41
|
+
/** `--name-only`: the names alone, without the revisions. */
|
|
42
|
+
setNameOnly(nameOnly: boolean): this;
|
|
43
|
+
/** `--tags`: only tags name commits. */
|
|
44
|
+
setTags(tags: boolean): this;
|
|
45
|
+
/** `--refs=<pattern>` (repeatable): only refs a pattern matches, whole or a subpath. */
|
|
46
|
+
addRefs(...patterns: string[]): this;
|
|
47
|
+
/** `--exclude=<pattern>` (repeatable): no refs a pattern matches. */
|
|
48
|
+
addExclude(...patterns: string[]): this;
|
|
49
|
+
/** `--[no-]undefined`: false dies on a commit no ref names (default true). */
|
|
50
|
+
setUndefined(allow: boolean): this;
|
|
51
|
+
/** `--always`: an unnamed object's abbreviated id (with `--no-undefined`). */
|
|
52
|
+
setAlways(always: boolean): this;
|
|
53
|
+
/** `--all`: every commit the refs reach. */
|
|
54
|
+
setAll(all: boolean): this;
|
|
55
|
+
/** `--annotate-stdin`: `text` with each full object id followed by its name. */
|
|
56
|
+
setAnnotateStdin(text: string | undefined): this;
|
|
57
|
+
/** `--peel-tag` (git's internal option): a tag given is named by its commit. */
|
|
58
|
+
setPeelTag(peel: boolean): this;
|
|
59
|
+
/**
|
|
60
|
+
* @throws DescribeError where git dies (`cannot describe '<id>'`, exit 128; a list with
|
|
61
|
+
* `--all` or `--annotate-stdin`, exit 129)
|
|
62
|
+
*/
|
|
63
|
+
call(): Promise<NameRevResult>;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=name-rev-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"name-rev-command.d.ts","sourceRoot":"","sources":["../../src/commands/name-rev-command.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,+BAA+B;AAC/B,MAAM,WAAW,aAAa;IAC5B,mBAAmB;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gFAAgF;IAChF,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;CACzD;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,cAAe,SAAQ,UAAU,CAAC,aAAa,CAAC;IAC3D,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,IAAI,CAAgB;IAC5B,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,OAAO,CAAS;IAExB,6CAA6C;IAC7C,YAAY,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAIzC;IAED,6DAA6D;IAC7D,WAAW,CAAC,QAA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