@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
|
@@ -36,7 +36,16 @@ export interface AddResult {
|
|
|
36
36
|
readonly patch?: PatchResult;
|
|
37
37
|
/** With {@link AddCommand.setInteractive}: what `git add -i` printed and did */
|
|
38
38
|
readonly interactive?: AddInteractiveResult;
|
|
39
|
+
/** With {@link AddCommand.setEdit}: what `git apply` printed on standard error (warnings) */
|
|
40
|
+
readonly edit?: {
|
|
41
|
+
errors: string;
|
|
42
|
+
};
|
|
39
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* The editor of `git add -e`: given the patch file's path (from the worktree top) and its
|
|
46
|
+
* text, the edited text; undefined when the editor failed.
|
|
47
|
+
*/
|
|
48
|
+
export type AddPatchEditor = (path: string, text: string) => string | undefined | Promise<string | undefined>;
|
|
40
49
|
/**
|
|
41
50
|
* Command to stage files from working tree to index.
|
|
42
51
|
*
|
|
@@ -45,6 +54,8 @@ export interface AddResult {
|
|
|
45
54
|
*/
|
|
46
55
|
export declare class AddCommand extends GitCommand<AddResult> {
|
|
47
56
|
private filepatterns;
|
|
57
|
+
/** `--pathspec-from-file` */
|
|
58
|
+
private readonly pathspecFile;
|
|
48
59
|
private update;
|
|
49
60
|
private all;
|
|
50
61
|
private force;
|
|
@@ -53,6 +64,11 @@ export declare class AddCommand extends GitCommand<AddResult> {
|
|
|
53
64
|
private dryRun;
|
|
54
65
|
private ignoreMissing;
|
|
55
66
|
private ignoreErrors;
|
|
67
|
+
private includeSparse;
|
|
68
|
+
/** The sparse directories git holds collapsed after reading a sparse index (none: full) */
|
|
69
|
+
private collapsed;
|
|
70
|
+
/** git's advice printed on standard error before anything else (2.5x's expansion hint) */
|
|
71
|
+
private hint;
|
|
56
72
|
private warnEmbeddedRepo;
|
|
57
73
|
private worktreeIterator;
|
|
58
74
|
private writeIndex;
|
|
@@ -68,6 +84,8 @@ export declare class AddCommand extends GitCommand<AddResult> {
|
|
|
68
84
|
private patch;
|
|
69
85
|
private interactive;
|
|
70
86
|
private patchSelector?;
|
|
87
|
+
private edit;
|
|
88
|
+
private editor?;
|
|
71
89
|
private patchOptions;
|
|
72
90
|
/**
|
|
73
91
|
* `git add --chmod=(+|-)x`: after adding, the index entries of the regular files the
|
|
@@ -110,6 +128,14 @@ export declare class AddCommand extends GitCommand<AddResult> {
|
|
|
110
128
|
* `AddFailedError` naming the failed paths.
|
|
111
129
|
*/
|
|
112
130
|
setIgnoreErrors(ignoreErrors: boolean): this;
|
|
131
|
+
/**
|
|
132
|
+
* `--sparse`: entries and files outside the sparse checkout (skip-worktree entries, paths
|
|
133
|
+
* outside the patterns) are updated and added as any other (git's `include_sparse`).
|
|
134
|
+
* Without it they are passed over and an element matching only such entries fails the
|
|
135
|
+
* command with git's advice. A skip-worktree entry still counts as up to date (its file is
|
|
136
|
+
* not compared), and `--refresh` advises either way, as in git.
|
|
137
|
+
*/
|
|
138
|
+
setSparse(sparse: boolean): this;
|
|
113
139
|
/**
|
|
114
140
|
* Whether adding a repository found inside the worktree warns "adding embedded git
|
|
115
141
|
* repository" (default; `git add --no-warn-embedded-repo` turns it off).
|
|
@@ -133,6 +159,22 @@ export declare class AddCommand extends GitCommand<AddResult> {
|
|
|
133
159
|
* @returns this for chaining
|
|
134
160
|
*/
|
|
135
161
|
addFilepattern(filepattern: string): this;
|
|
162
|
+
/**
|
|
163
|
+
* `--pathspec-from-file` (and `--pathspec-file-nul` with `nul`): the pathspec elements of
|
|
164
|
+
* `content`, one per line (a line starting with `"` unquoted as a C string), or separated
|
|
165
|
+
* by NUL with `nul`. As git's `cmd_add`: refused beside {@link addFilepattern} patterns
|
|
166
|
+
* ("'--pathspec-from-file' and pathspec arguments cannot be used together") and with
|
|
167
|
+
* {@link setPatch} or {@link setInteractive}; an empty file adds nothing ("Nothing
|
|
168
|
+
* specified, nothing added.", exit status 0).
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```typescript
|
|
172
|
+
* await git.add().setPathspecFromFile("src/a.ts\nsrc/b.ts\n").call();
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
175
|
+
* @throws InvalidArgumentError "fatal: line is badly quoted: <line>"
|
|
176
|
+
*/
|
|
177
|
+
setPathspecFromFile(content: string | Uint8Array, nul?: boolean): this;
|
|
136
178
|
/**
|
|
137
179
|
* Set whether to only match against already tracked files.
|
|
138
180
|
*
|
|
@@ -281,6 +323,27 @@ export declare class AddCommand extends GitCommand<AddResult> {
|
|
|
281
323
|
* ```
|
|
282
324
|
*/
|
|
283
325
|
setInteractive(interactive: boolean): this;
|
|
326
|
+
/**
|
|
327
|
+
* `git add -e` (`--edit`): builtin/add.c's `edit_patch`. The changes between the index and
|
|
328
|
+
* the worktree (`diff-files -p` with seven lines of context, limited to the pathspec) are
|
|
329
|
+
* written to `.git/ADD_EDIT.patch`, the editor ({@link setEditor}; without one the patch
|
|
330
|
+
* is taken as it is) edits them, and the result is applied to the index with
|
|
331
|
+
* `git apply --cached --recount`; the file is removed after. An editor failing ("editing
|
|
332
|
+
* patch failed"), an empty patch ("empty patch. aborted") and a patch that does not apply
|
|
333
|
+
* ("could not apply '.git/ADD_EDIT.patch'", after apply's errors) reject with a
|
|
334
|
+
* `GitApiError` of exit code 128, the file left in place as git leaves it.
|
|
335
|
+
*
|
|
336
|
+
* @example
|
|
337
|
+
* ```typescript
|
|
338
|
+
* await git.add().setEdit(true)
|
|
339
|
+
* .setEditor((_path, patch) => patch.replace(/^\+debug.*\n/gm, "")).call();
|
|
340
|
+
* ```
|
|
341
|
+
*/
|
|
342
|
+
setEdit(edit: boolean): this;
|
|
343
|
+
/** The editor of {@link setEdit} (git's `GIT_EDITOR` over `ADD_EDIT.patch`). */
|
|
344
|
+
setEditor(editor: AddPatchEditor): this;
|
|
345
|
+
/** `git add -e`: the diff edited and applied to the index (`edit_patch`). */
|
|
346
|
+
private callEdit;
|
|
284
347
|
/** Answers the prompts of {@link setPatch} (git's reads from standard input and its editor). */
|
|
285
348
|
setPatchSelector(selector: PatchSelector): this;
|
|
286
349
|
/** `-U<n>`, `--inter-hunk-context=<n>` and `--no-auto-advance` of {@link setPatch}. */
|
|
@@ -297,6 +360,9 @@ export declare class AddCommand extends GitCommand<AddResult> {
|
|
|
297
360
|
* @throws Error if working tree iterator not available
|
|
298
361
|
*/
|
|
299
362
|
call(): Promise<AddResult>;
|
|
363
|
+
/** `error` as git ends after printing its hint first (the exit status unchanged). */
|
|
364
|
+
private withHint;
|
|
365
|
+
private addFiles;
|
|
300
366
|
/**
|
|
301
367
|
* Get working tree iterator from store or explicitly set.
|
|
302
368
|
*/
|
|
@@ -327,6 +393,10 @@ export declare class AddCommand extends GitCommand<AddResult> {
|
|
|
327
393
|
* `tweak_split_index` and `tweak_untracked_cache` mark the index changed).
|
|
328
394
|
*/
|
|
329
395
|
private writeIfChanged;
|
|
396
|
+
/** Whether `path` lies in a sparse directory git holds collapsed (an entry it never sees). */
|
|
397
|
+
private underCollapsed;
|
|
398
|
+
/** Whether `path` is outside the sparse checkout and `--sparse` was not given. */
|
|
399
|
+
private excludedSparse;
|
|
330
400
|
/** Whether `path` is outside the sparse checkout's patterns (git's `!path_in_sparse_checkout`). */
|
|
331
401
|
private outsideSparse;
|
|
332
402
|
/** `--chmod` over the entries the pathspec matches (see {@link chmodIndexEntries}). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-command.d.ts","sourceRoot":"","sources":["../../src/commands/add-command.ts"],"names":[],"mappings":"AAEA,OAAO,EAUL,KAAK,QAAQ,EAId,MAAM,+BAA+B,CAAC;AASvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAInB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"add-command.d.ts","sourceRoot":"","sources":["../../src/commands/add-command.ts"],"names":[],"mappings":"AAEA,OAAO,EAUL,KAAK,QAAQ,EAId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Y;IAgB1B;;;;;OAKG;YACW,YAAY;IAiH1B;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;;;OAOG;YACW,YAAY;IAY1B,8EAA8E;YAChE,WAAW;IAoBzB;;;;;;;;;;;OAWG;YACW,aAAa;IA6G3B;;;;OAIG;YACW,qBAAqB;IAKnC;;;;OAIG;YACW,UAAU;IA4BxB;;;;;;;;;OASG;YACW,gBAAgB;CAoH/B"}
|
|
@@ -50,6 +50,13 @@ export type PatchRequest = {
|
|
|
50
50
|
/** `/` without a pattern: "search for regex? " */
|
|
51
51
|
type: "search";
|
|
52
52
|
prompt: string;
|
|
53
|
+
} | {
|
|
54
|
+
/** A line of free text: `git clean -i`'s "Input ignore patterns>> " */
|
|
55
|
+
type: "line";
|
|
56
|
+
/** The prompt as git prints it */
|
|
57
|
+
prompt: string;
|
|
58
|
+
/** What git would have printed so far */
|
|
59
|
+
output: string;
|
|
53
60
|
} | {
|
|
54
61
|
/**
|
|
55
62
|
* `git add -i`'s menus (add-interactive.c's `list_and_choose`): the main loop's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-patch.d.ts","sourceRoot":"","sources":["../../../src/commands/add-patch/add-patch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnF,kEAAkE;AAClE,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD,oFAAoF;AACpF,MAAM,MAAM,YAAY,GACpB;IACE,4FAA4F;IAC5F,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACxB,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,CAAC;IACtB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IA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AsE;IACtE,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAClC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,YAAY,CAoG7E;AAED;;;;;;;GAOG;AACH,qBAAa,YAAa,SAAQ,UAAU,CAAC,MAAM,CAAC;IAClD,OAAO,CAAC,MAAM,CAAS;IAEvB;;;OAGG;IACH,SAAS,CAAC,MAAM,UAAO,GAAG,IAAI,CAG7B;IAEK,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAE5B;IAED;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC,CAqD/D;CACF"}
|
|
@@ -37,6 +37,8 @@ export interface AmApplyOptions {
|
|
|
37
37
|
reject?: boolean;
|
|
38
38
|
/** `--ignore-whitespace` */
|
|
39
39
|
ignoreWhitespace?: boolean;
|
|
40
|
+
/** `--ignore-space-change` */
|
|
41
|
+
ignoreSpaceChange?: boolean;
|
|
40
42
|
}
|
|
41
43
|
/**
|
|
42
44
|
* `git am`.
|
|
@@ -58,8 +60,11 @@ export declare class AmCommand extends GitCommand<AmResult> {
|
|
|
58
60
|
private keep;
|
|
59
61
|
private messageId?;
|
|
60
62
|
private scissors?;
|
|
63
|
+
private quotedCr?;
|
|
61
64
|
private quiet;
|
|
62
65
|
private noVerify;
|
|
66
|
+
/** `-S[<keyid>]` / `--no-gpg-sign` (undefined: `commit.gpgSign`) */
|
|
67
|
+
private sign?;
|
|
63
68
|
private utf8;
|
|
64
69
|
private ignoreDate;
|
|
65
70
|
private committerDateIsAuthorDate;
|
|
@@ -67,6 +72,8 @@ export declare class AmCommand extends GitCommand<AmResult> {
|
|
|
67
72
|
private emptyMode;
|
|
68
73
|
private applyOptions;
|
|
69
74
|
private legacyMessages;
|
|
75
|
+
private interactive?;
|
|
76
|
+
private editor?;
|
|
70
77
|
private out;
|
|
71
78
|
private err;
|
|
72
79
|
/**
|
|
@@ -75,6 +82,17 @@ export declare class AmCommand extends GitCommand<AmResult> {
|
|
|
75
82
|
* and it must not be empty, while one without a name reads as standard input (an mbox).
|
|
76
83
|
*/
|
|
77
84
|
addMbox(mbox: Uint8Array | string, name?: string): this;
|
|
85
|
+
/**
|
|
86
|
+
* A Maildir to apply, in order (`git am <dir>`): its messages, each named by its path in
|
|
87
|
+
* the Maildir (`cur/<file>`, `new/<file>`), split as `git mailsplit` splits a Maildir
|
|
88
|
+
* (`cur/` then `new/`, numbers in names compared as numbers). `name` is the directory as
|
|
89
|
+
* git names it in messages. A Maildir given first is read as mailboxes (git's format
|
|
90
|
+
* detection takes a directory for mbox).
|
|
91
|
+
*/
|
|
92
|
+
addMaildir(messages: {
|
|
93
|
+
name: string;
|
|
94
|
+
content: Uint8Array | string;
|
|
95
|
+
}[], name: string): this;
|
|
78
96
|
/**
|
|
79
97
|
* `--patch-format=<format>`: mbox, mboxrd, stgit or hg (Mercurial); detected from the
|
|
80
98
|
* first named mailbox when not given. An StGit series (`stgit-series`) names its patch
|
|
@@ -90,6 +108,13 @@ export declare class AmCommand extends GitCommand<AmResult> {
|
|
|
90
108
|
protected clock(): number;
|
|
91
109
|
/** `--continue`/`--resolved`, `--allow-empty`, `--skip`, `--abort`, `--quit`. */
|
|
92
110
|
setResume(mode: "continue" | "resolved" | "allow-empty" | "skip" | "abort" | "quit"): this;
|
|
111
|
+
/**
|
|
112
|
+
* `--show-current-patch[=raw|diff]`: the mail of the patch that stopped (`raw`, the
|
|
113
|
+
* default) or its diff (`diff`, `rebase-apply/patch`) on stdout, as they stand in
|
|
114
|
+
* `.git/rebase-apply/`; a session of `rebase --apply` shows its original commit
|
|
115
|
+
* (`git show <original-commit>`).
|
|
116
|
+
*/
|
|
117
|
+
setShowCurrentPatch(mode?: "raw" | "diff"): this;
|
|
93
118
|
/** `-3` / `--3way` (default `am.threeWay`). */
|
|
94
119
|
setThreeWay(value: boolean): this;
|
|
95
120
|
/** `-s` / `--signoff`. */
|
|
@@ -100,10 +125,28 @@ export declare class AmCommand extends GitCommand<AmResult> {
|
|
|
100
125
|
setKeep(value: boolean | "non-patch"): this;
|
|
101
126
|
/** `-m` / `--message-id` (default `am.messageid`). */
|
|
102
127
|
setMessageId(value: boolean): this;
|
|
103
|
-
/** `-c` / `--scissors`, `--no-scissors
|
|
128
|
+
/** `-c` / `--scissors`, `--no-scissors` (default `mailinfo.scissors`). */
|
|
104
129
|
setScissors(value: boolean): this;
|
|
130
|
+
/**
|
|
131
|
+
* `--quoted-cr=<action>`: what mailinfo does with a CRLF line ending of a base64 or
|
|
132
|
+
* quoted-printable body (`warn`, the default from `mailinfo.quotedCr`, warns `quoted CRLF
|
|
133
|
+
* detected`; `strip` drops the CR; `nowarn` keeps it silently). Kept in `quoted-cr` for the
|
|
134
|
+
* whole session.
|
|
135
|
+
*/
|
|
136
|
+
setQuotedCr(action: "nowarn" | "warn" | "strip"): this;
|
|
105
137
|
/** `--no-verify`: the applypatch-msg and pre-applypatch hooks do not run. */
|
|
106
138
|
setNoVerify(value: boolean): this;
|
|
139
|
+
/**
|
|
140
|
+
* `-S` (true) / `--no-gpg-sign` (false): whether to sign the commits; undefined (the
|
|
141
|
+
* default) leaves it to `commit.gpgSign`. Each commit is signed through the host's signer
|
|
142
|
+
* (`GitHostEnvironment.signer`) as git's commit_tree signs it; when it cannot be signed the
|
|
143
|
+
* am fails as git's does (`error: gpg failed to sign the data:`, `fatal: failed to write
|
|
144
|
+
* commit object`, exit 128), the patch left applied to the index in `.git/rebase-apply`
|
|
145
|
+
* and nothing committed.
|
|
146
|
+
*/
|
|
147
|
+
setSign(sign: boolean | undefined): this;
|
|
148
|
+
/** `-S<keyid>`: sign with this key (see {@link setSign}). */
|
|
149
|
+
setSigningKey(keyId: string): this;
|
|
107
150
|
/** `-q`. */
|
|
108
151
|
setQuiet(value: boolean): this;
|
|
109
152
|
/** `-u` (default) / `-n`. */
|
|
@@ -120,6 +163,38 @@ export declare class AmCommand extends GitCommand<AmResult> {
|
|
|
120
163
|
setApplyOptions(options: AmApplyOptions): this;
|
|
121
164
|
/** git before 2.46 prints the resolve advice on stdout, not as hints. */
|
|
122
165
|
setLegacyMessages(value: boolean): this;
|
|
166
|
+
/**
|
|
167
|
+
* `git am -i` (`--interactive`): before each patch is applied (and before a resolved one
|
|
168
|
+
* is committed), builtin/am.c's `do_interactive` shows its message and asks "Apply?
|
|
169
|
+
* [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all: ". `reader` answers each such read of
|
|
170
|
+
* standard input with the line typed (only its first letter counts, either case; others
|
|
171
|
+
* ask again), or undefined at the end of input, which stops the am as git dies ("unable to
|
|
172
|
+
* read from stdin; aborting"). `y` applies, `n` skips the patch, `a` applies this one and
|
|
173
|
+
* the rest without asking, `e` hands `final-commit` to {@link setEditor} and asks again
|
|
174
|
+
* with its result, `v` prints the patch (`rebase-apply/patch`, as git's pager shows it).
|
|
175
|
+
* Give it again with `setResume("continue")` to be asked about a resolved patch (git's
|
|
176
|
+
* `am -i --resolved`, which shows the index's diff from HEAD as the patch).
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* ```typescript
|
|
180
|
+
* const answers = ["y", "n"];
|
|
181
|
+
* const { output } = await git.am().addMbox(mbox, "mbox")
|
|
182
|
+
* .setInteractive(() => answers.shift()).call();
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
setInteractive(reader: AmInteractiveReader | undefined): this;
|
|
186
|
+
/**
|
|
187
|
+
* The editor of `git am -i`'s `e`: given the path of `final-commit` and the message, the
|
|
188
|
+
* edited message (taken as it stands), or undefined when it failed (the message is kept).
|
|
189
|
+
*/
|
|
190
|
+
setEditor(editor: AmMessageEditor): this;
|
|
191
|
+
/**
|
|
192
|
+
* `do_interactive`: true when the patch is to be skipped (`n`); `a` turns the questions
|
|
193
|
+
* off for the rest of this run.
|
|
194
|
+
*/
|
|
195
|
+
private doInteractive;
|
|
196
|
+
/** `write_index_patch`: the index's diff from HEAD's tree into `patch`. */
|
|
197
|
+
private writeIndexPatch;
|
|
123
198
|
private state;
|
|
124
199
|
private say;
|
|
125
200
|
private result;
|
|
@@ -132,6 +207,8 @@ export declare class AmCommand extends GitCommand<AmResult> {
|
|
|
132
207
|
private writeText;
|
|
133
208
|
private headId;
|
|
134
209
|
private run;
|
|
210
|
+
/** git's show_patch. */
|
|
211
|
+
private showPatch;
|
|
135
212
|
private setup;
|
|
136
213
|
private applyArgs;
|
|
137
214
|
private load;
|
|
@@ -142,12 +219,23 @@ export declare class AmCommand extends GitCommand<AmResult> {
|
|
|
142
219
|
private dieUserResolve;
|
|
143
220
|
private patchIsEmpty;
|
|
144
221
|
private amRun;
|
|
222
|
+
/**
|
|
223
|
+
* `setup_mailinfo`'s config (`git_mailinfo_config`, in config order): `mailinfo.scissors`
|
|
224
|
+
* and `mailinfo.quotedCr`; a value git refuses dies as git's config callback does.
|
|
225
|
+
*/
|
|
226
|
+
private mailinfoConfig;
|
|
145
227
|
private runApply;
|
|
146
228
|
/** `fall_back_threeway`: the patch applied to the blobs it names, merged into HEAD. */
|
|
147
229
|
private fallBackThreeway;
|
|
148
230
|
/** Runs an am hook, its output (git's stderr) added to the am's in order. */
|
|
149
231
|
private runAmHook;
|
|
150
232
|
private doCommit;
|
|
233
|
+
/**
|
|
234
|
+
* Runs a signing (`run(cwd)`, the signing program in the worktree top) as do_commit's
|
|
235
|
+
* commit_tree: a signature that cannot be made adds gpg's lines and dies with `fatal:
|
|
236
|
+
* failed to write commit object` (exit 128), or as the signing itself died.
|
|
237
|
+
*/
|
|
238
|
+
private signOrDie;
|
|
151
239
|
private resolve;
|
|
152
240
|
private abort;
|
|
153
241
|
/**
|
|
@@ -161,6 +249,19 @@ export declare class AmCommand extends GitCommand<AmResult> {
|
|
|
161
249
|
private cleanIndex;
|
|
162
250
|
private sequencerContext;
|
|
163
251
|
}
|
|
252
|
+
/** A read of `git am -i`'s "Apply?" prompt (see `AmCommand.setInteractive`). */
|
|
253
|
+
export interface AmInteractiveRequest {
|
|
254
|
+
/** The prompt as git prints it */
|
|
255
|
+
prompt: string;
|
|
256
|
+
/** The commit message shown ("Commit Body is:") */
|
|
257
|
+
message: string;
|
|
258
|
+
/** What `git am` printed so far on standard output */
|
|
259
|
+
output: string;
|
|
260
|
+
}
|
|
261
|
+
/** Answers `git am -i`'s question: the line typed, or undefined at the end of input. */
|
|
262
|
+
export type AmInteractiveReader = (request: AmInteractiveRequest) => string | undefined | Promise<string | undefined>;
|
|
263
|
+
/** The editor of `git am -i`'s `e`: the edited message, or undefined when it failed. */
|
|
264
|
+
export type AmMessageEditor = (path: string, message: string) => string | undefined | Promise<string | undefined>;
|
|
164
265
|
interface Fixed {
|
|
165
266
|
text: string;
|
|
166
267
|
changed: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"am-command.d.ts","sourceRoot":"","sources":["../../../src/commands/am/am-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"am-command.d.ts","sourceRoot":"","sources":["../../../src/commands/am/am-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAWH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAuClD,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,mBAAmB,CAAC;AAI3B,8CAA8C;AAC9C,MAAM,WAAW,QAAQ;IACvB,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAYD,wEAAwE;AACxE,MAAM,WAAW,cAAc;IAC7B,cAAc;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc;IACd,KAAK,CAAC,EAAE,MAAM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d.ts","sourceRoot":"","sources":["../../../src/commands/am/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/am/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACzF,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git mailsplit` (builtin/mailsplit.c) as a library call: mailboxes (mbox, mboxrd) and
|
|
3
|
+
* Maildirs cut into one file per message, named by number (`0001`, `0002`, ... with
|
|
4
|
+
* `-d<prec>` digits, counting on from `-f<n>`), as git writes them into its `-o<directory>`.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* const r = splitMail([{ mbox: bytes, name: "series.mbox" }], { allowBare: true });
|
|
9
|
+
* for (const f of r.files) console.log(f.name, f.content.length);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
import type { FilesApi } from "@statewalker/vcs-utils/files";
|
|
13
|
+
/** Options of {@link splitMail}: git mailsplit's flags. */
|
|
14
|
+
export interface MailsplitOptions {
|
|
15
|
+
/** `-b`: a mailbox that does not start with a `From ` line is one message (else corrupt) */
|
|
16
|
+
allowBare?: boolean;
|
|
17
|
+
/** `--keep-cr`: lines keep their CR before LF */
|
|
18
|
+
keepCr?: boolean;
|
|
19
|
+
/** `--mboxrd`: one `>` taken from each `>From ` line */
|
|
20
|
+
mboxrd?: boolean;
|
|
21
|
+
/** `-d<prec>`: digits of the file names, 3 to 9 (default 4) */
|
|
22
|
+
precision?: number;
|
|
23
|
+
/** `-f<n>`: the number of messages already split (the first file is `n + 1`) */
|
|
24
|
+
skip?: number;
|
|
25
|
+
}
|
|
26
|
+
/** One input of {@link splitMail}. */
|
|
27
|
+
export type MailsplitSource = {
|
|
28
|
+
/** An mbox's bytes (a string is taken as UTF-8 text) */
|
|
29
|
+
mbox: Uint8Array | string;
|
|
30
|
+
/** Its path as git names it in messages; none: standard input (`-`) */
|
|
31
|
+
name?: string;
|
|
32
|
+
} | {
|
|
33
|
+
/**
|
|
34
|
+
* A Maildir's messages: each with its name below the Maildir (`cur/<file>` or
|
|
35
|
+
* `new/<file>`); other names and names starting with `.` are left out, as git reads
|
|
36
|
+
* only those two directories
|
|
37
|
+
*/
|
|
38
|
+
maildir: {
|
|
39
|
+
name: string;
|
|
40
|
+
content: Uint8Array | string;
|
|
41
|
+
}[];
|
|
42
|
+
/** The Maildir's path as git names it in messages */
|
|
43
|
+
name: string;
|
|
44
|
+
};
|
|
45
|
+
/** What `git mailsplit` wrote and printed. */
|
|
46
|
+
export interface MailsplitResult {
|
|
47
|
+
/** 0, or 1 when git fails (the files written before stay) */
|
|
48
|
+
exitCode: number;
|
|
49
|
+
/** stdout: the number of messages split, on success */
|
|
50
|
+
output: string;
|
|
51
|
+
/** stderr */
|
|
52
|
+
errors: string;
|
|
53
|
+
/** The files written, in order: their names (`0001`...) and contents */
|
|
54
|
+
files: {
|
|
55
|
+
name: string;
|
|
56
|
+
content: Uint8Array;
|
|
57
|
+
}[];
|
|
58
|
+
/** The number of messages split (the last file's number less `skip`) */
|
|
59
|
+
count: number;
|
|
60
|
+
}
|
|
61
|
+
/** `is_from_line`: an mbox "From " separator with something like a date. */
|
|
62
|
+
export declare function isMboxFromLine(line: string): boolean;
|
|
63
|
+
/** `maildir_filename_cmp`: runs of digits compared as numbers. */
|
|
64
|
+
export declare function maildirFilenameCompare(a: string, b: string): number;
|
|
65
|
+
/**
|
|
66
|
+
* git mailsplit over contents: each mbox cut at its "From " lines (leading whitespace
|
|
67
|
+
* skipped; an empty file is an error, empty standard input is not), each Maildir's messages
|
|
68
|
+
* from `cur/` then `new/` in `maildir_filename_cmp` order (one message per file: what follows
|
|
69
|
+
* a second "From " line is dropped, as git does), CRs before LF dropped unless `keepCr`.
|
|
70
|
+
*
|
|
71
|
+
* @throws RangeError for a precision git refuses (outside 3 to 9: its usage)
|
|
72
|
+
*/
|
|
73
|
+
export declare function splitMail(sources: MailsplitSource[], options?: MailsplitOptions): MailsplitResult;
|
|
74
|
+
/**
|
|
75
|
+
* `git mailsplit -o<outDir> [options] <paths>...` over a FilesApi: each path a mailbox file
|
|
76
|
+
* or a Maildir directory (none: standard input, given as `stdin`), the message files written
|
|
77
|
+
* into `outDir` as git writes them. A file that exists already is refused (git's `O_EXCL`:
|
|
78
|
+
* exit 128), a missing path fails as git's `stat` (exit 1).
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```typescript
|
|
82
|
+
* const r = await mailsplitFiles(files, ["inbox.mbox"], ".git/rebase-apply", { allowBare: true });
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
export declare function mailsplitFiles(files: FilesApi, paths: string[], outDir: string, options?: MailsplitOptions & {
|
|
86
|
+
stdin?: Uint8Array;
|
|
87
|
+
}): Promise<MailsplitResult>;
|
|
88
|
+
//# sourceMappingURL=mailsplit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailsplit.d.ts","sourceRoot":"","sources":["../../../src/commands/am/mailsplit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAK7D,2DAA2D;AAC3D,MAAM,WAAW,gBAAgB;IAC/B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,wDAAwD;IACxD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+DAA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K,CAAC,EAAE,UAAU,CAAA;CAAO,GACtD,OAAO,CAAC,eAAe,CAAC,CAoD1B"}
|
|
@@ -20,6 +20,7 @@ export interface ApplyResult {
|
|
|
20
20
|
index?: Map<string, {
|
|
21
21
|
mode: number;
|
|
22
22
|
objectId: string;
|
|
23
|
+
intentToAdd?: boolean;
|
|
23
24
|
}>;
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
@@ -139,6 +140,7 @@ export declare class ApplyCommand extends GitCommand<ApplyResult> {
|
|
|
139
140
|
setTemporaryIndex(index: Map<string, {
|
|
140
141
|
mode: number;
|
|
141
142
|
objectId: string;
|
|
143
|
+
intentToAdd?: boolean;
|
|
142
144
|
}>): this;
|
|
143
145
|
call(): Promise<ApplyResult>;
|
|
144
146
|
private run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-command.d.ts","sourceRoot":"","sources":["../../../src/commands/apply/apply-command.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"apply-command.d.ts","sourceRoot":"","sources":["../../../src/commands/apply/apply-command.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAeH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAYlD,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAA2C,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAS/F,iDAAiD;AACjD,MAAM,WAAW,WAAW;IAC1B,sEAAsE;IACtE,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,gFAAgF;IAChF,KAAK,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;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,CAAA;CAAE,GAAG,SAAS,CAOtD;AAiBD,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-engine.d.ts","sourceRoot":"","sources":["../../../src/commands/apply/apply-engine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"apply-engine.d.ts","sourceRoot":"","sources":["../../../src/commands/apply/apply-engine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAE,WAAW,EAAW,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAGL,KAAK,SAAS,EAOf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAiB,MAAM,EAAiB,MAAM,aAAa,CAAC;AAqMnE,6EAA6E;AAC7E,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,0EAA0E;AAC1E,MAAM,WAAW,OAAO;IACtB,4FAA4F;IAC5F,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;IAC3D;;;;OAIG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzF;;;OAGG;IACH,aAAa,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9C,2EAA2E;IAC3E,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACtD,2EAA2E;IAC3E,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,GAAG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O,CAAC,aAAa;IAQrB,sFAAsF;YACxE,eAAe;YA+Bf,YAAY;YA2BZ,WAAW;YAgCX,WAAW;YA0EX,SAAS;YAmBT,aAAa;IA6D3B,0EAA0E;YAC5D,aAAa;IAkB3B,OAAO,CAAC,qBAAqB;YAQf,mBAAmB;IAmBjC,OAAO,CAAC,eAAe;YAaT,UAAU;IAsCxB,OAAO,CAAC,YAAY;YAQN,cAAc;IAe5B,OAAO,CAAC,SAAS;IA6BjB,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,gBAAgB;IA6CxB,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,QAAQ;YAOF,UAAU;YAUV,YAAY;YAqBZ,UAAU;YA2BV,iBAAiB;YAOjB,iBAAiB;YAwBjB,eAAe;IA0B7B,2FAA2F;IACrF,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAyDnD;IAED;;;OAGG;IACG,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,EAAE,GAAG,MAAM,CAAC,CAkBnE;IAED,qFAAqF;IACrF,wBAAwB,IAAI,IAAI,CAG/B;IAED;;;OAGG;IACG,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC,CAqCrF;CACF;AAoCD,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -57,6 +57,13 @@ export declare class ApplyParser {
|
|
|
57
57
|
private checkHeaderLine;
|
|
58
58
|
/** One extended header line; 1 ends the header, -1 fails. */
|
|
59
59
|
private gitdiffLine;
|
|
60
|
+
/**
|
|
61
|
+
* `parse_git_diff_header` for a reader of `git log -p` output (range-diff's
|
|
62
|
+
* `read_patches`): the header starting with the `diff --git` line at `at` (`len` bytes)
|
|
63
|
+
* read into `patch`, with at most `size` bytes left; its length, or a negative number when
|
|
64
|
+
* git refuses it. Names are taken whole (`p_value` 0, no root).
|
|
65
|
+
*/
|
|
66
|
+
readGitDiffHeader(buf: string, at: number, len: number, size: number, patch: FilePatch): number;
|
|
60
67
|
/** `parse_git_diff_header`: the header's length, or -128. */
|
|
61
68
|
private parseGitDiffHeader;
|
|
62
69
|
/** `find_header`: the header's offset (and `hdrsize`), -1 when none, -128 on error. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-parse.d.ts","sourceRoot":"","sources":["../../../src/commands/apply/apply-parse.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"apply-parse.d.ts","sourceRoot":"","sources":["../../../src/commands/apply/apply-parse.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,OAAO,EAIL,KAAK,SAAS,EAGd,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAmC,aAAa,EAAE,MAAM,aAAa,CAAC;AAK7E,gDAAgD;AAChD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAKxC,wEAAwE;AACxE,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAKrE;AAqOD,sFAAsF;AACtF,qBAAa,WAAW;IACtB,IAAI,SAAM;IACV,MAAM,SAAK;IACX,WAAW,UAAS;IACpB,MAAM,SAAK;IACX,cAAc,SAAa;IAC3B,qFAAqF;IACrF,cAAc,UAAS;IACvB,cAAc,UAAS;IACvB,aAAa,EAAE,aAAa,CAAU;IACtC,uBAAuB,SAAK;IAC5B,eAAe,SAAK;IACpB,SAAS,EAAE,cAAc,CAAK;IAC9B,KAAK,UAAQ;IACb,KAAK,UAAS;IACd,WAAW,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,EAA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CAAC,eAAe;IAUvB,OAAO,CAAC,aAAa;IAqFrB,OAAO,CAAC,WAAW;IAiDnB,OAAO,CAAC,gBAAgB;YAgCV,eAAe;YA+Df,WAAW;IAoBzB;;;OAGG;IACG,UAAU,CACd,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,MAAM,CAAC,GAC9C,OAAO,CAAC,MAAM,CAAC,CAqCjB;CACF;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAQzD;AAgID;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAQhE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -2,5 +2,5 @@ export * from "./apply-command.js";
|
|
|
2
2
|
export type { ApplyIndexEntry, ApplyInput, ApplyIO } from "./apply-engine.js";
|
|
3
3
|
export { ApplyEngine } from "./apply-engine.js";
|
|
4
4
|
export type { FilePatch, PatchFragment, WsErrorAction } from "./apply-types.js";
|
|
5
|
-
export { bytesToLatin1, latin1ToBytes, latin1ToPath, pathToLatin1 } from "./latin1.js";
|
|
5
|
+
export { bytesToLatin1, latin1ToBytes, latin1ToPath, latin1ToText, pathToLatin1, textToLatin1, } from "./latin1.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/apply/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/apply/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,GACb,MAAM,aAAa,CAAC"}
|
|
@@ -50,6 +50,8 @@ export interface BisectResult {
|
|
|
50
50
|
* (it starts gitk or `git log`).
|
|
51
51
|
*/
|
|
52
52
|
export declare class BisectCommand extends GitCommand<BisectResult> {
|
|
53
|
+
/** git's command reads no core settings: an unparsable `core.whitespace` does not stop it */
|
|
54
|
+
protected readsCoreConfig(): boolean;
|
|
53
55
|
protected args: string[];
|
|
54
56
|
private runHandler?;
|
|
55
57
|
private logText?;
|