@statewalker/vcs-commands 0.6.0 → 0.8.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 +38 -0
- package/dist/commands/add-command.d.ts.map +1 -1
- package/dist/commands/am/am-command.d.ts +55 -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.map +1 -1
- package/dist/commands/apply/apply-engine.d.ts.map +1 -1
- package/dist/commands/apply/apply-parse.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/bisect/bisect-engine.d.ts.map +1 -1
- 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/checkout-command.d.ts +19 -3
- package/dist/commands/checkout-command.d.ts.map +1 -1
- package/dist/commands/cherry-pick-command.d.ts +59 -0
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clean-command.d.ts +12 -0
- package/dist/commands/clean-command.d.ts.map +1 -1
- package/dist/commands/clone-command.d.ts +17 -0
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/comment-char-config.d.ts +35 -0
- package/dist/commands/comment-char-config.d.ts.map +1 -0
- package/dist/commands/commit-command.d.ts +191 -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/default-branch.d.ts +70 -0
- package/dist/commands/default-branch.d.ts.map +1 -0
- 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 +252 -5
- package/dist/commands/diff-command.d.ts.map +1 -1
- package/dist/commands/fetch-command.d.ts +20 -0
- package/dist/commands/fetch-command.d.ts.map +1 -1
- 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 +41 -1
- 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/fsck/fsck-command.d.ts +2 -0
- package/dist/commands/fsck/fsck-command.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-loose.d.ts +3 -0
- package/dist/commands/fsck/fsck-loose.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-object-checks.d.ts +25 -14
- package/dist/commands/fsck/fsck-object-checks.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-object-table.d.ts +15 -7
- package/dist/commands/fsck/fsck-object-table.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-pack.d.ts +11 -4
- package/dist/commands/fsck/fsck-pack.d.ts.map +1 -1
- package/dist/commands/fsck/verify-pack-command.d.ts.map +1 -1
- package/dist/commands/gc-command.d.ts +80 -48
- package/dist/commands/gc-command.d.ts.map +1 -1
- package/dist/commands/git-date.d.ts +1 -65
- package/dist/commands/git-date.d.ts.map +1 -1
- package/dist/commands/git-describe.d.ts +4 -0
- package/dist/commands/git-describe.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +43 -0
- 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 +15 -2
- package/dist/commands/index-adder.d.ts.map +1 -1
- package/dist/commands/index.d.ts +28 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +3 -3
- package/dist/commands/init-command.d.ts +50 -3
- 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/legacy-remotes.d.ts +55 -0
- package/dist/commands/legacy-remotes.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 +296 -11
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-graph.d.ts +26 -1
- package/dist/commands/log-graph.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +133 -5
- 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 +30 -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 +108 -9
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-support.d.ts +11 -3
- package/dist/commands/merge-support.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.d.ts +48 -0
- package/dist/commands/name-rev.d.ts.map +1 -0
- package/dist/commands/notes-command.d.ts.map +1 -1
- package/dist/commands/notes-merge-command.d.ts.map +1 -1
- package/dist/commands/notes-tree.d.ts +11 -1
- package/dist/commands/notes-tree.d.ts.map +1 -1
- package/dist/commands/patch-id.d.ts +3 -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 +28 -0
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +160 -9
- package/dist/commands/push-command.d.ts.map +1 -1
- package/dist/commands/read-tree-command.d.ts +6 -0
- package/dist/commands/read-tree-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +168 -6
- 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/remote-command.d.ts +138 -29
- package/dist/commands/remote-command.d.ts.map +1 -1
- 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 +2 -3
- package/dist/commands/reset-command.d.ts.map +1 -1
- package/dist/commands/restore-command.d.ts +2 -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 +154 -2
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/rev-parse-command.d.ts +9 -0
- package/dist/commands/rev-parse-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +32 -0
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +32 -1
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/revision-resolver.d.ts +21 -2
- 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 +85 -5
- package/dist/commands/sequencer-pick.d.ts.map +1 -1
- package/dist/commands/sequencer-support.d.ts +2 -0
- 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/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 +18 -1
- 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.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 +375 -0
- package/dist/commands/submodule-commands.d.ts.map +1 -0
- package/dist/commands/submodule-model.d.ts +288 -0
- package/dist/commands/submodule-model.d.ts.map +1 -0
- package/dist/commands/submodule-summary-command.d.ts.map +1 -1
- package/dist/commands/submodule-update-command.d.ts +198 -0
- package/dist/commands/submodule-update-command.d.ts.map +1 -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/untracked-cache-support.d.ts +2 -1
- package/dist/commands/untracked-cache-support.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-list-command.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-DnmlfwGV.js → commands-ISM52N0n.js} +66120 -49271
- 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.map +1 -1
- package/dist/errors/index.js +57 -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/{git-command-DxvwPrPB.js → fsck-DLRpbwTj.js} +6863 -1070
- package/dist/git-command.d.ts +43 -2
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +276 -3
- package/dist/git.d.ts.map +1 -1
- package/dist/index.js +5 -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 +117 -3
- package/dist/remote-config/remote-config-store.d.ts.map +1 -1
- package/dist/rename/detect-renames.d.ts.map +1 -1
- package/dist/results/clone-result.d.ts +8 -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-output.d.ts +85 -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/index.d.ts +4 -0
- package/dist/results/index.d.ts.map +1 -1
- package/dist/results/index.js +2 -2
- package/dist/results/init-result.d.ts +7 -0
- package/dist/results/init-result.d.ts.map +1 -1
- package/dist/results/pull-result.d.ts +5 -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.map +1 -1
- package/dist/{results-BZGa2Z3I.js → results-TB2IJ64h.js} +2178 -412
- 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 +178 -17
- package/src/commands/add-patch/add-interactive.ts +3 -3
- package/src/commands/am/am-command.ts +263 -43
- package/src/commands/am/index.ts +1 -0
- package/src/commands/am/mailsplit.ts +326 -0
- package/src/commands/apply/apply-command.ts +18 -8
- package/src/commands/apply/apply-engine.ts +6 -7
- package/src/commands/apply/apply-parse.ts +10 -10
- package/src/commands/attributes-source.ts +1 -1
- package/src/commands/bisect/bisect-command.ts +18 -5
- package/src/commands/bisect/bisect-engine.ts +2 -1
- 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/checkout-command.ts +70 -44
- package/src/commands/cherry-pick-command.ts +143 -0
- package/src/commands/clean-command.ts +34 -3
- package/src/commands/clone-command.ts +118 -5
- package/src/commands/comment-char-config.ts +160 -0
- package/src/commands/commit-command.ts +790 -71
- 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 +47 -2
- package/src/commands/default-branch.ts +196 -0
- package/src/commands/diff-color-config.ts +274 -0
- package/src/commands/diff-command.ts +1053 -75
- package/src/commands/fetch-command.ts +161 -13
- 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 +316 -43
- package/src/commands/fsck/fetch-fsck.ts +172 -18
- package/src/commands/fsck/fsck-command.ts +183 -66
- package/src/commands/fsck/fsck-loose.ts +14 -4
- package/src/commands/fsck/fsck-object-checks.ts +87 -46
- package/src/commands/fsck/fsck-object-table.ts +52 -42
- package/src/commands/fsck/fsck-pack.ts +64 -34
- package/src/commands/fsck/verify-pack-command.ts +5 -2
- package/src/commands/gc-command.ts +238 -107
- package/src/commands/git-date.ts +9 -895
- package/src/commands/git-describe.ts +31 -11
- package/src/commands/git-hooks.ts +92 -0
- 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 +54 -10
- package/src/commands/index.ts +28 -0
- package/src/commands/init-command.ts +167 -11
- package/src/commands/interpret-trailers-command.ts +256 -0
- package/src/commands/legacy-remotes.ts +224 -0
- package/src/commands/local-transport.ts +109 -10
- package/src/commands/log-command.ts +1283 -232
- package/src/commands/log-graph.ts +123 -26
- package/src/commands/log-output.ts +280 -21
- package/src/commands/ls-remote-command.ts +9 -0
- package/src/commands/mailmap.ts +119 -0
- package/src/commands/merge-base-command.ts +170 -0
- package/src/commands/merge-bases.ts +63 -8
- package/src/commands/merge-command.ts +360 -82
- package/src/commands/merge-support.ts +43 -9
- package/src/commands/mv-command.ts +6 -3
- package/src/commands/name-rev.ts +171 -0
- package/src/commands/notes-command.ts +11 -1
- package/src/commands/notes-merge-command.ts +23 -14
- package/src/commands/notes-tree.ts +28 -13
- package/src/commands/octopus-merge.ts +3 -2
- package/src/commands/patch-id.ts +16 -8
- package/src/commands/pathspec-file.ts +72 -0
- package/src/commands/pathspec.ts +14 -2
- package/src/commands/pretty-format.ts +105 -20
- package/src/commands/promisor-remote.ts +10 -1
- package/src/commands/pull-command.ts +149 -22
- package/src/commands/push-command.ts +704 -72
- package/src/commands/read-tree-command.ts +34 -3
- package/src/commands/rebase-command.ts +957 -142
- 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/remote-command.ts +484 -74
- package/src/commands/remote-transport.ts +9 -1
- package/src/commands/reset-command.ts +40 -42
- package/src/commands/restore-command.ts +12 -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 +402 -15
- package/src/commands/rev-parse-command.ts +22 -0
- package/src/commands/revert-command.ts +82 -0
- package/src/commands/revision-range.ts +204 -4
- package/src/commands/revision-resolver.ts +55 -22
- package/src/commands/rm-command.ts +282 -21
- package/src/commands/sequencer-pick.ts +504 -86
- package/src/commands/sequencer-support.ts +30 -5
- package/src/commands/serve-repository.ts +18 -3
- package/src/commands/show-command.ts +490 -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 +17 -5
- package/src/commands/stash-branch-command.ts +88 -0
- package/src/commands/stash-create-command.ts +30 -2
- 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 +7 -6
- package/src/commands/status-header.ts +44 -8
- package/src/commands/submodule-add-command.ts +509 -0
- package/src/commands/submodule-auth.ts +276 -0
- package/src/commands/submodule-commands.ts +1517 -0
- package/src/commands/submodule-model.ts +930 -0
- package/src/commands/submodule-summary-command.ts +6 -7
- package/src/commands/submodule-update-command.ts +1092 -0
- package/src/commands/switch-command.ts +3 -1
- package/src/commands/tag-command.ts +876 -64
- package/src/commands/trailers.ts +837 -100
- package/src/commands/tree-restore.ts +38 -10
- package/src/commands/untracked-cache-support.ts +16 -12
- package/src/commands/verify-command.ts +235 -0
- package/src/commands/worktree-add-command.ts +268 -24
- package/src/commands/worktree-list-command.ts +3 -5
- 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/core-commands/add.command.impl.ts +1 -1
- package/src/errors/checkout-errors.ts +29 -0
- package/src/errors/command-errors.ts +2 -1
- package/src/errors/ref-errors.ts +23 -0
- package/src/errors/worktree-errors.ts +8 -1
- package/src/git-command.ts +98 -3
- package/src/git.ts +420 -4
- package/src/remote-config/index.ts +4 -0
- package/src/remote-config/remote-config-store.ts +238 -11
- package/src/rename/detect-renames.ts +5 -1
- package/src/results/clone-result.ts +9 -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-output.ts +204 -37
- package/src/results/diff-pickaxe.ts +304 -0
- package/src/results/diff-words.ts +395 -0
- package/src/results/index.ts +4 -0
- package/src/results/init-result.ts +9 -0
- package/src/results/pull-result.ts +5 -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 +5 -2
- 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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReflogEntry } from "@statewalker/vcs-core";
|
|
2
2
|
import { GitCommand } from "../git-command.js";
|
|
3
|
+
import type { LogOutputOptions } from "./log-output.js";
|
|
3
4
|
/**
|
|
4
5
|
* Read reflog entries for a ref.
|
|
5
6
|
*
|
|
@@ -24,16 +25,126 @@ import { GitCommand } from "../git-command.js";
|
|
|
24
25
|
* for (const entry of entries) {
|
|
25
26
|
* console.log(`${entry.newId.slice(0, 7)} ${entry.comment}`);
|
|
26
27
|
* }
|
|
28
|
+
*
|
|
29
|
+
* // git reflog show -2 main: "1a2b3c4 main@{0}: commit: Second\n..."
|
|
30
|
+
* const text = await git.reflog().setRef("main").setMaxCount(2).callText();
|
|
31
|
+
*
|
|
32
|
+
* // git reflog exists refs/heads/main
|
|
33
|
+
* const exists = await git.reflog().setRef("refs/heads/main").callExists();
|
|
34
|
+
*
|
|
35
|
+
* // git reflog expire --expire=now --all; git reflog delete --rewrite main@{1}
|
|
36
|
+
* await git.reflog().setExpire("now").setAll(true).callExpire();
|
|
37
|
+
* await git.reflog().setRewrite(true).callDelete("main@{1}");
|
|
27
38
|
* ```
|
|
28
39
|
*/
|
|
29
40
|
export declare class ReflogCommand extends GitCommand<ReflogEntry[]> {
|
|
30
41
|
private ref;
|
|
42
|
+
private maxCount?;
|
|
43
|
+
private warnings;
|
|
44
|
+
private compatibility?;
|
|
45
|
+
private expire?;
|
|
46
|
+
private expireUnreachable?;
|
|
47
|
+
private all;
|
|
48
|
+
private singleWorktree;
|
|
49
|
+
private staleFix;
|
|
50
|
+
private rewrite;
|
|
51
|
+
private updateRef;
|
|
52
|
+
private dryRun;
|
|
53
|
+
private verbose;
|
|
54
|
+
/**
|
|
55
|
+
* The git version to follow: 2.43 has no `reflog write` and `reflog drop` (git reads them
|
|
56
|
+
* as a revision and dies). Default: the hooks' compatibility.
|
|
57
|
+
*/
|
|
58
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
59
|
+
/**
|
|
60
|
+
* `--expire=<time>` of `expire`: entries older go (a git expiry date: `now`/`all`,
|
|
61
|
+
* `never`/`false`, `90.days.ago`, an epoch; a number is seconds since the epoch).
|
|
62
|
+
*/
|
|
63
|
+
setExpire(time: string | number): this;
|
|
64
|
+
/** `--expire-unreachable=<time>` of `expire`: older entries the ref's tip does not reach go. */
|
|
65
|
+
setExpireUnreachable(time: string | number): this;
|
|
66
|
+
/** `--all` of `expire` and `drop`: every reflog of every worktree. */
|
|
67
|
+
setAll(all: boolean): this;
|
|
68
|
+
/** `--single-worktree` (with `--all`): the current worktree's reflogs and the shared ones. */
|
|
69
|
+
setSingleWorktree(single: boolean): this;
|
|
70
|
+
/** `--stale-fix` of `expire`: entries naming commits with missing history or trees go. */
|
|
71
|
+
setStaleFix(staleFix: boolean): this;
|
|
72
|
+
/** `--rewrite`: each kept entry's old id becomes the new id of the kept entry before it. */
|
|
73
|
+
setRewrite(rewrite: boolean): this;
|
|
74
|
+
/** `--updateref`: the ref (not a symbolic one) set to the newest kept entry's new id. */
|
|
75
|
+
setUpdateRef(updateRef: boolean): this;
|
|
76
|
+
/** `-n`/`--dry-run`: nothing written. */
|
|
77
|
+
setDryRun(dryRun: boolean): this;
|
|
78
|
+
/** `--verbose`: `keep`/`prune`/`would prune <message>` per entry in the output. */
|
|
79
|
+
setVerbose(verbose: boolean): this;
|
|
31
80
|
/**
|
|
32
81
|
* Set the ref to show reflog for.
|
|
33
82
|
*
|
|
34
83
|
* @param ref Ref name (default: "HEAD")
|
|
35
84
|
*/
|
|
36
85
|
setRef(ref: string): this;
|
|
86
|
+
/** `-<n>` / `-n <n>` of `git reflog show`: at most `n` entries. */
|
|
87
|
+
setMaxCount(maxCount: number): this;
|
|
88
|
+
/**
|
|
89
|
+
* `git reflog [show] [<ref>]`'s output: `git log -g --abbrev-commit --pretty=oneline` of
|
|
90
|
+
* the ref (`%h <ref>@{n}: <message>` per entry; the ref may carry a selector, `main@{2}`,
|
|
91
|
+
* `HEAD@{now}`). `options` are log options over those defaults (`{ pretty: "short" }`
|
|
92
|
+
* still abbreviates, `{ abbrevCommit: false }` is `--no-abbrev-commit`). Throws where git
|
|
93
|
+
* dies (a ref that names nothing: `ambiguous argument`); {@link getWarnings} holds what it
|
|
94
|
+
* warned.
|
|
95
|
+
*/
|
|
96
|
+
callText(options?: LogOutputOptions): Promise<string>;
|
|
97
|
+
/** What {@link callText} warned while reading the ref (`warning: log for ...`). */
|
|
98
|
+
getWarnings(): string[];
|
|
99
|
+
/**
|
|
100
|
+
* `git reflog exists <ref>`: whether the ref (a full name, `refs/heads/main`, or `HEAD`)
|
|
101
|
+
* has a reflog, an empty one too.
|
|
102
|
+
*/
|
|
103
|
+
callExists(): Promise<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* `git reflog expire [<refs>...]` (builtin/reflog.c, reflog.c, files_reflog_expire /
|
|
106
|
+
* reftable_be_reflog_expire): the entries of each reflog named (`main`, `HEAD`, by git's
|
|
107
|
+
* ref rules), or of every reflog with {@link setAll}, older than `--expire` (default
|
|
108
|
+
* `gc.reflogExpire`, `gc.<pattern>.reflogExpire`, 90 days; `refs/stash` never), or older
|
|
109
|
+
* than `--expire-unreachable` (`gc.reflogExpireUnreachable`, 30 days) and not reached from
|
|
110
|
+
* the ref's tip (a HEAD's: from any ref), go. Returns git's stdout (`--verbose`), its error
|
|
111
|
+
* lines and its exit status (255 when a reflog could not be found or locked); throws where
|
|
112
|
+
* git dies (an invalid time, a bad `gc.reflogExpire*` value).
|
|
113
|
+
*/
|
|
114
|
+
callExpire(...refs: string[]): Promise<ReflogUpdateResult>;
|
|
115
|
+
/**
|
|
116
|
+
* `git reflog delete <ref>@{<n>|<date>}...` (reflog_delete): the entry each selector
|
|
117
|
+
* names is removed (`@{<date>}`: the newest entry older than the date), honouring
|
|
118
|
+
* {@link setRewrite}, {@link setUpdateRef}, {@link setDryRun} and {@link setVerbose}. A
|
|
119
|
+
* selector past the end deletes nothing.
|
|
120
|
+
*/
|
|
121
|
+
callDelete(...revisions: string[]): Promise<ReflogUpdateResult>;
|
|
122
|
+
/**
|
|
123
|
+
* `git reflog drop [--all [--single-worktree] | <refs>...]` (git 2.5x): each reflog named,
|
|
124
|
+
* or every one, removed whole. Refused under 2.43 compatibility as git 2.43 refuses it.
|
|
125
|
+
*/
|
|
126
|
+
callDrop(...refs: string[]): Promise<ReflogUpdateResult>;
|
|
127
|
+
/**
|
|
128
|
+
* `git reflog write <ref> <old-oid> <new-oid> <message>` (git 2.5x): one line appended to
|
|
129
|
+
* the reflog of `ref` (a full name or a root ref; created when absent) with the committer
|
|
130
|
+
* ident, the ref left alone. Throws where git dies (an invalid name, an id that is not a
|
|
131
|
+
* full one or names a missing object); refused under 2.43 compatibility.
|
|
132
|
+
*/
|
|
133
|
+
callWrite(ref: string, oldId: string, newId: string, message: string): Promise<ReflogUpdateResult>;
|
|
134
|
+
/** git 2.43's cmd_reflog reads `write`/`drop` as a revision of `git reflog show`. */
|
|
135
|
+
private refuseBefore251;
|
|
136
|
+
/** The objects of the repository (for the existence checks of `write`). */
|
|
137
|
+
private historyObjects;
|
|
138
|
+
/**
|
|
139
|
+
* What the reflog engine works on: the common git directory and its FilesApi, the refs,
|
|
140
|
+
* the objects, and the linked worktree this command runs in (its id).
|
|
141
|
+
*/
|
|
142
|
+
private reflogRepository;
|
|
143
|
+
/**
|
|
144
|
+
* repo_dwim_log: the reflog `name` names by the ref rules, as the engine names it (a
|
|
145
|
+
* linked worktree's own refs as `worktrees/<id>/<ref>`); undefined when there is none.
|
|
146
|
+
*/
|
|
147
|
+
private dwimLog;
|
|
37
148
|
/**
|
|
38
149
|
* Execute the reflog command.
|
|
39
150
|
*
|
|
@@ -42,4 +153,13 @@ export declare class ReflogCommand extends GitCommand<ReflogEntry[]> {
|
|
|
42
153
|
*/
|
|
43
154
|
call(): Promise<ReflogEntry[]>;
|
|
44
155
|
}
|
|
156
|
+
/** What `git reflog expire`, `delete`, `drop` and `write` print and exit with. */
|
|
157
|
+
export interface ReflogUpdateResult {
|
|
158
|
+
/** git's exit status: 0, or 255 when a reflog was not found or could not be changed */
|
|
159
|
+
status: number;
|
|
160
|
+
/** git's stdout (`--verbose` lines) */
|
|
161
|
+
output: string;
|
|
162
|
+
/** git's stderr lines (`error: ...`) */
|
|
163
|
+
errors: string[];
|
|
164
|
+
}
|
|
45
165
|
//# sourceMappingURL=reflog-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflog-command.d.ts","sourceRoot":"","sources":["../../src/commands/reflog-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"reflog-command.d.ts","sourceRoot":"","sources":["../../src/commands/reflog-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAc/E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,WAAW,EAAE,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,aAAa,CAAC,CAAkB;IACxC,OAAO,CAAC,MAAM,CAAC,CAAkB;IACjC,OAAO,CAAC,iBAAiB,CAAC,CAAkB;IAC5C,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;IAExB;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAA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CpE;IAED;;;OAGG;IACG,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA8B7D;IAED;;;;;OAKG;IACG,SAAS,CACb,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,kBAAkB,CAAC,CAiC7B;IAED,qFAAqF;IACrF,OAAO,CAAC,eAAe;IASvB,2EAA2E;IAC3E,OAAO,CAAC,cAAc;IAItB;;;OAGG;YACW,gBAAgB;IAyB9B;;;OAGG;YACW,OAAO;IAYrB;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAgBnC;CACF;AAED,kFAAkF;AAClF,MAAM,WAAW,kBAAkB;IACjC,uFAAuF;IACvF,MAAM,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reflog walk of `git log -g` (reflog-walk.c): each name given (`HEAD`, `main@{2}`,
|
|
3
|
+
* `HEAD@{now}`) opens one reflog at one entry, and the walk takes, entry by entry, the newest
|
|
4
|
+
* of the logs' current entries (the first log named wins a tie), passing over entries whose
|
|
5
|
+
* new value is no commit.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const logs = await openReflogWalk(["HEAD", "main@{1}"], host);
|
|
10
|
+
* for await (const step of walkReflogs(logs, (id) => commits.load(id))) {
|
|
11
|
+
* console.log(step.reflog.ref, step.reflog.index, step.id);
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
import type { Commit, ObjectId, ReflogEntry } from "@statewalker/vcs-core";
|
|
16
|
+
import type { LogReflogEntry } from "./log-output.js";
|
|
17
|
+
/** What opening a reflog walk reads of the repository. */
|
|
18
|
+
export interface ReflogWalkHost {
|
|
19
|
+
/** A ref's reflog, oldest entry first; undefined or empty when it has none */
|
|
20
|
+
reflog(ref: string): Promise<ReflogEntry[] | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* refs_resolve_refdup: the ref a symbolic `ref` ends at, or `ref` itself; undefined when it
|
|
23
|
+
* names no ref. `reading`: only a ref that holds a value (RESOLVE_REF_READING)
|
|
24
|
+
*/
|
|
25
|
+
resolveRef(ref: string, reading: boolean): Promise<string | undefined>;
|
|
26
|
+
/** repo_interpret_branch_name over the start of a name (`@{-1}`, `@{u}`, `@`) */
|
|
27
|
+
interpretBranchPrefix(name: string): Promise<{
|
|
28
|
+
used: number;
|
|
29
|
+
value: string;
|
|
30
|
+
} | undefined>;
|
|
31
|
+
/** repo_dwim_log: the refs whose reflog a name names by the ref rules */
|
|
32
|
+
dwimLogRefs(name: string): Promise<string[]>;
|
|
33
|
+
/** refs_shorten_unambiguous_ref, for `%gd` */
|
|
34
|
+
shortenRef(ref: string): Promise<string>;
|
|
35
|
+
/** The time `@{<date>}` selectors are read against (seconds) */
|
|
36
|
+
now(): number;
|
|
37
|
+
}
|
|
38
|
+
/** One reflog of a walk, opened at one entry (reflog-walk.c's `commit_reflog`). */
|
|
39
|
+
export interface ReflogWalkLog {
|
|
40
|
+
/** The ref as the walk names it (`HEAD`, `main`, `refs/heads/main`) */
|
|
41
|
+
readonly ref: string;
|
|
42
|
+
/** Its shortened name (`%gd`) */
|
|
43
|
+
readonly shortRef: string;
|
|
44
|
+
/** The entries, oldest first */
|
|
45
|
+
readonly items: readonly ReflogEntry[];
|
|
46
|
+
/** How the name selected the first entry: `@{<n>}`, `@{<date>}` or neither */
|
|
47
|
+
readonly selector: "index" | "date" | undefined;
|
|
48
|
+
/** The entry to read next (counting from the oldest), -1 when done */
|
|
49
|
+
recno: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* add_reflog_for_walk for each name: the logs a walk reads. A name whose reflog is missing or
|
|
53
|
+
* empty, or whose `@{<date>}` lies before its first entry, opens nothing (git skips it).
|
|
54
|
+
* Throws where git dies (`no current branch`).
|
|
55
|
+
*/
|
|
56
|
+
export declare function openReflogWalk(names: readonly string[], host: ReflogWalkHost): Promise<ReflogWalkLog[]>;
|
|
57
|
+
/** One step of a reflog walk: the commit shown and the entry it is shown for */
|
|
58
|
+
export interface ReflogWalkStep {
|
|
59
|
+
id: ObjectId;
|
|
60
|
+
commit: Commit;
|
|
61
|
+
/** The entry, as the log printer shows it */
|
|
62
|
+
reflog: LogReflogEntry;
|
|
63
|
+
/** The entry's time (what `--since`/`--until` compare in a reflog walk) */
|
|
64
|
+
time: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* next_reflog_entry until every log is done: of the logs' current entries naming commits,
|
|
68
|
+
* the newest (the first log on a tie). `loadCommit` gives undefined for an id that names no
|
|
69
|
+
* commit (missing, or another type), which the walk passes over.
|
|
70
|
+
*/
|
|
71
|
+
export declare function walkReflogs(logs: readonly ReflogWalkLog[], loadCommit: (id: ObjectId) => Promise<Commit | undefined>): AsyncGenerator<ReflogWalkStep>;
|
|
72
|
+
//# sourceMappingURL=reflog-walk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reflog-walk.d.ts","sourceRoot":"","sources":["../../src/commands/reflog-walk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,8EAA8E;IAC9E,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC;IACxD;;;OAGG;IACH,U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I,EAAE,SAAS,aAAa,EAAE,EAC9B,UAAU,EAAE,CAAC,EAAE,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,GACxD,cAAc,CAAC,cAAc,CAAC,CAiDhC"}
|
|
@@ -1,31 +1,52 @@
|
|
|
1
1
|
import { GitCommand } from "../git-command.js";
|
|
2
2
|
import { type RemoteConfig } from "../remote-config/index.js";
|
|
3
|
+
import type { FetchResult } from "../results/index.js";
|
|
3
4
|
import { TransportCommand } from "../transport-command.js";
|
|
4
5
|
export type { RemoteConfig };
|
|
6
|
+
/**
|
|
7
|
+
* How `git remote add --mirror` sets a remote up: `fetch` (`--mirror=fetch`: the fetch
|
|
8
|
+
* refspec maps every ref to itself), `push` (`--mirror=push`: `remote.<name>.mirror=true`),
|
|
9
|
+
* `both` (git's deprecated bare `--mirror`).
|
|
10
|
+
*/
|
|
11
|
+
export type RemoteMirrorMode = "fetch" | "push" | "both";
|
|
5
12
|
/**
|
|
6
13
|
* Add a remote to the repository.
|
|
7
14
|
*
|
|
8
|
-
* Equivalent to `git remote add
|
|
9
|
-
*
|
|
10
|
-
*
|
|
15
|
+
* Equivalent to `git remote add [-f] [--[no-]tags] [-t <branch>]... [-m <master>]
|
|
16
|
+
* [--mirror=(fetch|push)] <name> <url>`, as git's builtin/remote.c `add`: `remote.<name>.url`,
|
|
17
|
+
* then one `remote.<name>.fetch` line per tracked branch (`+refs/heads/<b>:refs/remotes/<name>/<b>`,
|
|
18
|
+
* every branch by default; a fetch mirror maps `refs/<b>` to itself), `remote.<name>.mirror`
|
|
19
|
+
* for a push mirror and `remote.<name>.tagOpt` for `--tags`/`--no-tags`; with {@link setFetch}
|
|
20
|
+
* the remote is fetched (git runs `git fetch <name>`), and with {@link setMaster}
|
|
21
|
+
* `refs/remotes/<name>/HEAD` names `refs/remotes/<name>/<master>` (reflog `remote add`).
|
|
11
22
|
*
|
|
12
|
-
*
|
|
13
|
-
* `
|
|
14
|
-
*
|
|
15
|
-
* without a config section.
|
|
23
|
+
* A remote counts as existing as git's `remote_is_configured(remote, 1)` decides: a
|
|
24
|
+
* `remote.<name>.*` variable of the repository's own configuration, or a legacy remote file
|
|
25
|
+
* (`.git/remotes/`, `.git/branches/`, git 2.x); tracking refs alone do not make one.
|
|
16
26
|
*
|
|
17
27
|
* @example
|
|
18
28
|
* ```typescript
|
|
19
29
|
* await git.remoteAdd()
|
|
20
30
|
* .setName("upstream")
|
|
21
31
|
* .setUri("https://github.com/user/repo")
|
|
32
|
+
* .setTrack("main", "next")
|
|
33
|
+
* .setMaster("main")
|
|
22
34
|
* .call();
|
|
23
35
|
* ```
|
|
24
36
|
*/
|
|
25
|
-
export declare class RemoteAddCommand extends
|
|
37
|
+
export declare class RemoteAddCommand extends TransportCommand<RemoteConfig> {
|
|
38
|
+
/** git's command reads no core settings: an unparsable `core.whitespace` does not stop it */
|
|
39
|
+
protected readsCoreConfig(): boolean;
|
|
26
40
|
private name?;
|
|
27
41
|
private uri?;
|
|
28
42
|
private fetchRefspec?;
|
|
43
|
+
private fetchAfter;
|
|
44
|
+
private track;
|
|
45
|
+
private master?;
|
|
46
|
+
private mirror?;
|
|
47
|
+
private tags?;
|
|
48
|
+
private messages;
|
|
49
|
+
private fetchResult?;
|
|
29
50
|
/**
|
|
30
51
|
* Set the remote name.
|
|
31
52
|
*
|
|
@@ -47,22 +68,61 @@ export declare class RemoteAddCommand extends GitCommand<RemoteConfig> {
|
|
|
47
68
|
*/
|
|
48
69
|
getUri(): string | undefined;
|
|
49
70
|
/**
|
|
50
|
-
* Set custom fetch refspec
|
|
71
|
+
* Set custom fetch refspec, written instead of the ones {@link setTrack} and
|
|
72
|
+
* {@link setMirror} make.
|
|
51
73
|
*
|
|
52
74
|
* If not set, defaults to +refs/heads/*:refs/remotes/{name}/*
|
|
53
75
|
*
|
|
54
76
|
* @param refspec Fetch refspec
|
|
55
77
|
*/
|
|
56
78
|
setFetchRefspec(refspec: string): this;
|
|
79
|
+
/** Fetch the remote once it is added (`-f`), as git's `git fetch <name>`. */
|
|
80
|
+
setFetch(fetch: boolean): this;
|
|
81
|
+
/**
|
|
82
|
+
* The branches to track (`-t <branch>`, repeated): one fetch refspec each instead of
|
|
83
|
+
* every branch. A name may be a pattern (`feat/*`), as git writes it into the refspec.
|
|
84
|
+
*/
|
|
85
|
+
setTrack(...branches: string[]): this;
|
|
86
|
+
/** Point `refs/remotes/<name>/HEAD` at `refs/remotes/<name>/<branch>` (`-m <branch>`). */
|
|
87
|
+
setMaster(branch: string): this;
|
|
88
|
+
/**
|
|
89
|
+
* Set the remote up as a mirror (`--mirror=fetch`, `--mirror=push`); `true` is git's bare
|
|
90
|
+
* `--mirror` (both, with git's deprecation warning in {@link getMessages}), `false` none.
|
|
91
|
+
*/
|
|
92
|
+
setMirror(mirror: "fetch" | "push" | boolean): this;
|
|
93
|
+
/**
|
|
94
|
+
* `--tags` (true: `remote.<name>.tagOpt=--tags`) or `--no-tags` (false: `--no-tags`);
|
|
95
|
+
* undefined writes no `tagOpt`.
|
|
96
|
+
*/
|
|
97
|
+
setTags(tags: boolean | undefined): this;
|
|
98
|
+
/**
|
|
99
|
+
* What git prints: the `--mirror` warning, legacy-remote warnings (git 2.5x), `Updating
|
|
100
|
+
* <name>` (stdout) before a fetch, and the fetch's own messages. Empty before {@link call}.
|
|
101
|
+
*/
|
|
102
|
+
getMessages(): string[];
|
|
103
|
+
/** The fetch {@link setFetch} ran, once {@link call} has run it. */
|
|
104
|
+
getFetchResult(): FetchResult | undefined;
|
|
57
105
|
/**
|
|
58
106
|
* Execute the remote add operation.
|
|
59
107
|
*
|
|
60
108
|
* @returns Remote configuration
|
|
61
|
-
* @throws
|
|
109
|
+
* @throws MissingArgumentError if name or URI is not set
|
|
110
|
+
* @throws GitApiError (exit 128) for `--mirror` with a master branch (git: "specifying a
|
|
111
|
+
* master branch makes no sense with --mirror"), or a push mirror with tracked branches
|
|
112
|
+
* ("specifying branches to track makes sense only with fetch mirrors")
|
|
113
|
+
* @throws RemoteAlreadyExistsError (exit 3) for a configured remote (git: "remote <name>
|
|
114
|
+
* already exists.")
|
|
115
|
+
* @throws InvalidArgumentError (exit 128) for an invalid name ("'<name>' is not a valid
|
|
116
|
+
* remote name"); in git 2.5x also for a name inside or around an existing one ("remote
|
|
117
|
+
* name 'a/b' is a subset of existing remote 'a'", "... superset ...")
|
|
118
|
+
* @throws GitApiError (exit 1) when the fetch fails: its error, then "error: Could not fetch
|
|
119
|
+
* <name>"; the remote stays configured, as git leaves it
|
|
62
120
|
*/
|
|
63
121
|
call(): Promise<RemoteConfig>;
|
|
64
|
-
/**
|
|
65
|
-
private
|
|
122
|
+
/** git's refusals before `remote add` writes anything; the store to write to. */
|
|
123
|
+
private checkAdd;
|
|
124
|
+
/** git's fetch_remote: `Updating <name>`, then `git fetch <name>` as a child. */
|
|
125
|
+
private fetchRemote;
|
|
66
126
|
}
|
|
67
127
|
/**
|
|
68
128
|
* Remove a remote from the repository.
|
|
@@ -87,6 +147,8 @@ export declare class RemoteAddCommand extends GitCommand<RemoteConfig> {
|
|
|
87
147
|
* ```
|
|
88
148
|
*/
|
|
89
149
|
export declare class RemoteRemoveCommand extends GitCommand<RemoteConfig> {
|
|
150
|
+
/** git's command reads no core settings: an unparsable `core.whitespace` does not stop it */
|
|
151
|
+
protected readsCoreConfig(): boolean;
|
|
90
152
|
private remoteName?;
|
|
91
153
|
private messages;
|
|
92
154
|
/**
|
|
@@ -142,6 +204,8 @@ export interface RemoteRenameResult {
|
|
|
142
204
|
* ```
|
|
143
205
|
*/
|
|
144
206
|
export declare class RemoteRenameCommand extends GitCommand<RemoteRenameResult> {
|
|
207
|
+
/** git's command reads no core settings: an unparsable `core.whitespace` does not stop it */
|
|
208
|
+
protected readsCoreConfig(): boolean;
|
|
145
209
|
private oldName?;
|
|
146
210
|
private newName?;
|
|
147
211
|
/** Set the remote to rename. */
|
|
@@ -173,6 +237,27 @@ export declare function isValidRemoteName(name: string): boolean;
|
|
|
173
237
|
* ```
|
|
174
238
|
*/
|
|
175
239
|
export declare class RemoteListCommand extends GitCommand<RemoteConfig[]> {
|
|
240
|
+
/** git's command reads no core settings: an unparsable `core.whitespace` does not stop it */
|
|
241
|
+
protected readsCoreConfig(): boolean;
|
|
242
|
+
private verbose;
|
|
243
|
+
/** List each remote's URLs too (`git remote -v`), for {@link callText}. */
|
|
244
|
+
setVerbose(verbose: boolean): this;
|
|
245
|
+
/**
|
|
246
|
+
* What `git remote` (or with {@link setVerbose}, `git remote -v`) prints, as builtin/remote.c
|
|
247
|
+
* `show_all`: the remotes of the configuration (every scope; not the names known only
|
|
248
|
+
* from `refs/remotes/`, nor legacy remote files) in byte order, one per line; verbose,
|
|
249
|
+
* `<name>\t<url> (fetch)` with its first fetch URL (and ` [<filter>]` for a
|
|
250
|
+
* `remote.<name>.partialclonefilter`), then `<name>\t<url> (push)` for each push URL
|
|
251
|
+
* (`pushurl`, else the fetch URLs), `insteadOf`/`pushInsteadOf` applied; a remote without
|
|
252
|
+
* a URL has the line `<name>\t`.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```typescript
|
|
256
|
+
* const text = await git.remoteList().setVerbose(true).callText();
|
|
257
|
+
* // "origin\thttps://example.com/r.git (fetch)\norigin\thttps://example.com/r.git (push)\n"
|
|
258
|
+
* ```
|
|
259
|
+
*/
|
|
260
|
+
callText(): Promise<string>;
|
|
176
261
|
/**
|
|
177
262
|
* Execute the remote list operation.
|
|
178
263
|
*
|
|
@@ -197,6 +282,8 @@ export declare class RemoteListCommand extends GitCommand<RemoteConfig[]> {
|
|
|
197
282
|
* ```
|
|
198
283
|
*/
|
|
199
284
|
export declare class RemoteGetUrlCommand extends GitCommand<string[]> {
|
|
285
|
+
/** git's command reads no core settings: an unparsable `core.whitespace` does not stop it */
|
|
286
|
+
protected readsCoreConfig(): boolean;
|
|
200
287
|
private remoteName?;
|
|
201
288
|
private push;
|
|
202
289
|
private all;
|
|
@@ -216,9 +303,21 @@ export declare class RemoteGetUrlCommand extends GitCommand<string[]> {
|
|
|
216
303
|
/**
|
|
217
304
|
* Set URL for a remote.
|
|
218
305
|
*
|
|
219
|
-
* Equivalent to `git remote set-url
|
|
306
|
+
* Equivalent to `git remote set-url [--push] <name> <newurl> [<oldurl>]`,
|
|
307
|
+
* `git remote set-url --add [--push] <name> <newurl>` and
|
|
308
|
+
* `git remote set-url --delete [--push] <name> <url>`, as git's builtin/remote.c `set_url`:
|
|
220
309
|
*
|
|
221
|
-
*
|
|
310
|
+
* - without `<oldurl>`, `remote.<name>.url` (`pushurl` with {@link setPush}) is set to the new
|
|
311
|
+
* URL (git refuses a variable with several values: "could not set ...");
|
|
312
|
+
* - {@link setAdd} adds a value (one empty value is replaced);
|
|
313
|
+
* - {@link setOldUri} is a POSIX extended regular expression: one of the remote's URLs (as git
|
|
314
|
+
* reads them, `insteadOf` applied) must match it ("No such URL found: <oldurl>"), and the
|
|
315
|
+
* configuration's one value it matches is replaced (no value matching: the new one is added);
|
|
316
|
+
* - {@link setDelete} removes every value matching the pattern given as the URI, refusing to
|
|
317
|
+
* remove every fetch URL ("Will not delete all non-push URLs").
|
|
318
|
+
*
|
|
319
|
+
* The remote must be configured in the repository (a `remote.<name>.*` variable, or a legacy
|
|
320
|
+
* remote file); tracking refs alone do not make one.
|
|
222
321
|
*
|
|
223
322
|
* @example
|
|
224
323
|
* ```typescript
|
|
@@ -226,13 +325,19 @@ export declare class RemoteGetUrlCommand extends GitCommand<string[]> {
|
|
|
226
325
|
* .setRemoteName("origin")
|
|
227
326
|
* .setRemoteUri("https://github.com/user/repo")
|
|
228
327
|
* .call();
|
|
328
|
+
* await git.remoteSetUrl().setRemoteName("origin").setRemoteUri("^https://old").setDelete(true).call();
|
|
229
329
|
* ```
|
|
230
330
|
*/
|
|
231
331
|
export declare class RemoteSetUrlCommand extends GitCommand<RemoteConfig> {
|
|
332
|
+
/** git's command reads no core settings: an unparsable `core.whitespace` does not stop it */
|
|
333
|
+
protected readsCoreConfig(): boolean;
|
|
232
334
|
private remoteName?;
|
|
233
335
|
private remoteUri?;
|
|
234
336
|
private pushUri;
|
|
235
337
|
private oldUri?;
|
|
338
|
+
private addMode;
|
|
339
|
+
private deleteMode;
|
|
340
|
+
private messages;
|
|
236
341
|
/**
|
|
237
342
|
* Set the remote name.
|
|
238
343
|
*
|
|
@@ -244,7 +349,7 @@ export declare class RemoteSetUrlCommand extends GitCommand<RemoteConfig> {
|
|
|
244
349
|
*/
|
|
245
350
|
getRemoteName(): string | undefined;
|
|
246
351
|
/**
|
|
247
|
-
* Set the new remote URI.
|
|
352
|
+
* Set the new remote URI (with {@link setDelete}: the pattern of the URLs to delete).
|
|
248
353
|
*
|
|
249
354
|
* @param uri New remote URL
|
|
250
355
|
*/
|
|
@@ -264,30 +369,32 @@ export declare class RemoteSetUrlCommand extends GitCommand<RemoteConfig> {
|
|
|
264
369
|
*/
|
|
265
370
|
isPush(): boolean;
|
|
266
371
|
/**
|
|
267
|
-
* Set the URL to replace
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
* `<oldurl>` argument of `git remote set-url <name> <newurl> <oldurl>`.
|
|
271
|
-
* Without it, the new URL replaces all of them.
|
|
372
|
+
* Set the URL to replace: a POSIX extended regular expression (`<oldurl>` of
|
|
373
|
+
* `git remote set-url <name> <newurl> <oldurl>`), matched anywhere in each URL. Only the
|
|
374
|
+
* value it matches is replaced; without it, the new URL replaces the variable's value.
|
|
272
375
|
*
|
|
273
|
-
* @param uri Old URI
|
|
376
|
+
* @param uri Old URI pattern
|
|
274
377
|
*/
|
|
275
378
|
setOldUri(uri: string): this;
|
|
379
|
+
/** Add the URL to the remote's URLs (`--add`) instead of replacing one. */
|
|
380
|
+
setAdd(add: boolean): this;
|
|
381
|
+
/** Delete the URLs matching the URI given, a pattern (`--delete`). */
|
|
382
|
+
setDelete(del: boolean): this;
|
|
383
|
+
/** git 2.5x's warnings reading a legacy remote file. Empty before {@link call}. */
|
|
384
|
+
getMessages(): string[];
|
|
276
385
|
/**
|
|
277
386
|
* Execute the remote set-url operation.
|
|
278
387
|
*
|
|
279
|
-
* The URL is written to the working copy configuration, so it survives the
|
|
280
|
-
* command. The remote may be known from its config section or from its
|
|
281
|
-
* tracking refs; in the latter case, this is what first gives it a URL.
|
|
282
|
-
*
|
|
283
388
|
* @returns Updated remote configuration
|
|
284
389
|
* @throws MissingArgumentError if remote name or URI is not set
|
|
285
|
-
* @throws
|
|
286
|
-
*
|
|
390
|
+
* @throws GitApiError (exit 128) for `--add` with `--delete` ("--add --delete doesn't make
|
|
391
|
+
* sense"), or an old URL with either (exit 129, usage)
|
|
392
|
+
* @throws RemoteNotFoundError (exit 2) if the remote is not configured ("No such remote")
|
|
393
|
+
* @throws GitApiError (exit 128) for git's other refusals: "No such URL found: <oldurl>",
|
|
394
|
+
* "Will not delete all non-push URLs", "could not set '<key>' to '<url>'", "could not
|
|
395
|
+
* unset '<key>'", "Invalid old URL pattern: <oldurl>"
|
|
287
396
|
*/
|
|
288
397
|
call(): Promise<RemoteConfig>;
|
|
289
|
-
/** Whether any `refs/remotes/<name>/*` ref exists. */
|
|
290
|
-
private hasTrackingRefs;
|
|
291
398
|
}
|
|
292
399
|
/**
|
|
293
400
|
* Point `refs/remotes/<name>/HEAD` at one of the remote's tracking branches, or delete it.
|
|
@@ -308,6 +415,8 @@ export declare class RemoteSetUrlCommand extends GitCommand<RemoteConfig> {
|
|
|
308
415
|
* ```
|
|
309
416
|
*/
|
|
310
417
|
export declare class RemoteSetHeadCommand extends TransportCommand<string | undefined> {
|
|
418
|
+
/** git's command reads no core settings: an unparsable `core.whitespace` does not stop it */
|
|
419
|
+
protected readsCoreConfig(): boolean;
|
|
311
420
|
private remoteName?;
|
|
312
421
|
private branch?;
|
|
313
422
|
private deleteHead;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-command.d.ts","sourceRoot":"","sources":["../../src/commands/remote-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-command.d.ts","sourceRoot":"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CD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,oBAAqB,SAAQ,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC;IAC5E,6FAA6F;IAC7F,UAAmB,eAAe,IAAI,OAAO,CAE5C;IAED,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,QAAQ,CAAgB;IAEhC,wCAAwC;IACxC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED,+EAA+E;IAC/E,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED,wDAAwD;IACxD,SAAS,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAInC;IAED;;;;OAIG;IACH,WAAW,IAAI,MAAM,EAAE,CAEtB;IAED,6EAA6E;IAC7E,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA+CxC;IAED;;;;OAIG;YACW,WAAW;CAkB1B"}
|
|
@@ -9,6 +9,7 @@ import { type Credentials, type GitConnectRequest, type GitService, type GitSess
|
|
|
9
9
|
import type { GitHostEnvironment, OpenedRepository, WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
10
10
|
import { RemoteConfigStore } from "../remote-config/index.js";
|
|
11
11
|
import type { HookSession } from "./git-hooks.js";
|
|
12
|
+
import { type ReceivePackHost } from "./local-transport.js";
|
|
12
13
|
/** A remote URL resolved to the transport that reaches it. */
|
|
13
14
|
export type ResolvedRemote = {
|
|
14
15
|
kind: "local";
|
|
@@ -116,5 +117,10 @@ export declare function withRemoteUploadPack<T>(remote: PreparedRemote, options:
|
|
|
116
117
|
* (`withLocalReceivePack`, with the remote repository's hooks), else over the session its
|
|
117
118
|
* connector opens (`openReceivePack`).
|
|
118
119
|
*/
|
|
119
|
-
export declare function withRemoteReceivePack<T>(remote: PreparedRemote, options: RemoteSessionOptions, run: (connection: ReceivePackConnection) => Promise<T>, hooks?: HookSession, transactionHooks?: HookSession
|
|
120
|
+
export declare function withRemoteReceivePack<T>(remote: PreparedRemote, options: RemoteSessionOptions, run: (connection: ReceivePackConnection) => Promise<T>, hooks?: HookSession, transactionHooks?: HookSession,
|
|
121
|
+
/** A local receive-pack's host and its config warnings (see `withLocalReceivePack`) */
|
|
122
|
+
local?: {
|
|
123
|
+
host?: ReceivePackHost;
|
|
124
|
+
onWarning?: (line: string) => void;
|
|
125
|
+
}): Promise<T>;
|
|
120
126
|
//# sourceMappingURL=remote-transport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-transport.d.ts","sourceRoot":"","sources":["../../src/commands/remote-transport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,MAAM,EAMX,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACZ,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"remote-transport.d.ts","sourceRoot":"","sources":["../../src/commands/remote-transport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,K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AE,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC,EACtD,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,GACnE,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,CAAC,EAC1C,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,CAAC,UAAU,EAAE,oBAAoB,KAAK,OAAO,CAAC,CAAC,CAAC,GACpD,OAAO,CAAC,CAAC,CAAC,CAgBZ;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAC3C,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,CAAC,UAAU,EAAE,qBAAqB,KAAK,OAAO,CAAC,CAAC,CAAC,EACtD,KAAK,CAAC,EAAE,WAAW,EACnB,gBAAgB,CAAC,EAAE,WAAW;AAC9B,uFAAuF;AACvF,KAAK,GAAE;IAAE,IAAI,CAAC,EAAE,eAAe,CAAC;IAAC,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAAO,GACzE,OAAO,CAAC,CAAC,CAAC,CAmBZ"}
|
|
@@ -40,9 +40,8 @@ export declare class ResetCommand extends GitCommand<Ref> {
|
|
|
40
40
|
private ref?;
|
|
41
41
|
private mode;
|
|
42
42
|
private paths;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
private pathspecFileGiven;
|
|
43
|
+
/** `--pathspec-from-file` */
|
|
44
|
+
private readonly pathspecFile;
|
|
46
45
|
private modeSet;
|
|
47
46
|
private intentToAdd;
|
|
48
47
|
private quiet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-command.d.ts","sourceRoot":"","sources":["../../src/commands/reset-command.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"reset-command.d.ts","sourceRoot":"","sources":["../../src/commands/reset-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAY,KAAK,QAAQ,EAAE,KAAK,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,EAWL,KAAK,OAAO,EAGZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EAEd,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,KAAK,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAGnB,MAAM,sBAAsB,CAAC;AAkB9B,OAAO,EAAsB,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAQhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,YAAa,SAAQ,UAAU,CAAC,GAAG,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,CAAS;IACrB,OAAO,CAAC,IAAI,CAAmB;IAC/B,OAAO,CAAC,KAAK,CAAgB;IAC7B,6BAA6B;IAC7B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IACnD,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IACvC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,aAAa,CAAC,CAAgB;IACtC,OAAO,CAAC,YAAY,CAAoB;IACxC,OAAO,CAAC,WAAW,CAAC,CAAc;IAClC,OAAO,CAAC,aAAa,CAA8B;IAEnD;;;;OAIG;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"./checkout-command.js";
|
|
|
31
31
|
*/
|
|
32
32
|
export declare class RestoreCommand extends GitCommand<CheckoutResult> {
|
|
33
33
|
private readonly paths;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
private pathspecFileGiven;
|
|
34
|
+
/** `--pathspec-from-file` */
|
|
35
|
+
private readonly pathspecFile;
|
|
37
36
|
private source?;
|
|
38
37
|
private staged?;
|
|
39
38
|
private worktree?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-command.d.ts","sourceRoot":"","sources":["../../src/commands/restore-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"restore-command.d.ts","sourceRoot":"","sources":["../../src/commands/restore-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,aAAa,EAInB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,aAAa,EAGnB,MAAM,uBAAuB,CAAC;AAO/B;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,UAAU,CAAC,cAAc,CAAC;IAC5D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,6BAA6B;IAC7B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IACnD,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,sBAAsB,CAAS;IACvC,OAAO,CAAC,KAAK,C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