@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revision-resolver.d.ts","sourceRoot":"","sources":["../../src/commands/revision-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"revision-resolver.d.ts","sourceRoot":"","sources":["../../src/commands/revision-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAS7F,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAS1E,0CAA0C;AAC1C,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE;QACP,IAAI,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAChD,GAAG,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;KACrC,CAAC;IACF,KAAK,EAAE;QACL,GAAG,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;YAAE,EAAE,EAAE,QAAQ,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,GAAG,SAAS,CAAC,CAAC;KAC/F,CAAC;IACF,KAAK,EAAE;QAAE,GAAG,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC;IAC/C,IA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SAAS,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAC,CAE7D;IAED,8DAA8D;YAChD,SAAS;IAWvB;;;;OAIG;YACW,SAAS;IAkBvB,2DAA2D;IAC3D,OAAO,CAAC,UAAU;YAIJ,YAAY;IAY1B,+EAA+E;YACjE,aAAa;YAgBb,gBAAgB;IAM9B;;;;OAIG;YACW,OAAO;IA4DrB;;;;;;;OAOG;YACW,QAAQ;IAkCtB,+FAA+F;YACjF,eAAe;IA2C7B,sFAAsF;YACxE,iBAAiB;IAe/B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAO/B,6FAA6F;IAC7F,OAAO,CAAC,WAAW;IAcnB,+FAA+F;YACjF,SAAS;IAoBvB;;;OAGG;YACW,YAAY;IAY1B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAcpB;;;;;;;;OAQG;IACG,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAMzD;IAED,4DAA4D;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgC;IAE1D,OAAO,CAAC,GAAG;IAMX;;;OAGG;YACW,MAAM;IAMpB,kFAAkF;YACpE,gBAAgB;IAoB9B,gFAAgF;YAClE,iBAAiB;IAgC/B,OAAO,CAAC,YAAY;IAKpB,wFAAwF;IACxF,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,KAAK;CAGd"}
|
|
@@ -5,6 +5,24 @@ import { GitCommand } from "../git-command.js";
|
|
|
5
5
|
export interface RmResult {
|
|
6
6
|
/** Paths that were removed from the index (each once, whatever its stages) */
|
|
7
7
|
removedPaths: string[];
|
|
8
|
+
/**
|
|
9
|
+
* What git prints on its standard output: `rm '<path>'` for each index entry removed (an
|
|
10
|
+
* unmerged path once per stage), before the files go; a dry run too, nothing with
|
|
11
|
+
* {@link RmCommand.setQuiet}
|
|
12
|
+
*/
|
|
13
|
+
output: string[];
|
|
14
|
+
/**
|
|
15
|
+
* The advice git prints on its standard error before anything else (2.5x's
|
|
16
|
+
* `advice.sparseIndexExpanded` hint when a sparse index is expanded), as its lines; an
|
|
17
|
+
* {@link RmFailedError}'s message starts with them
|
|
18
|
+
*/
|
|
19
|
+
advice?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* What git prints on its standard error while it works: the `Migrating git directory of
|
|
22
|
+
* ...` lines of submodules whose `.git` directory was absorbed into the superproject's
|
|
23
|
+
* first (`git rm` of such a submodule, a dry run too)
|
|
24
|
+
*/
|
|
25
|
+
messages?: string[];
|
|
8
26
|
/**
|
|
9
27
|
* What could not be done once the removal was under way, the index written all the same:
|
|
10
28
|
* a file that could not be deleted after another one was (git passes over it silently),
|
|
@@ -41,11 +59,15 @@ export interface RmResult {
|
|
|
41
59
|
*/
|
|
42
60
|
export declare class RmCommand extends GitCommand<RmResult> {
|
|
43
61
|
private filepatterns;
|
|
62
|
+
/** `--pathspec-from-file` */
|
|
63
|
+
private readonly pathspecFile;
|
|
44
64
|
private cached;
|
|
45
65
|
private sparse;
|
|
46
66
|
private recursive;
|
|
47
67
|
private ignoreUnmatch;
|
|
48
68
|
private force;
|
|
69
|
+
private dryRun;
|
|
70
|
+
private quiet;
|
|
49
71
|
private compatibility;
|
|
50
72
|
/**
|
|
51
73
|
* `--sparse`: entries outside the sparse checkout (skip-worktree, or out of the patterns)
|
|
@@ -74,6 +96,17 @@ export declare class RmCommand extends GitCommand<RmResult> {
|
|
|
74
96
|
* among the leading directories. Even forced, nothing is removed through such a link.
|
|
75
97
|
*/
|
|
76
98
|
setForce(force: boolean): this;
|
|
99
|
+
/**
|
|
100
|
+
* `-n` / `--dry-run`: run every check git makes (pathspecs, `.gitmodules` staged,
|
|
101
|
+
* `check_local_mod`) and give the entries that would be removed, changing nothing (what
|
|
102
|
+
* `git submodule deinit` asks with `git rm -qn <path>`).
|
|
103
|
+
*/
|
|
104
|
+
setDryRun(dryRun: boolean): this;
|
|
105
|
+
/**
|
|
106
|
+
* `-q` / `--quiet`: the `rm '<path>'` lines are not given ({@link RmResult.output} stays
|
|
107
|
+
* empty).
|
|
108
|
+
*/
|
|
109
|
+
setQuiet(quiet: boolean): this;
|
|
77
110
|
/**
|
|
78
111
|
* The git version whose behaviour is reproduced where versions differ (default 2.56): the
|
|
79
112
|
* advice's last hint, as `AddCommand.setCompatibility`, and 2.43's pathspec matching, where
|
|
@@ -87,6 +120,21 @@ export declare class RmCommand extends GitCommand<RmResult> {
|
|
|
87
120
|
* @param filepattern Path pattern to remove (with `/` as separator)
|
|
88
121
|
*/
|
|
89
122
|
addFilepattern(filepattern: string): this;
|
|
123
|
+
/**
|
|
124
|
+
* `--pathspec-from-file` (and `--pathspec-file-nul` with `nul`): the pathspec elements of
|
|
125
|
+
* `content`, one per line (a line starting with `"` unquoted as a C string), or separated
|
|
126
|
+
* by NUL with `nul`. As git's `cmd_rm`: refused beside {@link addFilepattern} patterns
|
|
127
|
+
* ("'--pathspec-from-file' and pathspec arguments cannot be used together"); an empty file
|
|
128
|
+
* is "No pathspec was given. Which files should I remove?".
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```typescript
|
|
132
|
+
* await git.rm().setPathspecFromFile("a.txt\0b.txt\0", true).call();
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* @throws InvalidArgumentError "fatal: line is badly quoted: <line>"
|
|
136
|
+
*/
|
|
137
|
+
setPathspecFromFile(content: string | Uint8Array, nul?: boolean): this;
|
|
90
138
|
/**
|
|
91
139
|
* Set whether to only remove from index (keep in working tree).
|
|
92
140
|
*
|
|
@@ -95,8 +143,8 @@ export declare class RmCommand extends GitCommand<RmResult> {
|
|
|
95
143
|
* the removed entries are deleted too and the directories they leave empty pruned (git's
|
|
96
144
|
* `remove_path`); a submodule's directory goes with everything in it where its repository
|
|
97
145
|
* lives in the superproject (a gitfile), its `.gitmodules` section is removed and the
|
|
98
|
-
* file staged again. A submodule holding its own `.git` directory
|
|
99
|
-
*
|
|
146
|
+
* file staged again. A submodule holding its own `.git` directory has it absorbed into the
|
|
147
|
+
* superproject's git directory first (`git submodule absorbgitdirs`), as git does.
|
|
100
148
|
*
|
|
101
149
|
* @param cached true to only remove from index
|
|
102
150
|
*/
|
|
@@ -111,6 +159,26 @@ export declare class RmCommand extends GitCommand<RmResult> {
|
|
|
111
159
|
* @returns Result with list of removed paths
|
|
112
160
|
*/
|
|
113
161
|
call(): Promise<RmResult>;
|
|
162
|
+
/** git's advice printed on standard error before anything else, as its lines. */
|
|
163
|
+
private hint;
|
|
164
|
+
private remove;
|
|
165
|
+
/**
|
|
166
|
+
* builtin/rm.c's `submodules_absorb_gitdir_if_needed`: each submodule removed whose
|
|
167
|
+
* directory is there, not empty, and whose repository (or a nested one's) is a `.git`
|
|
168
|
+
* directory in it gets that absorbed into the superproject's git directory
|
|
169
|
+
* (`absorb_git_dir_into_superproject`); its `Migrating ...` lines go to `messages`. Where
|
|
170
|
+
* git dies there, an {@link RmFailedError} (exit 128, git's last line as its message) is
|
|
171
|
+
* thrown before anything is removed, its result's `messages` holding every line printed
|
|
172
|
+
* before, an earlier submodule's too.
|
|
173
|
+
*/
|
|
174
|
+
private absorbSubmoduleGitDirs;
|
|
175
|
+
/**
|
|
176
|
+
* A sparse index as git's `cmd_rm` sees it: the sparse directories it walks without
|
|
177
|
+
* expanding them (`pathspec_needs_expanded_index` answered no), or whether it expands it.
|
|
178
|
+
*/
|
|
179
|
+
private sparseIndexView;
|
|
180
|
+
/** git 2.5x's `advice.sparseIndexExpanded` hint (`ensure_full_index`), as its lines. */
|
|
181
|
+
private expansionHint;
|
|
114
182
|
/** Whether `.gitmodules` has conflict stages in the index (git's `is_gitmodules_unmerged`). */
|
|
115
183
|
private gitmodulesUnmerged;
|
|
116
184
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rm-command.d.ts","sourceRoot":"","sources":["../../src/commands/rm-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"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AQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAED;;;;OAIG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAIxC;IAED;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,GAAG,UAAQ,GAAG,IAAI,CAInE;IAED;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;OAEG;IACH,SAAS,IAAI,OAAO,CAEnB;IAED;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAe9B;IAED,iFAAiF;IACjF,OAAO,CAAC,IAAI,CAAgB;YAEd,MAAM;IAuQpB;;;;;;;;OAQG;YACW,sBAAsB;IA8BpC;;;OAGG;YACW,eAAe;IAqB7B,wFAAwF;IACxF,OAAO,CAAC,aAAa;IAKrB,+FAA+F;YACjF,kBAAkB;IAOhC;;;;;;OAMG;YACW,oBAAoB;IAgClC;;;;;OAKG;YACW,aAAa;IA+F3B,4FAA4F;YAC9E,QAAQ;CAKvB"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* several commits `sequencer/` with `head`, `todo` and `abort-safety`), so native git can
|
|
6
6
|
* `--continue`, `--skip` or `--abort` what we started and the other way round.
|
|
7
7
|
*/
|
|
8
|
-
import type
|
|
8
|
+
import { type ObjectId, type PersonIdent } from "@statewalker/vcs-core";
|
|
9
9
|
import type { Worktree } from "@statewalker/vcs-working-tree";
|
|
10
10
|
import type { CommandCommits, CommandRefs, CommandTrees } from "../git-command.js";
|
|
11
11
|
import { type HookSession } from "./git-hooks.js";
|
|
@@ -62,6 +62,7 @@ export interface SequencerDeps extends MergeWriteContext {
|
|
|
62
62
|
export type PickCommitMode = {
|
|
63
63
|
kind: "pick";
|
|
64
64
|
reflogAction: string;
|
|
65
|
+
allowEmpty?: boolean;
|
|
65
66
|
} | {
|
|
66
67
|
kind: "continue";
|
|
67
68
|
edit: boolean;
|
|
@@ -89,7 +90,44 @@ export interface PickOptions {
|
|
|
89
90
|
* (git's `options.edit`), left out when neither was given.
|
|
90
91
|
*/
|
|
91
92
|
edit?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* `-S[<keyid>]` (true or the key) / `--no-gpg-sign` (false); undefined: `commit.gpgSign`.
|
|
95
|
+
* Saved in `sequencer/opts` (`options.gpg-sign`) for a run of several commits.
|
|
96
|
+
*/
|
|
97
|
+
sign?: boolean | string;
|
|
98
|
+
/** `-x`: `(cherry picked from commit <id>)` appended to a pick's message (record_origin) */
|
|
99
|
+
recordOrigin?: boolean;
|
|
100
|
+
/** `-s` / `--signoff`: the committer's `Signed-off-by:` appended (append_signoff) */
|
|
101
|
+
signoff?: boolean;
|
|
102
|
+
/** `--allow-empty`: a commit empty in itself (its tree its first parent's) is committed */
|
|
103
|
+
allowEmpty?: boolean;
|
|
104
|
+
/** `--allow-empty-message` (saved in `sequencer/opts`; the sequencer commits any message) */
|
|
105
|
+
allowEmptyMessage?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* `--keep-redundant-commits` / `--empty=keep`: a commit that becomes empty is committed
|
|
108
|
+
* (implies {@link allowEmpty})
|
|
109
|
+
*/
|
|
110
|
+
keepRedundant?: boolean;
|
|
111
|
+
/** `--empty=drop`: a commit that becomes empty is dropped, git's `dropping ...` line printed */
|
|
112
|
+
dropRedundant?: boolean;
|
|
113
|
+
/** `--ff`: a commit whose parent is HEAD is fast-forwarded to, not picked */
|
|
114
|
+
allowFf?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* `revert --reference` (or `revert.reference`): the reverted commit named as
|
|
117
|
+
* `<abbrev> (<subject>, <date>)` under a `*** SAY WHY ...` comment for the title
|
|
118
|
+
*/
|
|
119
|
+
reference?: boolean;
|
|
92
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* builtin/revert.c's verify_opt_compatible: the `fatal:` line refusing an option that cannot
|
|
123
|
+
* go with `--continue`/`--skip`/`--abort`/`--quit` or with `--ff`, as git checks them; undefined
|
|
124
|
+
* when the options go together.
|
|
125
|
+
*/
|
|
126
|
+
export declare function pickOptionsConflict(action: PickAction, operation: SequencerOperation, options: PickOptions & {
|
|
127
|
+
emptyGiven?: boolean;
|
|
128
|
+
},
|
|
129
|
+
/** git 2.43 lets `--keep-redundant-commits` and `--empty` go with the operations */
|
|
130
|
+
compatibility?: "2.43" | "2.56"): string | undefined;
|
|
93
131
|
/** git's sequencer for `cherry-pick` / `revert`. */
|
|
94
132
|
export declare class PickSequencer {
|
|
95
133
|
private readonly deps;
|
|
@@ -102,7 +140,14 @@ export declare class PickSequencer {
|
|
|
102
140
|
private readonly abbreviator;
|
|
103
141
|
/** `--edit` / `--no-edit` (git's opts->edit, unset: undefined), read back from the opts */
|
|
104
142
|
private edit;
|
|
143
|
+
/** What the commits are signed with (git's opts->gpg_sign), read back from the opts */
|
|
144
|
+
private sign;
|
|
145
|
+
/** The flags of the run (given, or read back from `sequencer/opts`) */
|
|
146
|
+
private readonly flags;
|
|
147
|
+
/** commit.cleanup (git's default_msg_cleanup with explicit_cleanup), or saved in the opts */
|
|
148
|
+
private cleanup;
|
|
105
149
|
constructor(deps: SequencerDeps, options: PickOptions);
|
|
150
|
+
private config;
|
|
106
151
|
private get name();
|
|
107
152
|
private fail;
|
|
108
153
|
/** `git cherry-pick <commits>` / `git revert <commits>`. */
|
|
@@ -116,13 +161,24 @@ export declare class PickSequencer {
|
|
|
116
161
|
private run;
|
|
117
162
|
/** One commit's change merged into HEAD (do_pick_commit). */
|
|
118
163
|
private pickOne;
|
|
164
|
+
/**
|
|
165
|
+
* fast_forward_to: the index and worktree switched from HEAD's tree to the commit's
|
|
166
|
+
* (checkout_fast_forward, a two-way switch refusing over local changes), then HEAD moved
|
|
167
|
+
* there with the reflog line `<action>: fast-forward`.
|
|
168
|
+
*/
|
|
169
|
+
private fastForward;
|
|
119
170
|
/** `--continue`: the resolved conflict committed, then the rest picked. */
|
|
120
171
|
continue(): Promise<PickOutcome>;
|
|
121
172
|
/** `--skip`: the stopped commit dropped (`reset --merge HEAD`), the rest picked. */
|
|
122
173
|
skip(): Promise<PickOutcome>;
|
|
123
174
|
/** `--abort`: `reset --merge` to where the operation started, its state removed. */
|
|
124
175
|
abort(): Promise<PickOutcome>;
|
|
125
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* `--quit` (builtin/revert.c): sequencer_remove_state (`sequencer/` removed), then
|
|
178
|
+
* remove_branch_state (CHERRY_PICK_HEAD, REVERT_HEAD, AUTO_MERGE, SQUASH_MSG, MERGE_MSG,
|
|
179
|
+
* MERGE_HEAD, MERGE_MODE, MERGE_RR go, a MERGE_AUTOSTASH is kept on `refs/stash`); the
|
|
180
|
+
* index, the worktree, HEAD and ORIG_HEAD are kept. Nothing in progress is no error.
|
|
181
|
+
*/
|
|
126
182
|
quit(): Promise<PickOutcome>;
|
|
127
183
|
/**
|
|
128
184
|
* The refs of the `git reset --merge <target>` git runs (its index and worktree reset
|
|
@@ -132,13 +188,22 @@ export declare class PickSequencer {
|
|
|
132
188
|
*/
|
|
133
189
|
private resetRefs;
|
|
134
190
|
/**
|
|
135
|
-
* read_populate_opts: `options.edit` of `sequencer/opts` (git
|
|
136
|
-
* value wins), the `--edit` / `--no-edit` the run
|
|
191
|
+
* read_populate_opts: `options.edit` and `options.gpg-sign` of `sequencer/opts` (git
|
|
192
|
+
* config's syntax, the last value wins), the `--edit` / `--no-edit` and `-S` the run
|
|
193
|
+
* started with.
|
|
137
194
|
*/
|
|
138
195
|
private readSavedOptions;
|
|
139
196
|
private removeState;
|
|
140
|
-
/**
|
|
197
|
+
/**
|
|
198
|
+
* git's message for the commit a pick or revert makes (do_pick_commit's ctx->message): a
|
|
199
|
+
* pick's message from its subject on, with `-x`'s `(cherry picked from commit <id>)` (after a
|
|
200
|
+
* blank line unless the message ends with a trailer block); a revert's `Revert "<subject>"`
|
|
201
|
+
* (`Reapply "..."` for a revert of a revert, `--reference`'s comment and `<abbrev> (<subject>,
|
|
202
|
+
* <date>)`); then `-s`'s sign-off (append_signoff).
|
|
203
|
+
*/
|
|
141
204
|
private messageFor;
|
|
205
|
+
/** sequencer_format_revert_message. */
|
|
206
|
+
private revertMessage;
|
|
142
207
|
/**
|
|
143
208
|
* The committer of the commit a pick is about to make: the one given, else resolved as
|
|
144
209
|
* git's `git_committer_info`. The clock is read again first, as git's `try_to_commit`
|
|
@@ -151,6 +216,19 @@ export declare class PickSequencer {
|
|
|
151
216
|
*/
|
|
152
217
|
private revertAuthor;
|
|
153
218
|
private commit;
|
|
219
|
+
/**
|
|
220
|
+
* try_to_commit's cleanup: whitespace for `-s`/`-x` unless commit.cleanup is set, else
|
|
221
|
+
* commit.cleanup's (`scissors` is whitespace without an editor), else none.
|
|
222
|
+
*/
|
|
223
|
+
private commitCleanup;
|
|
224
|
+
/**
|
|
225
|
+
* try_to_commit's commit_tree signing `commit` for the run's key (git's opts->gpg_sign),
|
|
226
|
+
* the signing program in the worktree top. When it cannot be signed: gpg's error and
|
|
227
|
+
* `error: failed to write commit object`, then in git 2.43 `fatal: <action> failed` (exit
|
|
228
|
+
* 128); 2.5x returns after the error (exit 1). The pick stays in progress
|
|
229
|
+
* (CHERRY_PICK_HEAD, MERGE_MSG), as git leaves it.
|
|
230
|
+
*/
|
|
231
|
+
private signed;
|
|
154
232
|
/** HEAD (its branch, when attached) moved to `id`, with `message` in the reflogs. */
|
|
155
233
|
private moveHead;
|
|
156
234
|
/**
|
|
@@ -159,6 +237,8 @@ export declare class PickSequencer {
|
|
|
159
237
|
* git 2.43 `fatal: <action> failed` (exit 128); 2.5x returns after the error (exit 1).
|
|
160
238
|
*/
|
|
161
239
|
private headLockedError;
|
|
240
|
+
/** HEAD's commit, undefined while HEAD's branch is unborn. */
|
|
241
|
+
private headIfBorn;
|
|
162
242
|
private headId;
|
|
163
243
|
/** `sequencer/todo`: `pick <abbrev> <subject>` lines. */
|
|
164
244
|
private writeTodo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequencer-pick.d.ts","sourceRoot":"","sources":["../../src/commands/sequencer-pick.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"sequencer-pick.d.ts","sourceRoot":"","sources":["../../src/commands/sequencer-pick.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAO9D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGnF,OAAO,EAAE,KAAK,WAAW,EAAgD,MAAM,gBAAgB,CAAC;AAKhG,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAOpB,MAAM,oBAAoB,CAAC;AAc5B,gDAAgD;AAChD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE3C,mDAAmD;AACnD,oBAAY,kBAAkB;IAC5B,qDAAqD;IACrD,KAAK,UAAU;IACf,mEAAmE;IACnE,QAAQ,aAAa;IACrB,+DAA+D;IAC/D,IAAI,SAAS;IACb,qDAAqD;IACrD,KAAK,UAAU;IACf,+DAA+D;IAC/D,IAAI,SAAS;CACd;AAED,0CAA0C;AAC1C,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,IAAI,GAAG,aAAa,GAAG,QAAQ,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCA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AAE;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,EAC3E,GAAG,EAAE,MAAM,EAAE,GACZ,OAAO,CAAC,QAAQ,EAAE,CAAC,CA2ErB"}
|
|
@@ -77,6 +77,8 @@ origHeadMessage?: string,
|
|
|
77
77
|
/** HEAD detached at `target` (git's RESET_HEAD_DETACH: REF_NO_DEREF) rather than written through */
|
|
78
78
|
options?: {
|
|
79
79
|
detach?: boolean;
|
|
80
|
+
/** ORIG_HEAD's new value when not `headId` (a rebase of another branch: its tip) */
|
|
81
|
+
origHead?: ObjectId;
|
|
80
82
|
}): Promise<string[]>;
|
|
81
83
|
/**
|
|
82
84
|
* git's remove_branch_state (a branch switch, a reset): the merge, cherry-pick or revert
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequencer-support.d.ts","sourceRoot":"","sources":["../../src/commands/sequencer-support.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"sequencer-support.d.ts","sourceRoot":"","sources":["../../src/commands/sequencer-support.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,KAAK,QAAQ,EAEb,KAAK,WAAW,EAChB,KAAK,aAAa,EACnB,MAAM,uBAAuB,CAAC;AAS/B,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrE,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAGpB,MAAM,oBAAoB,CAAC;AAqB5B,mDAAmD;AACnD,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE,WAAW,CAAC;CACnB;AAKD;;;;;;;;;;;GAWG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,gBAAgB,EAC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B"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { type ServedRepository } from "@statewalker/vcs-transport";
|
|
7
7
|
import { type OpenedRepository } from "@statewalker/vcs-working-tree";
|
|
8
8
|
import type { HookSession } from "./git-hooks.js";
|
|
9
|
+
import { type ReceivePackHost } from "./local-transport.js";
|
|
9
10
|
/** Options of {@link servedRepositoryOf}. */
|
|
10
11
|
export interface ServedRepositoryOptions {
|
|
11
12
|
/**
|
|
@@ -15,6 +16,12 @@ export interface ServedRepositoryOptions {
|
|
|
15
16
|
* directory, `GIT_DIR=.`), its output not sent to the client
|
|
16
17
|
*/
|
|
17
18
|
hooks?: HookSession;
|
|
19
|
+
/**
|
|
20
|
+
* Where receive-pack runs (`ReceivePackHost`): whose fsck messages to give (default the
|
|
21
|
+
* hooks' runner's compatibility). A served repository's `receive.fsck.skipList` is always
|
|
22
|
+
* read confined to its own git directories (`confineFiles`), never from the host
|
|
23
|
+
*/
|
|
24
|
+
host?: ReceivePackHost;
|
|
18
25
|
}
|
|
19
26
|
/**
|
|
20
27
|
* An opened repository (`Worktree.openRepository`) as a git server serves it: its objects and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve-repository.d.ts","sourceRoot":"","sources":["../../src/commands/serve-repository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAIL,KAAK,gBAAgB,EAItB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,gBAAgB,EAAuB,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"serve-repository.d.ts","sourceRoot":"","sources":["../../src/commands/serve-repository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAIL,KAAK,gBAAgB,EAItB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,gBAAgB,EAAuB,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAEL,KAAK,eAAe,EAMrB,MAAM,sBAAsB,CAAC;AAE9B,6CAA6C;AAC7C,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAmBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,gBAAgB,CAAC,CA0C3B"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ShowCommand - `git show` (builtin/log.c's cmd_show): each object named, as its kind is
|
|
3
|
+
* shown. A commit as `git log -1 -p` shows it, merges with their dense combined diff (`--cc`,
|
|
4
|
+
* show's default); an annotated tag as `tag <name>`, its tagger and message, then the object
|
|
5
|
+
* it tags; a tree as `tree <name>`, an empty line and its entries (a directory with a `/`, not
|
|
6
|
+
* recursive); a blob as its bytes (`--textconv` runs the path's textconv for `<rev>:<path>`).
|
|
7
|
+
* A range (`A..B`, `^A`) or `-<n>` walks the history instead, as `git log` with show's
|
|
8
|
+
* defaults.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* // git show HEAD
|
|
13
|
+
* const text = await git.show().callText();
|
|
14
|
+
*
|
|
15
|
+
* // git show --stat v1.0 main:README
|
|
16
|
+
* const both = await git.show().addRevision("v1.0").addRevision("main:README").callText({ stat: true });
|
|
17
|
+
*
|
|
18
|
+
* // git show -s --format=%s main topic: the subjects only
|
|
19
|
+
* const { stdout, exitCode } = await git.show().addArgument("main").addArgument("topic")
|
|
20
|
+
* .setOptions({ noPatch: true, pretty: "%s" }).call();
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Objects are shown in the order named, with git's separators: a newline before a tag or
|
|
24
|
+
* tree once something was shown, a commit's own separator as `git log` prints it (none for a
|
|
25
|
+
* `tformat:`), nothing around a blob. A commit named twice is shown once (git's SHOWN flag);
|
|
26
|
+
* with paths, a commit that changes none of them is not shown. A tag whose object is missing
|
|
27
|
+
* prints its header, then git's `error: could not read object <id>` and exit status 255.
|
|
28
|
+
*
|
|
29
|
+
* @module
|
|
30
|
+
*/
|
|
31
|
+
import { GitCommand } from "../git-command.js";
|
|
32
|
+
import { type DiffTextOptions } from "./diff-command.js";
|
|
33
|
+
import type { LogOutputOptions } from "./log-output.js";
|
|
34
|
+
/** `git show`'s options: `git log`'s output options and its own. */
|
|
35
|
+
export interface ShowOptions extends LogOutputOptions {
|
|
36
|
+
/**
|
|
37
|
+
* `--textconv` / `--no-textconv`: a blob named `<rev>:<path>` (or `:<path>`) is shown
|
|
38
|
+
* through the path's textconv only with an explicit `true`; `false` also turns textconv
|
|
39
|
+
* off in the diffs (default: on there, off for blobs)
|
|
40
|
+
*/
|
|
41
|
+
textconv?: boolean;
|
|
42
|
+
/** `--first-parent`: merges' diffs against their first parent (and a range walks so) */
|
|
43
|
+
firstParent?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/** What `git show` printed and its exit status. */
|
|
46
|
+
export interface ShowResult {
|
|
47
|
+
/** git's stdout */
|
|
48
|
+
readonly stdout: Uint8Array;
|
|
49
|
+
/** git's stderr lines (`error: could not read object <id>`, revision warnings) */
|
|
50
|
+
readonly errors: string[];
|
|
51
|
+
/** 0, 2 when `--check` found errors, or 255 when an object could not be read (cmd_show's `error()` return) */
|
|
52
|
+
readonly exitCode: number;
|
|
53
|
+
}
|
|
54
|
+
/** `git show`. */
|
|
55
|
+
export declare class ShowCommand extends GitCommand<ShowResult> {
|
|
56
|
+
private readonly args;
|
|
57
|
+
private readonly paths;
|
|
58
|
+
private options;
|
|
59
|
+
private diffOptions;
|
|
60
|
+
private maxCount?;
|
|
61
|
+
private skip?;
|
|
62
|
+
/** A revision to show (as given before `--`; it must not also name a file without one). */
|
|
63
|
+
addRevision(revision: string): this;
|
|
64
|
+
/**
|
|
65
|
+
* An argument as git's command line gives it: revisions, then paths (after `--`, or from
|
|
66
|
+
* the first argument that names no revision on, which must then exist as git checks them).
|
|
67
|
+
*/
|
|
68
|
+
addArgument(arg: string): this;
|
|
69
|
+
/** A path the diffs (and the commits shown) are limited to, as after `--`. */
|
|
70
|
+
addPath(path: string): this;
|
|
71
|
+
/** The output options (see {@link ShowOptions}); merged into those set before. */
|
|
72
|
+
setOptions(options: ShowOptions): this;
|
|
73
|
+
/** Options of the diffs (context, algorithm, `--stat` widths...). */
|
|
74
|
+
setDiffOptions(options: DiffTextOptions): this;
|
|
75
|
+
/** `-<n>` / `-n <n>`: walk the history, at most n commits (git's no-walk off). */
|
|
76
|
+
setMaxCount(maxCount: number): this;
|
|
77
|
+
/** `--skip=<n>`: walk the history, leaving out the first n commits. */
|
|
78
|
+
setSkip(skip: number): this;
|
|
79
|
+
/** {@link call}'s stdout as text; throws git's error when the exit status is not 0. */
|
|
80
|
+
callText(options?: ShowOptions): Promise<string>;
|
|
81
|
+
/** {@link call}'s stdout; throws git's error when the exit status is not 0. */
|
|
82
|
+
callBytes(options?: ShowOptions): Promise<Uint8Array>;
|
|
83
|
+
/**
|
|
84
|
+
* Shows the objects.
|
|
85
|
+
*
|
|
86
|
+
* @throws RevisionError where git dies reading the arguments (`fatal: ambiguous argument`,
|
|
87
|
+
* `fatal: bad revision`, `fatal: path 'x' does not exist in 'HEAD'`), GitApiError where
|
|
88
|
+
* it dies otherwise (an unborn HEAD, `--graph` without a walk), exit status 128
|
|
89
|
+
*/
|
|
90
|
+
call(options?: ShowOptions): Promise<ShowResult>;
|
|
91
|
+
/** cmd_show's loop over the pending objects: its exit status (255 after an `error()`) */
|
|
92
|
+
private showObjects;
|
|
93
|
+
/**
|
|
94
|
+
* An object's kind: from its header where the store has it, else by reading it, which
|
|
95
|
+
* fetches a missing object of a partial clone from its promisor remote (git's
|
|
96
|
+
* parse_object); undefined when it cannot be found
|
|
97
|
+
*/
|
|
98
|
+
private objectKind;
|
|
99
|
+
/**
|
|
100
|
+
* show_tag_object: `tag <name>`, a `Tagger:` line (and date) for each `tagger` header, the
|
|
101
|
+
* rest of the object from its empty line on; the id it tags, undefined when unreadable
|
|
102
|
+
*/
|
|
103
|
+
private showTag;
|
|
104
|
+
/** show_blob_object: the blob's bytes, through textconv for a named path under `--textconv` */
|
|
105
|
+
private blobContent;
|
|
106
|
+
/**
|
|
107
|
+
* get_oid_with_context's recorded path and mode of `<rev>:<path>`, `:<path>` and
|
|
108
|
+
* `:<n>:<path>` (undefined for any other name)
|
|
109
|
+
*/
|
|
110
|
+
private blobPath;
|
|
111
|
+
/** An object's content as stored, undefined when it is missing */
|
|
112
|
+
private rawObject;
|
|
113
|
+
/**
|
|
114
|
+
* An object as stored (a partial clone's missing object fetched first), undefined when it is
|
|
115
|
+
* missing. A failed lazy fetch propagates (`PromisorFetchError`); a corrupt copy dies with
|
|
116
|
+
* git's lines (exit 128).
|
|
117
|
+
*/
|
|
118
|
+
private readObject;
|
|
119
|
+
/**
|
|
120
|
+
* git's death on a corrupt object (unpack_entry, read_object_file's die): zlib's `error:`
|
|
121
|
+
* line, then `fatal: packed object <id> (stored in <pack>) is corrupt` or the loose
|
|
122
|
+
* object's
|
|
123
|
+
*/
|
|
124
|
+
private corruptDeath;
|
|
125
|
+
/** setup_revisions' default `HEAD`, dying as diagnose_missing_default does */
|
|
126
|
+
private defaultHead;
|
|
127
|
+
/** The refs under `refs/` in name order (refs_for_each_ref), symbolic ones resolved. */
|
|
128
|
+
private refTips;
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=show-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-command.d.ts","sourceRoot":"","sources":["../../src/commands/show-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAaH,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EAAE,MAAM,GAAG,IAAI,CAIlC;IAED,uEAAuE;IACvE,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED,uFAAuF;IACjF,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAErD;IAED,+EAA+E;IACzE,SAAS,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAM1D;IAED;;;;;;OAMG;IACG,IAAI,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAyDrD;IAED,yFAAyF;YAC3E,WAAW;IA4CzB;;;;OAIG;YACW,UAAU;IAMxB;;;OAGG;YACW,OAAO;IA8BrB,+FAA+F;YACjF,WAAW;IAkBzB;;;OAGG;YACW,QAAQ;IAwCtB,kEAAkE;YACpD,SAAS;IAIvB;;;;OAIG;YACW,UAAU;IAexB;;;;OAIG;YACW,YAAY;IAoB1B,8EAA8E;YAChE,WAAW;IAWzB,wFAAwF;YAC1E,OAAO;CAWtB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ObjectId } from "@statewalker/vcs-core";
|
|
2
|
+
import { LogCommand } from "./log-command.js";
|
|
3
|
+
/**
|
|
4
|
+
* `git show <id> --` of one commit, as the child git runs for `rebase --show-current-patch`
|
|
5
|
+
* and `am --show-current-patch` prints it without a terminal: the configuration's format,
|
|
6
|
+
* dates, notes and mailmap, then its patch (`--cc` for a merge, git show's default).
|
|
7
|
+
*/
|
|
8
|
+
export declare function showCommitBytes(workingCopy: ConstructorParameters<typeof LogCommand>[0], id: ObjectId): Promise<Uint8Array>;
|
|
9
|
+
/** {@link showCommitBytes} as text. */
|
|
10
|
+
export declare function showCommit(workingCopy: ConstructorParameters<typeof LogCommand>[0], id: ObjectId): Promise<string>;
|
|
11
|
+
//# sourceMappingURL=show-commit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-commit.d.ts","sourceRoot":"","sources":["../../src/commands/show-commit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,EACxD,EAAE,EAAE,QAAQ,GACX,OAAO,CAAC,UAAU,CAAC,CAErB;AAED,uCAAuC;AACvC,wBAAsB,UAAU,CAC9B,WAAW,EAAE,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,EACxD,EAAE,EAAE,QAAQ,GACX,OAAO,CAAC,MAAM,CAAC,CAEjB"}
|