@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":"checkout-command.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAKL,KAAK,GAAG,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,wBAAwB,CAAC;AAU1E,OAAO,EAML,eAAe,EAGf,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAInB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAKL,SAAS,EAEV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"checkout-command.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAKL,KAAK,GAAG,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,wBAAwB,CAAC;AAU1E,OAAO,EAML,eAAe,EAGf,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAInB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAKL,SAAS,EAEV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,qBAAqB,CAAC;AA+CjF;;GA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IAQ3B;;;OAGG;YACW,qBAAqB;IAMnC,oEAAoE;YACtD,eAAe;IAK7B;;OAEG;YACW,cAAc;IAoa5B;;;OAGG;YACW,mBAAmB;IAuEjC;;OAEG;YACW,kBAAkB;IAgBhC;;;;;;OAMG;YACW,iBAAiB;IAO/B;;;;OAIG;YACW,eAAe;IAa7B;;;;;OAKG;YACW,UAAU;IAqGxB;;;;OAIG;YACW,kBAAkB;IAkBhC;;OAEG;YACW,oBAAoB;CAenC;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,cAAc,CAWhF;AAKD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,GAAG,kBAAkB,CAM9F"}
|
|
@@ -39,7 +39,16 @@ export declare class CherryPickCommand extends GitCommand<CherryPickResult> {
|
|
|
39
39
|
private operation;
|
|
40
40
|
private committer?;
|
|
41
41
|
private edit?;
|
|
42
|
+
/** `-S[<keyid>]` / `--no-gpg-sign` (undefined: `commit.gpgSign`) */
|
|
43
|
+
private sign?;
|
|
42
44
|
private editor?;
|
|
45
|
+
private signoff;
|
|
46
|
+
private recordOrigin;
|
|
47
|
+
private allowEmpty;
|
|
48
|
+
private allowEmptyMessage;
|
|
49
|
+
private keepRedundant;
|
|
50
|
+
private empty?;
|
|
51
|
+
private allowFf;
|
|
43
52
|
/**
|
|
44
53
|
* Add a commit to cherry-pick.
|
|
45
54
|
*
|
|
@@ -117,6 +126,54 @@ export declare class CherryPickCommand extends GitCommand<CherryPickResult> {
|
|
|
117
126
|
* plain `git commit` (its editor, every hook), and edits the picks after it.
|
|
118
127
|
*/
|
|
119
128
|
setEdit(edit: boolean): this;
|
|
129
|
+
/**
|
|
130
|
+
* `-S` (true) / `--no-gpg-sign` (false): whether to sign the commits made; undefined (the
|
|
131
|
+
* default) leaves it to `commit.gpgSign`. Each commit is signed through the host's signer
|
|
132
|
+
* (`GitHostEnvironment.signer`) as git's sequencer signs it (try_to_commit's commit_tree, or
|
|
133
|
+
* the `git commit -S<key>` it runs after an edit or a resolved conflict). When it cannot be
|
|
134
|
+
* signed the pick fails as git's does (`error: gpg failed to sign the data:`, `error: failed
|
|
135
|
+
* to write commit object`; 2.43 adds `fatal: cherry-pick failed`, exit 128, 2.5x exits 1:
|
|
136
|
+
* {@link SigningFailedError}), left in progress and nothing committed.
|
|
137
|
+
*/
|
|
138
|
+
setSign(sign: boolean | undefined): this;
|
|
139
|
+
/** `-S<keyid>`: sign with this key (see {@link setSign}). */
|
|
140
|
+
setSigningKey(keyId: string): this;
|
|
141
|
+
/**
|
|
142
|
+
* `-s` / `--signoff`: the committer's `Signed-off-by:` added to each message as git's
|
|
143
|
+
* append_signoff adds it (after a blank line unless the message ends with a trailer block,
|
|
144
|
+
* nothing when that block's last line is it already; `trailer.*` configuration applies).
|
|
145
|
+
* The message is then cleaned up as `whitespace` unless `commit.cleanup` says otherwise.
|
|
146
|
+
*/
|
|
147
|
+
setSignoff(signoff: boolean): this;
|
|
148
|
+
/**
|
|
149
|
+
* `-x`: `(cherry picked from commit <id>)` added to each message, after a blank line unless
|
|
150
|
+
* the message ends with a trailer block; the message is then cleaned up as `whitespace`
|
|
151
|
+
* unless `commit.cleanup` says otherwise.
|
|
152
|
+
*/
|
|
153
|
+
setRecordOrigin(recordOrigin: boolean): this;
|
|
154
|
+
/** `--allow-empty`: a commit that is empty in itself is committed (default: the pick stops). */
|
|
155
|
+
setAllowEmpty(allowEmpty: boolean): this;
|
|
156
|
+
/** `--allow-empty-message` (kept in `sequencer/opts`; a message is never refused here). */
|
|
157
|
+
setAllowEmptyMessage(allowEmptyMessage: boolean): this;
|
|
158
|
+
/**
|
|
159
|
+
* `--keep-redundant-commits` (git's deprecated `--empty=keep`): a commit whose change is in
|
|
160
|
+
* HEAD already is committed empty; implies {@link setAllowEmpty}.
|
|
161
|
+
*/
|
|
162
|
+
setKeepRedundantCommits(keep: boolean): this;
|
|
163
|
+
/**
|
|
164
|
+
* `--empty=<mode>` (git 2.45+): what to do with a commit whose change is in HEAD already:
|
|
165
|
+
* `stop` (the default: the pick stops for `git commit --allow-empty` or `--skip`), `drop`
|
|
166
|
+
* (skipped, with git's `dropping <id> <subject> -- patch contents already upstream` line in
|
|
167
|
+
* the result's output) or `keep` (committed empty, as {@link setKeepRedundantCommits}).
|
|
168
|
+
* A commit empty in itself is still left to {@link setAllowEmpty}.
|
|
169
|
+
*/
|
|
170
|
+
setEmpty(mode: "stop" | "drop" | "keep"): this;
|
|
171
|
+
/**
|
|
172
|
+
* `--ff`: a commit whose parent (the `-m` one of a merge) is HEAD, or a root commit on an
|
|
173
|
+
* unborn branch, is fast-forwarded to (reflog `cherry-pick: fast-forward`) instead of
|
|
174
|
+
* picked. Refused with `-s`, `-x`, `--no-commit` and `--edit`, as git refuses them.
|
|
175
|
+
*/
|
|
176
|
+
setFastForward(fastForward: boolean): this;
|
|
120
177
|
/**
|
|
121
178
|
* The editor of {@link setEdit} (git's `core.editor` / `GIT_EDITOR`): see
|
|
122
179
|
* `CommitCommand.setEditor`. Without one the template is kept as it is (comments stripped).
|
|
@@ -129,6 +186,8 @@ export declare class CherryPickCommand extends GitCommand<CherryPickResult> {
|
|
|
129
186
|
*/
|
|
130
187
|
private gitCommit;
|
|
131
188
|
call(): Promise<CherryPickResult>;
|
|
189
|
+
/** parse_options and verify_opt_compatible: git's refusals before anything is read. */
|
|
190
|
+
private checkOptions;
|
|
132
191
|
/** What the sparse checkout printed while the result was written. */
|
|
133
192
|
private readonly sparseWarnings;
|
|
134
193
|
private run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cherry-pick-command.d.ts","sourceRoot":"","sources":["../../src/commands/cherry-pick-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"cherry-pick-command.d.ts","sourceRoot":"","sources":["../../src/commands/cherry-pick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;IAED;;;OAGG;IACH,uBAAuB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3C;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAI7C;IAED;;;;OAIG;IACH,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAIzC;IAED;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAIpC;IAED;;;;OAIG;YACW,SAAS;IAwBjB,IAAI,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAYtC;IAED,uFAAuF;IACvF,OAAO,CAAC,YAAY;IAyBpB,qEAAqE;IACrE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;YAEjC,GAAG;CAgDlB"}
|
|
@@ -61,6 +61,7 @@ export declare class CleanCommand extends GitCommand<CleanResult> {
|
|
|
61
61
|
private ignore;
|
|
62
62
|
private ignoredOnly;
|
|
63
63
|
private forceNested;
|
|
64
|
+
private excludePatterns;
|
|
64
65
|
/**
|
|
65
66
|
* Limit clean to specific paths.
|
|
66
67
|
*
|
|
@@ -108,6 +109,17 @@ export declare class CleanCommand extends GitCommand<CleanResult> {
|
|
|
108
109
|
* @param force Whether to remove nested repositories
|
|
109
110
|
*/
|
|
110
111
|
setForceNestedRepositories(force: boolean): this;
|
|
112
|
+
/**
|
|
113
|
+
* `-e <pattern>` / `--exclude=<pattern>`, once per pattern: ignore rules added on top of the
|
|
114
|
+
* standard ones (git's `add_pattern` into an `EXC_CMDL` list, asked before `.gitignore`,
|
|
115
|
+
* `info/exclude` and `core.excludesFile`), so a path they exclude is kept as an ignored one
|
|
116
|
+
* (`!<pattern>` re-includes what the standard rules ignore). They apply with
|
|
117
|
+
* {@link setIgnore}(false) (`-x`) too, where they are the only rules, and with
|
|
118
|
+
* {@link setIgnoredOnly} (`-X`) what they exclude is removed.
|
|
119
|
+
*
|
|
120
|
+
* @param patterns The patterns, in command-line order (later ones win)
|
|
121
|
+
*/
|
|
122
|
+
setExcludePatterns(patterns: readonly string[]): this;
|
|
111
123
|
/**
|
|
112
124
|
* Execute the clean command, as `git clean -f` (`-d` with `setCleanDirectories(true)`,
|
|
113
125
|
* `-x` with `setIgnore(false)`, `-X` with `setIgnoredOnly(true)`, `-ff` with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clean-command.d.ts","sourceRoot":"","sources":["../../src/commands/clean-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clean-command.d.ts","sourceRoot":"","sources":["../../src/commands/clean-command.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAgB/C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,4CAA4C;IAC5C,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB;;;OAGG;IACH,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,6DAA6D;IAC7D,MAAM,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,YAAa,SAAQ,UAAU,CAAC,WAAW,CAAC;IACvD,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,eAAe,CAAgB;IAEvC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAIjC;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;;OAKG;IACH,mBAAmB,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAI9C;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;;;OAMG;IACH,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAIzC;IAED;;;;;;OAMG;IACH,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI/C;IAED;;;;;;;;;OASG;IACH,kBAAkB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAIpD;IAED;;;;;;;;;;;;;;;;;OAiBG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CAYjC;IAED;;;;OAIG;YACW,KAAK;IAoDnB;;;;OAIG;YACW,QAAQ;IAoFtB;;;;;;;;;OASG;YACW,aAAa;CAmE5B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
1
2
|
import type { CloneResult } from "../results/clone-result.js";
|
|
2
3
|
import { TransportCommand } from "../transport-command.js";
|
|
3
4
|
import { TagOption } from "./fetch-command.js";
|
|
@@ -334,6 +335,22 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
|
|
|
334
335
|
* @throws InvalidRemoteError if URI is not specified
|
|
335
336
|
*/
|
|
336
337
|
call(): Promise<CloneResult>;
|
|
338
|
+
/**
|
|
339
|
+
* Called with the working copy a clone reopened with the remote's object format (see
|
|
340
|
+
* {@link CloneResult.workingCopy}): `Git.clone()` takes it as its own.
|
|
341
|
+
*/
|
|
342
|
+
onWorkingCopyReopened(listener: (workingCopy: WorkingCopy) => void): this;
|
|
343
|
+
private reopenedListener?;
|
|
344
|
+
/**
|
|
345
|
+
* git's clone initializes the new repository with the hash the remote names
|
|
346
|
+
* (`initialize_repository_version` with `transport_get_hash_algo`): the destination, still
|
|
347
|
+
* empty, is switched to `format` and reopened (`LinkedWorktrees.reopenWithObjectFormat`),
|
|
348
|
+
* and the clone runs again into it. What the first attempt wrote before it learned the
|
|
349
|
+
* format (the alternates of `--reference` / `--shared`) is removed once the destination
|
|
350
|
+
* passed the check.
|
|
351
|
+
*/
|
|
352
|
+
private cloneReopenedAs;
|
|
353
|
+
private cloneOnce;
|
|
337
354
|
/**
|
|
338
355
|
* The alternates `git clone` writes before it fetches: each `--reference` (a required one
|
|
339
356
|
* that is no usable repository fails the clone; an optional one is reported in the returned
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-command.d.ts","sourceRoot":"","sources":["../../src/commands/clone-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clone-command.d.ts","sourceRoot":"","sources":["../../src/commands/clone-command.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAoB,WAAW,EAAY,MAAM,+BAA+B,CAAC;AAU7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAkC,MAAM,oBAAoB,CAAC;AA2D/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,qBAAa,YAAa,SAAQ,gBAAgB,CAAC,WAAW,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,CAAS;IACrB,qFAAqF;IACrF,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,8DAA8D;IAC9D,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC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;IAED;;;;OAIG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIrC;IAED;;;OAGG;IACH,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAIvC;IAED;;OAEG;IACH,kBAAkB,IAAI,MAAM,EAAE,CAE7B;IAED;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CASjC;IAED;;;OAGG;IACH,qBAAqB,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,GAAG,IAAI,CAGxE;IAED,OAAO,CAAC,gBAAgB,CAAC,CAAqC;IAE9D;;;;;;;OAOG;YACW,eAAe;YA+Bf,SAAS;IA+YvB;;;;;;OAMG;YACW,eAAe;IA8B7B,4FAA4F;YAC9E,mBAAmB;IAWjC;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAgCxB;;;;;;OAMG;YACW,yBAAyB;IA2CvC;;;;;;OAMG;YACW,WAAW;IA6DzB,4FAA4F;YAC9E,eAAe;IAO7B;;;;;;;;;;;;;;;OAeG;YACW,YAAY;IAyC1B,2FAA2F;IAC3F,OAAO,CAAC,eAAe;CAGxB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `core.commentChar` / `core.commentString` = `auto`, deprecated in git 2.5x and removed in
|
|
3
|
+
* git 3.0 (config.c's `comment_char_callback` and `check_auto_comment_char_config`). git
|
|
4
|
+
* tracks every value of the two keys in configuration order; when the last one is exactly
|
|
5
|
+
* `auto`, a git built with `WITH_BREAKING_CHANGES` dies in every command that reads the
|
|
6
|
+
* repository's configuration, and git 2.5x warns once in commit, merge, rebase, revert and
|
|
7
|
+
* cherry-pick. Both add advice naming the files to change, as `git config` scope options.
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* autoCommentCharLines(workingCopy, "removed");
|
|
11
|
+
* // ["fatal: Support for 'core.commentChar=auto' has been removed in Git 3.0", "hint:",
|
|
12
|
+
* // "hint: To use the default comment string (#) please run", ...]
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
import type { WorkingCopy } from "@statewalker/vcs-working-tree";
|
|
16
|
+
import { InvalidConfigError } from "../errors/index.js";
|
|
17
|
+
/** `core.commentChar=auto` in a git 3.0 build: every command but `git config` dies (exit 128). */
|
|
18
|
+
export declare class AutoCommentCharRemovedError extends InvalidConfigError {
|
|
19
|
+
/** git's stderr: the fatal line and its hints */
|
|
20
|
+
readonly lines: string[];
|
|
21
|
+
constructor(lines: string[]);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* git's lines about an `auto` comment character, or undefined when the last value of the two
|
|
25
|
+
* keys is not exactly `auto`: `removed` gives git 3.0's death (`fatal:`), `deprecated` git
|
|
26
|
+
* 2.5x's warning (`warning:`), each followed by the advice.
|
|
27
|
+
*/
|
|
28
|
+
export declare function autoCommentCharLines(workingCopy: WorkingCopy, kind: "removed" | "deprecated"): string[] | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The git 3.0 check every command runs as it reads the configuration (`check_deprecated_config`
|
|
31
|
+
* in `repo_read_config`): throws with git's lines when the comment character is `auto` and the
|
|
32
|
+
* host asked for git 3.0 (`GitHostEnvironment.breakingChanges`).
|
|
33
|
+
*/
|
|
34
|
+
export declare function checkAutoCommentChar(workingCopy: WorkingCopy): void;
|
|
35
|
+
//# sourceMappingURL=comment-char-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-char-config.d.ts","sourceRoot":"","sources":["../../src/commands/comment-char-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAsB,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAaxD,kGAAkG;AAClG,qBAAa,2BAA4B,SAAQ,kBAAkB;IACjE,iDAAiD;IACjD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,KAAK,EAAE,MAAM,EAAE,EAI1B;CACF;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,SAAS,GAAG,YAAY,GAC7B,MAAM,EAAE,GAAG,SAAS,CA+CtB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAInE"}
|
|
@@ -71,9 +71,13 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
71
71
|
private amend;
|
|
72
72
|
private noPostRewrite;
|
|
73
73
|
private noVerify;
|
|
74
|
+
/** `-S[<keyid>]` / `--no-gpg-sign` (undefined: `commit.gpgSign`) */
|
|
75
|
+
private sign?;
|
|
74
76
|
private allowEmpty;
|
|
75
77
|
private parents;
|
|
76
78
|
private onlyPaths;
|
|
79
|
+
/** `--pathspec-from-file` */
|
|
80
|
+
private readonly pathspecFile;
|
|
77
81
|
private all;
|
|
78
82
|
private include;
|
|
79
83
|
private includePaths;
|
|
@@ -90,6 +94,24 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
90
94
|
private nullTermination;
|
|
91
95
|
private aheadBehind?;
|
|
92
96
|
private templateFile?;
|
|
97
|
+
/** `--author=<string>` as given: `Name <email>`, or a pattern of an existing author */
|
|
98
|
+
private authorString?;
|
|
99
|
+
/** `--date=<date>`, and the clock its relative forms count from */
|
|
100
|
+
private forceDate?;
|
|
101
|
+
private signoff;
|
|
102
|
+
private trailerArgs;
|
|
103
|
+
/** `-C <commit>`: the commit whose message (and author) are reused */
|
|
104
|
+
private reuseMessage?;
|
|
105
|
+
/** The commit `-C` (or `-c`) names, read once the options are checked */
|
|
106
|
+
private reused?;
|
|
107
|
+
/** `-c <commit>` */
|
|
108
|
+
private reeditMessageFrom?;
|
|
109
|
+
/** `--fixup=[(amend|reword):]<commit>` as given */
|
|
110
|
+
private fixupSpec?;
|
|
111
|
+
/** `--squash=<commit>` */
|
|
112
|
+
private squashFrom?;
|
|
113
|
+
/** --fixup, parsed when the commit runs */
|
|
114
|
+
private fixup?;
|
|
93
115
|
/**
|
|
94
116
|
* Set the commit message, as git's `commit -m` takes it: its last line is ended and it is
|
|
95
117
|
* cleaned up (`whitespace` by default, see {@link setCleanupMode}), so `"Fix"` is stored
|
|
@@ -124,12 +146,49 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
124
146
|
*/
|
|
125
147
|
setAllowEmptyMessage(allow: boolean): this;
|
|
126
148
|
/**
|
|
127
|
-
* Set the author identity
|
|
149
|
+
* Set the author identity (git's `--author`): a name and an email, or one string as git's
|
|
150
|
+
* `--author=<author>` takes it. A string with a `>` is `Name <email>` (refused as
|
|
151
|
+
* `fatal: malformed --author parameter` without a `<`); any other is a pattern looked up as
|
|
152
|
+
* git's `find_author_by_nickname` does: the newest commit of `--all` whose (mailmapped)
|
|
153
|
+
* author matches it as a basic regular expression, ignoring case, gives its `Name <email>`,
|
|
154
|
+
* else `fatal: --author '<x>' is not 'Name <email>' and matches no existing author`.
|
|
128
155
|
*
|
|
129
|
-
* @
|
|
156
|
+
* @example
|
|
157
|
+
* ```typescript
|
|
158
|
+
* await git.commit().setAuthor("Ada <ada@example.com>").setMessage("m").call();
|
|
159
|
+
* await git.commit().setAuthor("ada").setMessage("m").call(); // an existing author
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* @param name Author name, or the whole `--author` string when `email` is not given
|
|
130
163
|
* @param email Author email
|
|
131
164
|
*/
|
|
132
|
-
setAuthor(name: string, email
|
|
165
|
+
setAuthor(name: string, email?: string): this;
|
|
166
|
+
/**
|
|
167
|
+
* `--date=<date>`: the author's date, in any form git's `parse_date` reads (`@<seconds>
|
|
168
|
+
* <offset>`, RFC 2822, ISO 8601, ...) or else as `approxidate` reads it (`yesterday`,
|
|
169
|
+
* `2.weeks.ago`, `noon`), counting from `now` (seconds; default the command's clock, git's
|
|
170
|
+
* `GIT_TEST_DATE_NOW`). A date git cannot read fails as `fatal: invalid date format: <date>`.
|
|
171
|
+
*/
|
|
172
|
+
setDate(date: string, options?: {
|
|
173
|
+
now?: number;
|
|
174
|
+
}): this;
|
|
175
|
+
/**
|
|
176
|
+
* `-s` / `--signoff`: a `Signed-off-by: <committer>` trailer added to the message as git's
|
|
177
|
+
* `append_signoff` adds it (after a blank line unless the message ends with trailers; none
|
|
178
|
+
* when the last trailer is that line already).
|
|
179
|
+
*/
|
|
180
|
+
setSignoff(signoff: boolean): this;
|
|
181
|
+
/**
|
|
182
|
+
* `--trailer <token>[(=|:)<value>]`: a trailer added to the message as `git
|
|
183
|
+
* interpret-trailers --no-divider --trailer` adds it (`trailer.*` configuration applies).
|
|
184
|
+
* Each call adds one, in order.
|
|
185
|
+
*/
|
|
186
|
+
addTrailer(trailer: string): this;
|
|
187
|
+
/**
|
|
188
|
+
* `-C <commit>`: the commit's message taken as it is, and its author (name, email and
|
|
189
|
+
* date) unless {@link setResetAuthor}. With {@link setEdit}(true) it is `-c`.
|
|
190
|
+
*/
|
|
191
|
+
setReuseMessage(commit: string): this;
|
|
133
192
|
/**
|
|
134
193
|
* Set the author identity from a PersonIdent.
|
|
135
194
|
*
|
|
@@ -150,8 +209,8 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
150
209
|
*/
|
|
151
210
|
setCommitterIdent(committer: PersonIdent): this;
|
|
152
211
|
/**
|
|
153
|
-
* `--reset-author`: an amended commit, or the commit that concludes a
|
|
154
|
-
* authored as a new one (the author resolved as git resolves it, dated now) instead of
|
|
212
|
+
* `--reset-author`: an amended commit, a `-C` commit, or the commit that concludes a
|
|
213
|
+
* cherry-pick, is authored as a new one (the author resolved as git resolves it, dated now) instead of
|
|
155
214
|
* keeping the earlier commit's author.
|
|
156
215
|
*
|
|
157
216
|
* @param reset Whether to reset the author
|
|
@@ -167,6 +226,19 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
167
226
|
* (`prepare-commit-msg` and `post-commit` still do, as in git).
|
|
168
227
|
*/
|
|
169
228
|
setNoVerify(noVerify: boolean): this;
|
|
229
|
+
/**
|
|
230
|
+
* `-S` (true) / `--no-gpg-sign` (false): whether to sign the commit; undefined (the
|
|
231
|
+
* default) leaves it to `commit.gpgSign`. The commit is signed with the default key
|
|
232
|
+
* (`user.signingKey`, else as `gpg.format` says) through the host's signer
|
|
233
|
+
* (`GitHostEnvironment.signer`) and carries the signature in its `gpgsig` header
|
|
234
|
+
* ({@link signCommit}). Without a signer, or when it fails, the commit fails as git fails
|
|
235
|
+
* when gpg cannot sign (`error: gpg failed to sign the data:`, `fatal: failed to write
|
|
236
|
+
* commit object`, exit 128: {@link SigningFailedError}) once everything before the signing
|
|
237
|
+
* is done, and nothing is committed.
|
|
238
|
+
*/
|
|
239
|
+
setSign(sign: boolean | undefined): this;
|
|
240
|
+
/** `-S<keyid>`: sign with this key (see {@link setSign}). */
|
|
241
|
+
setSigningKey(keyId: string): this;
|
|
170
242
|
/**
|
|
171
243
|
* Set whether to amend the previous commit.
|
|
172
244
|
*
|
|
@@ -215,6 +287,24 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
215
287
|
* @throws Error if combined with --all mode
|
|
216
288
|
*/
|
|
217
289
|
setOnly(...paths: string[]): this;
|
|
290
|
+
/**
|
|
291
|
+
* `--pathspec-from-file` (and `--pathspec-file-nul` with `nul`): the pathspec elements of
|
|
292
|
+
* `content`, one per line (a line starting with `"` unquoted as a C string), or separated
|
|
293
|
+
* by NUL with `nul`, committed as {@link setOnly} paths (or {@link setInclude}'s with
|
|
294
|
+
* `setInclude()`). As git's prepare_index: refused with {@link setAll} ("options
|
|
295
|
+
* '--pathspec-from-file' and '-a' cannot be used together") and beside paths given to
|
|
296
|
+
* `setOnly`/`setInclude` ("'--pathspec-from-file' and pathspec arguments cannot be used
|
|
297
|
+
* together"); an empty file commits the index as it is (with `setInclude()`: "No paths
|
|
298
|
+
* with --include/--only does not make sense.").
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* ```typescript
|
|
302
|
+
* await git.commit().setPathspecFromFile("src/a.ts\n").setMessage("Fix a").call();
|
|
303
|
+
* ```
|
|
304
|
+
*
|
|
305
|
+
* @throws InvalidArgumentError "fatal: line is badly quoted: <line>"
|
|
306
|
+
*/
|
|
307
|
+
setPathspecFromFile(content: string | Uint8Array, nul?: boolean): this;
|
|
218
308
|
/**
|
|
219
309
|
* Set whether to auto-stage modified tracked files before committing.
|
|
220
310
|
*
|
|
@@ -294,6 +384,35 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
294
384
|
* ```
|
|
295
385
|
*/
|
|
296
386
|
setTemplate(path: string): this;
|
|
387
|
+
/**
|
|
388
|
+
* `-c <commit>` / `--reedit-message=<commit>`: as {@link setReuseMessage} (or `-C` with {@link setEdit}(true)), with the message
|
|
389
|
+
* then given to the editor ({@link setEditor}; without one it is taken as it is).
|
|
390
|
+
*/
|
|
391
|
+
setReeditMessage(commit: string): this;
|
|
392
|
+
/**
|
|
393
|
+
* `--fixup=[(amend|reword):]<commit>`: a commit `rebase --autosquash` folds into `commit`.
|
|
394
|
+
* Plain, its message is `fixup! <subject>` (then the {@link setMessage} text, if any) and
|
|
395
|
+
* no editor runs. `amend:<commit>` makes `amend! <subject>` followed by the commit's whole
|
|
396
|
+
* message (its body alone when it is an `amend!` commit itself) for the editor to change,
|
|
397
|
+
* empty commits allowed and a message given with {@link setMessage} refused; `reword:` is
|
|
398
|
+
* `amend:` committing HEAD's tree (only the message changes), refused with paths, `-a`,
|
|
399
|
+
* `-i`, and during a merge or cherry-pick. An `amend!` message without a body is refused
|
|
400
|
+
* (`Aborting commit due to empty commit message body.`).
|
|
401
|
+
*
|
|
402
|
+
* @example
|
|
403
|
+
* ```typescript
|
|
404
|
+
* await git.commit().setFixup("HEAD~1").call();
|
|
405
|
+
* await git.commit().setFixup("reword:HEAD~1").setEditor(edit).call();
|
|
406
|
+
* ```
|
|
407
|
+
*/
|
|
408
|
+
setFixup(commit: string): this;
|
|
409
|
+
/**
|
|
410
|
+
* `--squash=<commit>`: the message starts with `squash! <subject>` and a blank line, then
|
|
411
|
+
* the message given ({@link setMessage}, {@link setReuseMessage}: only `squash! ` when it
|
|
412
|
+
* names the same commit as given here), else what the editor makes of it. Refused with
|
|
413
|
+
* {@link setFixup}.
|
|
414
|
+
*/
|
|
415
|
+
setSquash(commit: string): this;
|
|
297
416
|
/** `-e` / `--no-edit`: edit a given message too, or never edit (default: edit when none is given). */
|
|
298
417
|
setEdit(edit: boolean): this;
|
|
299
418
|
/** `--status` / `--no-status`: the status in the editor's template (default `commit.status`, true). */
|
|
@@ -329,12 +448,30 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
329
448
|
callDryRun(): Promise<CommitDryRunResult>;
|
|
330
449
|
/** git's use_editor: an editor is set, and no message is given or `-e` asks for it. */
|
|
331
450
|
private usesEditor;
|
|
451
|
+
/**
|
|
452
|
+
* git's use_editor before `-e`/`--no-edit`: no message given (`-m`, `-C`) and no plain
|
|
453
|
+
* `--fixup`, whose messages are taken as they are.
|
|
454
|
+
*/
|
|
455
|
+
private editsByDefault;
|
|
456
|
+
/** The revision `-c` or `-C` names (git's use_message), as given. */
|
|
457
|
+
private reusedName;
|
|
332
458
|
/**
|
|
333
459
|
* prepare_to_commit with an editor: COMMIT_EDITMSG written with the message so far and
|
|
334
460
|
* (`commit.status`) the commented help, identities and status of the template, the
|
|
335
461
|
* editor run over it, and what it left cleaned up as the commit message.
|
|
336
462
|
*/
|
|
337
463
|
private editMessage;
|
|
464
|
+
/**
|
|
465
|
+
* `-s`: the message so far with the committer's sign-off (append_signoff with
|
|
466
|
+
* ignored_log_message_bytes: before trailing comments and the scissors line).
|
|
467
|
+
*/
|
|
468
|
+
private signedOff;
|
|
469
|
+
/**
|
|
470
|
+
* `--trailer`: COMMIT_EDITMSG (written as `message`) with the trailers added, as git's
|
|
471
|
+
* amend_file_with_trailers (2.43: a child `interpret-trailers --in-place --no-divider`,
|
|
472
|
+
* which takes an empty argument for nothing and refuses none); the new text, written back.
|
|
473
|
+
*/
|
|
474
|
+
private withTrailers;
|
|
338
475
|
/**
|
|
339
476
|
* The commit template (`-t`, else `commit.template`, `~/` expanded) read through the host,
|
|
340
477
|
* undefined when none is set; one that cannot be read fails as git's `die_errno`.
|
|
@@ -377,6 +514,53 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
377
514
|
* tracked paths are staged until HEAD has moved.
|
|
378
515
|
*/
|
|
379
516
|
private commitIncluded;
|
|
517
|
+
/**
|
|
518
|
+
* parse_and_validate_options' handling of `--author`, `-m` with `-C`, `--reset-author`,
|
|
519
|
+
* and `-C`'s commit (read_commit_message), in git's order.
|
|
520
|
+
*/
|
|
521
|
+
private parseAuthorOptions;
|
|
522
|
+
/** A blob's bytes, undefined when it cannot be read. */
|
|
523
|
+
private readBlobBytes;
|
|
524
|
+
/**
|
|
525
|
+
* `--date` (parse_force_date): the date as `parse_date` reads it, else as `approxidate`
|
|
526
|
+
* does, refused as git refuses it.
|
|
527
|
+
*/
|
|
528
|
+
private forcedDate;
|
|
529
|
+
/**
|
|
530
|
+
* builtin/commit.c's find_author_by_nickname: the first commit of `rev-list --all -i
|
|
531
|
+
* --author=<name>` (newest first, the mailmap applied before matching) gives `%aN <%aE>`.
|
|
532
|
+
*/
|
|
533
|
+
private findAuthorByNickname;
|
|
534
|
+
/**
|
|
535
|
+
* parse_and_validate_options for `-C`, `-c`, `--fixup` and `--squash`, in git's order: the
|
|
536
|
+
* incompatible options, the commit `-C`/`-c` names read (`could not lookup commit`), then
|
|
537
|
+
* `--fixup`'s suboption (`amend:`/`reword:` allow empty commits; `reword:` refuses paths,
|
|
538
|
+
* `-a`, `-i` and a merge or cherry-pick in progress).
|
|
539
|
+
*/
|
|
540
|
+
private checkReuseOptions;
|
|
541
|
+
/** git's lookup_commit_reference_by_name, dying as `could not lookup commit '<name>'`. */
|
|
542
|
+
private lookupCommit;
|
|
543
|
+
/**
|
|
544
|
+
* A commit's message and author as `git commit` reads another commit's (read_commit_message,
|
|
545
|
+
* format_commit_message): converted from its `encoding` header into the commit output
|
|
546
|
+
* encoding (`i18n.commitEncoding`, else UTF-8). Ours writes UTF-8 messages only, so a
|
|
547
|
+
* commit is converted only when that encoding is UTF-8.
|
|
548
|
+
*/
|
|
549
|
+
private inCommitOutputEncoding;
|
|
550
|
+
/** The stored bytes of an object (undefined where the store cannot give them). */
|
|
551
|
+
private readRawObject;
|
|
552
|
+
/**
|
|
553
|
+
* The start of prepare_to_commit's message from `-C`/`-c`/`--fixup`/`--squash`: the
|
|
554
|
+
* `squash! ` subject (`prefix`, put before whatever message follows) and, for `-C`/`-c`
|
|
555
|
+
* and `--fixup`, the text that replaces the other sources (undefined: they apply).
|
|
556
|
+
*/
|
|
557
|
+
private reusedMessage;
|
|
558
|
+
/**
|
|
559
|
+
* prepare_index's `--pathspec-from-file`: refused with `-a` and beside pathspec arguments
|
|
560
|
+
* ({@link setOnly}, {@link setInclude}); its elements are then the paths of `-i`, else of
|
|
561
|
+
* `--only`.
|
|
562
|
+
*/
|
|
563
|
+
private applyPathspecFile;
|
|
380
564
|
/** `-i <paths>`: parse_and_validate_options' and prepare_index's refusals. */
|
|
381
565
|
private checkIncludeOptions;
|
|
382
566
|
/**
|
|
@@ -401,6 +585,8 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
|
|
|
401
585
|
private refuseNothingToCommit;
|
|
402
586
|
/** The commit of `treeId` made, HEAD moved to it, and what was in progress ended. */
|
|
403
587
|
private finishCommit;
|
|
588
|
+
/** The host directory the signing program runs in, if the repository has one. */
|
|
589
|
+
private signingCwd;
|
|
404
590
|
/**
|
|
405
591
|
* The variables of the commit hooks (git's `run_commit_hook`): `GIT_INDEX_FILE` names the
|
|
406
592
|
* index the commit records (the lock `-a` and a partial commit write; git's false index of
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-command.d.ts","sourceRoot":"","sources":["../../src/commands/commit-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"commit-command.d.ts","sourceRoot":"","sources":["../../src/commands/commit-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAEX,KAAK,QAAQ,EACb,KAAK,WAAW,EAEjB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAKL,KAAK,QAAQ,EAEd,MAAM,+BAA+B,CAAC;AAcvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AA+B/C,OAAO,EACL,WAAW,EAOZ,MAAM,sBAAsB,CAAC;AAgB9B,OAAO,EAIL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAC;AAc7B;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,yCAAyC;IACzC,EAAE,EAAE,QAAQ,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,YAAY,CAAC;IACzD,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,MAAM,CAAC,CAAc;IAC7B,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,+DAA+D;IAC/D,OAAO,CAAC,UAAU,CAAC,CAAkC;IACrD,sEAAsE;IACtE,OAAO,CAAC,aAAa,CAAC,CAAkC;IACxD,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAS;IACzB,oEAAoE;IACpE,OAAO,CAAC,IAAI,CAAC,CAAmB;IAChC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,SAAS,CAAgB;IACjC,6BAA6B;IAC7B,OAAO,CAAC,QAAQ,CAAC,YAA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F;YACpE,aAAa;IAyB3B;;;;OAIG;YACW,aAAa;IA2B3B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAQzB,8EAA8E;IAC9E,OAAO,CAAC,mBAAmB;IAsB3B;;;OAGG;YACW,UAAU;IAmFxB;;;;;OAKG;YACW,mBAAmB;IAkDjC,+FAA+F;YACjF,cAAc;IAyR5B;;;;OAIG;YACW,qBAAqB;IAmBnC,qFAAqF;YACvE,YAAY;IA0F1B,iFAAiF;YACnE,UAAU;IAQxB;;;;;OAKG;YACW,aAAa;IAe3B,8DAA8D;YAChD,aAAa;IAiB3B;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAuB9B;;;;OAIG;YACW,eAAe;IAgB7B,qFAAqF;YACvE,UAAU;IAYxB,iFAAiF;YACnE,WAAW;IAgBzB;;;;OAIG;YACW,kBAAkB;IA0ChC;;;;OAIG;YACW,SAAS;IAsDvB;;;;;;OAMG;YACW,gBAAgB;IAqF9B,iFAAiF;YACnE,gBAAgB;IAgB9B;;;;;;;;;OASG;YACW,oBAAoB;IA+DlC,4FAA4F;YAC9E,eAAe;IAI7B,2EAA2E;YAC7D,eAAe;IAoB7B;;;OAGG;YACW,QAAQ;IAiCtB;;;;;OAKG;YACW,mBAAmB;IAyBjC;;OAEG;IACH,OAAO,CAAC,mBAAmB;CAQ5B;AAyHD;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAE5E,kFAAkF;AAClF,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** The forms of `--fixup`: `fixup! ` commits, or `amend! ` ones (`amend:` and `reword:`). */
|
|
2
|
+
export type FixupKind = "fixup" | "amend" | "reword";
|
|
3
|
+
/**
|
|
4
|
+
* `--fixup=<spec>` as parse_and_validate_options reads it: a run of ASCII letters followed by
|
|
5
|
+
* a colon is a suboption (`amend:`/`reword:`; any other name is git's `unknown option`),
|
|
6
|
+
* otherwise the whole spec names the commit.
|
|
7
|
+
*/
|
|
8
|
+
export declare function parseFixupSpec(spec: string): {
|
|
9
|
+
kind: FixupKind;
|
|
10
|
+
target: string;
|
|
11
|
+
} | {
|
|
12
|
+
unknown: string;
|
|
13
|
+
target: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* git's die_for_incompatible_opt4: the options given (`[name, given]`, in git's order),
|
|
17
|
+
* refused when more than one is.
|
|
18
|
+
*/
|
|
19
|
+
export declare function refuseIncompatible(options: Array<[string, boolean]>): void;
|
|
20
|
+
/** git's skip_blank_lines: the text after its leading blank lines. */
|
|
21
|
+
export declare function skipBlankLines(text: string): string;
|
|
22
|
+
/** git's commit_subject_length: the length of the first paragraph's lines (with their newlines). */
|
|
23
|
+
export declare function commitSubjectLength(text: string): number;
|
|
24
|
+
/** pretty.c's `%b`: the message after its subject paragraph and the blank lines around it. */
|
|
25
|
+
export declare function bodyOf(message: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* prepare_amend_commit: the amended commit's whole message (`%B`), or only its body (`%b`)
|
|
28
|
+
* when its subject already starts with `amend!` (an `amend!` commit amended again).
|
|
29
|
+
*/
|
|
30
|
+
export declare function amendCommitText(message: string): string;
|
|
31
|
+
/** The first line of an autosquash commit (`fixup! %s`, `amend! %s`, `squash! %s`) and a blank line. */
|
|
32
|
+
export declare function autosquashSubject(prefix: "fixup" | "amend" | "squash", message: string): string;
|
|
33
|
+
//# sourceMappingURL=commit-reuse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-reuse.d.ts","sourceRoot":"","sources":["../../src/commands/commit-reuse.ts"],"names":[],"mappings":"AAOA,6FAA6F;AAC7F,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAO3E;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,CAS1E;AAOD,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASnD;AAED,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQxD;AAED,8FAA8F;AAC9F,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAU9C;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wGAAwG;AACxG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE/F"}
|