@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-command.d.ts","sourceRoot":"","sources":["../../src/commands/clone-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clone-command.d.ts","sourceRoot":"","sources":["../../src/commands/clone-command.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAoB,WAAW,EAAY,MAAM,+BAA+B,CAAC;AAW7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAkC,MAAM,oBAAoB,CAAC;AAsE/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,qBAAa,YAAa,SAAQ,gBAAgB,CAAC,WAAW,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,CAAS;IACrB,qFAAqF;IACrF,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,8DAA8D;IAC9D,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,UAAU,CAAY;IAC9B,mEAAmE;IACnE,OAAO,CAAC,cAAc,CAAS;IAC/B,+DAA+D;IAC/D,OAAO,CAAC,aAAa,CAAgB;IACrC,+BAA+B;IAC/B,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,4DAA4D;IAC5D,OAAO,CAAC,aAAa,CAAC,CAAU;IAChC,+BAA+B;IAC/B,OAAO,CAAC,aAAa,CAAgB;IACrC,qDAAqD;I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IAAI,OAAO,CAAC,WAAW,CAAC,CASjC;IAED;;;OAGG;IACH,qBAAqB,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,GAAG,IAAI,CAGxE;IAED,OAAO,CAAC,gBAAgB,CAAC,CAAqC;IAE9D;;;;;;;OAOG;YACW,eAAe;YA+Bf,SAAS;IA2iBvB;;;;OAIG;YACW,gBAAgB;IAwC9B;;;;;;OAMG;YACW,eAAe;IA8B7B,4FAA4F;YAC9E,mBAAmB;IAWjC;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAgCxB;;;;;;OAMG;IACH,iFAAiF;IACjF,OAAO,CAAC,kBAAkB;YAQZ,yBAAyB;IA6BvC,2FAA2F;YAC7E,yBAAyB;IAWvC;;;;;OAKG;YACW,sBAAsB;IAiBpC;;;;;;OAMG;YACW,gBAAgB;IAsC9B;;;;OAIG;YACW,cAAc;IA4B5B;;;;;;OAMG;YACW,WAAW;IA2EzB,4FAA4F;YAC9E,eAAe;IAO7B;;;;;;;;;;;;;;;OAeG;YACW,YAAY;IAyC1B,wFAAwF;YAC1E,kBAAkB;IAKhC,OAAO,CAAC,iBAAiB,CAAS;IAElC,2FAA2F;IAC3F,OAAO,CAAC,eAAe;CAGxB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Commit, type ObjectId, type PersonIdent } from "@statewalker/vcs-core";
|
|
2
2
|
import { type Worktree } from "@statewalker/vcs-working-tree";
|
|
3
3
|
import { GitCommand } from "../git-command.js";
|
|
4
|
+
import { type PatchCompatibility, type PatchOptions, type PatchResult, type PatchSelector } from "./add-patch/index.js";
|
|
4
5
|
import { CleanupMode } from "./message-cleanup.js";
|
|
5
6
|
import { type StatusTextResult, type UntrackedFilesMode } from "./status-command.js";
|
|
6
7
|
/**
|
|
@@ -60,6 +61,8 @@ export interface CommitResult extends Commit {
|
|
|
60
61
|
* ```
|
|
61
62
|
*/
|
|
62
63
|
export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
64
|
+
/** git's `error:` lines that do not stop the commit ({@link getWarnings}) */
|
|
65
|
+
private readonly stderrLines;
|
|
63
66
|
private message?;
|
|
64
67
|
private author?;
|
|
65
68
|
private committer?;
|
|
@@ -71,9 +74,13 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
71
74
|
private amend;
|
|
72
75
|
private noPostRewrite;
|
|
73
76
|
private noVerify;
|
|
77
|
+
/** `-S[<keyid>]` / `--no-gpg-sign` (undefined: `commit.gpgSign`) */
|
|
78
|
+
private sign?;
|
|
74
79
|
private allowEmpty;
|
|
75
80
|
private parents;
|
|
76
81
|
private onlyPaths;
|
|
82
|
+
/** `--pathspec-from-file` */
|
|
83
|
+
private readonly pathspecFile;
|
|
77
84
|
private all;
|
|
78
85
|
private include;
|
|
79
86
|
private includePaths;
|
|
@@ -90,6 +97,30 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
90
97
|
private nullTermination;
|
|
91
98
|
private aheadBehind?;
|
|
92
99
|
private templateFile?;
|
|
100
|
+
/** `--author=<string>` as given: `Name <email>`, or a pattern of an existing author */
|
|
101
|
+
private authorString?;
|
|
102
|
+
/** `--date=<date>`, and the clock its relative forms count from */
|
|
103
|
+
private forceDate?;
|
|
104
|
+
private signoff;
|
|
105
|
+
private trailerArgs;
|
|
106
|
+
/** `-C <commit>`: the commit whose message (and author) are reused */
|
|
107
|
+
private reuseMessage?;
|
|
108
|
+
/** The commit `-C` (or `-c`) names, read once the options are checked */
|
|
109
|
+
private reused?;
|
|
110
|
+
/** `-c <commit>` */
|
|
111
|
+
private reeditMessageFrom?;
|
|
112
|
+
/** `--fixup=[(amend|reword):]<commit>` as given */
|
|
113
|
+
private fixupSpec?;
|
|
114
|
+
/** `--squash=<commit>` */
|
|
115
|
+
private squashFrom?;
|
|
116
|
+
/** --fixup, parsed when the commit runs */
|
|
117
|
+
private fixup?;
|
|
118
|
+
/** `-p` / `--patch` */
|
|
119
|
+
private patch;
|
|
120
|
+
private patchSelector?;
|
|
121
|
+
private patchOptions;
|
|
122
|
+
private patchCompatibility;
|
|
123
|
+
private patchResult?;
|
|
93
124
|
/**
|
|
94
125
|
* Set the commit message, as git's `commit -m` takes it: its last line is ended and it is
|
|
95
126
|
* cleaned up (`whitespace` by default, see {@link setCleanupMode}), so `"Fix"` is stored
|
|
@@ -124,12 +155,49 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
124
155
|
*/
|
|
125
156
|
setAllowEmptyMessage(allow: boolean): this;
|
|
126
157
|
/**
|
|
127
|
-
* Set the author identity
|
|
158
|
+
* Set the author identity (git's `--author`): a name and an email, or one string as git's
|
|
159
|
+
* `--author=<author>` takes it. A string with a `>` is `Name <email>` (refused as
|
|
160
|
+
* `fatal: malformed --author parameter` without a `<`); any other is a pattern looked up as
|
|
161
|
+
* git's `find_author_by_nickname` does: the newest commit of `--all` whose (mailmapped)
|
|
162
|
+
* author matches it as a basic regular expression, ignoring case, gives its `Name <email>`,
|
|
163
|
+
* else `fatal: --author '<x>' is not 'Name <email>' and matches no existing author`.
|
|
128
164
|
*
|
|
129
|
-
* @
|
|
165
|
+
* @example
|
|
166
|
+
* ```typescript
|
|
167
|
+
* await git.commit().setAuthor("Ada <ada@example.com>").setMessage("m").call();
|
|
168
|
+
* await git.commit().setAuthor("ada").setMessage("m").call(); // an existing author
|
|
169
|
+
* ```
|
|
170
|
+
*
|
|
171
|
+
* @param name Author name, or the whole `--author` string when `email` is not given
|
|
130
172
|
* @param email Author email
|
|
131
173
|
*/
|
|
132
|
-
setAuthor(name: string, email
|
|
174
|
+
setAuthor(name: string, email?: string): this;
|
|
175
|
+
/**
|
|
176
|
+
* `--date=<date>`: the author's date, in any form git's `parse_date` reads (`@<seconds>
|
|
177
|
+
* <offset>`, RFC 2822, ISO 8601, ...) or else as `approxidate` reads it (`yesterday`,
|
|
178
|
+
* `2.weeks.ago`, `noon`), counting from `now` (seconds; default the command's clock, git's
|
|
179
|
+
* `GIT_TEST_DATE_NOW`). A date git cannot read fails as `fatal: invalid date format: <date>`.
|
|
180
|
+
*/
|
|
181
|
+
setDate(date: string, options?: {
|
|
182
|
+
now?: number;
|
|
183
|
+
}): this;
|
|
184
|
+
/**
|
|
185
|
+
* `-s` / `--signoff`: a `Signed-off-by: <committer>` trailer added to the message as git's
|
|
186
|
+
* `append_signoff` adds it (after a blank line unless the message ends with trailers; none
|
|
187
|
+
* when the last trailer is that line already).
|
|
188
|
+
*/
|
|
189
|
+
setSignoff(signoff: boolean): this;
|
|
190
|
+
/**
|
|
191
|
+
* `--trailer <token>[(=|:)<value>]`: a trailer added to the message as `git
|
|
192
|
+
* interpret-trailers --no-divider --trailer` adds it (`trailer.*` configuration applies).
|
|
193
|
+
* Each call adds one, in order.
|
|
194
|
+
*/
|
|
195
|
+
addTrailer(trailer: string): this;
|
|
196
|
+
/**
|
|
197
|
+
* `-C <commit>`: the commit's message taken as it is, and its author (name, email and
|
|
198
|
+
* date) unless {@link setResetAuthor}. With {@link setEdit}(true) it is `-c`.
|
|
199
|
+
*/
|
|
200
|
+
setReuseMessage(commit: string): this;
|
|
133
201
|
/**
|
|
134
202
|
* Set the author identity from a PersonIdent.
|
|
135
203
|
*
|
|
@@ -150,8 +218,8 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
150
218
|
*/
|
|
151
219
|
setCommitterIdent(committer: PersonIdent): this;
|
|
152
220
|
/**
|
|
153
|
-
* `--reset-author`: an amended commit, or the commit that concludes a
|
|
154
|
-
* authored as a new one (the author resolved as git resolves it, dated now) instead of
|
|
221
|
+
* `--reset-author`: an amended commit, a `-C` commit, or the commit that concludes a
|
|
222
|
+
* cherry-pick, is authored as a new one (the author resolved as git resolves it, dated now) instead of
|
|
155
223
|
* keeping the earlier commit's author.
|
|
156
224
|
*
|
|
157
225
|
* @param reset Whether to reset the author
|
|
@@ -167,6 +235,19 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
167
235
|
* (`prepare-commit-msg` and `post-commit` still do, as in git).
|
|
168
236
|
*/
|
|
169
237
|
setNoVerify(noVerify: boolean): this;
|
|
238
|
+
/**
|
|
239
|
+
* `-S` (true) / `--no-gpg-sign` (false): whether to sign the commit; undefined (the
|
|
240
|
+
* default) leaves it to `commit.gpgSign`. The commit is signed with the default key
|
|
241
|
+
* (`user.signingKey`, else as `gpg.format` says) through the host's signer
|
|
242
|
+
* (`GitHostEnvironment.signer`) and carries the signature in its `gpgsig` header
|
|
243
|
+
* ({@link signCommit}). Without a signer, or when it fails, the commit fails as git fails
|
|
244
|
+
* when gpg cannot sign (`error: gpg failed to sign the data:`, `fatal: failed to write
|
|
245
|
+
* commit object`, exit 128: {@link SigningFailedError}) once everything before the signing
|
|
246
|
+
* is done, and nothing is committed.
|
|
247
|
+
*/
|
|
248
|
+
setSign(sign: boolean | undefined): this;
|
|
249
|
+
/** `-S<keyid>`: sign with this key (see {@link setSign}). */
|
|
250
|
+
setSigningKey(keyId: string): this;
|
|
170
251
|
/**
|
|
171
252
|
* Set whether to amend the previous commit.
|
|
172
253
|
*
|
|
@@ -215,6 +296,54 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
215
296
|
* @throws Error if combined with --all mode
|
|
216
297
|
*/
|
|
217
298
|
setOnly(...paths: string[]): this;
|
|
299
|
+
/**
|
|
300
|
+
* `--pathspec-from-file` (and `--pathspec-file-nul` with `nul`): the pathspec elements of
|
|
301
|
+
* `content`, one per line (a line starting with `"` unquoted as a C string), or separated
|
|
302
|
+
* by NUL with `nul`, committed as {@link setOnly} paths (or {@link setInclude}'s with
|
|
303
|
+
* `setInclude()`). As git's prepare_index: refused with {@link setAll} ("options
|
|
304
|
+
* '--pathspec-from-file' and '-a' cannot be used together") and beside paths given to
|
|
305
|
+
* `setOnly`/`setInclude` ("'--pathspec-from-file' and pathspec arguments cannot be used
|
|
306
|
+
* together"); an empty file commits the index as it is (with `setInclude()`: "No paths
|
|
307
|
+
* with --include/--only does not make sense.").
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* ```typescript
|
|
311
|
+
* await git.commit().setPathspecFromFile("src/a.ts\n").setMessage("Fix a").call();
|
|
312
|
+
* ```
|
|
313
|
+
*
|
|
314
|
+
* @throws InvalidArgumentError "fatal: line is badly quoted: <line>"
|
|
315
|
+
*/
|
|
316
|
+
setPathspecFromFile(content: string | Uint8Array, nul?: boolean): this;
|
|
317
|
+
/**
|
|
318
|
+
* `git commit -p` (`--patch`): the changes between the index and the worktree are offered
|
|
319
|
+
* hunk by hunk as `git add -p` offers them, and the selected hunks are committed along
|
|
320
|
+
* with what is staged already. As git's prepare_index for `--interactive`: the index lock
|
|
321
|
+
* is taken and the refreshed index written into it, the hunks are applied to that
|
|
322
|
+
* temporary index (`GIT_INDEX_FILE` at the lock), and the commit is made from it; the lock
|
|
323
|
+
* becomes the index once HEAD has moved, and on any failure (nothing selected: "no changes
|
|
324
|
+
* added to commit") the index stays as it was. The paths of {@link setOnly} limit the
|
|
325
|
+
* hunks offered. The prompts are answered by {@link setPatchSelector}; what patch mode
|
|
326
|
+
* printed is {@link getPatchResult}'s. Refused with {@link setAll} and
|
|
327
|
+
* {@link setInclude}.
|
|
328
|
+
*
|
|
329
|
+
* @example
|
|
330
|
+
* ```typescript
|
|
331
|
+
* const answers = ["y", "n"];
|
|
332
|
+
* const commit = git.commit().setMessage("Part").setPatch(true)
|
|
333
|
+
* .setPatchSelector(() => answers.shift());
|
|
334
|
+
* await commit.call();
|
|
335
|
+
* process.stdout.write(commit.getPatchResult()?.output ?? "");
|
|
336
|
+
* ```
|
|
337
|
+
*/
|
|
338
|
+
setPatch(patch: boolean): this;
|
|
339
|
+
/** Answers the prompts of {@link setPatch} (git's reads from standard input and its editor). */
|
|
340
|
+
setPatchSelector(selector: PatchSelector): this;
|
|
341
|
+
/** `-U<n>` and `--inter-hunk-context=<n>` of {@link setPatch}. */
|
|
342
|
+
setPatchOptions(options: PatchOptions): this;
|
|
343
|
+
/** The git version whose patch-mode prompts {@link setPatch} reproduces (default 2.56). */
|
|
344
|
+
setCompatibility(version: PatchCompatibility): this;
|
|
345
|
+
/** What {@link setPatch}'s selection printed and applied; read after {@link call}. */
|
|
346
|
+
getPatchResult(): PatchResult | undefined;
|
|
218
347
|
/**
|
|
219
348
|
* Set whether to auto-stage modified tracked files before committing.
|
|
220
349
|
*
|
|
@@ -294,6 +423,35 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
294
423
|
* ```
|
|
295
424
|
*/
|
|
296
425
|
setTemplate(path: string): this;
|
|
426
|
+
/**
|
|
427
|
+
* `-c <commit>` / `--reedit-message=<commit>`: as {@link setReuseMessage} (or `-C` with {@link setEdit}(true)), with the message
|
|
428
|
+
* then given to the editor ({@link setEditor}; without one it is taken as it is).
|
|
429
|
+
*/
|
|
430
|
+
setReeditMessage(commit: string): this;
|
|
431
|
+
/**
|
|
432
|
+
* `--fixup=[(amend|reword):]<commit>`: a commit `rebase --autosquash` folds into `commit`.
|
|
433
|
+
* Plain, its message is `fixup! <subject>` (then the {@link setMessage} text, if any) and
|
|
434
|
+
* no editor runs. `amend:<commit>` makes `amend! <subject>` followed by the commit's whole
|
|
435
|
+
* message (its body alone when it is an `amend!` commit itself) for the editor to change,
|
|
436
|
+
* empty commits allowed and a message given with {@link setMessage} refused; `reword:` is
|
|
437
|
+
* `amend:` committing HEAD's tree (only the message changes), refused with paths, `-a`,
|
|
438
|
+
* `-i`, and during a merge or cherry-pick. An `amend!` message without a body is refused
|
|
439
|
+
* (`Aborting commit due to empty commit message body.`).
|
|
440
|
+
*
|
|
441
|
+
* @example
|
|
442
|
+
* ```typescript
|
|
443
|
+
* await git.commit().setFixup("HEAD~1").call();
|
|
444
|
+
* await git.commit().setFixup("reword:HEAD~1").setEditor(edit).call();
|
|
445
|
+
* ```
|
|
446
|
+
*/
|
|
447
|
+
setFixup(commit: string): this;
|
|
448
|
+
/**
|
|
449
|
+
* `--squash=<commit>`: the message starts with `squash! <subject>` and a blank line, then
|
|
450
|
+
* the message given ({@link setMessage}, {@link setReuseMessage}: only `squash! ` when it
|
|
451
|
+
* names the same commit as given here), else what the editor makes of it. Refused with
|
|
452
|
+
* {@link setFixup}.
|
|
453
|
+
*/
|
|
454
|
+
setSquash(commit: string): this;
|
|
297
455
|
/** `-e` / `--no-edit`: edit a given message too, or never edit (default: edit when none is given). */
|
|
298
456
|
setEdit(edit: boolean): this;
|
|
299
457
|
/** `--status` / `--no-status`: the status in the editor's template (default `commit.status`, true). */
|
|
@@ -329,12 +487,30 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
329
487
|
callDryRun(): Promise<CommitDryRunResult>;
|
|
330
488
|
/** git's use_editor: an editor is set, and no message is given or `-e` asks for it. */
|
|
331
489
|
private usesEditor;
|
|
490
|
+
/**
|
|
491
|
+
* git's use_editor before `-e`/`--no-edit`: no message given (`-m`, `-C`) and no plain
|
|
492
|
+
* `--fixup`, whose messages are taken as they are.
|
|
493
|
+
*/
|
|
494
|
+
private editsByDefault;
|
|
495
|
+
/** The revision `-c` or `-C` names (git's use_message), as given. */
|
|
496
|
+
private reusedName;
|
|
332
497
|
/**
|
|
333
498
|
* prepare_to_commit with an editor: COMMIT_EDITMSG written with the message so far and
|
|
334
499
|
* (`commit.status`) the commented help, identities and status of the template, the
|
|
335
500
|
* editor run over it, and what it left cleaned up as the commit message.
|
|
336
501
|
*/
|
|
337
502
|
private editMessage;
|
|
503
|
+
/**
|
|
504
|
+
* `-s`: the message so far with the committer's sign-off (append_signoff with
|
|
505
|
+
* ignored_log_message_bytes: before trailing comments and the scissors line).
|
|
506
|
+
*/
|
|
507
|
+
private signedOff;
|
|
508
|
+
/**
|
|
509
|
+
* `--trailer`: COMMIT_EDITMSG (written as `message`) with the trailers added, as git's
|
|
510
|
+
* amend_file_with_trailers (2.43: a child `interpret-trailers --in-place --no-divider`,
|
|
511
|
+
* which takes an empty argument for nothing and refuses none); the new text, written back.
|
|
512
|
+
*/
|
|
513
|
+
private withTrailers;
|
|
338
514
|
/**
|
|
339
515
|
* The commit template (`-t`, else `commit.template`, `~/` expanded) read through the host,
|
|
340
516
|
* undefined when none is set; one that cannot be read fails as git's `die_errno`.
|
|
@@ -371,12 +547,68 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
371
547
|
* @throws EmptyCommitError if nothing to commit and allowEmpty is false
|
|
372
548
|
*/
|
|
373
549
|
call(): Promise<CommitResult>;
|
|
550
|
+
/**
|
|
551
|
+
* `-p` (git's prepare_index for `interactive`): the option checks, then the index lock held
|
|
552
|
+
* and the hunks selected into the index it holds (`interactive_add` with `GIT_INDEX_FILE`
|
|
553
|
+
* at the lock), then the commit from it.
|
|
554
|
+
*/
|
|
555
|
+
private commitPatch;
|
|
374
556
|
/**
|
|
375
557
|
* `-i <paths>` (git's prepare_index for `also`): the option checks of
|
|
376
558
|
* parse_and_validate_options and prepare_index, then the index lock held from before the
|
|
377
559
|
* tracked paths are staged until HEAD has moved.
|
|
378
560
|
*/
|
|
379
561
|
private commitIncluded;
|
|
562
|
+
/**
|
|
563
|
+
* parse_and_validate_options' handling of `--author`, `-m` with `-C`, `--reset-author`,
|
|
564
|
+
* and `-C`'s commit (read_commit_message), in git's order.
|
|
565
|
+
*/
|
|
566
|
+
private parseAuthorOptions;
|
|
567
|
+
/**
|
|
568
|
+
* `--date` (parse_force_date): the date as `parse_date` reads it, else as `approxidate`
|
|
569
|
+
* does, refused as git refuses it.
|
|
570
|
+
*/
|
|
571
|
+
private forcedDate;
|
|
572
|
+
/**
|
|
573
|
+
* git's `error:` lines that did not stop the command (the mailmap's, read for an
|
|
574
|
+
* `--author` that is no `Name <email>`), in order; also after a failure.
|
|
575
|
+
*/
|
|
576
|
+
getWarnings(): string[];
|
|
577
|
+
/**
|
|
578
|
+
* builtin/commit.c's find_author_by_nickname: the first commit of `rev-list --all -i
|
|
579
|
+
* --author=<name>` (newest first, the mailmap applied before matching) gives `%aN <%aE>`.
|
|
580
|
+
*/
|
|
581
|
+
private findAuthorByNickname;
|
|
582
|
+
/**
|
|
583
|
+
* parse_and_validate_options for `-C`, `-c`, `--fixup` and `--squash`, in git's order: the
|
|
584
|
+
* incompatible options, the commit `-C`/`-c` names read (`could not lookup commit`), then
|
|
585
|
+
* `--fixup`'s suboption (`amend:`/`reword:` allow empty commits; `reword:` refuses paths,
|
|
586
|
+
* `-a`, `-i` and a merge or cherry-pick in progress).
|
|
587
|
+
*/
|
|
588
|
+
private checkReuseOptions;
|
|
589
|
+
/** git's lookup_commit_reference_by_name, dying as `could not lookup commit '<name>'`. */
|
|
590
|
+
private lookupCommit;
|
|
591
|
+
/**
|
|
592
|
+
* A commit's message and author as `git commit` reads another commit's (read_commit_message,
|
|
593
|
+
* format_commit_message): converted from its `encoding` header into the commit output
|
|
594
|
+
* encoding (`i18n.commitEncoding`, else UTF-8). Ours writes UTF-8 messages only, so a
|
|
595
|
+
* commit is converted only when that encoding is UTF-8.
|
|
596
|
+
*/
|
|
597
|
+
private inCommitOutputEncoding;
|
|
598
|
+
/** The stored bytes of an object (undefined where the store cannot give them). */
|
|
599
|
+
private readRawObject;
|
|
600
|
+
/**
|
|
601
|
+
* The start of prepare_to_commit's message from `-C`/`-c`/`--fixup`/`--squash`: the
|
|
602
|
+
* `squash! ` subject (`prefix`, put before whatever message follows) and, for `-C`/`-c`
|
|
603
|
+
* and `--fixup`, the text that replaces the other sources (undefined: they apply).
|
|
604
|
+
*/
|
|
605
|
+
private reusedMessage;
|
|
606
|
+
/**
|
|
607
|
+
* prepare_index's `--pathspec-from-file`: refused with `-a` and beside pathspec arguments
|
|
608
|
+
* ({@link setOnly}, {@link setInclude}); its elements are then the paths of `-i`, else of
|
|
609
|
+
* `--only`.
|
|
610
|
+
*/
|
|
611
|
+
private applyPathspecFile;
|
|
380
612
|
/** `-i <paths>`: parse_and_validate_options' and prepare_index's refusals. */
|
|
381
613
|
private checkIncludeOptions;
|
|
382
614
|
/**
|
|
@@ -401,6 +633,8 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
401
633
|
private refuseNothingToCommit;
|
|
402
634
|
/** The commit of `treeId` made, HEAD moved to it, and what was in progress ended. */
|
|
403
635
|
private finishCommit;
|
|
636
|
+
/** The host directory the signing program runs in, if the repository has one. */
|
|
637
|
+
private signingCwd;
|
|
404
638
|
/**
|
|
405
639
|
* The variables of the commit hooks (git's `run_commit_hook`): `GIT_INDEX_FILE` names the
|
|
406
640
|
* index the commit records (the lock `-a` and a partial commit write; git's false index of
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-command.d.ts","sourceRoot":"","sources":["../../src/commands/commit-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAEX,KAAK,QAAQ,EACb,KAAK,WAAW,EAEjB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"commit-command.d.ts","sourceRoot":"","sources":["../../src/commands/commit-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAEX,KAAK,QAAQ,EACb,KAAK,WAAW,EAEjB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAKL,KAAK,QAAQ,EAEd,MAAM,+BAA+B,CAAC;AAcvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAInB,MAAM,sBAAsB,CAAC;AA6B9B,OAAO,EACL,WAAW,EAOZ,MAAM,sBAAsB,CAAC;AAgB9B,OAAO,EAIL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAC;AAc7B;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,yCAAyC;IACzC,EAAE,EAAE,QAAQ,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,YAAY,CAAC;IAC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B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAQzB,8EAA8E;IAC9E,OAAO,CAAC,mBAAmB;IAsB3B;;;OAGG;YACW,UAAU;IA0ExB;;;;;OAKG;YACW,mBAAmB;IAkDjC,+FAA+F;YACjF,cAAc;IAyR5B;;;;OAIG;YACW,qBAAqB;IAmBnC,qFAAqF;YACvE,YAAY;IA0F1B,iFAAiF;YACnE,UAAU;IAQxB;;;;;OAKG;YACW,aAAa;IAe3B,8DAA8D;YAChD,aAAa;IAiB3B;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAuB9B;;;;OAIG;YACW,eAAe;IAgB7B,qFAAqF;YACvE,UAAU;IAYxB,iFAAiF;YACnE,WAAW;IAgBzB;;;;OAIG;YACW,kBAAkB;IA0ChC;;;;OAIG;YACW,SAAS;IAsDvB;;;;;;OAMG;YACW,gBAAgB;IAqF9B,iFAAiF;YACnE,gBAAgB;IAgB9B;;;;;;;;;OASG;YACW,oBAAoB;IA+DlC,4FAA4F;YAC9E,eAAe;IAI7B,2EAA2E;YAC7D,eAAe;IAoB7B;;;OAGG;YACW,QAAQ;IAiCtB;;;;;OAKG;YACW,mBAAmB;IAyBjC;;OAEG;IACH,OAAO,CAAC,mBAAmB;CAQ5B;AAsID;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAE5E,kFAAkF;AAClF,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** The forms of `--fixup`: `fixup! ` commits, or `amend! ` ones (`amend:` and `reword:`). */
|
|
2
|
+
export type FixupKind = "fixup" | "amend" | "reword";
|
|
3
|
+
/**
|
|
4
|
+
* `--fixup=<spec>` as parse_and_validate_options reads it: a run of ASCII letters followed by
|
|
5
|
+
* a colon is a suboption (`amend:`/`reword:`; any other name is git's `unknown option`),
|
|
6
|
+
* otherwise the whole spec names the commit.
|
|
7
|
+
*/
|
|
8
|
+
export declare function parseFixupSpec(spec: string): {
|
|
9
|
+
kind: FixupKind;
|
|
10
|
+
target: string;
|
|
11
|
+
} | {
|
|
12
|
+
unknown: string;
|
|
13
|
+
target: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* git's die_for_incompatible_opt4: the options given (`[name, given]`, in git's order),
|
|
17
|
+
* refused when more than one is.
|
|
18
|
+
*/
|
|
19
|
+
export declare function refuseIncompatible(options: Array<[string, boolean]>): void;
|
|
20
|
+
/** git's skip_blank_lines: the text after its leading blank lines. */
|
|
21
|
+
export declare function skipBlankLines(text: string): string;
|
|
22
|
+
/** git's commit_subject_length: the length of the first paragraph's lines (with their newlines). */
|
|
23
|
+
export declare function commitSubjectLength(text: string): number;
|
|
24
|
+
/** pretty.c's `%b`: the message after its subject paragraph and the blank lines around it. */
|
|
25
|
+
export declare function bodyOf(message: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* prepare_amend_commit: the amended commit's whole message (`%B`), or only its body (`%b`)
|
|
28
|
+
* when its subject already starts with `amend!` (an `amend!` commit amended again).
|
|
29
|
+
*/
|
|
30
|
+
export declare function amendCommitText(message: string): string;
|
|
31
|
+
/** The first line of an autosquash commit (`fixup! %s`, `amend! %s`, `squash! %s`) and a blank line. */
|
|
32
|
+
export declare function autosquashSubject(prefix: "fixup" | "amend" | "squash", message: string): string;
|
|
33
|
+
//# sourceMappingURL=commit-reuse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-reuse.d.ts","sourceRoot":"","sources":["../../src/commands/commit-reuse.ts"],"names":[],"mappings":"AAOA,6FAA6F;AAC7F,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAO3E;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,CAS1E;AAOD,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASnD;AAED,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQxD;AAED,8FAA8F;AAC9F,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAU9C;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wGAAwG;AACxG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE/F"}
|