@statewalker/vcs-commands 0.13.0 → 0.15.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.map +1 -1
- package/dist/commands/add-patch/patch-backend.d.ts +1 -1
- package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
- package/dist/commands/archive/archive-command.d.ts +6 -2
- package/dist/commands/archive/archive-command.d.ts.map +1 -1
- package/dist/commands/archive/remote-archive-command.d.ts +27 -2
- package/dist/commands/archive/remote-archive-command.d.ts.map +1 -1
- package/dist/commands/archive/upload-archive-writer.d.ts +11 -5
- package/dist/commands/archive/upload-archive-writer.d.ts.map +1 -1
- package/dist/commands/branch-command.d.ts +14 -2
- package/dist/commands/branch-command.d.ts.map +1 -1
- package/dist/commands/bundle/bundle-format.d.ts +6 -1
- package/dist/commands/bundle/bundle-format.d.ts.map +1 -1
- package/dist/commands/bundle/bundle-uri-host.d.ts +12 -1
- package/dist/commands/bundle/bundle-uri-host.d.ts.map +1 -1
- package/dist/commands/bundle/bundle-uri.d.ts +7 -1
- package/dist/commands/bundle/bundle-uri.d.ts.map +1 -1
- package/dist/commands/bundle/bundle-verify.d.ts +4 -1
- package/dist/commands/bundle/bundle-verify.d.ts.map +1 -1
- package/dist/commands/cat-file/batch-format.d.ts +8 -12
- package/dist/commands/cat-file/batch-format.d.ts.map +1 -1
- package/dist/commands/cat-file/cat-file-command.d.ts +39 -5
- package/dist/commands/cat-file/cat-file-command.d.ts.map +1 -1
- package/dist/commands/check-ignore-command.d.ts.map +1 -1
- package/dist/commands/checkout-command.d.ts +4 -0
- package/dist/commands/checkout-command.d.ts.map +1 -1
- package/dist/commands/checkout-paths.d.ts +9 -0
- package/dist/commands/checkout-paths.d.ts.map +1 -1
- package/dist/commands/cherry-pick-command.d.ts +3 -0
- package/dist/commands/cherry-pick-command.d.ts.map +1 -1
- package/dist/commands/clean-interactive.d.ts +0 -9
- package/dist/commands/clean-interactive.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/column/column-config.d.ts +23 -0
- package/dist/commands/column/column-config.d.ts.map +1 -0
- package/dist/commands/column/column-layout.d.ts +129 -0
- package/dist/commands/column/column-layout.d.ts.map +1 -0
- package/dist/commands/column/index.d.ts +3 -0
- package/dist/commands/column/index.d.ts.map +1 -0
- package/dist/commands/column-command.d.ts +59 -0
- package/dist/commands/column-command.d.ts.map +1 -0
- package/dist/commands/comment-char-config.d.ts +15 -0
- package/dist/commands/comment-char-config.d.ts.map +1 -1
- package/dist/commands/commit-command.d.ts +30 -2
- package/dist/commands/commit-command.d.ts.map +1 -1
- package/dist/commands/config-command.d.ts +12 -0
- package/dist/commands/config-command.d.ts.map +1 -1
- package/dist/commands/credential-helper.d.ts +214 -0
- package/dist/commands/credential-helper.d.ts.map +1 -0
- package/dist/commands/default-branch.d.ts +33 -3
- package/dist/commands/default-branch.d.ts.map +1 -1
- package/dist/commands/diff-color-config.d.ts +4 -0
- package/dist/commands/diff-color-config.d.ts.map +1 -1
- package/dist/commands/diff-command.d.ts +12 -0
- package/dist/commands/diff-command.d.ts.map +1 -1
- package/dist/commands/fast-export/fast-export-command.d.ts +89 -2
- package/dist/commands/fast-export/fast-export-command.d.ts.map +1 -1
- package/dist/commands/fast-export/fast-import-command.d.ts +113 -8
- package/dist/commands/fast-export/fast-import-command.d.ts.map +1 -1
- package/dist/commands/fast-export/fast-stream-support.d.ts +0 -9
- package/dist/commands/fast-export/fast-stream-support.d.ts.map +1 -1
- package/dist/commands/fetch-command.d.ts +23 -1
- package/dist/commands/fetch-command.d.ts.map +1 -1
- package/dist/commands/fsck/fsck-object-checks.d.ts.map +1 -1
- package/dist/commands/git-hooks.d.ts +31 -3
- package/dist/commands/git-hooks.d.ts.map +1 -1
- package/dist/commands/history-command.d.ts +173 -7
- package/dist/commands/history-command.d.ts.map +1 -1
- package/dist/commands/index-host.d.ts +19 -0
- package/dist/commands/index-host.d.ts.map +1 -1
- package/dist/commands/index-refresh.d.ts +36 -0
- package/dist/commands/index-refresh.d.ts.map +1 -0
- package/dist/commands/index.d.ts +9 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +7 -6
- package/dist/commands/init-command.d.ts +20 -0
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/local-transport.d.ts +40 -2
- package/dist/commands/local-transport.d.ts.map +1 -1
- package/dist/commands/log-command.d.ts +7 -0
- package/dist/commands/log-command.d.ts.map +1 -1
- package/dist/commands/log-output.d.ts +11 -0
- package/dist/commands/log-output.d.ts.map +1 -1
- package/dist/commands/ls-tree-command.d.ts +10 -0
- package/dist/commands/ls-tree-command.d.ts.map +1 -1
- package/dist/commands/maintenance-schedule-command.d.ts +122 -0
- package/dist/commands/maintenance-schedule-command.d.ts.map +1 -0
- package/dist/commands/merge-command.d.ts +13 -1
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/merge-index-command.d.ts +42 -0
- package/dist/commands/merge-index-command.d.ts.map +1 -0
- package/dist/commands/merge-one-file.d.ts +129 -0
- package/dist/commands/merge-one-file.d.ts.map +1 -0
- package/dist/commands/merge-support.d.ts +40 -4
- package/dist/commands/merge-support.d.ts.map +1 -1
- package/dist/commands/object-disk-info.d.ts +35 -0
- package/dist/commands/object-disk-info.d.ts.map +1 -0
- package/dist/commands/octopus-merge.d.ts +3 -3
- package/dist/commands/octopus-merge.d.ts.map +1 -1
- package/dist/commands/plumbing-input.d.ts.map +1 -1
- package/dist/commands/promisor-remote-reply.d.ts +31 -4
- package/dist/commands/promisor-remote-reply.d.ts.map +1 -1
- package/dist/commands/promisor-remote.d.ts +8 -1
- package/dist/commands/promisor-remote.d.ts.map +1 -1
- package/dist/commands/pull-command.d.ts +55 -7
- package/dist/commands/pull-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +18 -1
- package/dist/commands/push-command.d.ts.map +1 -1
- package/dist/commands/range-diff/range-diff-command.d.ts +37 -1
- package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -1
- package/dist/commands/rebase-command.d.ts +13 -1
- package/dist/commands/rebase-command.d.ts.map +1 -1
- package/dist/commands/ref-filter/for-each-ref-command.d.ts +3 -2
- package/dist/commands/ref-filter/for-each-ref-command.d.ts.map +1 -1
- package/dist/commands/ref-filter/index.d.ts +1 -0
- package/dist/commands/ref-filter/index.d.ts.map +1 -1
- package/dist/commands/ref-filter/peel-limit.d.ts +8 -0
- package/dist/commands/ref-filter/peel-limit.d.ts.map +1 -0
- package/dist/commands/ref-filter/ref-filter.d.ts.map +1 -1
- package/dist/commands/ref-filter/ref-format.d.ts +26 -1
- package/dist/commands/ref-filter/ref-format.d.ts.map +1 -1
- package/dist/commands/ref-filter/ref-listing-command.d.ts +9 -0
- package/dist/commands/ref-filter/ref-listing-command.d.ts.map +1 -1
- package/dist/commands/remote-transport.d.ts +27 -0
- package/dist/commands/remote-transport.d.ts.map +1 -1
- package/dist/commands/repack-command.d.ts +18 -2
- package/dist/commands/repack-command.d.ts.map +1 -1
- package/dist/commands/repo-command.d.ts +2 -7
- package/dist/commands/repo-command.d.ts.map +1 -1
- package/dist/commands/reset-command.d.ts +4 -1
- package/dist/commands/reset-command.d.ts.map +1 -1
- package/dist/commands/restore-command.d.ts.map +1 -1
- package/dist/commands/rev-list-command.d.ts +65 -0
- package/dist/commands/rev-list-command.d.ts.map +1 -1
- package/dist/commands/revert-command.d.ts +3 -0
- package/dist/commands/revert-command.d.ts.map +1 -1
- package/dist/commands/revision-filenames.d.ts.map +1 -1
- package/dist/commands/revision-range.d.ts +17 -0
- package/dist/commands/revision-range.d.ts.map +1 -1
- package/dist/commands/revision-resolver.d.ts +12 -0
- package/dist/commands/revision-resolver.d.ts.map +1 -1
- package/dist/commands/serve-repository.d.ts +21 -4
- package/dist/commands/serve-repository.d.ts.map +1 -1
- package/dist/commands/served-lazy-fetch.d.ts +61 -0
- package/dist/commands/served-lazy-fetch.d.ts.map +1 -0
- package/dist/commands/signing.d.ts +37 -4
- package/dist/commands/signing.d.ts.map +1 -1
- package/dist/commands/split-cmdline.d.ts +6 -0
- package/dist/commands/split-cmdline.d.ts.map +1 -0
- package/dist/commands/status-color-config.d.ts +33 -0
- package/dist/commands/status-color-config.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +15 -0
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/status-format.d.ts +46 -4
- package/dist/commands/status-format.d.ts.map +1 -1
- package/dist/commands/tag-command.d.ts +15 -1
- package/dist/commands/tag-command.d.ts.map +1 -1
- package/dist/commands/tree-restore.d.ts +14 -0
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/verify-command.d.ts +22 -2
- package/dist/commands/verify-command.d.ts.map +1 -1
- package/dist/commands/worktree-add-command.d.ts.map +1 -1
- package/dist/commands/worktree-overwrite-checks.d.ts +31 -6
- package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
- package/dist/{commands-CPceUCP2.js → commands-DT3VEv50.js} +15168 -16842
- package/dist/errors/commit-errors.d.ts +37 -1
- package/dist/errors/commit-errors.d.ts.map +1 -1
- package/dist/errors/git-api-error.d.ts +6 -0
- package/dist/errors/git-api-error.d.ts.map +1 -1
- package/dist/errors/index.js +44 -3
- package/dist/{fsck-tbrPZX2q.js → fsck-BZ508Elg.js} +2 -2
- package/dist/git-command.d.ts +33 -1
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +104 -1
- package/dist/git.d.ts.map +1 -1
- package/dist/index.js +8 -7
- package/dist/{remote-transport-C0OSJtor.js → local-transport-D98U6p4d.js} +228 -692
- package/dist/{maintenance-run-command-UiSIaeP8.js → maintenance-run-command-DZFnbnbo.js} +2366 -108
- package/dist/remote-config/remote-config-store.d.ts +6 -0
- package/dist/remote-config/remote-config-store.d.ts.map +1 -1
- package/dist/remote-transport-zvSqwpOB.js +4865 -0
- package/dist/results/cherry-pick-result.d.ts +4 -3
- package/dist/results/cherry-pick-result.d.ts.map +1 -1
- package/dist/results/diff-output.d.ts +7 -0
- package/dist/results/diff-output.d.ts.map +1 -1
- package/dist/results/diff-words.d.ts +14 -3
- package/dist/results/diff-words.d.ts.map +1 -1
- package/dist/results/index.js +1 -1
- package/dist/results/line-prefix-sink.d.ts +50 -0
- package/dist/results/line-prefix-sink.d.ts.map +1 -0
- package/dist/results/merge-result.d.ts +4 -3
- package/dist/results/merge-result.d.ts.map +1 -1
- package/dist/results/rebase-result.d.ts +5 -0
- package/dist/results/rebase-result.d.ts.map +1 -1
- package/dist/results/revert-result.d.ts +4 -3
- package/dist/results/revert-result.d.ts.map +1 -1
- package/dist/{results-CkS1p1CH.js → results-rF81cQse.js} +1788 -247
- package/dist/transport-command.d.ts +13 -0
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +21 -13
- package/src/commands/add-command.ts +15 -2
- package/src/commands/add-patch/patch-backend.ts +6 -44
- package/src/commands/archive/archive-command.ts +7 -3
- package/src/commands/archive/remote-archive-command.ts +45 -4
- package/src/commands/archive/upload-archive-writer.ts +34 -22
- package/src/commands/branch-command.ts +57 -4
- package/src/commands/bundle/bundle-format.ts +10 -2
- package/src/commands/bundle/bundle-uri-host.ts +71 -11
- package/src/commands/bundle/bundle-uri.ts +11 -4
- package/src/commands/bundle/bundle-verify.ts +4 -1
- package/src/commands/cat-file/batch-format.ts +17 -18
- package/src/commands/cat-file/cat-file-command.ts +182 -48
- package/src/commands/check-ignore-command.ts +110 -21
- package/src/commands/checkout-command.ts +149 -21
- package/src/commands/checkout-index-command.ts +2 -1
- package/src/commands/checkout-paths.ts +13 -0
- package/src/commands/cherry-pick-command.ts +9 -0
- package/src/commands/clean-interactive.ts +20 -74
- package/src/commands/clone-command.ts +102 -11
- package/src/commands/column/column-config.ts +63 -0
- package/src/commands/column/column-layout.ts +396 -0
- package/src/commands/column/index.ts +2 -0
- package/src/commands/column-command.ts +171 -0
- package/src/commands/comment-char-config.ts +42 -0
- package/src/commands/commit-command.ts +93 -18
- package/src/commands/config-command.ts +28 -0
- package/src/commands/credential-helper.ts +807 -0
- package/src/commands/default-branch.ts +57 -5
- package/src/commands/diff-color-config.ts +23 -10
- package/src/commands/diff-command.ts +25 -2
- package/src/commands/fast-export/fast-export-command.ts +661 -35
- package/src/commands/fast-export/fast-import-command.ts +694 -94
- package/src/commands/fast-export/fast-stream-support.ts +18 -1
- package/src/commands/fetch-command.ts +116 -16
- package/src/commands/fsck/fsck-object-checks.ts +3 -1
- package/src/commands/git-hooks.ts +96 -5
- package/src/commands/history-command.ts +952 -20
- package/src/commands/index-host.ts +51 -0
- package/src/commands/index-refresh.ts +121 -0
- package/src/commands/index.ts +9 -0
- package/src/commands/init-command.ts +57 -4
- package/src/commands/legacy-remotes.ts +4 -20
- package/src/commands/local-transport.ts +183 -18
- package/src/commands/log-command.ts +39 -1
- package/src/commands/log-output.ts +31 -4
- package/src/commands/ls-tree-command.ts +20 -12
- package/src/commands/maintenance-schedule-command.ts +418 -0
- package/src/commands/merge-command.ts +42 -8
- package/src/commands/merge-index-command.ts +202 -0
- package/src/commands/merge-one-file.ts +451 -0
- package/src/commands/merge-support.ts +169 -15
- package/src/commands/object-disk-info.ts +169 -0
- package/src/commands/octopus-merge.ts +37 -128
- package/src/commands/plumbing-input.ts +3 -1
- package/src/commands/promisor-remote-reply.ts +338 -56
- package/src/commands/promisor-remote.ts +39 -6
- package/src/commands/pull-command.ts +173 -27
- package/src/commands/push-command.ts +55 -6
- package/src/commands/range-diff/range-diff-command.ts +86 -3
- package/src/commands/read-tree-command.ts +2 -2
- package/src/commands/rebase-command.ts +46 -1
- package/src/commands/ref-filter/for-each-ref-command.ts +4 -3
- package/src/commands/ref-filter/index.ts +1 -0
- package/src/commands/ref-filter/peel-limit.ts +7 -0
- package/src/commands/ref-filter/ref-filter.ts +68 -7
- package/src/commands/ref-filter/ref-format.ts +85 -11
- package/src/commands/ref-filter/ref-listing-command.ts +30 -0
- package/src/commands/remote-command.ts +2 -2
- package/src/commands/remote-transport.ts +66 -3
- package/src/commands/repack-command.ts +75 -9
- package/src/commands/repo-command.ts +6 -70
- package/src/commands/reset-command.ts +11 -1
- package/src/commands/restore-command.ts +1 -0
- package/src/commands/rev-list-command.ts +205 -3
- package/src/commands/revert-command.ts +9 -0
- package/src/commands/revision-filenames.ts +32 -4
- package/src/commands/revision-range.ts +2 -2
- package/src/commands/revision-resolver.ts +21 -1
- package/src/commands/serve-repository.ts +42 -11
- package/src/commands/served-lazy-fetch.ts +164 -0
- package/src/commands/signing.ts +103 -12
- package/src/commands/split-cmdline.ts +32 -0
- package/src/commands/status-color-config.ts +92 -0
- package/src/commands/status-command.ts +50 -2
- package/src/commands/status-format.ts +198 -50
- package/src/commands/tag-command.ts +57 -2
- package/src/commands/tree-restore.ts +17 -0
- package/src/commands/verify-command.ts +84 -12
- package/src/commands/worktree-add-command.ts +2 -0
- package/src/commands/worktree-overwrite-checks.ts +75 -14
- package/src/errors/commit-errors.ts +52 -2
- package/src/errors/git-api-error.ts +7 -0
- package/src/git-command.ts +105 -4
- package/src/git.ts +153 -0
- package/src/remote-config/remote-config-store.ts +16 -0
- package/src/results/cherry-pick-result.ts +4 -3
- package/src/results/diff-output.ts +8 -0
- package/src/results/diff-words.ts +160 -32
- package/src/results/line-prefix-sink.ts +102 -0
- package/src/results/merge-result.ts +4 -3
- package/src/results/rebase-result.ts +5 -0
- package/src/results/revert-result.ts +4 -3
- package/src/transport-command.ts +79 -3
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
*
|
|
19
19
|
* Commands report as git's process does: {@link HistoryResult} holds the exit status (255
|
|
20
20
|
* after git's `error:` lines), stdout (the ref updates of `--dry-run`, split's hunk
|
|
21
|
-
* selection) and stderr. git
|
|
22
|
-
*
|
|
21
|
+
* selection) and stderr. `git history fixup` (2.55) is {@link HistoryFixupCommand}, `drop`
|
|
22
|
+
* (2.56) {@link HistoryDropCommand}, `squash` (git master) {@link HistorySquashCommand}.
|
|
23
23
|
*/
|
|
24
24
|
import type { Commit, ObjectId } from "@statewalker/vcs-core";
|
|
25
|
+
import type { Worktree } from "@statewalker/vcs-working-tree";
|
|
25
26
|
import { GitCommand } from "../git-command.js";
|
|
26
27
|
import { type PatchResult, type PatchSelector } from "./add-patch/index.js";
|
|
27
28
|
import type { CommitEditor } from "./commit-command.js";
|
|
@@ -42,6 +43,11 @@ export interface HistoryResult {
|
|
|
42
43
|
/** The ref updates made (or printed by `--dry-run`), in git's order */
|
|
43
44
|
updates: HistoryRefUpdate[];
|
|
44
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* What happens to a replayed commit whose change is already there (replay.c's
|
|
48
|
+
* `replay_empty_commit_action`): dropped, kept as an empty commit, or the command refused.
|
|
49
|
+
*/
|
|
50
|
+
export type HistoryEmptyAction = "drop" | "keep" | "abort";
|
|
45
51
|
/** Which refs move: every descendant branch (git's default), or HEAD alone. */
|
|
46
52
|
export type HistoryUpdateRefs = "branches" | "head";
|
|
47
53
|
/** builtin/history.c's shared machinery: options, the revision walk, replay, ref updates. */
|
|
@@ -94,11 +100,12 @@ export declare abstract class HistoryCommandBase extends GitCommand<HistoryResul
|
|
|
94
100
|
private signRequest;
|
|
95
101
|
/**
|
|
96
102
|
* commit_tree_ext: a commit of `tree` over `parents` with `original`'s author and the
|
|
97
|
-
* message given (default: `original`'s), edited first
|
|
103
|
+
* message given (`template`, default: `original`'s), edited first (unless `edit` is false)
|
|
104
|
+
* for `action`;
|
|
98
105
|
* undefined when the editor failed or the message came back empty (git's lines are in
|
|
99
106
|
* stderr).
|
|
100
107
|
*/
|
|
101
|
-
protected rewriteCommit(original: Commit, parents: ObjectId[], oldTree: ObjectId, tree: ObjectId, action: string): Promise<ObjectId | undefined>;
|
|
108
|
+
protected rewriteCommit(original: Commit, parents: ObjectId[], oldTree: ObjectId, tree: ObjectId, action: string, edit?: boolean, template?: string): Promise<ObjectId | undefined>;
|
|
102
109
|
/** commit_tree_extended's signing and storing; undefined when signing failed. */
|
|
103
110
|
private writeCommit;
|
|
104
111
|
/**
|
|
@@ -118,6 +125,21 @@ export declare abstract class HistoryCommandBase extends GitCommand<HistoryResul
|
|
|
118
125
|
* (and on `original`) moved in one transaction, or printed with `--dry-run`.
|
|
119
126
|
*/
|
|
120
127
|
protected updateReferences(original: ObjectId, rewritten: ObjectId, descendants: LogResult[], reflogMessage: string): Promise<HistoryRefUpdate[]>;
|
|
128
|
+
/**
|
|
129
|
+
* compute_pending_ref_updates: the descendants replayed onto `rewritten` (replay.c's
|
|
130
|
+
* `replay_revisions`), then the refs at `original` itself moved to `rewritten`, in git's
|
|
131
|
+
* order; undefined when a replay conflicted or failed (its `error:` lines are in stderr).
|
|
132
|
+
*/
|
|
133
|
+
protected pendingUpdates(original: ObjectId, rewritten: ObjectId, descendants: LogResult[], empty: HistoryEmptyAction): Promise<HistoryRefUpdate[] | undefined>;
|
|
134
|
+
/**
|
|
135
|
+
* apply_pending_ref_updates: the updates printed (`--dry-run`) or made in one transaction;
|
|
136
|
+
* `failure` is the subcommand's line after a failed transaction.
|
|
137
|
+
*/
|
|
138
|
+
protected applyPendingUpdates(updates: HistoryRefUpdate[], reflogMessage: string, failure: string): Promise<HistoryRefUpdate[]>;
|
|
139
|
+
/** Whether `--dry-run` was given. */
|
|
140
|
+
protected get isDryRun(): boolean;
|
|
141
|
+
/** `--update-refs`'s mode. */
|
|
142
|
+
protected get refsMode(): HistoryUpdateRefs;
|
|
121
143
|
/**
|
|
122
144
|
* One transaction (ours: the refs under `refs/`, then a detached HEAD, which our stores
|
|
123
145
|
* do not batch with other refs).
|
|
@@ -129,11 +151,21 @@ export declare abstract class HistoryCommandBase extends GitCommand<HistoryResul
|
|
|
129
151
|
*/
|
|
130
152
|
private decorations;
|
|
131
153
|
/**
|
|
132
|
-
* pick_regular_commit onto `base
|
|
133
|
-
*
|
|
134
|
-
*
|
|
154
|
+
* pick_regular_commit onto `base` (replay.c): the commit's change merged onto `base` with
|
|
155
|
+
* merge-ort, as git replays it (`base` and the commit's parent as the sides' labels). When
|
|
156
|
+
* `base` has the parent's tree (reword and split keep the trees) the merge's result is
|
|
157
|
+
* the commit's own tree, taken as it is. Returns the new commit, `base` itself for a
|
|
158
|
+
* commit that became empty under `--empty=drop`, or undefined on a conflict or a refusal
|
|
159
|
+
* (git's `error:` line in stderr).
|
|
160
|
+
*/
|
|
161
|
+
private pickCommit;
|
|
162
|
+
/**
|
|
163
|
+
* create_commit: `tree` over `base` with the commit's author and message, a new
|
|
164
|
+
* committer, its extra headers but its signature.
|
|
135
165
|
*/
|
|
136
166
|
private replay;
|
|
167
|
+
/** The worktree, none in a bare repository. */
|
|
168
|
+
protected worktreeOrNone(): Worktree | undefined;
|
|
137
169
|
}
|
|
138
170
|
/** `git history reword <commit>`: the commit's message edited, its descendants replayed. */
|
|
139
171
|
export declare class HistoryRewordCommand extends HistoryCommandBase {
|
|
@@ -153,4 +185,138 @@ export declare class HistorySplitCommand extends HistoryCommandBase {
|
|
|
153
185
|
getPatchResult(): PatchResult | undefined;
|
|
154
186
|
protected run(): Promise<HistoryRefUpdate[]>;
|
|
155
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* `git history drop <commit>` (git 2.56+): the commit removed, its descendants replayed onto
|
|
190
|
+
* its parent through replay.c's merging pick, the refs on them (and on the commit) moved.
|
|
191
|
+
* When HEAD's branch (or a detached HEAD) moves to another tree, the index and worktree
|
|
192
|
+
* follow as `git checkout` would switch them (builtin/history.c's `update_worktree`, a
|
|
193
|
+
* two-way unpack-trees): local changes in the way refuse the whole drop before any ref
|
|
194
|
+
* moves, `--dry-run` included (untracked files in the way are found only by the switch
|
|
195
|
+
* itself, after the refs moved, as git's dry run without update finds none). A replay that
|
|
196
|
+
* conflicts changes nothing.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```typescript
|
|
200
|
+
* const result = await git.historyDrop().addArgument("HEAD~").call();
|
|
201
|
+
* // result.exitCode 0; result.updates: the refs moved
|
|
202
|
+
* ```
|
|
203
|
+
*/
|
|
204
|
+
export declare class HistoryDropCommand extends HistoryCommandBase {
|
|
205
|
+
private empty;
|
|
206
|
+
/**
|
|
207
|
+
* `--empty=(drop|keep|abort)` (default `drop`): what happens to a descendant whose change
|
|
208
|
+
* the drop leaves empty. Another value is git's death (exit 128).
|
|
209
|
+
*/
|
|
210
|
+
setEmpty(empty: HistoryEmptyAction | string): this;
|
|
211
|
+
call(): Promise<HistoryResult>;
|
|
212
|
+
protected run(): Promise<HistoryRefUpdate[]>;
|
|
213
|
+
/**
|
|
214
|
+
* find_head_tree_change: HEAD's update (its branch's, or a detached HEAD's) when it moves
|
|
215
|
+
* HEAD to another tree.
|
|
216
|
+
*/
|
|
217
|
+
private headTreeChange;
|
|
218
|
+
/**
|
|
219
|
+
* update_worktree (reset_working_tree's two-way unpack-trees, "checkout"'s messages): the
|
|
220
|
+
* index and worktree switched from the old HEAD's tree to the new one, or only checked;
|
|
221
|
+
* git's refusal lines, else undefined.
|
|
222
|
+
*/
|
|
223
|
+
private updateWorktree;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* `git history fixup <commit>` (git 2.55+): the staged changes (the index against HEAD)
|
|
227
|
+
* merged into the commit with merge-ort, HEAD's tree as the base, the commit's tree and the
|
|
228
|
+
* index's as the sides (as a cherry-pick of the staged changes), the commit rewritten with
|
|
229
|
+
* its author and message (edited under {@link setReeditMessage}), its descendants replayed
|
|
230
|
+
* through replay.c's merging pick and the refs on them moved. The index and worktree are
|
|
231
|
+
* left as they are, and a bare repository is refused. A merge that conflicts changes
|
|
232
|
+
* nothing; a commit the changes leave empty follows {@link setEmpty}.
|
|
233
|
+
*
|
|
234
|
+
* @example
|
|
235
|
+
* ```typescript
|
|
236
|
+
* await git.add().addFilepattern("file.txt").call();
|
|
237
|
+
* const result = await git.historyFixup().addArgument("HEAD~2").call();
|
|
238
|
+
* // result.exitCode 0; result.updates: the refs moved
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
export declare class HistoryFixupCommand extends HistoryCommandBase {
|
|
242
|
+
private empty;
|
|
243
|
+
private reedit;
|
|
244
|
+
/**
|
|
245
|
+
* `--empty=(drop|keep|abort)` (default `drop`): a commit the fixup leaves empty is dropped
|
|
246
|
+
* (its descendants replayed onto its parent; a root commit refuses), kept, or refused, and
|
|
247
|
+
* so is a descendant the replay leaves empty. Another value is git's death (exit 128).
|
|
248
|
+
*/
|
|
249
|
+
setEmpty(empty: HistoryEmptyAction | string): this;
|
|
250
|
+
/** `--reedit-message`: the commit's message goes through the editor (see `setEditor`). */
|
|
251
|
+
setReeditMessage(reedit?: boolean): this;
|
|
252
|
+
call(): Promise<HistoryResult>;
|
|
253
|
+
protected run(): Promise<HistoryRefUpdate[]>;
|
|
254
|
+
/**
|
|
255
|
+
* repo_index_has_changes: whether the index differs from HEAD's tree (diff-index --cached
|
|
256
|
+
* with intent-to-add entries visible, as new empty files, and unmerged paths as changes).
|
|
257
|
+
*/
|
|
258
|
+
private indexHasChanges;
|
|
259
|
+
/** git's BUG() in write_in_core_index_as_tree: its lines, the abort's status (134). */
|
|
260
|
+
private unmergedBug;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* `git history squash <revision-range>` (git master): the commits of the range (a `<base>..<tip>`
|
|
264
|
+
* walked as `--reverse --topo-order --full-history --ancestry-path`, other walk options
|
|
265
|
+
* ignored with git's warning) folded into one commit over the oldest commit's parents, with
|
|
266
|
+
* the tip's tree, the oldest commit's author and a message built from theirs: with
|
|
267
|
+
* {@link setEdit} (the default) every message goes through the editor as `rebase -i` lists
|
|
268
|
+
* a squash chain (`fixup!`/`squash!`/`amend!` commits grouped under their targets); with
|
|
269
|
+
* `setEdit(false)` the oldest commit's message, `amend!` and `squash!` commits aimed at it
|
|
270
|
+
* replacing or extending it. The descendants of the tip are replayed onto the result and
|
|
271
|
+
* the branches on them moved; trees do not change, so neither do the index and worktree.
|
|
272
|
+
* Merges inside the range fold when their other parents are in the range (or are parents
|
|
273
|
+
* of the oldest commit); a branch pointing into the range refuses the squash unless
|
|
274
|
+
* `--update-refs=head`.
|
|
275
|
+
*
|
|
276
|
+
* @example
|
|
277
|
+
* ```typescript
|
|
278
|
+
* const result = await git.historySquash().addArgument("main~3..main").setEdit(false).call();
|
|
279
|
+
* // result.exitCode 0; result.updates: the refs moved
|
|
280
|
+
* ```
|
|
281
|
+
*/
|
|
282
|
+
export declare class HistorySquashCommand extends HistoryCommandBase {
|
|
283
|
+
private edit;
|
|
284
|
+
private readonly flags;
|
|
285
|
+
/** `--[no-]edit` (default on): the combined message goes through the editor. */
|
|
286
|
+
setEdit(edit?: boolean): this;
|
|
287
|
+
protected run(): Promise<HistoryRefUpdate[]>;
|
|
288
|
+
/**
|
|
289
|
+
* setup_squash_revisions: the walk of the range; git's warning when an option would change
|
|
290
|
+
* how it walks (the option then ignored).
|
|
291
|
+
*/
|
|
292
|
+
private squashRevisions;
|
|
293
|
+
/**
|
|
294
|
+
* resolve_squash_range: the oldest commit and the single tip of the range (every parent
|
|
295
|
+
* after the oldest commit selected, or a parent of the oldest commit), the subjects
|
|
296
|
+
* checked, branches pointing into the range refused, and the message to commit.
|
|
297
|
+
*/
|
|
298
|
+
private resolveSquashRange;
|
|
299
|
+
/**
|
|
300
|
+
* The branches that contain a commit of `withCommit` but not the tip (ref-filter's
|
|
301
|
+
* `--contains`/`--no-contains`) refuse the squash: they could not be rewritten.
|
|
302
|
+
*/
|
|
303
|
+
private refuseBranchesInRange;
|
|
304
|
+
/** squash_check_subject */
|
|
305
|
+
private checkSubject;
|
|
306
|
+
private addFlags;
|
|
307
|
+
/** squash_check_autosquash_subject: the target of a `fixup!`/`squash!`/`amend!` commit. */
|
|
308
|
+
private checkAutosquashSubject;
|
|
309
|
+
/** squash_check_can_autosquash */
|
|
310
|
+
private canAutosquash;
|
|
311
|
+
/** squash_amend_message: an `amend!` commit's body replaces the base's message. */
|
|
312
|
+
private amendMessage;
|
|
313
|
+
/** squash_squash_message: a `squash!` commit's body appended to a `squash!` message. */
|
|
314
|
+
private squashSquashMessage;
|
|
315
|
+
/**
|
|
316
|
+
* build_squash_message: the walked commits as a todo list rearranged as `--autosquash`
|
|
317
|
+
* does, their messages under sequencer.c's headers (`# This is a combination of N
|
|
318
|
+
* commits.`), a skipped message commented out, a squashing one's autosquash subject too.
|
|
319
|
+
*/
|
|
320
|
+
private buildSquashMessage;
|
|
321
|
+
}
|
|
156
322
|
//# sourceMappingURL=history-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-command.d.ts","sourceRoot":"","sources":["../../src/commands/history-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"history-command.d.ts","sourceRoot":"","sources":["../../src/commands/history-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK9D,OAAO,KAAK,EAAE,QAAQ,EAAiB,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,aAAa,EAGnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AA6BlD,oEAAoE;AACpE,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,wEAAwE;AACxE,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,6EAA6E;IAC7E,MAAM,EAAE,MAAM,C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AAC,KAAK,CAAU;IACvB,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,GAAG,IAAI,CAIjD;IAED,0FAA0F;IAC1F,gBAAgB,CAAC,MAAM,UAAO,GAAG,IAAI,CAIpC;IAEc,IAAI,IAAI,OAAO,CAAC,aAAa,CAAC,CAE5C;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAgFjD;IAED;;;OAGG;YACW,eAAe;IAgB7B,uFAAuF;IACvF,OAAO,CAAC,WAAW;CAUpB;AAoFD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IAC1D,OAAO,CAAC,IAAI,CAAQ;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA+B;IAErD,gFAAgF;IAChF,OAAO,CAAC,IAAI,UAAO,GAAG,IAAI,CAIzB;IAED,UAAgB,GAAG,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAiBjD;IAED;;;OAGG;YACW,eAAe;IAiD7B;;;;OAIG;YACW,kBAAkB;IAiEhC;;;OAGG;YACW,qBAAqB;IAkCnC,2BAA2B;YACb,YAAY;IAiB1B,OAAO,CAAC,QAAQ;IAIhB,2FAA2F;YAC7E,sBAAsB;IAoCpC,kCAAkC;YACpB,aAAa;IAW3B,mFAAmF;YACrE,YAAY;IA8B1B,wFAAwF;YAC1E,mBAAmB;IAyBjC;;;;OAIG;YACW,kBAAkB;CAyDjC"}
|
|
@@ -79,6 +79,25 @@ export declare function takeIndexWarnings(staging: object): string[];
|
|
|
79
79
|
* `written`), never by asking the settings.
|
|
80
80
|
*/
|
|
81
81
|
export declare function markReaddedEntries(staging: object, paths: Iterable<string>): void;
|
|
82
|
+
/**
|
|
83
|
+
* `index.recordEndOfIndexEntries`, `index.recordOffsetTable` and `index.threads` as git's
|
|
84
|
+
* `do_write_index` reads them: two booleans and git's `git_config_get_index_threads` (a
|
|
85
|
+
* boolean or an integer: true is 0, threads by the entries and processors; false is 1, none),
|
|
86
|
+
* with the processors online (`online_cpus`, `navigator.hardwareConcurrency`). A value git
|
|
87
|
+
* cannot parse (it dies) is left unset.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```typescript
|
|
91
|
+
* indexOffsetSettingsOf((key) => (key === "index.threads" ? "true" : undefined));
|
|
92
|
+
* // { threads: 0, onlineCpus: 8 }
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
export declare function indexOffsetSettingsOf(value: (key: string) => string | undefined): {
|
|
96
|
+
recordEndOfIndexEntries?: boolean;
|
|
97
|
+
recordOffsetTable?: boolean;
|
|
98
|
+
threads?: number;
|
|
99
|
+
onlineCpus?: number;
|
|
100
|
+
};
|
|
82
101
|
/** The settings of the next write of `staging`, from the working copy's configuration. */
|
|
83
102
|
export declare function indexSettingsOf(workingCopy: WorkingCopy, staging: Staging): Promise<IndexSettings>;
|
|
84
103
|
/** The host a command gives its staging (see `Staging.setIndexHost`). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-host.d.ts","sourceRoot":"","sources":["../../src/commands/index-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,YAAY,EAEjB,KAAK,OAAO,EAEZ,KAAK,WAAW,EACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAkBxD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAKpF;AAOD;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,kBAAkB;IAK3D,QA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AC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAmBA;AASD,0FAA0F;AAC1F,wBAAsB,eAAe,CACnC,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,aAAa,CAAC,CA+ExB;AAED,yEAAyE;AACzE,wBAAgB,WAAW,CACzB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,MAAM,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GACzC,SAAS,CAeX"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* git's `refresh_index(REFRESH_QUIET)` over a staging area's entries (read-cache.c's
|
|
3
|
+
* `refresh_cache_ent` for each one):
|
|
4
|
+
*
|
|
5
|
+
* ```ts
|
|
6
|
+
* const refresh = await refreshIndexEntries(staging, worktree, { trust, fsmonitor });
|
|
7
|
+
* if (refresh.unmerged.length > 0) refuse();
|
|
8
|
+
* await applyIndexStatUpdates(staging, refresh.updates); // in memory, written with the index
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* An entry whose stat no longer matches its file but whose content still does takes the
|
|
12
|
+
* file's current stat; a changed entry is left as it is and nothing is printed. Unmerged
|
|
13
|
+
* paths are reported once each. Skip-worktree and assume-unchanged entries, the ones the
|
|
14
|
+
* file system monitor holds valid, intent-to-add entries and gitlinks are never stat'ed.
|
|
15
|
+
*/
|
|
16
|
+
import { type FsmonitorState, type IndexStatUpdate, type Staging, type Worktree, type WorktreeModeTrust } from "@statewalker/vcs-working-tree";
|
|
17
|
+
export interface IndexRefreshOptions {
|
|
18
|
+
/** What the worktree's modes and stat fields can be trusted for (`worktreeModeTrust`) */
|
|
19
|
+
trust: WorktreeModeTrust;
|
|
20
|
+
/**
|
|
21
|
+
* The index's file system monitor state: a valid entry is taken as up to date unseen,
|
|
22
|
+
* and an entry found up to date by its stat is marked valid (`mark_fsmonitor_valid`)
|
|
23
|
+
*/
|
|
24
|
+
fsmonitor?: FsmonitorState;
|
|
25
|
+
}
|
|
26
|
+
export interface IndexRefreshResult {
|
|
27
|
+
/** The fresh stats of the entries proved clean by reading them */
|
|
28
|
+
updates: IndexStatUpdate[];
|
|
29
|
+
/** The unmerged paths, once each, in index order */
|
|
30
|
+
unmerged: string[];
|
|
31
|
+
}
|
|
32
|
+
/** `refresh_index(REFRESH_QUIET)`: what the refresh would store (see the module comment). */
|
|
33
|
+
export declare function refreshIndexEntries(staging: Staging, worktree: Worktree, options: IndexRefreshOptions): Promise<IndexRefreshResult>;
|
|
34
|
+
/** Stores the stats of a refresh in the staging area, in memory (compare-and-set per entry). */
|
|
35
|
+
export declare function applyIndexStatUpdates(staging: Staging, updates: readonly IndexStatUpdate[]): Promise<void>;
|
|
36
|
+
//# sourceMappingURL=index-refresh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-refresh.d.ts","sourceRoot":"","sources":["../../src/commands/index-refresh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,OAAO,EAGZ,KAAK,QAAQ,EACb,KAAK,iBAAiB,EAEvB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,WAAW,mBAAmB;IAClC,yFAAyF;IACzF,KAAK,EAAE,iBAAiB,CAAC;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,kEAAkE;IAClE,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,oDAAoD;IACpD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,6FAA6F;AAC7F,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,kBAAkB,CAAC,CAmC7B;AAED,gGAAgG;AAChG,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,SAAS,eAAe,EAAE,GAClC,OAAO,CAAC,IAAI,CAAC,CAWf"}
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -24,9 +24,12 @@ export * from "./cherry-pick-command.js";
|
|
|
24
24
|
export * from "./clean-command.js";
|
|
25
25
|
export * from "./clean-interactive.js";
|
|
26
26
|
export * from "./clone-command.js";
|
|
27
|
+
export * from "./column/index.js";
|
|
28
|
+
export * from "./column-command.js";
|
|
27
29
|
export * from "./comment-char-config.js";
|
|
28
30
|
export * from "./commit-command.js";
|
|
29
31
|
export * from "./config-command.js";
|
|
32
|
+
export * from "./credential-helper.js";
|
|
30
33
|
export * from "./daemon-access-hook.js";
|
|
31
34
|
export * from "./date-format.js";
|
|
32
35
|
export * from "./default-branch.js";
|
|
@@ -66,9 +69,12 @@ export * from "./ls-remote-command.js";
|
|
|
66
69
|
export * from "./ls-tree-command.js";
|
|
67
70
|
export * from "./mailmap.js";
|
|
68
71
|
export * from "./maintenance-run-command.js";
|
|
72
|
+
export * from "./maintenance-schedule-command.js";
|
|
69
73
|
export * from "./merge-base-command.js";
|
|
70
74
|
export * from "./merge-command.js";
|
|
71
75
|
export { createMergeDriver, installMergeDrivers, type MergeAttributeValue, type MergeDriver, MergeDriverCommandMissingError, MergeDriverFailedError, type MergeDriverInput, type MergeDriverRegistry, type MergeDriverResult, mergeDriversOf, } from "./merge-drivers.js";
|
|
76
|
+
export * from "./merge-index-command.js";
|
|
77
|
+
export * from "./merge-one-file.js";
|
|
72
78
|
export { applyStrategyOption, type MergeStrategyOptions, parseStrategyOptions, UnknownStrategyOptionError, } from "./merge-strategy-options.js";
|
|
73
79
|
export * from "./merge-tree-command.js";
|
|
74
80
|
export { CleanupMode, stripspace } from "./message-cleanup.js";
|
|
@@ -80,6 +86,7 @@ export * from "./notes-commands.js";
|
|
|
80
86
|
export * from "./notes-merge-command.js";
|
|
81
87
|
export { NotesError } from "./notes-support.js";
|
|
82
88
|
export { type CombineNotes, combineNotesCatSortUniq, combineNotesConcatenate, combineNotesIgnore, combineNotesOverwrite, NotesTree, } from "./notes-tree.js";
|
|
89
|
+
export * from "./object-disk-info.js";
|
|
83
90
|
export * from "./object-store/index.js";
|
|
84
91
|
export * from "./pack-refs-command.js";
|
|
85
92
|
export { type PatchIdTextOptions, patchIdsOfPatchText } from "./patch-id.js";
|
|
@@ -122,6 +129,7 @@ export * from "./revision-resolver.js";
|
|
|
122
129
|
export * from "./rm-command.js";
|
|
123
130
|
export { SequencerOperation } from "./sequencer-pick.js";
|
|
124
131
|
export * from "./serve-repository.js";
|
|
132
|
+
export * from "./served-lazy-fetch.js";
|
|
125
133
|
export * from "./shortlog.js";
|
|
126
134
|
export * from "./shortlog-command.js";
|
|
127
135
|
export * from "./show-branch-command.js";
|
|
@@ -143,6 +151,7 @@ export * from "./stash-pop-command.js";
|
|
|
143
151
|
export * from "./stash-show-command.js";
|
|
144
152
|
export * from "./stash-store-command.js";
|
|
145
153
|
export * from "./stash-working-tree.js";
|
|
154
|
+
export * from "./status-color-config.js";
|
|
146
155
|
export * from "./status-command.js";
|
|
147
156
|
export * from "./status-format.js";
|
|
148
157
|
export * from "./stripspace-command.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,cA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AAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,KAAK,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAChG,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,WAAW,EACX,KAAK,cAAc,GACpB,MAAM,uBAAuB,CAAC"}
|
package/dist/commands/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { A as parseGitmodulesConfig, C as fsckBlob, D as hexIdAt, E as fsckTree, F as walkTree, M as rawIdAt, N as scanTree, O as parseCommitBuffer, P as treeEntryId, S as checkSubmoduleUrl, T as fsckTag, _ as UnknownFsckMsgIdError, a as FSCK_ERROR_MULTI_PACK_INDEX_243, b as canonMode, c as FSCK_ERROR_PACK_REV_INDEX_243, d as FsckCommand, f as FsckConfigError, g as FsckMessageTypes, h as FSCK_MSG_IDS, i as FSCK_ERROR_COMMIT_GRAPH, j as parseTagBuffer, k as parseCommitLinks, l as FSCK_ERROR_REACHABLE, m as receiveFsckOf, n as VerifyPackCommand, o as FSCK_ERROR_OBJECT, p as fetchFsckOf, r as FSCK_ERROR_BITMAP_243, s as FSCK_ERROR_PACK, u as FSCK_ERROR_REFS, v as parseFsckMsgId, w as fsckCommit, x as checkSubmoduleName, y as SHA1_ID_SHAPE } from "../fsck-
|
|
2
|
-
import { $
|
|
3
|
-
import { $ as
|
|
4
|
-
import {
|
|
5
|
-
import { A as
|
|
6
|
-
export { ATOM_NAMES, AddCommand, AmCommand, ApplyCommand, ApplyEngine, ArchiveCommand, AutoCommentCharRemovedError, BISECT_USAGE, BackfillCommand, BisectCode, BisectCommand, BisectDie, BisectEngine, BisectGraph, BisectLogCommand, BisectNextCommand, BisectNode, BisectReplayCommand, BisectResetCommand, BisectRunCommand, BisectSkipCommand, BisectStartCommand, BisectStateCommand, BisectTermsCommand, BlameCommand, BundleCommandBase, BundleCreateCommand, BundleList, BundleListHeadsCommand, BundlePrerequisitesError, BundleUnbundleCommand, BundleVerifyCommand, CREATION_FACTOR_FOR_THE_SAME_SERIES, CatFileCommand, CheckAttrCommand, CheckIgnoreCommand, CheckMailmapCommand, CheckRefFormatCommand, CheckoutCommand, CheckoutIndexCommand, CheckoutStage, CheckoutStatus, CherryCommand, CherryPickCommand, CleanCommand, CleanupMode, CloneCommand, CommitCommand, CommitFilters, ConfigCommand, CopyBranchCommand, CorruptTreeError, CountObjectsCommand, CreateBranchCommand, DEFAULT_BATCH_FORMAT, DEFAULT_DATE_MODE, DEFAULT_DECORATION_COLORS, DEFAULT_FOR_EACH_REF_FORMAT, DEFAULT_GREP_COLORS, DEFAULT_IDENT, DEFAULT_MERGE_LOG_LENGTH, DESCRIBE_MAX_TAGS, DateModeError, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DescribeDeath, Describer, DiffCommand, DiffFilesCommand, DiffIndexCommand, DiffPairsCommand, DiffPlumbingCommand, DiffTreeCommand, EditBranchDescriptionCommand, ExternalDiffDiedError, ExternalDiffTempFiles, FIND_BISECTION_ALL, FIND_BISECTION_FIRST_PARENT_ONLY, FSCK_ERROR_BITMAP_243, FSCK_ERROR_COMMIT_GRAPH, FSCK_ERROR_MULTI_PACK_INDEX_243, FSCK_ERROR_OBJECT, FSCK_ERROR_PACK, FSCK_ERROR_PACK_REV_INDEX_243, FSCK_ERROR_REACHABLE, FSCK_ERROR_REFS, FSCK_MSG_IDS, FSMONITOR_DAEMON_IPC_NAME, FastExportCommand, FastImportCommand, FetchCommand, FetchMultipleCommand, FmtMergeMsgCommand, ForEachRefCommand, FormatPatchCommand, FormatPatchError, FormatRevCommand, FsckCommand, FsckConfigError, FsckMessageTypes, GIT_VARIABLES, GRAPH_COLUMN_COLORS_ANSI, GarbageCollectCommand, Gitmodules, GrepCommand, GrepEngine, GrepError, GrepPatternError, HistoryCommandBase, HistoryRewordCommand, HistorySplitCommand, HookListCommand, HookRunCommand, HookSession, INTERNAL_GZIP_COMMAND, IdentityUnknownError, IndexRefresh, IndexVersionConfigError, InitCommand, InitOptionsError, InterpretTrailersCommand, InvalidDateError, InvalidDefaultBranchError, InvalidIdentError, InvalidInitialBranchError, LAZY_FETCH_DISABLED_WARNING, LFS_DEFAULT_COMPATIBILITY, LFS_URL_UNKNOWN, LOCAL_REPO_ENV, LastModifiedCommand, LfsConfig, LfsEndpointCommand, ListBranchCommand, ListTagCommand, LogCommand, LogGraph, LogPrinter, LsFilesCommand, LsRemoteCommand, LsTreeCommand, MAINTENANCE_TASKS, MAX_GROUP_DEPTH, Mailmap, MaintenanceRunCommand, MergeBaseCommand, MergeCommand, MergeDriverCommandMissingError, MergeDriverFailedError, MergeOperation, MergeTreeCommand, MissingDefaultBranchValueError, MktagCommand, MvCommand, NULL_OBJECT_ID, NameRevCommand, NoChangesSelectedError, NoStagedChangesError, NotesAddCommand, NotesAppendCommand, NotesCommands, NotesCopyCommand, NotesEditCommand, NotesError, NotesGetRefCommand, NotesListCommand, NotesMergeCommand, NotesPruneCommand, NotesRemoveCommand, NotesShowCommand, NotesSubcommand, NotesTree, PATCH_MODES, PRN_MODULO, PackRefsCommand, PatchIdCommand, PlumbingCommand, PlumbingError, PrettyFormatError, PruneCommand, PullCommand, PushCommand, RANGE_DIFF_CREATION_FACTOR_DEFAULT, RANGE_DIFF_MAX_MEMORY_DEFAULT, RangeDiffBase, RangeDiffCommand, RangeDiffError, RangeDiffMemoryError, ReadTreeCommand, RebaseCommand, RebaseOperation, RefFormat, RefKind, RefListingCommand, ReflogCommand, RefsExistsCommand, RefsMigrateCommand, RefsVerifyCommand, ReinitializeHashError, ReinitializeObjectStorageError, RemergeTreeCommand, RemoteAddCommand, RemoteArchiveCommand, RemoteGetUrlCommand, RemoteListCommand, RemoteObjectInfoCommand, RemoteObjectInfoUnsupportedError, RemotePruneCommand, RemoteRemoveCommand, RemoteRenameCommand, RemoteSetBranchesCommand, RemoteSetHeadCommand, RemoteSetUrlCommand, RemoteShowCommand, RemoteUpdateCommand, RenameBranchCommand, RepackCommand, ReplaceCommand, ReplayCommand, RepoInfoCommand, RepoStructureCommand, RequestPullCommand, RerereCommand, RerereError, ResetCommand, RestoreCommand, RevFilter, RevListCommand, RevParseCommand, RevertCommand, RevisionResolver, RmCommand, SHA1_ID_SHAPE, SHORTLOG_DEFAULT_WRAP, SIGNING_FAILED_LINES, SIGNING_KEYS, STASH_REF, SUBMODULE_UNSET_ENV, SequencerOperation, SetUpstreamBranchCommand, Shortlog, ShortlogCommand, ShowBranchCommand, ShowCommand, ShowCurrentBranchCommand, ShowIndexCommand, ShowRefCommand, SignatureVerificationError, SigningFailedError, SparseCheckoutCommand, StashApplyCommand, StashBranchCommand, StashCreateCommand, StashDropCommand, StashExportCommand, StashImportCommand, StashInfoCommand, StashListCommand, StashPathspecResetError, StashPopCommand, StashShowCommand, StashStoreCommand, StashWorktreeRemovalError, StatusCommand, StatusPrinter, StripspaceCommand, SubmoduleAbsorbGitDirsCommand, SubmoduleAddCommand, SubmoduleCommandBase, SubmoduleCommandError, SubmoduleDeinitCommand, SubmoduleForeachCommand, SubmoduleGitDirError, SubmoduleHeadMover, SubmoduleInitCommand, SubmoduleModel, SubmoduleRepository, SubmoduleSetBranchCommand, SubmoduleSetUrlCommand, SubmoduleStatusCommand, SubmoduleSummaryCommand, SubmoduleSyncCommand, SubmoduleUpdateCommand, SubmoduleWalkError, SwitchCommand, TREESAME, TagCommand, TagOption, TarArchiveWriter, TrackMode, UNINTERESTING, UNMERGED_FILES_MESSAGE, UNRELATED_HISTORIES_MESSAGE, UnknownFsckMsgIdError, UnknownHashAlgorithmError, UnknownObjectStorageFormatError, UnknownRefFormatError, UnknownStrategyOptionError, UnpackObjectsCommand, UnsetUpstreamBranchCommand, UnsupportedObjectStorageError, UpdateIndexCommand, UrlParseCommand, V2_BUNDLE_SIGNATURE, V3_BUNDLE_SIGNATURE, VarCommand, VerifyCommitCommand, VerifyPackCommand, VerifyTagCommand, WorkingCopyStashProvider, WorktreeAddCommand, WorktreeListCommand, WorktreeLockCommand, WorktreeMoveCommand, WorktreePruneCommand, WorktreeRemoveCommand, WorktreeRepairCommand, WorktreeUnlockCommand, ZipArchiveWriter, acceptedPromisorRemotes, addRemoteOrGroup, amendWithTrailers, appendSignoff, appendTrailers, applyArchiveArgs, applyMailmapToHeader, applyStrategyOption, atomSource, attributeWarningLine, authorIdentOf, autoCommentCharLines, bufferIsBinary, bundleBytes, bytesOf, bytesToLatin1, cUnquote, canonMode, checkAutoCommentChar, checkDefaultObjectStorage, checkFilename, checkFlaggedEntries, checkPackIndex, checkPickaxeOptions, checkRefFormat, checkSignature, checkSignatureWith, checkSubmoduleName, checkSubmoduleUrl, checkoutPaths, combineNotesCatSortUniq, combineNotesConcatenate, combineNotesIgnore, combineNotesOverwrite, commentLines, commitSubject, committerIdent, committerIdentOf, commonGitFileOf, compareBytes, compileCommitGrep, computeAssignment, configuredHookEntries, configuredHooks, createBundleUriHost, createDescriber, createMergeDriver, createPatchBackend, createPromisorFetcher, createRefDecorationFilter, createSshSigner, createSshVerifier, createSubmoduleAuthPolicy, cutLine, daemonAccessHookOf, decorateFullRefs, defaultBranchHint, defaultInitialBranch, defaultRefFormat, defaultRemoteOf, dosTime, encodeBundleHeader, encodePacketized, ensureUtf8, estimateBisectSteps, expandBatchFormat, expandStringArg, externalDiffProgramOf, favorOf, fetchBundleList, fetchBundleUri, fetchFsckOf, fetchOutputText, fetchSucceeded, fillAheadBehind, fillIsBase, filterAndFormatRefs, filterRefs, findBisection, findExactMatches, findIdent, fmtMergeMsgConfigOf, formatCommitPretty, formatDiffEntry, formatRefDecorations, formatStatusText, formatSubject, formatTrailersOf, fsckBlob, fsckCommit, fsckTag, fsckTree, fsmonitorKeptEntries, getCorrespondences, getTarCommitId, gitCommitAfterHooks, gitCommitMessageHooks, gitFileOf, gitRelativePath, gitUrlBasename, graphColumnColors, grepNoIndex, grepPattern, grepPatternFile, guardSubmoduleTransports, handleRevisionArg, hasPickaxe, hasPromisorRemote, hexIdAt, hookHostInGitDir, hookHostOf, hookRunnerOf, hookSettingsCheck, hookSettingsFromEntries, hostEnvironmentOf, hostZoneName, httpBackendEnv, httpClientSettingsOf, humanDate, humaniseBytes, humaniseBytesCompact, humaniseCount, identConfigOf, ignoredLogMessageBytes, inLinkedWorktree, indexFormatDefault, indexVersionConfigError, inputLines, installMergeDrivers, installPromisorFetcher, installTextconvRunner, interpretTrailers, isBisectSuccess, isBundle, isKnownHook, isMboxFromLine, isRelativeSubmoduleUrl, isRootRef, isValidBranchName, isValidRemoteName, joinFilesPath, latin1ToBytes, latin1ToPath, latin1ToText, listBundleRefs, loadRefDecorations, localTimezoneOffset, looksLikePathspec, lstatExists, lstatKind, lstripRef, mailFromHeader, mailSubjectLine, maildirFilenameCompare, mailinfo, mailsplit, mailsplitFiles, managedSkipped, marksFilesOf, matchArgValue, matchBoolArg, mergeDriversOf, mergesMode, mergetagsOf, nonCommitSwitchError, normalizeConflicts, notFromUser, nullIdLike, objectsDirectoryDisplay, openBundle, openConfigFile, openSubmoduleRepository, outputEncoderFor, packObjectsHookOf, parentIsDirectory, parseAtom, parseBatchFormat, parseBufferSignedByHeader, parseBundleHeader, parseBundleListConfig, parseBundleListLine, parseColorSpec, parseColumnLayout, parseCommitBuffer, parseCommitLinks, parseDateMode, parseExpiry, parseFetchRecurseSubmodules, parseFsckMsgId, parseGitDate, parseGitmodulesConfig, parseGpgOutput, parseIgnoredMode, parseMaybeBool, parsePushRecurseSubmodules, parseRangeDiffMaxMemory, parseRefSorting, parseRevisionAndPathArgs, parseRevisionArgs, parseShortlogGroup, parseShortlogWrap, parseSignature, parseSignedBuffer, parseSshOutput, parseStrategyOptions, parseSubmoduleDiffFormat, parseSubmoduleUpdateStrategy, parseTagBuffer, parseTrailerIfExists, parseTrailerIfMissing, parseTrailerWhere, parseUntrackedFilesMode, parseWhitespaceAction, patchIdsOfPatchText, patchModeFor, patchRevisionOf, pathCheckoutResult, pathPatchMode, pathToLatin1, physicalFilesPath, prefetchRefspecs, prefixedElement, printBundleList, printColumns, processTrailers, promisorOf, promisorRemoteReplyOf, promisorRemotes, promptIndex, pushOutputText, pushSucceeded, quarantineEnv, queryFsmonitorDaemon, quoteRefValue, rangeDiffNotesOptions, rawIdAt, readDiffColorSettings, readDiffSubmoduleConfig, readGitmodulesEntries, readMailmapBlob, readMailmapFile, readRangeDiffPatches, readRepositoryMailmap, readShortlogInput, readShowUntrackedFiles, readStoredObjectBytes, readSubmoduleDirt, receiveFsckOf, recordWrittenStat, reencodedCommitParts, refKindOf, refTransactionHookOf, reflogMessages, reflogSubject, refuseCommitSigning, registerPartialClone, relativeDate, relativeFilesPath, relativeUrl, remergeObjectsView, remoteFromUrl, remoteHookSession, removeSignatureHeaders, renamesValue, rerereClear, rerereDiff, rerereEngineOf, rerereForget, rerereGcLocation, rerereHostOf, rerereRemaining, rerereStatus, resolveAuthorIdent, resolveCommitterIdent, resolveFilesLinks, resolveIdentDate, resolveRelativeUrl, resolveSigning, restoreKeptEntries, restoreWorktreeHard, revisionMergeBases, rstripRef, runAddInteractive, runAddPatch, runArchiveWriter, runCleanInteractive, runPatchSelection, runPathCheckout, runPostCheckoutHook, runRerere, safeCreateLeadingDirectories, sanitizedSubject, scanTree, sequencerPostCommit, sequencerPrepareMessage, servedRepositoryOf, setInConfigFile, shellQuote, shortenRefName, shortenUnambiguousRef, shortlogIdent, showDate, showSubmoduleDiffSummary, signCommit, signPayload, signRequestOf, signTagCompat, signatureFormatAt, signatureLetter, signatureStart, signerOf, signingConfigFromEntries, signingConfigOf, signingKeyIdOf, signoffLine, skipAway, skipAwayIndex, sortRefs, splitIdent, splitMail, sqDequoteToArgv, sqQuote, sqQuoteArgv, statusCommitInfo, strbufRtrim, strbufTrim, strictUrlOrigin, stripFileFromPath, stripspace, submoduleHeader, submoduleNotSupportedWarning, submodulePathConfigOf, submoduleUpdateTypeName, tagHeader, takeIndexWarnings, textToLatin1, textconvRunnerOf, toTagMode, toTrackingRefUpdate, trackingSources, trailerConfigFromEntries, trailerConfigOf, trailerLinesOf, treeEntryId, trimTrailingSpaces, trustRank, unknownObjectStorageFormat, unknownRevisionMessage, unsupportedAtom, upPathOf, updateBundleList, uploadArchiveWriterOf, urlIsLocalNotSsh, validateSubmoduleGitDir, validateSubmodulePath, validateTrailerArgs, verifyBundleIn, verifyCommitBytes, verifyFilename, verifyMergeSignature, verifyNonFilename, verifyTagBytes, versionCmp, versionCompare, walkTree, whitespaceRuleError, withBundleUploadPack, withoutCrud, worktreeHostPath, wrapText, writeRangeDiff };
|
|
1
|
+
import { A as parseGitmodulesConfig, C as fsckBlob, D as hexIdAt, E as fsckTree, F as walkTree, M as rawIdAt, N as scanTree, O as parseCommitBuffer, P as treeEntryId, S as checkSubmoduleUrl, T as fsckTag, _ as UnknownFsckMsgIdError, a as FSCK_ERROR_MULTI_PACK_INDEX_243, b as canonMode, c as FSCK_ERROR_PACK_REV_INDEX_243, d as FsckCommand, f as FsckConfigError, g as FsckMessageTypes, h as FSCK_MSG_IDS, i as FSCK_ERROR_COMMIT_GRAPH, j as parseTagBuffer, k as parseCommitLinks, l as FSCK_ERROR_REACHABLE, m as receiveFsckOf, n as VerifyPackCommand, o as FSCK_ERROR_OBJECT, p as fetchFsckOf, r as FSCK_ERROR_BITMAP_243, s as FSCK_ERROR_PACK, u as FSCK_ERROR_REFS, v as parseFsckMsgId, w as fsckCommit, x as checkSubmoduleName, y as SHA1_ID_SHAPE } from "../fsck-BZ508Elg.js";
|
|
2
|
+
import { $ as formatStatusText, $c as readMailmapBlob, $i as graphColumnColors, $n as SubmoduleWalkError, $o as unknownRevisionMessage, $t as matchBoolArg, $u as findIdent, A as IndexRefresh, Ao as TrackMode, Ar as RemergeTreeCommand, At as textconvRunnerOf, B as StatusCommand, Bc as promisorRemotes, Bu as enterAutoCommentCharWarning, C as patchRevisionOf, Ci as parseTrailerWhere, Cn as checkFlaggedEntries, Co as signTagCompat, Cr as verifyCommitBytes, Ct as termColumns, D as PATCH_MODES, Di as trailerConfigOf, Dn as restoreWorktreeHard, Do as signingKeyIdOf, Dr as GrepPatternError, Dt as RevParseCommand, E as runAddPatch, Ei as trailerConfigFromEntries, En as restoreKeptEntries, Eo as signingConfigOf, Er as CommitFilters, Eu as queryFsmonitorDaemon, F as checkPickaxeOptions, Fc as LAZY_FETCH_DISABLED_WARNING, Fn as StashListCommand, Ft as badConfigVariableLine, G as readSubmoduleDirt, Gc as resetPromisorAcceptance, Go as looksLikePathspec, H as parseIgnoredMode, Hc as acceptedPromisorRemotes, Hn as parseExpiry, I as formatDiffEntry, Ic as createPromisorFetcher, In as LogCommand, It as readColorBool, Ji as hostZoneName, Jo as verifyFilename, Jt as formatCommitPretty, Ju as IdentityUnknownError, K as submoduleNotSupportedWarning, Kc as httpClientSettingsOf, Ki as DEFAULT_DATE_MODE, Ko as lstatExists, Kt as PrettyFormatError, L as hasPickaxe, Lc as hasPromisorRemote, Ln as RevFilter, Lt as readDiffColorSettings, Lu as AutoCommentCharRemovedError, Mc as reflogSubject, Mt as ExternalDiffTempFiles, Nn as StashApplyCommand, Nt as externalDiffProgramOf, O as patchModeFor, Oa as stripspace, Oi as trailerLinesOf, Or as applyMailmapToHeader, Ot as revisionMergeBases, P as DiffCommand, Pn as STASH_REF, Pt as DEFAULT_DECORATION_COLORS, Q as StatusPrinter, Qc as Mailmap, Qi as LogGraph, Qn as SubmoduleRepository, Qo as parseRevisionArgs, Qt as matchArgValue, Qu as committerIdentOf, R as renamesValue, Rc as installPromisorFetcher, Rn as WorktreeListCommand, Rt as whitespaceRuleError, Ru as autoCommentCharLines, S as runAddInteractive, Si as parseTrailerIfMissing, Sn as ResetCommand, So as signRequestOf, Sr as trustRank, St as readColumnConfig, Su as sequencerPrepareMessage, T as runPatchSelection, Ti as signoffLine, Tn as recordWrittenStat, To as signingConfigFromEntries, Tr as verifyTagBytes, Tu as encodePacketized, U as parseUntrackedFilesMode, Uc as promisorAutoFilter, V as cutLine, Vc as registerPartialClone, Vr as patchIdsOfPatchText, W as readShowUntrackedFiles, Wc as promisorRemoteReplyOf, Wo as checkFilename, Wr as NotesError, X as readStatusColors, Xa as createRefDecorationFilter, Xi as showDate, Xo as handleRefOption, Xt as humanDate, Xu as InvalidIdentError, Yi as parseDateMode, Yo as verifyNonFilename, Yt as formatRefDecorations, Yu as InvalidDateError, Z as DEFAULT_STATUS_COLORS, Za as decorateFullRefs, Zi as GRAPH_COLUMN_COLORS_ANSI, Zn as NULL_OBJECT_ID, Zo as handleRevisionArg, Zt as loadRefDecorations, Zu as authorIdentOf, _i as appendTrailers, _l as IndexVersionConfigError, _n as NoStagedChangesError, _o as SigningFailedError, _r as parseSshOutput, _t as columnItemWidth, _u as isKnownHook, ad as withoutCrud, ai as combineNotesCatSortUniq, al as MissingDefaultBranchValueError, ar as submoduleHeader, as as rerereForget, at as COL_COLUMN, au as LOCAL_REPO_ENV, bi as interpretTrailers, bl as takeIndexWarnings, bn as StashWorktreeRemovalError, bo as signCommit, br as signatureFormatAt, bt as parseColumnMode, bu as runPostCheckoutHook, ca as latin1ToBytes, cd as localTimezoneOffset, ci as combineNotesOverwrite, cl as UnknownRefFormatError, cr as SignatureVerificationError, cs as rerereRemaining, ct as COL_ENABLED, cu as configuredHooks, da as pathToLatin1, di as mailFromHeader, dl as defaultBranchHint, dr as checkSignatureWith, ds as MergeDriverCommandMissingError, dt as COL_PARSEOPT, du as gitFileOf, ed as hostEnvironmentOf, el as readMailmapFile, en as parseColorSpec, er as openSubmoduleRepository, es as RerereError, et as statusCommitInfo, fa as textToLatin1, fi as mailSubjectLine, fl as defaultBranchHint243, fr as mergetagsOf, fs as MergeDriverFailedError, ft as COL_PLAIN, fu as hookHostInGitDir, gi as appendSignoff, gl as unknownObjectStorageFormat, gn as NoChangesSelectedError, go as SIGNING_KEYS, gr as parseSignedBuffer, gs as mergeDriversOf, gt as columnActive, gu as hookSettingsFromEntries, hi as amendWithTrailers, hl as isValidBranchName, ho as SIGNING_FAILED_LINES, hr as parseSignature, ht as applyColumnOption, hu as hookSettingsCheck, ia as ApplyEngine, id as resolveIdentDate, ii as NotesTree, il as InvalidInitialBranchError, in as wrapText, ir as showSubmoduleDiffSummary, is as rerereEngineOf, it as COL_AUTO, iu as HookSession, j as createPatchBackend, jc as reflogMessages, jr as remergeObjectsView, jt as ExternalDiffDiedError, k as promptIndex, kc as committerIdent, ki as validateTrailerArgs, ko as RevisionResolver, kr as compileCommitGrep, kt as installTextconvRunner, la as latin1ToPath, ld as parseGitDate, ll as UnsupportedObjectStorageError, lr as bytesOf, ls as rerereStatus, lt as COL_ENABLE_MASK, lu as gitCommitAfterHooks, mi as reencodedCommitParts, ml as defaultRefFormat, mr as parseGpgOutput, ms as installMergeDrivers, mt as ColumnOptionError, mu as hookRunnerOf, na as ApplyCommand, nd as resolveAuthorIdent, nn as relativeDate, nr as readDiffSubmoduleConfig, ns as rerereClear, nt as columnSettingsOf, oa as bytesToLatin1, oi as combineNotesConcatenate, ol as ReinitializeObjectStorageError, os as rerereGcLocation, ot as COL_DENSE, ou as commonGitFileOf, pi as mergesMode, pl as defaultInitialBranch, pr as parseBufferSignedByHeader, ps as createMergeDriver, pt as COL_ROW, pu as hookHostOf, q as SubmoduleSummaryCommand, qc as CorruptTreeError, qi as DateModeError, qo as parseRevisionAndPathArgs, qt as expandStringArg, qu as DEFAULT_IDENT, ra as parseWhitespaceAction, rd as resolveCommitterIdent, rl as InvalidDefaultBranchError, rn as sanitizedSubject, rr as readGitmodulesEntries, rs as rerereDiff, rt as terminalColumnsOf, sa as cUnquote, si as combineNotesIgnore, sl as UnknownObjectStorageFormatError, ss as rerereHostOf, st as COL_DISABLED, su as configuredHookEntries, td as identConfigOf, tl as readRepositoryMailmap, tn as parseMaybeBool, tr as parseSubmoduleDiffFormat, ts as normalizeConflicts, tt as columnConfigOf, ua as latin1ToText, ui as LogPrinter, ul as checkDefaultObjectStorage, ur as checkSignature, us as runRerere, ut as COL_LAYOUT_MASK, uu as gitCommitMessageHooks, v as AddCommand, vi as formatTrailersOf, vl as indexFormatDefault, vn as StashCreateCommand, vo as refuseCommitSigning, vr as readStoredObjectBytes, vt as explicitlyEnableColumn, vu as nullIdLike, w as pathPatchMode, wi as processTrailers, wn as fsmonitorKeptEntries, wo as signerOf, wr as verifyMergeSignature, wu as FSMONITOR_DAEMON_IPC_NAME, xi as parseTrailerIfExists, xn as WorkingCopyStashProvider, xo as signPayload, xr as signatureLetter, xt as printColumns, xu as sequencerPostCommit, ya as CleanupMode, yi as ignoredLogMessageBytes, yl as indexVersionConfigError, yn as StashPathspecResetError, yo as resolveSigning, yr as removeSignatureHeaders, yt as finalizeColopts, yu as refTransactionHookOf, zc as promisorOf, zn as shortenUnambiguousRef, zu as checkAutoCommentChar } from "../results-rF81cQse.js";
|
|
3
|
+
import { $ as PushCommand, $n as runCleanInteractive, $r as AmCommand, $t as FetchMultipleCommand, A as createSshSigner, An as SubmoduleSetUrlCommand, Ar as CatFileCommand, At as MaintenanceStartCommand, B as RepoStructureCommand, Br as ShowCurrentBranchCommand, Bt as prefixedElement, C as StashPopCommand, Cn as SubmoduleCommandBase, Cr as CheckMailmapCommand, Ct as NameRevCommand, D as StashInfoCommand, Dn as SubmoduleHeadMover, Dr as unsupportedPathspecMagic, Dt as MergeIndexCommand, E as StashBranchCommand, En as SubmoduleForeachCommand, Er as parseElementMagic, Et as MergeTreeCommand, F as RestoreCommand, Fn as RmCommand, Fr as parseBatchFormat, Ft as LFS_DEFAULT_COMPATIBILITY, G as ReplaceCommand, Gn as RemoteRemoveCommand, Gr as RenameBranchCommand, Gt as HistoryDropCommand, H as humaniseBytesCompact, Hn as RemoteAddCommand, Hr as CreateBranchCommand, Ht as HookListCommand, I as RerereCommand, In as InitCommand, Ir as unsupportedAtom, It as LFS_URL_UNKNOWN, J as trackingSources, Jn as RemoteSetHeadCommand, Jr as RefListingCommand, Jt as HistorySplitCommand, K as RemotePruneCommand, Kn as RemoteRenameCommand, Kr as DEFAULT_FOR_EACH_REF_FORMAT, Kt as HistoryFixupCommand, L as RequestPullCommand, Ln as InitOptionsError, Lr as SetUpstreamBranchCommand, Lt as LfsConfig, M as ShowBranchCommand, Mn as notFromUser, Mr as RemoteObjectInfoUnsupportedError, Mt as MaintenanceUnregisterCommand, N as versionCmp, Nn as shellQuote, Nr as DEFAULT_BATCH_FORMAT, Nt as LsRemoteCommand, O as StashDropCommand, On as SubmoduleInitCommand, Or as CheckAttrCommand, Ot as MergeBaseCommand, P as RevertCommand, Pr as expandBatchFormat, Pt as LfsEndpointCommand, Q as ShowRefCommand, Qn as parseColumnLayout, Qr as RemoteArchiveCommand, Qt as FormatPatchError, R as ShortlogCommand, Rn as ReinitializeHashError, Rr as UnsetUpstreamBranchCommand, Rt as LastModifiedCommand, S as StashShowCommand, Sn as SubmoduleAbsorbGitDirsCommand, Sr as checkRefFormat, St as NotesSubcommand, T as StashImportCommand, Tn as SubmoduleDeinitCommand, Tr as LsTreeCommand, Tt as MktagCommand, U as humaniseCount, Un as RemoteGetUrlCommand, Ur as DeleteBranchCommand, Ut as HookRunCommand, V as gitRelativePath, Vn as SparseCheckoutCommand, Vr as CopyBranchCommand, Vt as InterpretTrailersCommand, W as ReplayCommand, Wn as RemoteListCommand, Wr as ListBranchCommand, Wt as HistoryCommandBase, X as RefsMigrateCommand, Xn as isValidRemoteName, Xr as BackfillCommand, Xt as FormatRevCommand, Y as RefsExistsCommand, Yn as RemoteSetUrlCommand, Yr as BlameCommand, Yt as HistorySquashCommand, Z as RefsVerifyCommand, Zn as CleanCommand, Zr as getTarCommitId, Zt as FormatPatchCommand, _ as SubmoduleAddCommand, _n as SubmoduleStatusCommand, _r as fmtMergeMsgConfigOf, _t as NotesGetRefCommand, a as WorktreeUnlockCommand, ai as mailinfo, an as marksFilesOf, ar as UNRELATED_HISTORIES_MESSAGE, at as PatchIdCommand, b as commentLines, bn as RebaseOperation, br as CheckoutIndexCommand, bt as NotesRemoveCommand, c as VerifyTagCommand, cn as DiffIndexCommand, cr as mkstempName, ct as PruneCommand, d as UrlParseCommand, dn as DescribeCommand, dr as UpdateIndexCommand, dt as NotesCommands, ei as ensureUtf8, en as MAX_GROUP_DEPTH, er as CherryPickCommand, et as parsePushRecurseSubmodules, f as UnpackObjectsCommand, fn as daemonAccessHookOf, fr as UnknownStrategyOptionError, ft as NotesMergeCommand, g as SwitchCommand, gn as CloneCommand, gr as FmtMergeMsgCommand, gt as NotesEditCommand, h as TagCommand, hn as readLines, hr as DEFAULT_MERGE_LOG_LENGTH, ht as NotesCopyCommand, i as WorktreeLockCommand, ii as splitMail, in as FastExportCommand, ir as UNMERGED_FILES_MESSAGE, it as parseRebaseValue, j as ShowCommand, jn as SubmoduleSyncCommand, jr as RemoteObjectInfoCommand, jt as MaintenanceStopCommand, k as createSshVerifier, kn as SubmoduleSetBranchCommand, kr as attributeWarningLine, kt as MaintenanceRegisterCommand, l as GIT_VARIABLES, ln as DiffPlumbingCommand, lr as planOneFile, lt as CountObjectsCommand, m as ListTagCommand, mn as ColumnCommand, mr as parseStrategyOptions, mt as NotesAppendCommand, n as WorktreeMoveCommand, ni as maildirFilenameCompare, nn as addRemoteOrGroup, nr as MergeCommand, nt as pushSucceeded, o as WorktreeAddCommand, oi as mailsplit, on as DiffPairsCommand, or as favorOf, ot as PackRefsCommand, p as DeleteTagCommand, pn as ConfigCommand, pr as applyStrategyOption, pt as NotesAddCommand, q as RemoteShowCommand, qn as RemoteSetBranchesCommand, qr as ForEachRefCommand, qt as HistoryRewordCommand, r as WorktreeRemoveCommand, ri as mailsplitFiles, rn as FastImportCommand, rr as MergeOperation, rt as PullCommand, s as VerifyCommitCommand, sn as DiffFilesCommand, sr as MergeOneFileCommand, st as ShowIndexCommand, t as WorktreeRepairCommand, ti as isMboxFromLine, tn as RemoteUpdateCommand, tr as SequencerOperation, tt as pushOutputText, u as VarCommand, un as DiffTreeCommand, ur as runMergeOneFile, ut as checkPackIndex, v as gitUrlBasename, vn as SubmoduleUpdateCommand, vr as CommitCommand, vt as NotesListCommand, w as StashExportCommand, wn as SubmoduleCommandError, wr as CheckIgnoreCommand, wt as MvCommand, x as StashStoreCommand, xn as SUBMODULE_UNSET_ENV, xr as CheckRefFormatCommand, xt as NotesShowCommand, y as StripspaceCommand, yn as RebaseCommand, yr as CherryCommand, yt as NotesPruneCommand, z as RepoInfoCommand, zn as UnknownHashAlgorithmError, zr as EditBranchDescriptionCommand, zt as LsFilesCommand } from "../commands-DT3VEv50.js";
|
|
4
|
+
import { A as ZipArchiveWriter, B as TarArchiveWriter, C as V2_BUNDLE_SIGNATURE, D as parseBundleHeader, E as listBundleRefs, F as GrepEngine, H as DescribeDeath, I as GrepError, L as bufferIsBinary, M as GrepCommand, N as grepNoIndex, O as ArchiveCommand, P as DEFAULT_GREP_COLORS, R as grepPattern, S as verifyBundleIn, T as encodeBundleHeader, U as Describer, V as DESCRIBE_MAX_TAGS, W as createDescriber, _ as uploadArchiveWriterOf, b as bundleBytes, g as runArchiveWriter, h as applyArchiveArgs, j as dosTime, k as INTERNAL_GZIP_COMMAND, m as servedRepositoryOf, p as packObjectsHookOf, v as BundlePrerequisitesError, w as V3_BUNDLE_SIGNATURE, x as openBundle, y as withBundleUploadPack, z as grepPatternFile } from "../remote-transport-zvSqwpOB.js";
|
|
5
|
+
import { $ as printBundleList, $n as estimateBisectSteps, $t as shortenRefName, A as configuresCredentialHelper, An as BisectResetCommand, At as commitSubject, B as setAllCapabilities, Bn as sqDequoteToArgv, Bt as fillAheadBehind, C as strictUrlOrigin, Cn as writeRangeDiff, Ct as urlIsLocalNotSsh, Dn as BisectLogCommand, Dt as BundleCreateCommand, E as PlumbingError, En as BisectCommand, Et as worktreeHostPath, F as credentialHelpersOptionsOf, Fn as BisectTermsCommand, Ft as parseShortlogWrap, G as isBundle, Gn as BisectDie, Gt as parseRefSorting, H as createBundleUriHost, Hn as sqQuoteArgv, Ht as filterAndFormatRefs, I as describeCredential, In as BISECT_USAGE, It as readShortlogInput, J as BundleVerifyCommand, Jn as FIND_BISECTION_ALL, Jt as versionCompare, K as BundleListHeadsCommand, Kn as BisectGraph, Kt as refKindOf, L as newCredential, Ln as BisectCode, Lt as shortlogIdent, M as credentialFromUrl, Mn as BisectSkipCommand, Mt as inputLines, N as credentialHelperOf, Nn as BisectStartCommand, Nt as outputEncoderFor, O as CredentialError, On as BisectNextCommand, Ot as SHORTLOG_DEFAULT_WRAP, P as credentialHelpersOf, Pn as BisectStateCommand, Pt as parseShortlogGroup, Q as parseBundleListLine, Qn as UNINTERESTING, Qt as rstripRef, R as nextState, Rn as BisectEngine, Rt as splitIdent, S as guardSubmoduleTransports, Sn as readRangeDiffPatches, St as upPathOf, T as PlumbingCommand, Tn as objectDiskInfoOf, Tt as validateSubmodulePath, U as fetchBundleList, Un as strbufRtrim, Ut as filterRefs, V as writeCredential, Vn as sqQuote, Vt as fillIsBase, W as fetchBundleUri, Wn as strbufTrim, Wt as isRootRef, X as BundleList, Xn as PRN_MODULO, Xt as RefKind, Y as BundleCommandBase, Yn as FIND_BISECTION_FIRST_PARENT_ONLY, Yt as RefFormat, Z as parseBundleListConfig, Zn as TREESAME, Zt as lstripRef, _n as RangeDiffMemoryError, _t as resolveRelativeUrl, a as ReflogCommand, an as atomSource, ar as CheckoutStage, at as defaultRemoteOf, bn as humaniseBytes, bt as submodulePathConfigOf, cn as RevListCommand, cr as pathCheckoutResult, ct as lstatKind, d as fetchOutputText, dn as rangeDiffMergesOptions, dt as parseSubmoduleUpdateStrategy, en as signatureStart, er as findBisection, et as stripFileFromPath, f as fetchSucceeded, fn as rangeDiffNotesOptions, ft as physicalFilesPath, gn as RangeDiffError, gt as resolveFilesLinks, h as toTrackingRefUpdate, hn as RANGE_DIFF_MAX_MEMORY_DEFAULT, ht as remoteFromUrl, i as RepackCommand, in as ATOM_NAMES, ir as CheckoutCommand, it as SubmoduleModel, j as createConfigCredentialHelper, jn as BisectRunCommand, jt as formatSubject, k as CredentialHelpers, kn as BisectReplayCommand, kt as Shortlog, l as FetchCommand, ln as RangeDiffBase, lr as checkoutPaths, lt as openConfigFile, m as toTagMode, mn as RANGE_DIFF_CREATION_FACTOR_DEFAULT, mt as relativeUrl, n as MaintenanceRunCommand, nn as trimTrailingSpaces, nr as skipAway, nt as Gitmodules, o as inLinkedWorktree, on as parseAtom, or as CheckoutStatus, ot as isRelativeSubmoduleUrl, p as prefetchRefspecs, pn as CREATION_FACTOR_FOR_THE_SAME_SERIES, pt as relativeFilesPath, q as BundleUnbundleCommand, qn as BisectNode, qt as sortRefs, rn as quoteRefValue, rr as skipAwayIndex, rt as SubmoduleGitDirError, s as objectsDirectoryDisplay, sn as MAX_REF_FILTER_PEEL_DEPTH, sr as nonCommitSwitchError, st as joinFilesPath, t as MAINTENANCE_TASKS, tn as tagHeader, tr as managedSkipped, tt as updateBundleList, u as TagOption, un as RangeDiffCommand, ur as runPathCheckout, ut as parentIsDirectory, vn as findExactMatches, vt as safeCreateLeadingDirectories, wn as computeAssignment, wt as validateSubmoduleGitDir, x as createSubmoduleAuthPolicy, xn as parseRangeDiffMaxMemory, xt as submoduleUpdateTypeName, y as parseFetchRecurseSubmodules, yn as getCorrespondences, yt as setInConfigFile, z as readCredential, zn as isBisectSuccess, zt as compareBytes } from "../maintenance-run-command-DZFnbnbo.js";
|
|
6
|
+
import { _ as WorktreePruneCommand, a as quarantineEnv, c as remoteHookSession, g as GarbageCollectCommand, h as ReadTreeCommand, m as uploadPackHistory, n as httpBackendEnv } from "../local-transport-D98U6p4d.js";
|
|
7
|
+
export { ATOM_NAMES, AddCommand, AmCommand, ApplyCommand, ApplyEngine, ArchiveCommand, AutoCommentCharRemovedError, BISECT_USAGE, BackfillCommand, BisectCode, BisectCommand, BisectDie, BisectEngine, BisectGraph, BisectLogCommand, BisectNextCommand, BisectNode, BisectReplayCommand, BisectResetCommand, BisectRunCommand, BisectSkipCommand, BisectStartCommand, BisectStateCommand, BisectTermsCommand, BlameCommand, BundleCommandBase, BundleCreateCommand, BundleList, BundleListHeadsCommand, BundlePrerequisitesError, BundleUnbundleCommand, BundleVerifyCommand, COL_AUTO, COL_COLUMN, COL_DENSE, COL_DISABLED, COL_ENABLED, COL_ENABLE_MASK, COL_LAYOUT_MASK, COL_PARSEOPT, COL_PLAIN, COL_ROW, CREATION_FACTOR_FOR_THE_SAME_SERIES, CatFileCommand, CheckAttrCommand, CheckIgnoreCommand, CheckMailmapCommand, CheckRefFormatCommand, CheckoutCommand, CheckoutIndexCommand, CheckoutStage, CheckoutStatus, CherryCommand, CherryPickCommand, CleanCommand, CleanupMode, CloneCommand, ColumnCommand, ColumnOptionError, CommitCommand, CommitFilters, ConfigCommand, CopyBranchCommand, CorruptTreeError, CountObjectsCommand, CreateBranchCommand, CredentialError, CredentialHelpers, DEFAULT_BATCH_FORMAT, DEFAULT_DATE_MODE, DEFAULT_DECORATION_COLORS, DEFAULT_FOR_EACH_REF_FORMAT, DEFAULT_GREP_COLORS, DEFAULT_IDENT, DEFAULT_MERGE_LOG_LENGTH, DEFAULT_STATUS_COLORS, DESCRIBE_MAX_TAGS, DateModeError, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DescribeDeath, Describer, DiffCommand, DiffFilesCommand, DiffIndexCommand, DiffPairsCommand, DiffPlumbingCommand, DiffTreeCommand, EditBranchDescriptionCommand, ExternalDiffDiedError, ExternalDiffTempFiles, FIND_BISECTION_ALL, FIND_BISECTION_FIRST_PARENT_ONLY, FSCK_ERROR_BITMAP_243, FSCK_ERROR_COMMIT_GRAPH, FSCK_ERROR_MULTI_PACK_INDEX_243, FSCK_ERROR_OBJECT, FSCK_ERROR_PACK, FSCK_ERROR_PACK_REV_INDEX_243, FSCK_ERROR_REACHABLE, FSCK_ERROR_REFS, FSCK_MSG_IDS, FSMONITOR_DAEMON_IPC_NAME, FastExportCommand, FastImportCommand, FetchCommand, FetchMultipleCommand, FmtMergeMsgCommand, ForEachRefCommand, FormatPatchCommand, FormatPatchError, FormatRevCommand, FsckCommand, FsckConfigError, FsckMessageTypes, GIT_VARIABLES, GRAPH_COLUMN_COLORS_ANSI, GarbageCollectCommand, Gitmodules, GrepCommand, GrepEngine, GrepError, GrepPatternError, HistoryCommandBase, HistoryDropCommand, HistoryFixupCommand, HistoryRewordCommand, HistorySplitCommand, HistorySquashCommand, HookListCommand, HookRunCommand, HookSession, INTERNAL_GZIP_COMMAND, IdentityUnknownError, IndexRefresh, IndexVersionConfigError, InitCommand, InitOptionsError, InterpretTrailersCommand, InvalidDateError, InvalidDefaultBranchError, InvalidIdentError, InvalidInitialBranchError, LAZY_FETCH_DISABLED_WARNING, LFS_DEFAULT_COMPATIBILITY, LFS_URL_UNKNOWN, LOCAL_REPO_ENV, LastModifiedCommand, LfsConfig, LfsEndpointCommand, ListBranchCommand, ListTagCommand, LogCommand, LogGraph, LogPrinter, LsFilesCommand, LsRemoteCommand, LsTreeCommand, MAINTENANCE_TASKS, MAX_GROUP_DEPTH, MAX_REF_FILTER_PEEL_DEPTH, Mailmap, MaintenanceRegisterCommand, MaintenanceRunCommand, MaintenanceStartCommand, MaintenanceStopCommand, MaintenanceUnregisterCommand, MergeBaseCommand, MergeCommand, MergeDriverCommandMissingError, MergeDriverFailedError, MergeIndexCommand, MergeOneFileCommand, MergeOperation, MergeTreeCommand, MissingDefaultBranchValueError, MktagCommand, MvCommand, NULL_OBJECT_ID, NameRevCommand, NoChangesSelectedError, NoStagedChangesError, NotesAddCommand, NotesAppendCommand, NotesCommands, NotesCopyCommand, NotesEditCommand, NotesError, NotesGetRefCommand, NotesListCommand, NotesMergeCommand, NotesPruneCommand, NotesRemoveCommand, NotesShowCommand, NotesSubcommand, NotesTree, PATCH_MODES, PRN_MODULO, PackRefsCommand, PatchIdCommand, PlumbingCommand, PlumbingError, PrettyFormatError, PruneCommand, PullCommand, PushCommand, RANGE_DIFF_CREATION_FACTOR_DEFAULT, RANGE_DIFF_MAX_MEMORY_DEFAULT, RangeDiffBase, RangeDiffCommand, RangeDiffError, RangeDiffMemoryError, ReadTreeCommand, RebaseCommand, RebaseOperation, RefFormat, RefKind, RefListingCommand, ReflogCommand, RefsExistsCommand, RefsMigrateCommand, RefsVerifyCommand, ReinitializeHashError, ReinitializeObjectStorageError, RemergeTreeCommand, RemoteAddCommand, RemoteArchiveCommand, RemoteGetUrlCommand, RemoteListCommand, RemoteObjectInfoCommand, RemoteObjectInfoUnsupportedError, RemotePruneCommand, RemoteRemoveCommand, RemoteRenameCommand, RemoteSetBranchesCommand, RemoteSetHeadCommand, RemoteSetUrlCommand, RemoteShowCommand, RemoteUpdateCommand, RenameBranchCommand, RepackCommand, ReplaceCommand, ReplayCommand, RepoInfoCommand, RepoStructureCommand, RequestPullCommand, RerereCommand, RerereError, ResetCommand, RestoreCommand, RevFilter, RevListCommand, RevParseCommand, RevertCommand, RevisionResolver, RmCommand, SHA1_ID_SHAPE, SHORTLOG_DEFAULT_WRAP, SIGNING_FAILED_LINES, SIGNING_KEYS, STASH_REF, SUBMODULE_UNSET_ENV, SequencerOperation, SetUpstreamBranchCommand, Shortlog, ShortlogCommand, ShowBranchCommand, ShowCommand, ShowCurrentBranchCommand, ShowIndexCommand, ShowRefCommand, SignatureVerificationError, SigningFailedError, SparseCheckoutCommand, StashApplyCommand, StashBranchCommand, StashCreateCommand, StashDropCommand, StashExportCommand, StashImportCommand, StashInfoCommand, StashListCommand, StashPathspecResetError, StashPopCommand, StashShowCommand, StashStoreCommand, StashWorktreeRemovalError, StatusCommand, StatusPrinter, StripspaceCommand, SubmoduleAbsorbGitDirsCommand, SubmoduleAddCommand, SubmoduleCommandBase, SubmoduleCommandError, SubmoduleDeinitCommand, SubmoduleForeachCommand, SubmoduleGitDirError, SubmoduleHeadMover, SubmoduleInitCommand, SubmoduleModel, SubmoduleRepository, SubmoduleSetBranchCommand, SubmoduleSetUrlCommand, SubmoduleStatusCommand, SubmoduleSummaryCommand, SubmoduleSyncCommand, SubmoduleUpdateCommand, SubmoduleWalkError, SwitchCommand, TREESAME, TagCommand, TagOption, TarArchiveWriter, TrackMode, UNINTERESTING, UNMERGED_FILES_MESSAGE, UNRELATED_HISTORIES_MESSAGE, UnknownFsckMsgIdError, UnknownHashAlgorithmError, UnknownObjectStorageFormatError, UnknownRefFormatError, UnknownStrategyOptionError, UnpackObjectsCommand, UnsetUpstreamBranchCommand, UnsupportedObjectStorageError, UpdateIndexCommand, UrlParseCommand, V2_BUNDLE_SIGNATURE, V3_BUNDLE_SIGNATURE, VarCommand, VerifyCommitCommand, VerifyPackCommand, VerifyTagCommand, WorkingCopyStashProvider, WorktreeAddCommand, WorktreeListCommand, WorktreeLockCommand, WorktreeMoveCommand, WorktreePruneCommand, WorktreeRemoveCommand, WorktreeRepairCommand, WorktreeUnlockCommand, ZipArchiveWriter, acceptedPromisorRemotes, addRemoteOrGroup, amendWithTrailers, appendSignoff, appendTrailers, applyArchiveArgs, applyColumnOption, applyMailmapToHeader, applyStrategyOption, atomSource, attributeWarningLine, authorIdentOf, autoCommentCharLines, badConfigVariableLine, bufferIsBinary, bundleBytes, bytesOf, bytesToLatin1, cUnquote, canonMode, checkAutoCommentChar, checkDefaultObjectStorage, checkFilename, checkFlaggedEntries, checkPackIndex, checkPickaxeOptions, checkRefFormat, checkSignature, checkSignatureWith, checkSubmoduleName, checkSubmoduleUrl, checkoutPaths, columnActive, columnConfigOf, columnItemWidth, columnSettingsOf, combineNotesCatSortUniq, combineNotesConcatenate, combineNotesIgnore, combineNotesOverwrite, commentLines, commitSubject, committerIdent, committerIdentOf, commonGitFileOf, compareBytes, compileCommitGrep, computeAssignment, configuredHookEntries, configuredHooks, configuresCredentialHelper, createBundleUriHost, createConfigCredentialHelper, createDescriber, createMergeDriver, createPatchBackend, createPromisorFetcher, createRefDecorationFilter, createSshSigner, createSshVerifier, createSubmoduleAuthPolicy, credentialFromUrl, credentialHelperOf, credentialHelpersOf, credentialHelpersOptionsOf, cutLine, daemonAccessHookOf, decorateFullRefs, defaultBranchHint, defaultBranchHint243, defaultInitialBranch, defaultRefFormat, defaultRemoteOf, describeCredential, dosTime, encodeBundleHeader, encodePacketized, ensureUtf8, enterAutoCommentCharWarning, estimateBisectSteps, expandBatchFormat, expandStringArg, explicitlyEnableColumn, externalDiffProgramOf, favorOf, fetchBundleList, fetchBundleUri, fetchFsckOf, fetchOutputText, fetchSucceeded, fillAheadBehind, fillIsBase, filterAndFormatRefs, filterRefs, finalizeColopts, findBisection, findExactMatches, findIdent, fmtMergeMsgConfigOf, formatCommitPretty, formatDiffEntry, formatRefDecorations, formatStatusText, formatSubject, formatTrailersOf, fsckBlob, fsckCommit, fsckTag, fsckTree, fsmonitorKeptEntries, getCorrespondences, getTarCommitId, gitCommitAfterHooks, gitCommitMessageHooks, gitFileOf, gitRelativePath, gitUrlBasename, graphColumnColors, grepNoIndex, grepPattern, grepPatternFile, guardSubmoduleTransports, handleRefOption, handleRevisionArg, hasPickaxe, hasPromisorRemote, hexIdAt, hookHostInGitDir, hookHostOf, hookRunnerOf, hookSettingsCheck, hookSettingsFromEntries, hostEnvironmentOf, hostZoneName, httpBackendEnv, httpClientSettingsOf, humanDate, humaniseBytes, humaniseBytesCompact, humaniseCount, identConfigOf, ignoredLogMessageBytes, inLinkedWorktree, indexFormatDefault, indexVersionConfigError, inputLines, installMergeDrivers, installPromisorFetcher, installTextconvRunner, interpretTrailers, isBisectSuccess, isBundle, isKnownHook, isMboxFromLine, isRelativeSubmoduleUrl, isRootRef, isValidBranchName, isValidRemoteName, joinFilesPath, latin1ToBytes, latin1ToPath, latin1ToText, listBundleRefs, loadRefDecorations, localTimezoneOffset, looksLikePathspec, lstatExists, lstatKind, lstripRef, mailFromHeader, mailSubjectLine, maildirFilenameCompare, mailinfo, mailsplit, mailsplitFiles, managedSkipped, marksFilesOf, matchArgValue, matchBoolArg, mergeDriversOf, mergesMode, mergetagsOf, mkstempName, newCredential, nextState, nonCommitSwitchError, normalizeConflicts, notFromUser, nullIdLike, objectDiskInfoOf, objectsDirectoryDisplay, openBundle, openConfigFile, openSubmoduleRepository, outputEncoderFor, packObjectsHookOf, parentIsDirectory, parseAtom, parseBatchFormat, parseBufferSignedByHeader, parseBundleHeader, parseBundleListConfig, parseBundleListLine, parseColorSpec, parseColumnLayout, parseColumnMode, parseCommitBuffer, parseCommitLinks, parseDateMode, parseElementMagic, parseExpiry, parseFetchRecurseSubmodules, parseFsckMsgId, parseGitDate, parseGitmodulesConfig, parseGpgOutput, parseIgnoredMode, parseMaybeBool, parsePushRecurseSubmodules, parseRangeDiffMaxMemory, parseRebaseValue, parseRefSorting, parseRevisionAndPathArgs, parseRevisionArgs, parseShortlogGroup, parseShortlogWrap, parseSignature, parseSignedBuffer, parseSshOutput, parseStrategyOptions, parseSubmoduleDiffFormat, parseSubmoduleUpdateStrategy, parseTagBuffer, parseTrailerIfExists, parseTrailerIfMissing, parseTrailerWhere, parseUntrackedFilesMode, parseWhitespaceAction, patchIdsOfPatchText, patchModeFor, patchRevisionOf, pathCheckoutResult, pathPatchMode, pathToLatin1, physicalFilesPath, planOneFile, prefetchRefspecs, prefixedElement, printBundleList, printColumns, processTrailers, promisorAutoFilter, promisorOf, promisorRemoteReplyOf, promisorRemotes, promptIndex, pushOutputText, pushSucceeded, quarantineEnv, queryFsmonitorDaemon, quoteRefValue, rangeDiffMergesOptions, rangeDiffNotesOptions, rawIdAt, readColorBool, readColumnConfig, readCredential, readDiffColorSettings, readDiffSubmoduleConfig, readGitmodulesEntries, readLines, readMailmapBlob, readMailmapFile, readRangeDiffPatches, readRepositoryMailmap, readShortlogInput, readShowUntrackedFiles, readStatusColors, readStoredObjectBytes, readSubmoduleDirt, receiveFsckOf, recordWrittenStat, reencodedCommitParts, refKindOf, refTransactionHookOf, reflogMessages, reflogSubject, refuseCommitSigning, registerPartialClone, relativeDate, relativeFilesPath, relativeUrl, remergeObjectsView, remoteFromUrl, remoteHookSession, removeSignatureHeaders, renamesValue, rerereClear, rerereDiff, rerereEngineOf, rerereForget, rerereGcLocation, rerereHostOf, rerereRemaining, rerereStatus, resetPromisorAcceptance, resolveAuthorIdent, resolveCommitterIdent, resolveFilesLinks, resolveIdentDate, resolveRelativeUrl, resolveSigning, restoreKeptEntries, restoreWorktreeHard, revisionMergeBases, rstripRef, runAddInteractive, runAddPatch, runArchiveWriter, runCleanInteractive, runMergeOneFile, runPatchSelection, runPathCheckout, runPostCheckoutHook, runRerere, safeCreateLeadingDirectories, sanitizedSubject, scanTree, sequencerPostCommit, sequencerPrepareMessage, servedRepositoryOf, setAllCapabilities, setInConfigFile, shellQuote, shortenRefName, shortenUnambiguousRef, shortlogIdent, showDate, showSubmoduleDiffSummary, signCommit, signPayload, signRequestOf, signTagCompat, signatureFormatAt, signatureLetter, signatureStart, signerOf, signingConfigFromEntries, signingConfigOf, signingKeyIdOf, signoffLine, skipAway, skipAwayIndex, sortRefs, splitIdent, splitMail, sqDequoteToArgv, sqQuote, sqQuoteArgv, statusCommitInfo, strbufRtrim, strbufTrim, strictUrlOrigin, stripFileFromPath, stripspace, submoduleHeader, submoduleNotSupportedWarning, submodulePathConfigOf, submoduleUpdateTypeName, tagHeader, takeIndexWarnings, termColumns, terminalColumnsOf, textToLatin1, textconvRunnerOf, toTagMode, toTrackingRefUpdate, trackingSources, trailerConfigFromEntries, trailerConfigOf, trailerLinesOf, treeEntryId, trimTrailingSpaces, trustRank, unknownObjectStorageFormat, unknownRevisionMessage, unsupportedAtom, unsupportedPathspecMagic, upPathOf, updateBundleList, uploadArchiveWriterOf, uploadPackHistory, urlIsLocalNotSsh, validateSubmoduleGitDir, validateSubmodulePath, validateTrailerArgs, verifyBundleIn, verifyCommitBytes, verifyFilename, verifyMergeSignature, verifyNonFilename, verifyTagBytes, versionCmp, versionCompare, walkTree, whitespaceRuleError, withBundleUploadPack, withoutCrud, worktreeHostPath, wrapText, writeCredential, writeRangeDiff };
|
|
@@ -59,7 +59,27 @@ export declare class InitCommand {
|
|
|
59
59
|
private template?;
|
|
60
60
|
/** `--shared` as git_config_perm reads it; undefined: core.sharedRepository decides */
|
|
61
61
|
private shared?;
|
|
62
|
+
/** The git version whose hint is given; undefined: the hook runner's, else 2.56 */
|
|
63
|
+
private compatibility?;
|
|
64
|
+
/** `-q`: no default-branch hint */
|
|
65
|
+
private quiet;
|
|
62
66
|
private callable;
|
|
67
|
+
/**
|
|
68
|
+
* Follow git `version` where versions differ (`setCompatibility("2.43")`): 2.43 hints
|
|
69
|
+
* about the default branch in its own words whatever `advice.defaultBranchName` says,
|
|
70
|
+
* 2.5x reads the setting. Default: the hook runner's compatibility, else 2.56.
|
|
71
|
+
*
|
|
72
|
+
* @param version The git version to follow
|
|
73
|
+
* @returns this for method chaining
|
|
74
|
+
*/
|
|
75
|
+
setCompatibility(version: "2.43" | "2.56"): this;
|
|
76
|
+
/**
|
|
77
|
+
* `git init -q`: no default-branch hint ({@link InitResult.hints} undefined) in any version.
|
|
78
|
+
*
|
|
79
|
+
* @param quiet Whether to be quiet
|
|
80
|
+
* @returns this for method chaining
|
|
81
|
+
*/
|
|
82
|
+
setQuiet(quiet: boolean): this;
|
|
63
83
|
/**
|
|
64
84
|
* Put the repository at `path` (`git init --separate-git-dir <path>`, a path of the
|
|
65
85
|
* FilesApi) and write a gitfile in its place (`<directory>/.git`: `gitdir: <path>`, the
|