@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
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The format language of git's ref-filter.c: a format's atoms parsed once, each ref's values
|
|
3
|
+
* computed when first needed (its object read only if an atom needs it), and the format
|
|
4
|
+
* expanded with `%(if)`/`%(then)`/`%(else)`, `%(align)` and the quoting styles, byte for byte
|
|
5
|
+
* as `git for-each-ref --format` prints it.
|
|
6
|
+
*
|
|
7
|
+
* Values are text as vcs-utils' `decodeGitPath` gives bytes (UTF-8, other bytes as U+DC80 +
|
|
8
|
+
* byte), so `encodeGitPath` of the output is git's bytes.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const format = new RefFormat("%(refname:short) %(objectname:short)", source);
|
|
13
|
+
* const line = await format.format(item); // "main 1a2b3c4"
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
*/
|
|
18
|
+
import type { ObjectId } from "@statewalker/vcs-core";
|
|
19
|
+
import { type ShowDateContext } from "../date-format.js";
|
|
20
|
+
import type { Mailmap } from "../mailmap.js";
|
|
21
|
+
import { type TrailerConfig } from "../trailers.js";
|
|
22
|
+
import { type AtomCmpType, type UsedAtom } from "./ref-atoms.js";
|
|
23
|
+
import { type RefQuoteStyle } from "./ref-quote.js";
|
|
24
|
+
/** The kinds of refs (ref-filter.h's `FILTER_REFS_*`). */
|
|
25
|
+
export declare const RefKind: {
|
|
26
|
+
readonly TAGS: 2;
|
|
27
|
+
readonly BRANCHES: 4;
|
|
28
|
+
readonly REMOTES: 8;
|
|
29
|
+
readonly OTHERS: 16;
|
|
30
|
+
readonly REGULAR: 30;
|
|
31
|
+
readonly DETACHED_HEAD: 32;
|
|
32
|
+
readonly PSEUDOREFS: 64;
|
|
33
|
+
readonly ROOT_REFS: 128;
|
|
34
|
+
};
|
|
35
|
+
/** A ref the filter kept (git's `struct ref_array_item`). */
|
|
36
|
+
export interface RefFilterItem {
|
|
37
|
+
/** The full name (`refs/heads/main`, `HEAD`) */
|
|
38
|
+
refname: string;
|
|
39
|
+
/** The object it names (a symbolic ref's target's) */
|
|
40
|
+
objectId: ObjectId;
|
|
41
|
+
/** What it peels to, when the ref store knows (packed-refs `^` lines) */
|
|
42
|
+
peeledId?: ObjectId;
|
|
43
|
+
/** A symbolic ref's target */
|
|
44
|
+
symref?: string;
|
|
45
|
+
/** git's REF_ISSYMREF / REF_ISPACKED */
|
|
46
|
+
flags: {
|
|
47
|
+
symref: boolean;
|
|
48
|
+
packed: boolean;
|
|
49
|
+
};
|
|
50
|
+
/** Its {@link RefKind} */
|
|
51
|
+
kind: number;
|
|
52
|
+
/** The commit it peels to, when a reachability filter asked for it */
|
|
53
|
+
commit?: ObjectId;
|
|
54
|
+
/** `%(rest)`'s text (none for for-each-ref) */
|
|
55
|
+
rest?: string;
|
|
56
|
+
/** `%(ahead-behind:...)` counts, one per such atom, for a ref that peels to a commit */
|
|
57
|
+
counts?: {
|
|
58
|
+
ahead: number;
|
|
59
|
+
behind: number;
|
|
60
|
+
}[];
|
|
61
|
+
/** `%(is-base:...)` names, one per such atom */
|
|
62
|
+
isBase?: (string | undefined)[];
|
|
63
|
+
/** The values of the format's atoms, once computed */
|
|
64
|
+
values?: AtomValue[];
|
|
65
|
+
}
|
|
66
|
+
/** A computed atom value (git's `struct atom_value`). */
|
|
67
|
+
export interface AtomValue {
|
|
68
|
+
s: string;
|
|
69
|
+
/** The value has a length of its own (`%(raw)`: NULs kept) */
|
|
70
|
+
sized?: boolean;
|
|
71
|
+
/** The number sorted on for numeric and date atoms */
|
|
72
|
+
value: number;
|
|
73
|
+
atom: UsedAtom;
|
|
74
|
+
}
|
|
75
|
+
/** An object as the format reads it. */
|
|
76
|
+
export interface RefFormatObject {
|
|
77
|
+
type: "commit" | "tree" | "blob" | "tag";
|
|
78
|
+
bytes: Uint8Array;
|
|
79
|
+
}
|
|
80
|
+
/** What the format reads of the repository; see {@link RefFormat}. */
|
|
81
|
+
export interface RefFormatSource {
|
|
82
|
+
/** The object (its replacement when a replace ref names one), undefined when missing */
|
|
83
|
+
readObject(id: ObjectId): Promise<RefFormatObject | undefined>;
|
|
84
|
+
/** `id` abbreviated as git prints it: its default length, or at least `minLength` */
|
|
85
|
+
abbreviate(id: ObjectId, minLength?: number): Promise<string>;
|
|
86
|
+
/** Whether a ref of this full name exists */
|
|
87
|
+
refExists(name: string): Promise<boolean>;
|
|
88
|
+
/** A configuration value (the last one) */
|
|
89
|
+
config(key: string): string | undefined;
|
|
90
|
+
/** The ref HEAD resolves to (`HEAD` when detached), undefined when unborn */
|
|
91
|
+
headRef(): Promise<string | undefined>;
|
|
92
|
+
/** `branch@{upstream}`'s full ref name, undefined when none */
|
|
93
|
+
upstreamOf(branch: string): Promise<string | undefined>;
|
|
94
|
+
/** `branch@{push}`'s full ref name, undefined when none */
|
|
95
|
+
pushOf(branch: string): Promise<string | undefined>;
|
|
96
|
+
/** `remote_for_branch` / `pushremote_for_branch` when configured (explicit), else "" */
|
|
97
|
+
remoteName(branch: string, push: boolean): string;
|
|
98
|
+
/** `remote_ref_for_branch`: the merge source, or the push refspec's destination */
|
|
99
|
+
remoteRef(branch: string, push: boolean): string | undefined;
|
|
100
|
+
/** The commit a ref names (tags peeled), undefined when it names none */
|
|
101
|
+
refCommit(ref: string): Promise<ObjectId | undefined>;
|
|
102
|
+
/** The commits only `ours` and only `theirs` reach */
|
|
103
|
+
aheadBehind(ours: ObjectId, theirs: ObjectId): Promise<{
|
|
104
|
+
ahead: number;
|
|
105
|
+
behind: number;
|
|
106
|
+
}>;
|
|
107
|
+
/** The worktree a branch is checked out in, undefined when none */
|
|
108
|
+
worktreePath(ref: string): Promise<string | undefined>;
|
|
109
|
+
/** The repository's mailmap */
|
|
110
|
+
mailmap(): Promise<Mailmap>;
|
|
111
|
+
/** `git describe <args> <id>`'s output, "" when it fails */
|
|
112
|
+
describe(id: ObjectId, options: NonNullable<UsedAtom["describe"]>): Promise<string>;
|
|
113
|
+
/** The trailer configuration */
|
|
114
|
+
trailerConfig(): TrailerConfig;
|
|
115
|
+
/** get_head_description: `(HEAD detached at ...)` for a detached HEAD listed as such */
|
|
116
|
+
headDescription?(): Promise<string>;
|
|
117
|
+
/** The clock and local zone dates are shown with */
|
|
118
|
+
dateContext?: ShowDateContext;
|
|
119
|
+
}
|
|
120
|
+
/** How {@link RefFormat} expands its format. */
|
|
121
|
+
export interface RefFormatOptions {
|
|
122
|
+
/** `--shell`, `--perl`, `--python`, `--tcl` */
|
|
123
|
+
quoteStyle?: RefQuoteStyle;
|
|
124
|
+
/** `--color`: `%(color:...)` atoms give their escapes */
|
|
125
|
+
useColor?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* The git version whose output to follow where versions differ (default 2.56). git 2.43's
|
|
128
|
+
* `%(*atom)` reads the object a tag names (a tag of a tag shows the inner tag), not what
|
|
129
|
+
* nested tags peel to, and its `%(trailers)` look for the trailer block in the message with
|
|
130
|
+
* its signature (a signed tag's trailers are not found), and a date atom with a format
|
|
131
|
+
* still sorts by time.
|
|
132
|
+
*/
|
|
133
|
+
compatibility?: "2.43" | "2.56";
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* refs.c's `refs_shorten_unambiguous_ref`: the shortest name a rule maps back to `ref`
|
|
137
|
+
* that no other rule (strict: any; else only the earlier ones) resolves to an existing ref.
|
|
138
|
+
*/
|
|
139
|
+
export declare function shortenRefName(ref: string, strict: boolean, exists: (name: string) => Promise<boolean>): Promise<string>;
|
|
140
|
+
/** lstrip_ref_components. */
|
|
141
|
+
export declare function lstripRef(name: string, len: number): string;
|
|
142
|
+
/** rstrip_ref_components. */
|
|
143
|
+
export declare function rstripRef(name: string, len: number): string;
|
|
144
|
+
/**
|
|
145
|
+
* The offset of a trailing signature in `text` (gpg-interface.c's `parse_signed_buffer`): the
|
|
146
|
+
* last line starting a PGP, X.509 or SSH signature block, else `text.length`.
|
|
147
|
+
*/
|
|
148
|
+
export declare function signatureStart(text: string): number;
|
|
149
|
+
/**
|
|
150
|
+
* `s` without its trailing spaces, in one backwards pass (split_ident_line's trim). Never a
|
|
151
|
+
* `/ +$/` regex: V8 retries it from every space of a long run, quadratic on the hostile
|
|
152
|
+
* author names a fetched commit may carry.
|
|
153
|
+
*/
|
|
154
|
+
export declare function trimTrailingSpaces(s: string): string;
|
|
155
|
+
/** A tag's `object`, `type` and `tag` header values. */
|
|
156
|
+
export declare function tagHeader(buf: string): {
|
|
157
|
+
object?: string;
|
|
158
|
+
type?: string;
|
|
159
|
+
tag?: string;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* A format and the sort keys of one listing, with the atoms they use (git keeps one list
|
|
163
|
+
* for both), and each ref's values.
|
|
164
|
+
*/
|
|
165
|
+
export declare class RefFormat {
|
|
166
|
+
private readonly source;
|
|
167
|
+
/** The atoms parsed, in order (git's `used_atom`) */
|
|
168
|
+
readonly atoms: UsedAtom[];
|
|
169
|
+
private readonly pieces;
|
|
170
|
+
private needColorReset;
|
|
171
|
+
private needTagged;
|
|
172
|
+
private readonly quoteStyle;
|
|
173
|
+
private readonly useColor;
|
|
174
|
+
private readonly peelNested;
|
|
175
|
+
private headTarget?;
|
|
176
|
+
private mailmapLoad?;
|
|
177
|
+
private dateModes;
|
|
178
|
+
/**
|
|
179
|
+
* `format` verified as git's verify_ref_format does (atoms parsed, `%(rest)` refused,
|
|
180
|
+
* `%(raw)` refused with `--shell`/`--python`/`--tcl`).
|
|
181
|
+
*
|
|
182
|
+
* @throws RefFilterError with git's message
|
|
183
|
+
*/
|
|
184
|
+
constructor(format: string, source: RefFormatSource, options?: RefFormatOptions);
|
|
185
|
+
/**
|
|
186
|
+
* The index of an atom (parse_ref_filter_atom): one used before with the same text, else
|
|
187
|
+
* a new one; sort keys are parsed through this too.
|
|
188
|
+
*/
|
|
189
|
+
atomIndex(text: string): number;
|
|
190
|
+
/** The sort type an atom compares by (a date atom with a format compares as text). */
|
|
191
|
+
cmpTypeOf(index: number): AtomCmpType;
|
|
192
|
+
/** Whether an atom of this kind is used (`ahead-behind`, `is-base`, ...). */
|
|
193
|
+
uses(type: UsedAtom["type"]): boolean;
|
|
194
|
+
/** The value of atom `index` for `item`, its values computed first if needed. */
|
|
195
|
+
value(item: RefFilterItem, index: number): Promise<AtomValue>;
|
|
196
|
+
/**
|
|
197
|
+
* format_ref_array_item: the format expanded for `item`.
|
|
198
|
+
*
|
|
199
|
+
* @throws RefFilterError where git dies
|
|
200
|
+
*/
|
|
201
|
+
format(item: RefFilterItem): Promise<string>;
|
|
202
|
+
/** populate_value: every atom's value for `item`. */
|
|
203
|
+
private populate;
|
|
204
|
+
/** peel_object with PEEL_OBJECT_VERIFY_TAGGED_OBJECT_TYPE: undefined for a bad tag. */
|
|
205
|
+
private peel;
|
|
206
|
+
private showRef;
|
|
207
|
+
/** fill_remote_ref_details. */
|
|
208
|
+
private remoteDetails;
|
|
209
|
+
private oidText;
|
|
210
|
+
/** grab_values (and grab_common_values) of one object, the ref's own or the peeled one. */
|
|
211
|
+
private grabValues;
|
|
212
|
+
/** grab_sub_body_contents. */
|
|
213
|
+
private grabContents;
|
|
214
|
+
/** grab_person: `who`'s name, email, date, line, and the creator atoms. */
|
|
215
|
+
private grabPerson;
|
|
216
|
+
/** grab_date: the date of an identity line as the atom's format shows it. */
|
|
217
|
+
private grabDate;
|
|
218
|
+
/** grab_signature for an unsigned commit; a signed one cannot be verified here. */
|
|
219
|
+
private grabSignature;
|
|
220
|
+
private grabDescribe;
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=ref-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref-format.d.ts","sourceRoot":"","sources":["../../../src/commands/ref-filter/ref-format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,EAAgC,KAA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K,EAAE,MAAM,GAAG,WAAW,CAEpC;IAED,6EAA6E;IAC7E,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,OAAO,CAEpC;IAED,iFAAiF;IAC3E,KAAK,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAGlE;IAED;;;;OAIG;IACG,MAAM,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CA4EjD;IAED,qDAAqD;YACvC,QAAQ;IAuHtB,uFAAuF;YACzE,IAAI;YAqBJ,OAAO;IAgBrB,+BAA+B;YACjB,aAAa;YA6Cb,OAAO;IAWrB,2FAA2F;YAC7E,UAAU;IA6DxB,8BAA8B;YAChB,YAAY;IAsD1B,2EAA2E;YAC7D,UAAU;IAgCxB,6EAA6E;IAC7E,OAAO,CAAC,QAAQ;IAkChB,mFAAmF;IACnF,OAAO,CAAC,aAAa;YAaP,YAAY;CAY3B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The base of the commands that list refs through git's ref-filter (`for-each-ref` now, the
|
|
3
|
+
* listings of `branch` and `tag` next): the repository as the filter and the format read it.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import { type ObjectId } from "@statewalker/vcs-core";
|
|
8
|
+
import { GitCommand } from "../../git-command.js";
|
|
9
|
+
import type { RefFilterSource } from "./ref-filter.js";
|
|
10
|
+
import type { RefFormatObject, RefFormatSource } from "./ref-format.js";
|
|
11
|
+
/**
|
|
12
|
+
* A command listing refs through the ref-filter module: {@link filterSource} and
|
|
13
|
+
* {@link formatSource} read this command's repository (replace refs, the commit-graph, its
|
|
14
|
+
* configuration and worktrees).
|
|
15
|
+
*/
|
|
16
|
+
export declare abstract class RefListingCommand<T> extends GitCommand<T> {
|
|
17
|
+
private objectCache;
|
|
18
|
+
private replacements?;
|
|
19
|
+
private worktreeHeads?;
|
|
20
|
+
/** An object's type and content, through replace refs (git's OBJECT_INFO_LOOKUP_REPLACE). */
|
|
21
|
+
protected readObjectForFilter(id: ObjectId): Promise<RefFormatObject | undefined>;
|
|
22
|
+
private loadObject;
|
|
23
|
+
private config;
|
|
24
|
+
/** The ref a name finally resolves to through symbolic refs (`refs_resolve_refdup`). */
|
|
25
|
+
private resolveChain;
|
|
26
|
+
private listed;
|
|
27
|
+
/**
|
|
28
|
+
* The objects of `--points-at` and the commits of `--contains`, `--no-contains`,
|
|
29
|
+
* `--merged` and `--no-merged`, resolved as parse_options' callbacks do, with their
|
|
30
|
+
* refusals (`error: malformed object name x`, `error: object ... is a tree, not a commit`).
|
|
31
|
+
*
|
|
32
|
+
* @throws RefFilterError where git's option parsing fails (129) or dies (128)
|
|
33
|
+
*/
|
|
34
|
+
protected resolveFilterArgs(args: {
|
|
35
|
+
pointsAt: readonly string[];
|
|
36
|
+
contains: readonly string[];
|
|
37
|
+
noContains: readonly string[];
|
|
38
|
+
merged: readonly string[];
|
|
39
|
+
noMerged: readonly string[];
|
|
40
|
+
}): Promise<{
|
|
41
|
+
pointsAt: ObjectId[];
|
|
42
|
+
contains: ObjectId[];
|
|
43
|
+
noContains: ObjectId[];
|
|
44
|
+
merged: ObjectId[];
|
|
45
|
+
noMerged: ObjectId[];
|
|
46
|
+
}>;
|
|
47
|
+
/** The repository as git's ref filter reads it. */
|
|
48
|
+
protected filterSource(): RefFilterSource;
|
|
49
|
+
private countAheadBehind;
|
|
50
|
+
/** The repository as git's ref format reads it. */
|
|
51
|
+
protected formatSource(): RefFormatSource;
|
|
52
|
+
/** `git describe` over this repository's tags (`%(describe)`). */
|
|
53
|
+
private describer;
|
|
54
|
+
private loadWorktreeHeads;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=ref-listing-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref-listing-command.d.ts","sourceRoot":"","sources":["../../../src/commands/ref-filter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Ae,CAyDxC;IAED,OAAO,CAAC,gBAAgB;IAmBxB,mDAAmD;IACnD,SAAS,CAAC,YAAY,IAAI,eAAe,CAqExC;IAED,kEAAkE;IAClE,OAAO,CAAC,SAAS;YAgBH,iBAAiB;CAahC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The quoting styles of `for-each-ref --shell/--perl/--python/--tcl` (quote.c's
|
|
3
|
+
* `sq_quote_buf`, `perl_quote_buf`, `python_quote_buf`, `tcl_quote_buf`).
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* quoteRefValue("it's", "shell"); // "'it'\\''s'"
|
|
8
|
+
* quoteRefValue("a\nb", "python"); // "'a\\nb'"
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @module
|
|
12
|
+
*/
|
|
13
|
+
/** How `for-each-ref` quotes each atom's value. */
|
|
14
|
+
export type RefQuoteStyle = "none" | "shell" | "perl" | "python" | "tcl";
|
|
15
|
+
/**
|
|
16
|
+
* `value` quoted in `style`. C strings end at a NUL, so every style but `perl` with a
|
|
17
|
+
* known length (`sized`, git's `perl_quote_buf_with_len` for `%(raw)`) stops there.
|
|
18
|
+
*/
|
|
19
|
+
export declare function quoteRefValue(value: string, style: RefQuoteStyle, sized?: boolean): string;
|
|
20
|
+
//# sourceMappingURL=ref-quote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref-quote.d.ts","sourceRoot":"","sources":["../../../src/commands/ref-filter/ref-quote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,mDAAmD;AACnD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEzE;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,UAAQ,GAAG,MAAM,CAgDxF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's versioncmp.c: the order `--sort=version:refname` (`v:`) and `tag.sort=version:...`
|
|
3
|
+
* give names, digits compared as numbers, with `versionsort.suffix` pre-release suffixes
|
|
4
|
+
* sorted before the release they precede.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* versionCompare("foo1.6", "foo1.10"); // < 0
|
|
9
|
+
* versionCompare("v1.0-rc1", "v1.0", ["-rc"]); // < 0: "-rc" sorts before the release
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* versioncmp.c's versioncmp: negative, zero or positive as `a` sorts before, with or after
|
|
16
|
+
* `b`. `suffixes` are `versionsort.suffix` (or the older `versionsort.prereleaseSuffix`) in
|
|
17
|
+
* configuration order.
|
|
18
|
+
*/
|
|
19
|
+
export declare function versionCompare(a: string, b: string, suffixes?: readonly string[]): number;
|
|
20
|
+
//# sourceMappingURL=version-compare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-compare.d.ts","sourceRoot":"","sources":["../../../src/commands/ref-filter/version-compare.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAyHH;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,CAsC7F"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReflogEntry } from "@statewalker/vcs-core";
|
|
2
2
|
import { GitCommand } from "../git-command.js";
|
|
3
|
+
import type { LogOutputOptions } from "./log-output.js";
|
|
3
4
|
/**
|
|
4
5
|
* Read reflog entries for a ref.
|
|
5
6
|
*
|
|
@@ -24,16 +25,126 @@ import { GitCommand } from "../git-command.js";
|
|
|
24
25
|
* for (const entry of entries) {
|
|
25
26
|
* console.log(`${entry.newId.slice(0, 7)} ${entry.comment}`);
|
|
26
27
|
* }
|
|
28
|
+
*
|
|
29
|
+
* // git reflog show -2 main: "1a2b3c4 main@{0}: commit: Second\n..."
|
|
30
|
+
* const text = await git.reflog().setRef("main").setMaxCount(2).callText();
|
|
31
|
+
*
|
|
32
|
+
* // git reflog exists refs/heads/main
|
|
33
|
+
* const exists = await git.reflog().setRef("refs/heads/main").callExists();
|
|
34
|
+
*
|
|
35
|
+
* // git reflog expire --expire=now --all; git reflog delete --rewrite main@{1}
|
|
36
|
+
* await git.reflog().setExpire("now").setAll(true).callExpire();
|
|
37
|
+
* await git.reflog().setRewrite(true).callDelete("main@{1}");
|
|
27
38
|
* ```
|
|
28
39
|
*/
|
|
29
40
|
export declare class ReflogCommand extends GitCommand<ReflogEntry[]> {
|
|
30
41
|
private ref;
|
|
42
|
+
private maxCount?;
|
|
43
|
+
private warnings;
|
|
44
|
+
private compatibility?;
|
|
45
|
+
private expire?;
|
|
46
|
+
private expireUnreachable?;
|
|
47
|
+
private all;
|
|
48
|
+
private singleWorktree;
|
|
49
|
+
private staleFix;
|
|
50
|
+
private rewrite;
|
|
51
|
+
private updateRef;
|
|
52
|
+
private dryRun;
|
|
53
|
+
private verbose;
|
|
54
|
+
/**
|
|
55
|
+
* The git version to follow: 2.43 has no `reflog write` and `reflog drop` (git reads them
|
|
56
|
+
* as a revision and dies). Default: the hooks' compatibility.
|
|
57
|
+
*/
|
|
58
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
59
|
+
/**
|
|
60
|
+
* `--expire=<time>` of `expire`: entries older go (a git expiry date: `now`/`all`,
|
|
61
|
+
* `never`/`false`, `90.days.ago`, an epoch; a number is seconds since the epoch).
|
|
62
|
+
*/
|
|
63
|
+
setExpire(time: string | number): this;
|
|
64
|
+
/** `--expire-unreachable=<time>` of `expire`: older entries the ref's tip does not reach go. */
|
|
65
|
+
setExpireUnreachable(time: string | number): this;
|
|
66
|
+
/** `--all` of `expire` and `drop`: every reflog of every worktree. */
|
|
67
|
+
setAll(all: boolean): this;
|
|
68
|
+
/** `--single-worktree` (with `--all`): the current worktree's reflogs and the shared ones. */
|
|
69
|
+
setSingleWorktree(single: boolean): this;
|
|
70
|
+
/** `--stale-fix` of `expire`: entries naming commits with missing history or trees go. */
|
|
71
|
+
setStaleFix(staleFix: boolean): this;
|
|
72
|
+
/** `--rewrite`: each kept entry's old id becomes the new id of the kept entry before it. */
|
|
73
|
+
setRewrite(rewrite: boolean): this;
|
|
74
|
+
/** `--updateref`: the ref (not a symbolic one) set to the newest kept entry's new id. */
|
|
75
|
+
setUpdateRef(updateRef: boolean): this;
|
|
76
|
+
/** `-n`/`--dry-run`: nothing written. */
|
|
77
|
+
setDryRun(dryRun: boolean): this;
|
|
78
|
+
/** `--verbose`: `keep`/`prune`/`would prune <message>` per entry in the output. */
|
|
79
|
+
setVerbose(verbose: boolean): this;
|
|
31
80
|
/**
|
|
32
81
|
* Set the ref to show reflog for.
|
|
33
82
|
*
|
|
34
83
|
* @param ref Ref name (default: "HEAD")
|
|
35
84
|
*/
|
|
36
85
|
setRef(ref: string): this;
|
|
86
|
+
/** `-<n>` / `-n <n>` of `git reflog show`: at most `n` entries. */
|
|
87
|
+
setMaxCount(maxCount: number): this;
|
|
88
|
+
/**
|
|
89
|
+
* `git reflog [show] [<ref>]`'s output: `git log -g --abbrev-commit --pretty=oneline` of
|
|
90
|
+
* the ref (`%h <ref>@{n}: <message>` per entry; the ref may carry a selector, `main@{2}`,
|
|
91
|
+
* `HEAD@{now}`). `options` are log options over those defaults (`{ pretty: "short" }`
|
|
92
|
+
* still abbreviates, `{ abbrevCommit: false }` is `--no-abbrev-commit`). Throws where git
|
|
93
|
+
* dies (a ref that names nothing: `ambiguous argument`); {@link getWarnings} holds what it
|
|
94
|
+
* warned.
|
|
95
|
+
*/
|
|
96
|
+
callText(options?: LogOutputOptions): Promise<string>;
|
|
97
|
+
/** What {@link callText} warned while reading the ref (`warning: log for ...`). */
|
|
98
|
+
getWarnings(): string[];
|
|
99
|
+
/**
|
|
100
|
+
* `git reflog exists <ref>`: whether the ref (a full name, `refs/heads/main`, or `HEAD`)
|
|
101
|
+
* has a reflog, an empty one too.
|
|
102
|
+
*/
|
|
103
|
+
callExists(): Promise<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* `git reflog expire [<refs>...]` (builtin/reflog.c, reflog.c, files_reflog_expire /
|
|
106
|
+
* reftable_be_reflog_expire): the entries of each reflog named (`main`, `HEAD`, by git's
|
|
107
|
+
* ref rules), or of every reflog with {@link setAll}, older than `--expire` (default
|
|
108
|
+
* `gc.reflogExpire`, `gc.<pattern>.reflogExpire`, 90 days; `refs/stash` never), or older
|
|
109
|
+
* than `--expire-unreachable` (`gc.reflogExpireUnreachable`, 30 days) and not reached from
|
|
110
|
+
* the ref's tip (a HEAD's: from any ref), go. Returns git's stdout (`--verbose`), its error
|
|
111
|
+
* lines and its exit status (255 when a reflog could not be found or locked); throws where
|
|
112
|
+
* git dies (an invalid time, a bad `gc.reflogExpire*` value).
|
|
113
|
+
*/
|
|
114
|
+
callExpire(...refs: string[]): Promise<ReflogUpdateResult>;
|
|
115
|
+
/**
|
|
116
|
+
* `git reflog delete <ref>@{<n>|<date>}...` (reflog_delete): the entry each selector
|
|
117
|
+
* names is removed (`@{<date>}`: the newest entry older than the date), honouring
|
|
118
|
+
* {@link setRewrite}, {@link setUpdateRef}, {@link setDryRun} and {@link setVerbose}. A
|
|
119
|
+
* selector past the end deletes nothing.
|
|
120
|
+
*/
|
|
121
|
+
callDelete(...revisions: string[]): Promise<ReflogUpdateResult>;
|
|
122
|
+
/**
|
|
123
|
+
* `git reflog drop [--all [--single-worktree] | <refs>...]` (git 2.5x): each reflog named,
|
|
124
|
+
* or every one, removed whole. Refused under 2.43 compatibility as git 2.43 refuses it.
|
|
125
|
+
*/
|
|
126
|
+
callDrop(...refs: string[]): Promise<ReflogUpdateResult>;
|
|
127
|
+
/**
|
|
128
|
+
* `git reflog write <ref> <old-oid> <new-oid> <message>` (git 2.5x): one line appended to
|
|
129
|
+
* the reflog of `ref` (a full name or a root ref; created when absent) with the committer
|
|
130
|
+
* ident, the ref left alone. Throws where git dies (an invalid name, an id that is not a
|
|
131
|
+
* full one or names a missing object); refused under 2.43 compatibility.
|
|
132
|
+
*/
|
|
133
|
+
callWrite(ref: string, oldId: string, newId: string, message: string): Promise<ReflogUpdateResult>;
|
|
134
|
+
/** git 2.43's cmd_reflog reads `write`/`drop` as a revision of `git reflog show`. */
|
|
135
|
+
private refuseBefore251;
|
|
136
|
+
/** The objects of the repository (for the existence checks of `write`). */
|
|
137
|
+
private historyObjects;
|
|
138
|
+
/**
|
|
139
|
+
* What the reflog engine works on: the common git directory and its FilesApi, the refs,
|
|
140
|
+
* the objects, and the linked worktree this command runs in (its id).
|
|
141
|
+
*/
|
|
142
|
+
private reflogRepository;
|
|
143
|
+
/**
|
|
144
|
+
* repo_dwim_log: the reflog `name` names by the ref rules, as the engine names it (a
|
|
145
|
+
* linked worktree's own refs as `worktrees/<id>/<ref>`); undefined when there is none.
|
|
146
|
+
*/
|
|
147
|
+
private dwimLog;
|
|
37
148
|
/**
|
|
38
149
|
* Execute the reflog command.
|
|
39
150
|
*
|
|
@@ -42,4 +153,13 @@ export declare class ReflogCommand extends GitCommand<ReflogEntry[]> {
|
|
|
42
153
|
*/
|
|
43
154
|
call(): Promise<ReflogEntry[]>;
|
|
44
155
|
}
|
|
156
|
+
/** What `git reflog expire`, `delete`, `drop` and `write` print and exit with. */
|
|
157
|
+
export interface ReflogUpdateResult {
|
|
158
|
+
/** git's exit status: 0, or 255 when a reflog was not found or could not be changed */
|
|
159
|
+
status: number;
|
|
160
|
+
/** git's stdout (`--verbose` lines) */
|
|
161
|
+
output: string;
|
|
162
|
+
/** git's stderr lines (`error: ...`) */
|
|
163
|
+
errors: string[];
|
|
164
|
+
}
|
|
45
165
|
//# sourceMappingURL=reflog-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflog-command.d.ts","sourceRoot":"","sources":["../../src/commands/reflog-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"reflog-command.d.ts","sourceRoot":"","sources":["../../src/commands/reflog-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAc/E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,WAAW,EAAE,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,aAAa,CAAC,CAAkB;IACxC,OAAO,CAAC,MAAM,CAAC,CAAkB;IACjC,OAAO,CAAC,iBAAiB,CAAC,CAAkB;IAC5C,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;IAExB;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAED;;;OAGG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAIrC;IAED,gGAAgG;IAChG,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAIhD;IAED,sEAAsE;IACtE,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAIz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B;IAED,qFAAqF;IACrF,OAAO,CAAC,eAAe;IASvB,2EAA2E;IAC3E,OAAO,CAAC,cAAc;IAItB;;;OAGG;YACW,gBAAgB;IAyB9B;;;OAGG;YACW,OAAO;IAYrB;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAgBnC;CACF;AAED,kFAAkF;AAClF,MAAM,WAAW,kBAAkB;IACjC,uFAAuF;IACvF,MAAM,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reflog walk of `git log -g` (reflog-walk.c): each name given (`HEAD`, `main@{2}`,
|
|
3
|
+
* `HEAD@{now}`) opens one reflog at one entry, and the walk takes, entry by entry, the newest
|
|
4
|
+
* of the logs' current entries (the first log named wins a tie), passing over entries whose
|
|
5
|
+
* new value is no commit.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const logs = await openReflogWalk(["HEAD", "main@{1}"], host);
|
|
10
|
+
* for await (const step of walkReflogs(logs, (id) => commits.load(id))) {
|
|
11
|
+
* console.log(step.reflog.ref, step.reflog.index, step.id);
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
import type { Commit, ObjectId, ReflogEntry } from "@statewalker/vcs-core";
|
|
16
|
+
import type { LogReflogEntry } from "./log-output.js";
|
|
17
|
+
/** What opening a reflog walk reads of the repository. */
|
|
18
|
+
export interface ReflogWalkHost {
|
|
19
|
+
/** A ref's reflog, oldest entry first; undefined or empty when it has none */
|
|
20
|
+
reflog(ref: string): Promise<ReflogEntry[] | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* refs_resolve_refdup: the ref a symbolic `ref` ends at, or `ref` itself; undefined when it
|
|
23
|
+
* names no ref. `reading`: only a ref that holds a value (RESOLVE_REF_READING)
|
|
24
|
+
*/
|
|
25
|
+
resolveRef(ref: string, reading: boolean): Promise<string | undefined>;
|
|
26
|
+
/** repo_interpret_branch_name over the start of a name (`@{-1}`, `@{u}`, `@`) */
|
|
27
|
+
interpretBranchPrefix(name: string): Promise<{
|
|
28
|
+
used: number;
|
|
29
|
+
value: string;
|
|
30
|
+
} | undefined>;
|
|
31
|
+
/** repo_dwim_log: the refs whose reflog a name names by the ref rules */
|
|
32
|
+
dwimLogRefs(name: string): Promise<string[]>;
|
|
33
|
+
/** refs_shorten_unambiguous_ref, for `%gd` */
|
|
34
|
+
shortenRef(ref: string): Promise<string>;
|
|
35
|
+
/** The time `@{<date>}` selectors are read against (seconds) */
|
|
36
|
+
now(): number;
|
|
37
|
+
}
|
|
38
|
+
/** One reflog of a walk, opened at one entry (reflog-walk.c's `commit_reflog`). */
|
|
39
|
+
export interface ReflogWalkLog {
|
|
40
|
+
/** The ref as the walk names it (`HEAD`, `main`, `refs/heads/main`) */
|
|
41
|
+
readonly ref: string;
|
|
42
|
+
/** Its shortened name (`%gd`) */
|
|
43
|
+
readonly shortRef: string;
|
|
44
|
+
/** The entries, oldest first */
|
|
45
|
+
readonly items: readonly ReflogEntry[];
|
|
46
|
+
/** How the name selected the first entry: `@{<n>}`, `@{<date>}` or neither */
|
|
47
|
+
readonly selector: "index" | "date" | undefined;
|
|
48
|
+
/** The entry to read next (counting from the oldest), -1 when done */
|
|
49
|
+
recno: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* add_reflog_for_walk for each name: the logs a walk reads. A name whose reflog is missing or
|
|
53
|
+
* empty, or whose `@{<date>}` lies before its first entry, opens nothing (git skips it).
|
|
54
|
+
* Throws where git dies (`no current branch`).
|
|
55
|
+
*/
|
|
56
|
+
export declare function openReflogWalk(names: readonly string[], host: ReflogWalkHost): Promise<ReflogWalkLog[]>;
|
|
57
|
+
/** One step of a reflog walk: the commit shown and the entry it is shown for */
|
|
58
|
+
export interface ReflogWalkStep {
|
|
59
|
+
id: ObjectId;
|
|
60
|
+
commit: Commit;
|
|
61
|
+
/** The entry, as the log printer shows it */
|
|
62
|
+
reflog: LogReflogEntry;
|
|
63
|
+
/** The entry's time (what `--since`/`--until` compare in a reflog walk) */
|
|
64
|
+
time: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* next_reflog_entry until every log is done: of the logs' current entries naming commits,
|
|
68
|
+
* the newest (the first log on a tie). `loadCommit` gives undefined for an id that names no
|
|
69
|
+
* commit (missing, or another type), which the walk passes over.
|
|
70
|
+
*/
|
|
71
|
+
export declare function walkReflogs(logs: readonly ReflogWalkLog[], loadCommit: (id: ObjectId) => Promise<Commit | undefined>): AsyncGenerator<ReflogWalkStep>;
|
|
72
|
+
//# sourceMappingURL=reflog-walk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reflog-walk.d.ts","sourceRoot":"","sources":["../../src/commands/reflog-walk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,8EAA8E;IAC9E,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC;IACxD;;;OAGG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACvE,iFAAiF;IACjF,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;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
+
* merge-ort in memory, conflict markers and all, so the merge can be shown as the diff from
|
|
4
|
+
* that automatic result to the recorded one, with merge-ort's conflict messages as
|
|
5
|
+
* `remerge CONFLICT` headers.
|
|
6
|
+
*
|
|
7
|
+
* git writes the re-merge's blobs and trees into a temporary object directory
|
|
8
|
+
* (`tmp_objdir`) it discards after each merge. Here they go to an in-memory overlay
|
|
9
|
+
* ({@link remergeObjectsView}) over the repository's stores: reads see the overlay first,
|
|
10
|
+
* then the repository; writes stay in the overlay, which is dropped with the view.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* const view = remergeObjectsView(history);
|
|
15
|
+
* const { treeId, pathMessages } = await new RemergeTreeCommand(workingCopy)
|
|
16
|
+
* .setObjectsView(view)
|
|
17
|
+
* .setParents(first, second)
|
|
18
|
+
* .call();
|
|
19
|
+
* // diff treeId against the merge's tree through the same view
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
import { type History, type ObjectId } from "@statewalker/vcs-core";
|
|
23
|
+
import { GitCommand } from "../git-command.js";
|
|
24
|
+
/**
|
|
25
|
+
* `history` with its blobs and trees read through an in-memory store first and written only
|
|
26
|
+
* to it: what is stored through the view never reaches `history`. Other stores (commits,
|
|
27
|
+
* refs, tags) are `history`'s own.
|
|
28
|
+
*/
|
|
29
|
+
export declare function remergeObjectsView(history: History): History;
|
|
30
|
+
/** What {@link RemergeTreeCommand} found. */
|
|
31
|
+
export interface RemergeResult {
|
|
32
|
+
/** merge-ort's result tree (conflicted files with their markers), in the view */
|
|
33
|
+
treeId: ObjectId;
|
|
34
|
+
/**
|
|
35
|
+
* merge-ort's conflict messages by the path they are about (no omittable hints), as
|
|
36
|
+
* `--remerge-diff` shows them: `remerge ` first, each newline followed by a space
|
|
37
|
+
*/
|
|
38
|
+
pathMessages: Map<string, string[]>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* do_remerge_diff's merge: the two parents merged as merge_incore_recursive merges them
|
|
42
|
+
* (their merge bases, a virtual one for several), sides named `<abbrev> (<subject>)`. Run it
|
|
43
|
+
* over a {@link remergeObjectsView} (`setObjectsView`): it stores the merge's blobs and trees.
|
|
44
|
+
*/
|
|
45
|
+
export declare class RemergeTreeCommand extends GitCommand<RemergeResult> {
|
|
46
|
+
private parents?;
|
|
47
|
+
private parentless?;
|
|
48
|
+
/**
|
|
49
|
+
* Commits read as having no parents in the merge-base computation (git 2.43's log freed
|
|
50
|
+
* the parents of the commits it had shown)
|
|
51
|
+
*/
|
|
52
|
+
setParentlessCommits(ids: ReadonlySet<ObjectId>): this;
|
|
53
|
+
/** The merge's first and second parent */
|
|
54
|
+
setParents(first: ObjectId, second: ObjectId): this;
|
|
55
|
+
call(): Promise<RemergeResult>;
|
|
56
|
+
/** The re-merge stores its objects only in its view */
|
|
57
|
+
protected writesNoObjects(): boolean;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=remerge-diff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remerge-diff.d.ts","sourceRoot":"","sources":["../../src/commands/remerge-diff.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,QAAQ,EAId,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAQ/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CA2E5D;AAED,6CAA6C;AAC7C,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,MAAM,EAAE,QAAQ,CAAC;IACjB;;;OAGG;IACH,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACrC;AAED;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,UAAU,CAAC,aAAa,CAAC;IAC/D,OAAO,CAAC,OAAO,CAAC,CAAuB;IACvC,OAAO,CAAC,UAAU,CAAC,CAAwB;IAE3C;;;OAGG;IACH,oBAAoB,CAAC,GAAG,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG,IAAI,CAIrD;IAED,0CAA0C;IAC1C,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,CAIlD;IAEK,IAAI,IAAI,OAAO,CAAC,aAAa,CAAC,CA0EnC;IAED,uDAAuD;IACvD,UAAmB,eAAe,IAAI,OAAO,CAE5C;CACF"}
|