@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":"format-patch-command.d.ts","sourceRoot":"","sources":["../../src/commands/format-patch-command.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"format-patch-command.d.ts","sourceRoot":"","sources":["../../src/commands/format-patch-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAeH,OAAO,EAGL,aAAa,EAEd,MAAM,uBAAuB,CAAC;AAI/B,sEAAsE;AACtE,MAAM,WAAW,eAAe;IAC9B,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,eAAe;IACf,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,wCAAwC;AACxC,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,oEAAoE;IACpE,MAAM,EAAE,UAAU,CAAC;IACnB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,4CAA4C;AAC5C,qBAAa,gBAAiB,SAAQ,KAAK;CAAG;AAE9C,iEAAiE;AACjE,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AA4BvF;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,aAAa,CAAC,iBAAiB,CAAC;IACtE,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,eAAe,CAAC,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,GAAG,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AAI,CAG7B;IAED,iDAAiD;IACjD,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAGnD;IAED,uDAAuD;IACvD,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAG5C;IAED,qCAAqC;IACrC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAG1B;IAED,mCAAmC;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAG7B;IAED,iFAAiF;IACjF,oBAAoB,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAGpC;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAGtC;IAED,yEAAyE;IACzE,gBAAgB,CAAC,GAAG,EAAE,MAAM,MAAM,GAAG,IAAI,CAGxC;IAED,OAAO,CAAC,MAAM;IAId,gFAAgF;IAChF,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,SAAS;IASX,IAAI,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAyWvC;IAED;;;;OAIG;YACW,gBAAgB;IAgG9B,4CAA4C;YAC9B,WAAW;IAYzB,yFAAyF;YAC3E,IAAI;IA6GlB;;;OAGG;YACW,aAAa;IA0B3B,+EAA+E;YACjE,YAAY;IAmC1B,2BAA2B;YACb,eAAe;IAkH7B,uFAAuF;YACzE,cAAc;IAmB5B;;;OAGG;YACW,oBAAoB;IAsClC,kFAAkF;YACpE,YAAY;CAS3B"}
|
|
@@ -57,4 +57,55 @@ export interface FetchFsckSource {
|
|
|
57
57
|
* ours reads them before the fetch.
|
|
58
58
|
*/
|
|
59
59
|
export declare function fetchFsckOf(source: FetchFsckSource, enabled?: boolean): Promise<ReceivedObjectsFsck | undefined>;
|
|
60
|
+
/** What {@link receiveFsckOf} reads: the receiving repository's configuration. */
|
|
61
|
+
export interface ReceiveFsckSource {
|
|
62
|
+
/**
|
|
63
|
+
* Every configuration entry in git's order, keys canonical (`receive.fsck.missingemail`), a
|
|
64
|
+
* key written without `=` with a null value, and where it was read when known
|
|
65
|
+
*/
|
|
66
|
+
entries(): Iterable<{
|
|
67
|
+
key: string;
|
|
68
|
+
value: string | null;
|
|
69
|
+
file?: string;
|
|
70
|
+
line?: number;
|
|
71
|
+
}>;
|
|
72
|
+
/** Whose messages to give where 2.43 and 2.5x differ (a tag's `gpgsig` header) */
|
|
73
|
+
compatibility: "2.43" | "2.56";
|
|
74
|
+
/** Reads a skip list (`receive.fsck.skipList`): its path as {@link baseDir} and `~/` make it */
|
|
75
|
+
readFile?(path: string): Promise<Uint8Array | undefined>;
|
|
76
|
+
/** The directory a relative skip list is read from (receive-pack's: the git directory) */
|
|
77
|
+
baseDir?: string;
|
|
78
|
+
/** `$HOME`, for a skip list path starting with `~/` */
|
|
79
|
+
home?: string;
|
|
80
|
+
}
|
|
81
|
+
/** What git's receive-pack takes from `receive.fsck*` / `transfer.fsckObjects`. */
|
|
82
|
+
export interface ReceiveFsckSettings {
|
|
83
|
+
/**
|
|
84
|
+
* receive-pack's death reading its config (a value that is no boolean, a message type it
|
|
85
|
+
* does not know, a `receive.fsck.*` key without a value): its lines
|
|
86
|
+
*/
|
|
87
|
+
configError?: string;
|
|
88
|
+
/** receive-pack's warnings reading its config (`warning: skipping unknown msg id '<id>'`) */
|
|
89
|
+
warnings: string[];
|
|
90
|
+
/** A new fsck for each push, absent when pushes are not checked */
|
|
91
|
+
fsckObjects?: () => Promise<ReceivedObjectsFsck>;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* The fsck git's receive-pack has its unpack-objects or index-pack run over a push (`--strict`
|
|
95
|
+
* with the `receive.fsck.*` settings) when `receive.fsckObjects` (else `transfer.fsckObjects`)
|
|
96
|
+
* is true. receive-pack reads `receive.fsck.<msg-id>` and `receive.fsck.skipList` in config
|
|
97
|
+
* order (never `fsck.*`): a message id it does not know is skipped with a warning, a message
|
|
98
|
+
* type it does not know kills it (`fatal: Unknown fsck message type: '<type>'`), as does a key
|
|
99
|
+
* without a value; the child then applies them in that order, dying at the first fatal message
|
|
100
|
+
* demoted (`fatal: Cannot demote <id> to <type>`) or skip list it cannot read (`fatal: could not
|
|
101
|
+
* open object name list: <path>`, `fatal: invalid object name: <line>`), relative paths read
|
|
102
|
+
* from the git directory.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const settings = receiveFsckOf({ entries: () => config.list(), compatibility: "2.56" });
|
|
107
|
+
* const fsck = await settings.fsckObjects?.();
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
export declare function receiveFsckOf(source: ReceiveFsckSource): ReceiveFsckSettings;
|
|
60
111
|
//# sourceMappingURL=fetch-fsck.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-fsck.d.ts","sourceRoot":"","sources":["../../../src/commands/fsck/fetch-fsck.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAqB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAOzF,sCAAsC;AACtC,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC,kFAAkF;IAClF,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,oFAAoF;IACpF,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IACzD,uGAAuG;IACvG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,EAAE,GAAG,SAAS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,IAAI,QAAQ,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzF,kFAAkF;IAClF,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,gGAAgG;IAChG,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IACzD,0FAA0F;IAC1F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,mFAAmF;AACnF,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6FAA6F;IAC7F,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAClD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,mBAAmB,CAsF5E"}
|
|
@@ -84,6 +84,7 @@ export declare class GarbageCollectCommand extends GitCommand<GCCommandResult> {
|
|
|
84
84
|
private _cruft?;
|
|
85
85
|
private _maxCruftSize?;
|
|
86
86
|
private _keepLargestPack?;
|
|
87
|
+
private _force;
|
|
87
88
|
/**
|
|
88
89
|
* `git gc --auto`: housekeeping only when needed (git's `need_to_gc`: more loose objects
|
|
89
90
|
* than `gc.auto`, estimated from `objects/17` as git does, default 6700, or more packs
|
|
@@ -119,6 +120,11 @@ export declare class GarbageCollectCommand extends GitCommand<GCCommandResult> {
|
|
|
119
120
|
setKeepLargestPack(keep: boolean): this;
|
|
120
121
|
/** git's `need_to_gc`: whether `gc --auto` has work to do. */
|
|
121
122
|
private needsAutoGc;
|
|
123
|
+
/**
|
|
124
|
+
* `--force`: run even when `gc.pid` says another gc is running (git's `lock_repo_for_gc`
|
|
125
|
+
* with `force`); `gc.pid.lock` must still be free.
|
|
126
|
+
*/
|
|
127
|
+
setForce(force: boolean): this;
|
|
122
128
|
/**
|
|
123
129
|
* `--aggressive`: deltas searched again (`repack -f`) with `gc.aggressiveWindow` (250) and
|
|
124
130
|
* `gc.aggressiveDepth` (50).
|
|
@@ -146,5 +152,7 @@ export declare class GarbageCollectCommand extends GitCommand<GCCommandResult> {
|
|
|
146
152
|
* @returns GC result with statistics
|
|
147
153
|
*/
|
|
148
154
|
call(): Promise<GCCommandResult>;
|
|
155
|
+
/** git's `unable_to_lock_die` for `gc.pid.lock` (2.43's longer advice under its compatibility). */
|
|
156
|
+
private gcLockFileMessage;
|
|
149
157
|
}
|
|
150
158
|
//# sourceMappingURL=gc-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gc-command.d.ts","sourceRoot":"","sources":["../../src/commands/gc-command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAkC,MAAM,8BAA8B,CAAC;AAK7F,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAAC;IAChD,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB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IACH,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAInC;IAED;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAI5B;IAED,sFAAsF;YACxE,eAAe;IAU7B,+EAA+E;IAC/E,OAAO,CAAC,aAAa;IAUrB,qFAAqF;IACrF,OAAO,CAAC,kBAAkB;IAY1B;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC,CAsHrC;IAED,mGAAmG;IACnG,OAAO,CAAC,iBAAiB;CAa1B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* git describe's search (builtin/describe.c
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* git describe's search (builtin/describe.c): the tag nearest to a commit by the number of
|
|
3
|
+
* commits only it reaches, as `<tag>-<n>-g<abbrev>` (just `<tag>` on the tagged commit
|
|
4
|
+
* itself), and a blob by the first commit that brings it, as `<description>:<path>`.
|
|
5
|
+
* `%(describe)` of a pretty format, `submodule status` and `git describe` itself use it.
|
|
5
6
|
*
|
|
6
7
|
* @example
|
|
7
8
|
* ```typescript
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
* @module
|
|
15
16
|
*/
|
|
16
17
|
import type { ObjectId, PersonIdent } from "@statewalker/vcs-core";
|
|
17
|
-
/**
|
|
18
|
+
/** git describe's search options. */
|
|
18
19
|
export interface DescribeOptions {
|
|
19
20
|
/** Lightweight tags too (`--tags`) */
|
|
20
21
|
tags?: boolean;
|
|
@@ -24,6 +25,24 @@ export interface DescribeOptions {
|
|
|
24
25
|
match?: readonly string[];
|
|
25
26
|
/** No tags whose name matches one of these globs (`--exclude`) */
|
|
26
27
|
exclude?: readonly string[];
|
|
28
|
+
/** Any ref, not only tags (`--all`): names below `refs/`, an annotated tag as `tags/<name>` */
|
|
29
|
+
all?: boolean;
|
|
30
|
+
/** The abbreviated id when nothing describes the commit (`--always`) */
|
|
31
|
+
always?: boolean;
|
|
32
|
+
/** `--long`: the `-<n>-g<abbrev>` suffix on an exact match too */
|
|
33
|
+
long?: boolean;
|
|
34
|
+
/** `--first-parent`: only first parents are followed */
|
|
35
|
+
firstParent?: boolean;
|
|
36
|
+
/** `--candidates=<n>` (0: `--exact-match`); default 10, at most 28 */
|
|
37
|
+
candidates?: number;
|
|
38
|
+
/** `--debug`: the search strategy on stderr */
|
|
39
|
+
debug?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* git 2.43's search: it gives up only at a candidate beyond the limit (2.5x also once it
|
|
42
|
+
* has every name), suffixes a lightweight exact match with the id named (a tag's own) and says so
|
|
43
|
+
* in another debug line
|
|
44
|
+
*/
|
|
45
|
+
compatibility?: "2.43" | "2.56";
|
|
27
46
|
}
|
|
28
47
|
/** What {@link createDescriber} reads. */
|
|
29
48
|
export interface DescriberSource {
|
|
@@ -49,8 +68,17 @@ export interface DescriberSource {
|
|
|
49
68
|
load(id: ObjectId): Promise<{
|
|
50
69
|
parents: ObjectId[];
|
|
51
70
|
committer: PersonIdent;
|
|
71
|
+
tree?: ObjectId;
|
|
52
72
|
} | undefined>;
|
|
53
73
|
};
|
|
74
|
+
/** A tree's entries, in tree order (for blobs) */
|
|
75
|
+
trees?: {
|
|
76
|
+
load(id: ObjectId): Promise<AsyncIterable<{
|
|
77
|
+
mode: number;
|
|
78
|
+
name: string;
|
|
79
|
+
id: ObjectId;
|
|
80
|
+
}> | undefined>;
|
|
81
|
+
};
|
|
54
82
|
/**
|
|
55
83
|
* `id` abbreviated as git's find_unique_abbrev does: to `length` digits at least (absent:
|
|
56
84
|
* `core.abbrev`, auto), longer while another object shares them
|
|
@@ -59,6 +87,55 @@ export interface DescriberSource {
|
|
|
59
87
|
/** git's wildmatch of a pattern against a tag name (default: `*`, `?`, `[...]` globs) */
|
|
60
88
|
wildmatch?: (pattern: string, text: string) => boolean;
|
|
61
89
|
}
|
|
90
|
+
/** A failure where git describe dies: its message (without `fatal: `). */
|
|
91
|
+
export declare class DescribeDeath extends Error {
|
|
92
|
+
constructor(message: string);
|
|
93
|
+
}
|
|
94
|
+
/** describe.c's MAX_TAGS (FLAG_BITS - 1) */
|
|
95
|
+
export declare const DESCRIBE_MAX_TAGS = 28;
|
|
96
|
+
/**
|
|
97
|
+
* builtin/describe.c over one repository: the names read once ({@link load}), then any
|
|
98
|
+
* number of commits or blobs described, with git's stderr lines (warnings, `--debug`) in
|
|
99
|
+
* {@link stderr}.
|
|
100
|
+
*/
|
|
101
|
+
export declare class Describer {
|
|
102
|
+
private readonly source;
|
|
103
|
+
private readonly options;
|
|
104
|
+
/** The lines git prints on stderr, in order */
|
|
105
|
+
readonly stderr: string[];
|
|
106
|
+
/** The name and depth the last {@link describeCommit} found (none: `--always`'s id) */
|
|
107
|
+
lastMatch?: {
|
|
108
|
+
tag: string;
|
|
109
|
+
depth: number;
|
|
110
|
+
};
|
|
111
|
+
private names;
|
|
112
|
+
private readonly match;
|
|
113
|
+
private readonly maxCandidates;
|
|
114
|
+
constructor(source: DescriberSource, options?: DescribeOptions);
|
|
115
|
+
/** How many names were found (git dies without any unless `--always`). */
|
|
116
|
+
get nameCount(): number;
|
|
117
|
+
/** describe.c's get_name over refs/tags/ (refs/ with `--all`). */
|
|
118
|
+
load(): Promise<void>;
|
|
119
|
+
/** append_name: an annotated tag by its own name (another ref name is "misnamed"). */
|
|
120
|
+
private appendName;
|
|
121
|
+
private suffix;
|
|
122
|
+
/**
|
|
123
|
+
* describe_commit of `commit` (`named`: the object the revision named, which 2.43
|
|
124
|
+
* suffixes a lightweight exact match with: an annotated tag's own id).
|
|
125
|
+
*
|
|
126
|
+
* @throws DescribeDeath where git dies
|
|
127
|
+
*/
|
|
128
|
+
describeCommit(commit: ObjectId, named?: ObjectId): Promise<string>;
|
|
129
|
+
/** finish_depth_computation: the commits the best candidate does not reach. */
|
|
130
|
+
private finishDepth;
|
|
131
|
+
/**
|
|
132
|
+
* describe_blob: the first commit (oldest first, in `rev-list --objects --reverse HEAD`'s
|
|
133
|
+
* order) whose tree holds the blob, described, and the blob's path in it.
|
|
134
|
+
*
|
|
135
|
+
* @throws DescribeDeath when HEAD does not reach it (2.43: an empty description)
|
|
136
|
+
*/
|
|
137
|
+
describeBlob(blob: ObjectId, head: ObjectId | undefined): Promise<string>;
|
|
138
|
+
}
|
|
62
139
|
/**
|
|
63
140
|
* A `git describe <commit>` of the source's refs: the description, or an empty string where
|
|
64
141
|
* git describe fails (no tag can describe the commit), as `%(describe)` shows it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-describe.d.ts","sourceRoot":"","sources":["../../src/commands/git-describe.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"git-describe.d.ts","sourceRoot":"","sources":["../../src/commands/git-describe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEnE,qCAAqC;AACrC,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wFAAwF;IACxF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uFAAuF;IACvF,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,kEAAkE;IAClE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,+FAA+F;IAC/F,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,wEAAwE;IACxE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kEAAkE;IAClE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED,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Ae,GACtB,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,MAAM,CAAC,CAU9D"}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* unless the call asks otherwise (`RUN_HOOKS_OPT_INIT`'s `stdout_to_stderr`).
|
|
21
21
|
*/
|
|
22
22
|
import type { RefTransactionHook } from "@statewalker/vcs-core";
|
|
23
|
-
import type
|
|
23
|
+
import { type FilesApi } from "@statewalker/vcs-utils/files";
|
|
24
24
|
import { type GitHostEnvironment, type HookRunner, type WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
25
25
|
/** What a hook is given beyond its name. */
|
|
26
26
|
export interface HookCallOptions {
|
|
@@ -144,6 +144,12 @@ export interface HookSetting {
|
|
|
144
144
|
}
|
|
145
145
|
/** The hook host of a working copy. */
|
|
146
146
|
export declare function hookHostOf(workingCopy: WorkingCopy): HookHost;
|
|
147
|
+
/**
|
|
148
|
+
* The hook host of a working copy whose git commands git starts in its git directory with
|
|
149
|
+
* `GIT_DIR=.` (submodule.c's `prepare_submodule_repo_env_in_gitdir`: a submodule's fetch run
|
|
150
|
+
* by its superproject): hooks run there, told `GIT_DIR=.`.
|
|
151
|
+
*/
|
|
152
|
+
export declare function hookHostInGitDir(workingCopy: WorkingCopy): HookHost;
|
|
147
153
|
/**
|
|
148
154
|
* The `hook.<name>.<variable>` settings (event, command, enabled) among a configuration's
|
|
149
155
|
* entries in the order git reads them (an opened repository's `listWithOrigin`, else `list`
|
|
@@ -217,6 +223,15 @@ export declare function commonGitFileOf(workingCopy: WorkingCopy, name: string):
|
|
|
217
223
|
files: FilesApi;
|
|
218
224
|
path: string;
|
|
219
225
|
} | undefined>;
|
|
226
|
+
/**
|
|
227
|
+
* A file of a working copy's own git directory (a linked worktree's `worktrees/<id>/`:
|
|
228
|
+
* `modules/`, which git keeps per worktree) as the repository's FilesApi names it; undefined
|
|
229
|
+
* when the working copy has no files layout.
|
|
230
|
+
*/
|
|
231
|
+
export declare function gitFileOf(workingCopy: WorkingCopy, name: string): Promise<{
|
|
232
|
+
files: FilesApi;
|
|
233
|
+
path: string;
|
|
234
|
+
} | undefined>;
|
|
220
235
|
/**
|
|
221
236
|
* The hooks one command runs, with git's per-process memory of the hints given and the
|
|
222
237
|
* output the hooks wrote (git relays it on its stderr, the hints included).
|
|
@@ -262,6 +277,8 @@ export declare class HookSession {
|
|
|
262
277
|
get output(): string;
|
|
263
278
|
/** What the hooks whose stdout git keeps on its own stdout wrote there (pre-push). */
|
|
264
279
|
get stdout(): string;
|
|
280
|
+
/** Text added to what hooks wrote on git's stdout (a child git's pre-push hook's). */
|
|
281
|
+
appendStdout(text: string): void;
|
|
265
282
|
/** Text added to the output, as git writes its own messages between the hooks' output. */
|
|
266
283
|
append(text: string): void;
|
|
267
284
|
/**
|
|
@@ -276,6 +293,12 @@ export declare class HookSession {
|
|
|
276
293
|
files: FilesApi;
|
|
277
294
|
path: string;
|
|
278
295
|
} | undefined>;
|
|
296
|
+
/**
|
|
297
|
+
* The repository's FilesApi for writes in its git directories: under `core.sharedRepository`
|
|
298
|
+
* wrapped so what is created there gets git's modes (`adjust_shared_perm`), as the files
|
|
299
|
+
* backend's own FilesApi is.
|
|
300
|
+
*/
|
|
301
|
+
private repositoryFiles;
|
|
279
302
|
/**
|
|
280
303
|
* A file of the repository's common directory (the main git directory of a linked
|
|
281
304
|
* worktree: `objects/`, `packed-refs`) as the repository's FilesApi names it.
|
|
@@ -290,6 +313,27 @@ export declare class HookSession {
|
|
|
290
313
|
* hooks run in; as given without a layout.
|
|
291
314
|
*/
|
|
292
315
|
hookPathOf(filesPath: string): Promise<string>;
|
|
316
|
+
/**
|
|
317
|
+
* Runs a shell command git runs for a setting (trailer.c's `apply_command`: `use_shell`,
|
|
318
|
+
* stdin closed, `local_repo_env` unset) in the directory git runs in, through the hook
|
|
319
|
+
* runner: its exit code, stdout and stderr (not kept in {@link output}: the caller places
|
|
320
|
+
* it). Undefined without a runner or a layout (the command is not run); a runner that
|
|
321
|
+
* cannot start it answers as a failure (exit code 1).
|
|
322
|
+
*/
|
|
323
|
+
runShellCommand(name: string, command: string, args?: string[]): Promise<{
|
|
324
|
+
exitCode: number;
|
|
325
|
+
stdout: string;
|
|
326
|
+
stderr: string;
|
|
327
|
+
} | undefined>;
|
|
328
|
+
/**
|
|
329
|
+
* A file a git option names as the repository's FilesApi reaches it: a relative path from
|
|
330
|
+
* the directory git runs in (the worktree top). Undefined without a layout, or for a path
|
|
331
|
+
* outside the FilesApi.
|
|
332
|
+
*/
|
|
333
|
+
fileAt(path: string): Promise<{
|
|
334
|
+
files: FilesApi;
|
|
335
|
+
path: string;
|
|
336
|
+
} | undefined>;
|
|
293
337
|
/**
|
|
294
338
|
* The bytes of a file a git option names (`git hook run --to-stdin=<path>`): a relative
|
|
295
339
|
* path from the directory git runs in (the worktree top, the git directory when bare),
|
|
@@ -307,6 +351,11 @@ export declare class HookSession {
|
|
|
307
351
|
hostGitDir(options?: {
|
|
308
352
|
real?: boolean;
|
|
309
353
|
}): Promise<string | undefined>;
|
|
354
|
+
/**
|
|
355
|
+
* The host directory git runs its child processes in (the worktree top, the git directory
|
|
356
|
+
* when bare), where the repository's files have a host path: a signing program's cwd.
|
|
357
|
+
*/
|
|
358
|
+
hostWorkingDirectory(): Promise<string | undefined>;
|
|
310
359
|
/** Whether `name` exists as an executable hook (git's `hook_exists`), giving no hint. */
|
|
311
360
|
exists(name: string): Promise<boolean>;
|
|
312
361
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-hooks.d.ts","sourceRoot":"","sources":["../../src/commands/git-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"git-hooks.d.ts","sourceRoot":"","sources":["../../src/commands/git-hooks.ts"],"names":[],"m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ClB,0FAA0F;AAC1F,UAAU,GAAE,IAAI,CAAC,eAAe,EAAE,KAAK,GAAG,QAAQ,CAAM,GACvD,kBAAkB,CAoCpB;AAED,uFAAuF;AACvF,MAAM,WAAW,gBAAgB;IAC/B,uEAAuE;IACvE,MAAM,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,MAAM,EAAE,OAAO,CAAC;IAChB,uFAAuF;IACvF,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,8DAA8D;IAC9D,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B;AAeD;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,kBAAkB,EACzB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,gBAAgB,EACrB,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAC/C,OAAO,CAAC,MAAM,CAAC,CAqBjB;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,WAAW,EAClB,GAAG,EAAE,gBAAgB,EACrB,OAAO,CAAC,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GACrC,OAAO,CAAC,IAAI,CAAC,CAUf"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `git grep` (builtin/grep.c over grep.c): lines matching patterns in the worktree's tracked
|
|
3
|
+
* files, the index (`--cached`), untracked files too (`--untracked`), a directory outside
|
|
4
|
+
* git's control (`--no-index`), or trees and revisions.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* // git grep -n -e foo --and --not -e bar HEAD -- src
|
|
9
|
+
* const result = await git
|
|
10
|
+
* .grep()
|
|
11
|
+
* .addPattern("foo")
|
|
12
|
+
* .and()
|
|
13
|
+
* .not()
|
|
14
|
+
* .addPattern("bar")
|
|
15
|
+
* .setLineNumber(true)
|
|
16
|
+
* .setArguments(["HEAD", "--", "src"])
|
|
17
|
+
* .call();
|
|
18
|
+
* process.stdout.write(result.output); // HEAD:src/a.c:12:foo()
|
|
19
|
+
* result.exitCode; // 0 when something matched, else 1
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* What it searches, as git does:
|
|
23
|
+
* - The worktree: every regular file of the index (stage 0 once per unmerged path, skip-worktree
|
|
24
|
+
* entries left out), read from disk, or from the index when the entry is assume-unchanged
|
|
25
|
+
* (an intent-to-add or unmerged one then skipped).
|
|
26
|
+
* - `--cached`: the index's blobs. Trees and revisions (`setArguments`, `addRevision`): their
|
|
27
|
+
* files named `<rev>:<path>` (a blob given as `<rev>:<path>` by that name alone); the diff
|
|
28
|
+
* attributes of a commit's files come from the worktree and index, a tree's files have none.
|
|
29
|
+
* - `--untracked` and `--no-index`: the files of the directory (`.git` never entered), ignored
|
|
30
|
+
* ones left out unless `--no-exclude-standard` (the default of `--no-index`); `--no-index`
|
|
31
|
+
* enters nested repositories. Without a repository, {@link grepNoIndex}.
|
|
32
|
+
*
|
|
33
|
+
* Names are relative to the current directory ({@link GrepCommand.setPrefix}) unless
|
|
34
|
+
* `--full-name`/`grep.fullName`, quoted as `core.quotePath` says (not with `-z`). Binary files
|
|
35
|
+
* (a NUL in their first 8000 bytes, or the `diff` attribute's driver) report `Binary file x
|
|
36
|
+
* matches`; `--textconv` runs `diff.<driver>.textconv` through the runner the host installs
|
|
37
|
+
* (`installTextconvRunner`). `-p`/`-W` use the driver's funcname pattern. Configuration:
|
|
38
|
+
* `grep.lineNumber`, `grep.column`, `grep.fullName`, `grep.patternType`,
|
|
39
|
+
* `grep.extendedRegexp`, `grep.threads`, `color.grep`, `color.grep.<slot>`.
|
|
40
|
+
*
|
|
41
|
+
* Output follows git's threaded grep (its default, `GrepEngine`): with context, every source's
|
|
42
|
+
* output after the first starts with `--`. `--recurse-submodules` (or `submodule.recurse`)
|
|
43
|
+
* is refused; `-O`/`--open-files-in-pager` is not offered.
|
|
44
|
+
*
|
|
45
|
+
* @module
|
|
46
|
+
*/
|
|
47
|
+
import { type Worktree } from "@statewalker/vcs-working-tree";
|
|
48
|
+
import { GitCommand } from "../../git-command.js";
|
|
49
|
+
import type { GrepPatternType } from "../rev-filter/index.js";
|
|
50
|
+
import { type GrepBinaryMode, type GrepEngineOptions, type GrepToken } from "./grep-engine.js";
|
|
51
|
+
/** What `git grep` printed and how it ended. */
|
|
52
|
+
export interface GrepResult {
|
|
53
|
+
/** git's exit status: 0 when something matched (`-L`: a file was listed), else 1 */
|
|
54
|
+
exitCode: 0 | 1;
|
|
55
|
+
/** Whether something matched */
|
|
56
|
+
matched: boolean;
|
|
57
|
+
/** git's stdout */
|
|
58
|
+
output: Uint8Array;
|
|
59
|
+
}
|
|
60
|
+
/** Every option of a grep run (what {@link GrepCommand}'s setters set). */
|
|
61
|
+
export interface GrepOptions extends Omit<GrepEngineOptions, "lineNumber" | "column" | "colors" | "patternType"> {
|
|
62
|
+
tokens: GrepToken[];
|
|
63
|
+
/** `-E`/`-F`/`-G`/`-P`; undefined: `grep.patternType`, `grep.extendedRegexp` */
|
|
64
|
+
patternType?: GrepPatternType;
|
|
65
|
+
lineNumber?: boolean;
|
|
66
|
+
column?: boolean;
|
|
67
|
+
/** `--full-name` (undefined: `grep.fullName`) */
|
|
68
|
+
fullName?: boolean;
|
|
69
|
+
/** `--color[=<when>]` (undefined: `color.grep`, `color.ui`; `auto` is off here) */
|
|
70
|
+
color?: boolean;
|
|
71
|
+
cached?: boolean;
|
|
72
|
+
untracked?: boolean;
|
|
73
|
+
noIndex?: boolean;
|
|
74
|
+
/** `--[no-]exclude-standard` */
|
|
75
|
+
excludeStandard?: boolean;
|
|
76
|
+
/** `--max-depth` (-1: none) */
|
|
77
|
+
maxDepth?: number;
|
|
78
|
+
/** `--textconv` */
|
|
79
|
+
textconv?: boolean;
|
|
80
|
+
/** `--recurse-submodules` */
|
|
81
|
+
recurseSubmodules?: boolean;
|
|
82
|
+
/** The current directory below the top (`sub/`), git's prefix */
|
|
83
|
+
prefix?: string;
|
|
84
|
+
/** The revision and path arguments, as given after the pattern */
|
|
85
|
+
args?: string[];
|
|
86
|
+
}
|
|
87
|
+
/** Setters shared by the command and {@link GrepNoIndex} */
|
|
88
|
+
interface GrepSetters {
|
|
89
|
+
readonly options: GrepOptions;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* `git grep`. Patterns: {@link addPattern} (`-e`), {@link addPatternFile} (`-f`), with
|
|
93
|
+
* {@link and}, {@link not}, {@link open}, {@link close} between them (`--or` is the default).
|
|
94
|
+
* Where to search: {@link setArguments} (`[<rev>...] [[--] <path>...]` as git reads them),
|
|
95
|
+
* {@link setCached}, {@link setUntracked}, {@link setNoIndex}. {@link call} resolves with
|
|
96
|
+
* git's stdout and exit status, or throws `GrepError`/`GrepPatternError`/`RevisionError` with
|
|
97
|
+
* git's line where it dies (exit status 128).
|
|
98
|
+
*/
|
|
99
|
+
export declare class GrepCommand extends GitCommand<GrepResult> implements GrepSetters {
|
|
100
|
+
readonly options: GrepOptions;
|
|
101
|
+
private set;
|
|
102
|
+
/** `-e <pattern>` (a string is taken as UTF-8) */
|
|
103
|
+
addPattern(pattern: string | Uint8Array, origin?: string): this;
|
|
104
|
+
/** `-f <file>`: the file's content, one pattern per non-empty line; `name` as given */
|
|
105
|
+
addPatternFile(content: string | Uint8Array, name: string): this;
|
|
106
|
+
/** `--and` */
|
|
107
|
+
and(): this;
|
|
108
|
+
/** `--not` */
|
|
109
|
+
not(): this;
|
|
110
|
+
/** `(` */
|
|
111
|
+
open(): this;
|
|
112
|
+
/** `)` */
|
|
113
|
+
close(): this;
|
|
114
|
+
private token;
|
|
115
|
+
/** `--all-match` */
|
|
116
|
+
setAllMatch(on: boolean): this;
|
|
117
|
+
/** `-E` (`extended`), `-F` (`fixed`), `-G` (`basic`), `-P` (`perl`) */
|
|
118
|
+
setPatternType(type: GrepPatternType | undefined): this;
|
|
119
|
+
/** `-i` */
|
|
120
|
+
setIgnoreCase(on: boolean): this;
|
|
121
|
+
/** `-w` */
|
|
122
|
+
setWordRegexp(on: boolean): this;
|
|
123
|
+
/** `-v` */
|
|
124
|
+
setInvertMatch(on: boolean): this;
|
|
125
|
+
/** `--cached` */
|
|
126
|
+
setCached(on: boolean): this;
|
|
127
|
+
/** `--untracked` */
|
|
128
|
+
setUntracked(on: boolean): this;
|
|
129
|
+
/** `--no-index` */
|
|
130
|
+
setNoIndex(on: boolean): this;
|
|
131
|
+
/** `--exclude-standard` (true) / `--no-exclude-standard` (false) */
|
|
132
|
+
setExcludeStandard(on: boolean | undefined): this;
|
|
133
|
+
/** `--recurse-submodules`: refused (not supported yet) */
|
|
134
|
+
setRecurseSubmodules(on: boolean): this;
|
|
135
|
+
/**
|
|
136
|
+
* The arguments after the pattern: revisions, then paths (`--` between them), checked as
|
|
137
|
+
* git checks them (a path must exist without `--`, a revision must not also be a file)
|
|
138
|
+
*/
|
|
139
|
+
setArguments(args: string[]): this;
|
|
140
|
+
/** A revision or tree to search (`<rev>`, `<rev>:<path>`, a tree id) */
|
|
141
|
+
addRevision(revision: string): this;
|
|
142
|
+
/** Pathspecs (`-- <path>...`) */
|
|
143
|
+
addPath(...paths: string[]): this;
|
|
144
|
+
/** The current directory below the top (`sub/` or `sub`): names are relative to it */
|
|
145
|
+
setPrefix(prefix: string): this;
|
|
146
|
+
/** `--max-depth <n>` (-1: none) */
|
|
147
|
+
setMaxDepth(depth: number): this;
|
|
148
|
+
/** `-n` / `--no-line-number` (undefined: `grep.lineNumber`) */
|
|
149
|
+
setLineNumber(on: boolean | undefined): this;
|
|
150
|
+
/** `--column` (undefined: `grep.column`) */
|
|
151
|
+
setColumn(on: boolean | undefined): this;
|
|
152
|
+
/** `-H` (true) / `-h` (false) */
|
|
153
|
+
setShowFilename(on: boolean): this;
|
|
154
|
+
/** `--full-name` (undefined: `grep.fullName`) */
|
|
155
|
+
setFullName(on: boolean | undefined): this;
|
|
156
|
+
/** `-z` */
|
|
157
|
+
setNull(on: boolean): this;
|
|
158
|
+
/** `-o` */
|
|
159
|
+
setOnlyMatching(on: boolean): this;
|
|
160
|
+
/** `-c` */
|
|
161
|
+
setCount(on: boolean): this;
|
|
162
|
+
/** `-l` */
|
|
163
|
+
setFilesWithMatches(on: boolean): this;
|
|
164
|
+
/** `-L` */
|
|
165
|
+
setFilesWithoutMatch(on: boolean): this;
|
|
166
|
+
/** `-q` */
|
|
167
|
+
setQuiet(on: boolean): this;
|
|
168
|
+
/** `--break` */
|
|
169
|
+
setBreak(on: boolean): this;
|
|
170
|
+
/** `--heading` */
|
|
171
|
+
setHeading(on: boolean): this;
|
|
172
|
+
/** `-B <n>` */
|
|
173
|
+
setBeforeContext(n: number): this;
|
|
174
|
+
/** `-A <n>` */
|
|
175
|
+
setAfterContext(n: number): this;
|
|
176
|
+
/** `-C <n>` */
|
|
177
|
+
setContext(n: number): this;
|
|
178
|
+
/** `-p` */
|
|
179
|
+
setShowFunction(on: boolean): this;
|
|
180
|
+
/** `-W` */
|
|
181
|
+
setFunctionContext(on: boolean): this;
|
|
182
|
+
/** `-m <n>` (negative: no limit) */
|
|
183
|
+
setMaxCount(n: number): this;
|
|
184
|
+
/** `-a` (`text`), `-I` (`nomatch`) */
|
|
185
|
+
setBinary(mode: GrepBinaryMode): this;
|
|
186
|
+
/** `--textconv` / `--no-textconv` */
|
|
187
|
+
setTextconv(on: boolean): this;
|
|
188
|
+
/** `--color=always` (true), `--no-color` (false); undefined: `color.grep`/`color.ui` */
|
|
189
|
+
setColor(on: boolean | undefined): this;
|
|
190
|
+
/**
|
|
191
|
+
* `--threads <n>`: 1 prints as git's single-threaded grep, more (the default) as its
|
|
192
|
+
* threaded one (a hunk mark before each file's context, the first output's first line
|
|
193
|
+
* dropped)
|
|
194
|
+
*/
|
|
195
|
+
setThreads(n: number): this;
|
|
196
|
+
/** The git version to follow (`2.43` or `2.56`, the default); see `GrepEngineOptions` */
|
|
197
|
+
setCompatibility(compatibility: "2.43" | "2.56"): this;
|
|
198
|
+
call(): Promise<GrepResult>;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* `git grep --no-index` outside a repository: the files of `worktree` (any `Worktree`, a
|
|
202
|
+
* `FileWorktree` over the directory), read as git reads them without a repository. Options
|
|
203
|
+
* are {@link GrepOptions} (`prefix` the current directory below `worktree`'s root);
|
|
204
|
+
* `config` gives configuration values (the global and system files', if any).
|
|
205
|
+
*/
|
|
206
|
+
export declare function grepNoIndex(worktree: Worktree, options: Partial<GrepOptions> & {
|
|
207
|
+
tokens: GrepToken[];
|
|
208
|
+
}, config?: (key: string) => string | undefined): Promise<GrepResult>;
|
|
209
|
+
export {};
|
|
210
|
+
//# sourceMappingURL=grep-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grep-command.d.ts","sourceRoot":"","sources":["../../../src/commands/grep/grep-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAOH,OAAO,EAKL,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMlD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAEL,KAAK,cAAc,EAGnB,KAAK,iBAAiB,EAEtB,KAAK,SAAS,EAGf,MAAM,kBAAkB,CAAC;AAE1B,gDAAgD;AAChD,MAAM,WAAW,UAAU;IACzB,oFAAoF;IACpF,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,gCAAgC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB;IACnB,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,2EAA2E;AAC3E,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,iBAAiB,EAAE,YAA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