@statewalker/vcs-commands 0.4.0 → 0.5.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/checkout-command.d.ts +7 -24
- package/dist/commands/checkout-command.d.ts.map +1 -1
- package/dist/commands/clean-command.d.ts +34 -4
- package/dist/commands/clean-command.d.ts.map +1 -1
- package/dist/commands/clone-command.d.ts +62 -7
- package/dist/commands/clone-command.d.ts.map +1 -1
- package/dist/commands/core-config.d.ts +16 -0
- package/dist/commands/core-config.d.ts.map +1 -0
- package/dist/commands/fetch-command.d.ts +96 -14
- package/dist/commands/fetch-command.d.ts.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +2 -2
- package/dist/commands/init-command.d.ts.map +1 -1
- package/dist/commands/remote-command.d.ts +115 -6
- package/dist/commands/remote-command.d.ts.map +1 -1
- package/dist/commands/reset-command.d.ts.map +1 -1
- package/dist/commands/stash-apply-command.d.ts +35 -13
- package/dist/commands/stash-apply-command.d.ts.map +1 -1
- package/dist/commands/stash-create-command.d.ts +59 -25
- package/dist/commands/stash-create-command.d.ts.map +1 -1
- package/dist/commands/stash-drop-command.d.ts +8 -2
- package/dist/commands/stash-drop-command.d.ts.map +1 -1
- package/dist/commands/stash-list-command.d.ts +2 -4
- package/dist/commands/stash-list-command.d.ts.map +1 -1
- package/dist/commands/stash-working-tree.d.ts +72 -0
- package/dist/commands/stash-working-tree.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +29 -22
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/tree-restore.d.ts +52 -5
- package/dist/commands/tree-restore.d.ts.map +1 -1
- package/dist/commands/worktree-overwrite-checks.d.ts +64 -0
- package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -0
- package/dist/{commands-BpeXZTC3.js → commands-CsLNyvZ1.js} +2940 -631
- package/dist/core-commands/add.command.impl.d.ts.map +1 -1
- package/dist/core-commands/index.d.ts +0 -3
- package/dist/core-commands/index.d.ts.map +1 -1
- package/dist/errors/checkout-errors.d.ts +13 -0
- package/dist/errors/checkout-errors.d.ts.map +1 -1
- package/dist/errors/index.js +18 -1
- package/dist/git-command.d.ts +10 -1
- package/dist/git-command.d.ts.map +1 -1
- package/dist/git.d.ts +21 -3
- package/dist/git.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/remote-config/index.d.ts +1 -0
- package/dist/remote-config/index.d.ts.map +1 -1
- package/dist/remote-config/remote-config-store.d.ts +18 -0
- package/dist/remote-config/remote-config-store.d.ts.map +1 -1
- package/dist/remote-config/remote-refs.d.ts +37 -0
- package/dist/remote-config/remote-refs.d.ts.map +1 -0
- package/dist/results/clone-result.d.ts +6 -0
- package/dist/results/clone-result.d.ts.map +1 -1
- package/dist/results/fetch-result.d.ts +9 -1
- package/dist/results/fetch-result.d.ts.map +1 -1
- package/dist/results/index.js +2 -2
- package/dist/results/status-result.d.ts +91 -20
- package/dist/results/status-result.d.ts.map +1 -1
- package/dist/{status-result-BapZoQaR.js → status-result-BpyUK1Sg.js} +113 -5
- package/dist/transport-command.d.ts +12 -0
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +11 -10
- package/src/commands/add-command.ts +9 -7
- package/src/commands/checkout-command.ts +200 -118
- package/src/commands/clean-command.ts +187 -88
- package/src/commands/clone-command.ts +244 -40
- package/src/commands/core-config.ts +41 -0
- package/src/commands/fetch-command.ts +476 -57
- package/src/commands/index.ts +1 -0
- package/src/commands/init-command.ts +32 -7
- package/src/commands/remote-command.ts +429 -19
- package/src/commands/reset-command.ts +18 -5
- package/src/commands/stash-apply-command.ts +632 -97
- package/src/commands/stash-create-command.ts +142 -62
- package/src/commands/stash-drop-command.ts +53 -5
- package/src/commands/stash-list-command.ts +10 -4
- package/src/commands/stash-working-tree.ts +243 -0
- package/src/commands/status-command.ts +197 -91
- package/src/commands/tree-restore.ts +142 -13
- package/src/commands/worktree-overwrite-checks.ts +215 -0
- package/src/core-commands/add.command.impl.ts +2 -4
- package/src/core-commands/index.ts +0 -8
- package/src/errors/checkout-errors.ts +20 -0
- package/src/git-command.ts +42 -1
- package/src/git.ts +30 -2
- package/src/remote-config/index.ts +1 -0
- package/src/remote-config/remote-config-store.ts +84 -8
- package/src/remote-config/remote-refs.ts +103 -0
- package/src/results/clone-result.ts +6 -0
- package/src/results/fetch-result.ts +9 -1
- package/src/results/status-result.ts +212 -29
- package/src/transport-command.ts +18 -0
- package/dist/core-commands/checkout.command.d.ts +0 -103
- package/dist/core-commands/checkout.command.d.ts.map +0 -1
- package/dist/core-commands/checkout.command.impl.d.ts +0 -110
- package/dist/core-commands/checkout.command.impl.d.ts.map +0 -1
- package/src/core-commands/checkout.command.impl.ts +0 -564
- package/src/core-commands/checkout.command.ts +0 -125
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-command.d.ts","sourceRoot":"","sources":["../../src/commands/add-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"add-command.d.ts","sourceRoot":"","sources":["../../src/commands/add-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAKL,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IAEzB,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAE3B,uEAAuE;IACvE,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAE3B,sCAAsC;IACtC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAsED;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,UAAU,CAAC,SAAS,CAAC;IACnD,OAAO,CAAC,YAAY,CAAgB;IACpC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,GAAG,CAAsB;IACjC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,gBAAgB,CAAuB;IAE/C;;;;;;;;;;OAUG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAIxC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAElB;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAIzB;IAED;;OAEG;IACH,KAAK,IAAI,OAAO,CAEf;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED;;OAEG;IACH,OAAO,IAAI,OAAO,CAEjB;IAED;;;;;;;;;;OAUG;IACH,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAIzC;IAED;;OAEG;IACH,aAAa,IAAI,OAAO,CAEvB;IAED;;;;;;;OAOG;IACH,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAIzC;IAED;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,SAAS,CAAC,CA0C/B;IAED;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;OAEG;YACW,YAAY;CA8I3B"}
|
|
@@ -74,6 +74,11 @@ export interface CheckoutResult {
|
|
|
74
74
|
readonly conflicts: string[];
|
|
75
75
|
/** The ref that was checked out (null for path checkout) */
|
|
76
76
|
readonly ref: Ref | null;
|
|
77
|
+
/**
|
|
78
|
+
* Why a checkout was refused, in git's words (`status` CONFLICTS): local changes or
|
|
79
|
+
* untracked files the switch would overwrite, or an index with unmerged entries.
|
|
80
|
+
*/
|
|
81
|
+
readonly message?: string;
|
|
77
82
|
}
|
|
78
83
|
/**
|
|
79
84
|
* Command to checkout branches, commits, or paths.
|
|
@@ -197,34 +202,12 @@ export declare class CheckoutCommand extends GitCommand<CheckoutResult> {
|
|
|
197
202
|
* Checkout paths from index or commit.
|
|
198
203
|
*/
|
|
199
204
|
private checkoutPaths;
|
|
200
|
-
/**
|
|
201
|
-
|
|
202
|
-
*
|
|
203
|
-
* Returns list of paths that have uncommitted staged changes.
|
|
204
|
-
* Git prevents checkout when staged changes differ from HEAD,
|
|
205
|
-
* as they would be lost during checkout.
|
|
206
|
-
*
|
|
207
|
-
* @param _targetTreeId Target tree to checkout (unused for now, checks HEAD vs staging)
|
|
208
|
-
* @returns Array of conflicting paths
|
|
209
|
-
*/
|
|
210
|
-
private detectCheckoutConflicts;
|
|
205
|
+
/** Whether an untracked (not ignored) file or link is at `path`. */
|
|
206
|
+
private untrackedFileAt;
|
|
211
207
|
/**
|
|
212
208
|
* Checkout a branch or commit.
|
|
213
209
|
*/
|
|
214
210
|
private checkoutBranch;
|
|
215
|
-
/**
|
|
216
|
-
* Check if the store supports file writes (not a bare repository).
|
|
217
|
-
*
|
|
218
|
-
* A repository is considered "bare" if it doesn't have a worktree interface.
|
|
219
|
-
*/
|
|
220
|
-
private hasFileWriteSupport;
|
|
221
|
-
/**
|
|
222
|
-
* Write all files from a tree to the working directory.
|
|
223
|
-
*
|
|
224
|
-
* @param treeId The tree ID to checkout
|
|
225
|
-
* @param basePath The base path prefix for entries in this tree
|
|
226
|
-
*/
|
|
227
|
-
private writeTreeToWorkdir;
|
|
228
211
|
/**
|
|
229
212
|
* Checkout a path from the staging index.
|
|
230
213
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-command.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;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AEG;YACW,aAAa;IAM3B;;OAEG;YACW,eAAe;IAqB7B;;OAEG;YACW,oBAAoB;CAenC"}
|
|
@@ -5,6 +5,11 @@ import { GitCommand } from "../git-command.js";
|
|
|
5
5
|
export interface CleanResult {
|
|
6
6
|
/** Files that were (or would be) removed */
|
|
7
7
|
cleaned: Set<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Nested repositories left in untracked directories (`git clean -n`: "Would skip
|
|
10
|
+
* repository"); one directly under a tracked directory is passed over silently, as git
|
|
11
|
+
*/
|
|
12
|
+
skipped: Set<string>;
|
|
8
13
|
/** Whether this was a dry run (no files actually removed) */
|
|
9
14
|
dryRun: boolean;
|
|
10
15
|
}
|
|
@@ -47,6 +52,7 @@ export declare class CleanCommand extends GitCommand<CleanResult> {
|
|
|
47
52
|
private dryRun;
|
|
48
53
|
private directories;
|
|
49
54
|
private ignore;
|
|
55
|
+
private forceNested;
|
|
50
56
|
/**
|
|
51
57
|
* Limit clean to specific paths.
|
|
52
58
|
*
|
|
@@ -63,7 +69,8 @@ export declare class CleanCommand extends GitCommand<CleanResult> {
|
|
|
63
69
|
*/
|
|
64
70
|
setDryRun(dryRun: boolean): this;
|
|
65
71
|
/**
|
|
66
|
-
* Set whether to also clean directories
|
|
72
|
+
* Set whether to also clean untracked directories (`git clean -d`): their untracked
|
|
73
|
+
* files are removed and each directory once it is empty.
|
|
67
74
|
*
|
|
68
75
|
* @param directories Whether to clean directories
|
|
69
76
|
*/
|
|
@@ -78,14 +85,37 @@ export declare class CleanCommand extends GitCommand<CleanResult> {
|
|
|
78
85
|
*/
|
|
79
86
|
setIgnore(ignore: boolean): this;
|
|
80
87
|
/**
|
|
81
|
-
*
|
|
88
|
+
* Set whether nested repositories (untracked directories with their own `.git`) are
|
|
89
|
+
* removed too, as `git clean -ff`. Off by default: they are skipped, as `git clean -f`
|
|
90
|
+
* skips them, and listed in `skipped`.
|
|
91
|
+
*
|
|
92
|
+
* @param force Whether to remove nested repositories
|
|
93
|
+
*/
|
|
94
|
+
setForceNestedRepositories(force: boolean): this;
|
|
95
|
+
/**
|
|
96
|
+
* Execute the clean command, as `git clean -f` (`-d` with `setCleanDirectories(true)`,
|
|
97
|
+
* `-x` with `setIgnore(false)`, `-ff` with `setForceNestedRepositories(true)`, `-n` with
|
|
98
|
+
* dry run):
|
|
99
|
+
* - only files the index does not track are removed, one at a time;
|
|
100
|
+
* - an untracked directory (one holding no tracked or staged path) is entered only with
|
|
101
|
+
* `-d` or a path filter; with `-d` it is removed once empty, deepest first and never
|
|
102
|
+
* recursively, so whatever stays in it (an ignored file without `-x`, a nested
|
|
103
|
+
* repository without `-ff`) keeps it;
|
|
104
|
+
* - `cleaned` lists what `git clean -n` prints after "Would remove": a wholly removed
|
|
105
|
+
* untracked directory as `dir/`, else the files; `skipped` the nested repositories
|
|
106
|
+
* ("Would skip repository").
|
|
82
107
|
*
|
|
83
108
|
* @returns CleanResult with set of cleaned files
|
|
84
109
|
*/
|
|
85
110
|
call(): Promise<CleanResult>;
|
|
86
111
|
/**
|
|
87
|
-
*
|
|
112
|
+
* Whether `path` is or lies in one of the requested paths, as git's pathspec matches it: a
|
|
113
|
+
* plain path matches itself and what is below it; one with `*`, `?` or `[...]` is a glob
|
|
114
|
+
* over the whole path (`*` matching `/` too).
|
|
88
115
|
*/
|
|
89
|
-
private
|
|
116
|
+
private matchesPaths;
|
|
117
|
+
/** Whether a requested path names `path` itself. */
|
|
118
|
+
private namesPath;
|
|
119
|
+
private clean;
|
|
90
120
|
}
|
|
91
121
|
//# sourceMappingURL=clean-command.d.ts.map
|
|
@@ -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":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/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;CACjB;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;IAE5B;;;;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,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI/C;IAED;;;;;;;;;;;;;;OAcG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CASjC;IAED;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAgBpB,oDAAoD;IACpD,OAAO,CAAC,SAAS;YAQH,KAAK;CAuHpB"}
|
|
@@ -12,6 +12,25 @@ import { TagOption } from "./fetch-command.js";
|
|
|
12
12
|
* rather than operating on an existing one. The store passed to the
|
|
13
13
|
* constructor should be an empty/new store that will be populated.
|
|
14
14
|
*
|
|
15
|
+
* Like `git clone`, it configures the remote (`remote.<name>.url`, the
|
|
16
|
+
* `remote.<name>.fetch` refspec of the clone, `remote.<name>.tagOpt` for
|
|
17
|
+
* `--no-tags`, `remote.<name>.mirror`), the upstream of the checked-out branch
|
|
18
|
+
* (`branch.<name>.remote` / `branch.<name>.merge`), and points
|
|
19
|
+
* `refs/remotes/<name>/HEAD` at the remote's default branch.
|
|
20
|
+
*
|
|
21
|
+
* A non-bare clone checks out the commit HEAD names, as `git clone` does: the files
|
|
22
|
+
* of its tree are written to the worktree (executable bits and symbolic links where
|
|
23
|
+
* the worktree can represent them, see `Worktree.capabilities`; an empty directory
|
|
24
|
+
* for each submodule) and the index records them with their stat data. When the
|
|
25
|
+
* worktree cannot represent executables or symlinks, `core.filemode` or
|
|
26
|
+
* `core.symlinks` is set to false, as `git init` does after probing the filesystem.
|
|
27
|
+
* `setNoCheckout(true)` writes neither files nor index; a bare clone has neither.
|
|
28
|
+
*
|
|
29
|
+
* As in git, the checkout comes last, once the refs and the configuration are written:
|
|
30
|
+
* when it fails (a tree path git's `verify_path` refuses, entries that collide, a file
|
|
31
|
+
* in the way) the clone throws a `CloneCheckoutError` ("Clone succeeded, but checkout
|
|
32
|
+
* failed") carrying the clone's result, and the repository stays usable.
|
|
33
|
+
*
|
|
15
34
|
* @example
|
|
16
35
|
* ```typescript
|
|
17
36
|
* // Basic clone
|
|
@@ -47,6 +66,7 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
|
|
|
47
66
|
private remoteName;
|
|
48
67
|
private cloneAllBranches;
|
|
49
68
|
private mirror;
|
|
69
|
+
private singleBranch?;
|
|
50
70
|
private branchesToClone;
|
|
51
71
|
private tagOption;
|
|
52
72
|
private shallowSince?;
|
|
@@ -62,10 +82,11 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
|
|
|
62
82
|
*/
|
|
63
83
|
getURI(): string | undefined;
|
|
64
84
|
/**
|
|
65
|
-
* Set the branch to clone.
|
|
85
|
+
* Set the branch to check out (`git clone --branch`).
|
|
66
86
|
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
87
|
+
* The branch, or else a tag of that name (checked out as a detached HEAD), instead
|
|
88
|
+
* of the remote's default branch. All branches are still fetched unless
|
|
89
|
+
* {@link setSingleBranch} (or a shallow clone) restricts the clone to this one.
|
|
69
90
|
*
|
|
70
91
|
* @param branch Branch name (e.g., "main" or "refs/heads/main")
|
|
71
92
|
*/
|
|
@@ -91,7 +112,8 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
|
|
|
91
112
|
*/
|
|
92
113
|
isBare(): boolean;
|
|
93
114
|
/**
|
|
94
|
-
* Set whether to skip checkout
|
|
115
|
+
* Set whether to skip checkout (`git clone --no-checkout`): HEAD and the branch are
|
|
116
|
+
* set up, but no file is written and the index is left empty.
|
|
95
117
|
*
|
|
96
118
|
* @param noCheckout Whether to skip checkout
|
|
97
119
|
*/
|
|
@@ -112,6 +134,18 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
|
|
|
112
134
|
* Get the remote name.
|
|
113
135
|
*/
|
|
114
136
|
getRemote(): string;
|
|
137
|
+
/**
|
|
138
|
+
* Clone only one branch (`git clone --single-branch`): the {@link setBranch} branch or
|
|
139
|
+
* tag, else the remote's default branch. The remote's fetch refspec is configured for
|
|
140
|
+
* that branch alone, and tags are auto-followed instead of all fetched.
|
|
141
|
+
*
|
|
142
|
+
* Unset, a shallow clone (`setDepth`, `setShallowSince`, `addShallowExclude`) is
|
|
143
|
+
* single-branch, as in git, and so is a clone restricted by
|
|
144
|
+
* {@link setBranchesToClone}; `setSingleBranch(false)` clones all branches anyway.
|
|
145
|
+
*/
|
|
146
|
+
setSingleBranch(singleBranch: boolean): this;
|
|
147
|
+
/** Whether `--single-branch` was set (undefined: decided by the other options). */
|
|
148
|
+
isSingleBranch(): boolean | undefined;
|
|
115
149
|
/**
|
|
116
150
|
* Set whether to clone all branches.
|
|
117
151
|
*
|
|
@@ -207,12 +241,33 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
|
|
|
207
241
|
*/
|
|
208
242
|
call(): Promise<CloneResult>;
|
|
209
243
|
/**
|
|
210
|
-
*
|
|
244
|
+
* Writes the configuration `git clone` writes (clone.c): `remote.<name>.url`,
|
|
245
|
+
* `remote.<name>.tagOpt` for `--no-tags` and `--mirror` (git 2.49+), the `remote.<name>.fetch` refspec of what was
|
|
246
|
+
* cloned (none for a bare clone; `+refs/*:refs/*` and `remote.<name>.mirror` for a
|
|
247
|
+
* mirror; one branch or tag for a single-branch clone), and the upstream of the
|
|
248
|
+
* checked-out branch (`branch.<b>.remote`, `branch.<b>.merge`).
|
|
211
249
|
*/
|
|
212
|
-
private
|
|
250
|
+
private writeConfig;
|
|
251
|
+
/** The branch the local HEAD names (`init.defaultBranch` of the new repository), if any. */
|
|
252
|
+
private localHeadBranch;
|
|
213
253
|
/**
|
|
214
|
-
*
|
|
254
|
+
* Check out the cloned commit, as `git clone` does: the files of its tree into the
|
|
255
|
+
* worktree, then the index with the stat data of the files written. Without a
|
|
256
|
+
* worktree only the index is filled.
|
|
257
|
+
*
|
|
258
|
+
* The whole tree is planned (and every blob checked) before the first file is
|
|
259
|
+
* written. Symlinks become links where the worktree makes them and `core.symlinks`
|
|
260
|
+
* is not false, else plain files holding the target (the index keeps mode 120000);
|
|
261
|
+
* a submodule becomes an empty directory, as in a clone without `--recurse-submodules`.
|
|
262
|
+
*
|
|
263
|
+
* The index records size, mtime and (where the worktree reports it) ctime, but no inode,
|
|
264
|
+
* device, uid or gid, which FilesApi does not give: `git status` sees the files clean and
|
|
265
|
+
* refreshes the index once, while commands that do not refresh (`git diff-files`,
|
|
266
|
+
* `git diff-index --quiet`) report every file as changed until then, unless
|
|
267
|
+
* `core.checkStat=minimal`.
|
|
215
268
|
*/
|
|
216
269
|
private checkoutHead;
|
|
270
|
+
/** Whether symlinks are written as links: the worktree can, and `core.symlinks` allows. */
|
|
271
|
+
private symlinksEnabled;
|
|
217
272
|
}
|
|
218
273
|
//# sourceMappingURL=clone-command.d.ts.map
|
|
@@ -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":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAkC,MAAM,oBAAoB,CAAC;AAM/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,qBAAa,YAAa,SAAQ,gBAAgB,CAAC,WAAW,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,CAAS;IACrB,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,YAAY,CAAC,CAAU;IAC/B,OAAO,CAAC,eAAe,CAAgB;IACvC,OAAO,CAAC,SAAS,CAAoC;IACrD,OAAO,CAAC,YAAY,CAAC,CAAO;IAC5B,OAAO,CAAC,eAAe,CAAgB;IAEvC;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAIxB;IAED;;OAEG;IACH,MAAM,IAAI,MAAM,GAAG,SAAS,CAE3B;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED;;OAEG;IACH,SAAS,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAO5B;IAED;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAA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,CAAC,CAqNjC;IAED;;;;;;OAMG;YACW,WAAW;IAiDzB,4FAA4F;YAC9E,eAAe;IAO7B;;;;;;;;;;;;;;;OAeG;YACW,YAAY;IAwC1B,2FAA2F;IAC3F,OAAO,CAAC,eAAe;CAGxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `core.*` settings that decide how the worktree is read and written.
|
|
3
|
+
*
|
|
4
|
+
* Read from the working copy's own configuration: this repository has no chain of
|
|
5
|
+
* global and system configuration files, so a `core.symlinks` set only in `~/.gitconfig`
|
|
6
|
+
* is not seen (native git would honour it).
|
|
7
|
+
*/
|
|
8
|
+
import type { WorkingCopy, Worktree, WorktreeModeTrust } from "@statewalker/vcs-working-tree";
|
|
9
|
+
/** A git boolean (`true`/`yes`/`on`/`1`, `false`/`no`/`off`/`0`), else `fallback`. */
|
|
10
|
+
export declare function coreBool(workingCopy: WorkingCopy, name: string, fallback: boolean): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the worktree's executable bits and symbolic links are real: the worktree can
|
|
13
|
+
* represent them and `core.filemode` / `core.symlinks` are not false.
|
|
14
|
+
*/
|
|
15
|
+
export declare function worktreeModeTrust(workingCopy: WorkingCopy, worktree: Worktree): WorktreeModeTrust;
|
|
16
|
+
//# sourceMappingURL=core-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-config.d.ts","sourceRoot":"","sources":["../../src/commands/core-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAI9F,sFAAsF;AACtF,wBAAgB,QAAQ,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAM3F;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,GAAG,iBAAiB,CAejG"}
|
|
@@ -50,8 +50,13 @@ export declare enum TagOption {
|
|
|
50
50
|
export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
51
51
|
private remote;
|
|
52
52
|
private refSpecs;
|
|
53
|
-
private removeDeletedRefs
|
|
53
|
+
private removeDeletedRefs?;
|
|
54
|
+
private pruneTags?;
|
|
55
|
+
private refmap?;
|
|
54
56
|
private tagOption;
|
|
57
|
+
private tagOptionSet;
|
|
58
|
+
private writeFetchHead;
|
|
59
|
+
private appendFetchHead;
|
|
55
60
|
private thin;
|
|
56
61
|
private depth?;
|
|
57
62
|
private dryRun;
|
|
@@ -91,16 +96,63 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
91
96
|
/**
|
|
92
97
|
* Set whether to remove refs that no longer exist on the remote.
|
|
93
98
|
*
|
|
94
|
-
* Equivalent to `git fetch --prune
|
|
99
|
+
* Equivalent to `git fetch --prune` (true) and `--no-prune` (false). Unset, the
|
|
100
|
+
* remote's `remote.<name>.prune`, else `fetch.prune`, decides, as in git; neither set,
|
|
101
|
+
* nothing is pruned. The remote-tracking refs the refspecs map from a ref the remote no
|
|
102
|
+
* longer has are deleted before anything is fetched (so `foo` can become `foo/bar`); the
|
|
103
|
+
* command-line refspecs are used when given, else the configured ones.
|
|
95
104
|
*
|
|
96
105
|
* @param remove Whether to prune deleted refs
|
|
97
106
|
*/
|
|
98
107
|
setRemoveDeletedRefs(remove: boolean): this;
|
|
99
108
|
/**
|
|
100
|
-
* Whether to remove deleted refs
|
|
109
|
+
* Whether to remove deleted refs, as set with {@link setRemoveDeletedRefs} (false when
|
|
110
|
+
* unset: the configuration is read when the fetch runs).
|
|
101
111
|
*/
|
|
102
112
|
isRemoveDeletedRefs(): boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Set whether local tags the remote no longer has are pruned too (`git fetch
|
|
115
|
+
* --prune-tags` / `--no-prune-tags`). Unset, `remote.<name>.pruneTags`, else
|
|
116
|
+
* `fetch.pruneTags`, decides.
|
|
117
|
+
*
|
|
118
|
+
* As in git, this adds `refs/tags/*:refs/tags/*` to the refspecs (so every remote tag is
|
|
119
|
+
* fetched), and only when no refspec is given: to the remote's configured refspecs, or for
|
|
120
|
+
* a URL to the refspecs of the fetch. Tags are pruned only when pruning is on.
|
|
121
|
+
*/
|
|
122
|
+
setPruneTags(pruneTags: boolean): this;
|
|
123
|
+
/**
|
|
124
|
+
* Set the refspecs that map the refs named on the command line to remote-tracking refs
|
|
125
|
+
* (`git fetch --refmap=<refspec>`), in place of the remote's `remote.<name>.fetch`.
|
|
126
|
+
*
|
|
127
|
+
* With explicit refspecs ({@link setRefSpecs}), git also updates the remote-tracking
|
|
128
|
+
* ref each fetched ref maps to through the configured refspecs (`git fetch origin main`
|
|
129
|
+
* moves `refs/remotes/origin/main`); a refmap replaces those, and an empty one
|
|
130
|
+
* (`setRefmap()`, git's `--refmap=`) turns the update off. Without explicit refspecs a
|
|
131
|
+
* refmap is an error, as in git.
|
|
132
|
+
*/
|
|
133
|
+
setRefmap(...refspecs: string[]): this;
|
|
134
|
+
/**
|
|
135
|
+
* Set how tags are fetched (`--tags`, `--no-tags`, or auto-follow).
|
|
136
|
+
*
|
|
137
|
+
* Unset, a configured remote's `remote.<name>.tagOpt` (`--tags`, `--no-tags`) decides, as
|
|
138
|
+
* in git; otherwise tags are auto-followed.
|
|
139
|
+
*/
|
|
103
140
|
setTagOpt(option: TagOption): this;
|
|
141
|
+
/**
|
|
142
|
+
* Set whether the fetch writes `FETCH_HEAD` (default true; `--no-write-fetch-head`).
|
|
143
|
+
*
|
|
144
|
+
* Written through the checkout's `writeFetchHead`; a checkout without it keeps none.
|
|
145
|
+
*/
|
|
146
|
+
setWriteFetchHead(write: boolean): this;
|
|
147
|
+
/** Whether the fetch writes `FETCH_HEAD`. */
|
|
148
|
+
isWriteFetchHead(): boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Set whether the fetched refs are added after what `FETCH_HEAD` holds instead of
|
|
151
|
+
* replacing it (`git fetch --append`).
|
|
152
|
+
*/
|
|
153
|
+
setAppend(append: boolean): this;
|
|
154
|
+
/** Whether `FETCH_HEAD` is appended to. */
|
|
155
|
+
isAppend(): boolean;
|
|
104
156
|
/**
|
|
105
157
|
* Set thin-pack preference.
|
|
106
158
|
*
|
|
@@ -220,14 +272,39 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
220
272
|
*/
|
|
221
273
|
call(): Promise<FetchResult>;
|
|
222
274
|
/**
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
275
|
+
* How `refs/remotes/<name>/HEAD` follows the remote HEAD (git 2.48+): the remote's
|
|
276
|
+
* `remote.<name>.followRemoteHEAD`, else `fetch.followRemoteHEAD`, else `create`; an
|
|
277
|
+
* unrecognized value is ignored, as git warns and ignores it. Null for `never`.
|
|
278
|
+
*/
|
|
279
|
+
private followRemoteHead;
|
|
280
|
+
/**
|
|
281
|
+
* git's set_head (fetch.c): the one branch the remote HEAD names (its symref, or else the
|
|
282
|
+
* only branch at its commit) becomes `refs/remotes/<name>/HEAD`, if that tracking ref
|
|
283
|
+
* exists here: created when missing (`create`, `warn`), or always set (`always`). In a
|
|
284
|
+
* bare repository mirroring the remote (`remote.<name>.mirror`), HEAD itself is set to
|
|
285
|
+
* the branch. `warn` reports a local HEAD that differs, in git's words, into `messages`.
|
|
286
|
+
* As in git, failures are silent and a dry run is no exception.
|
|
287
|
+
*/
|
|
288
|
+
private setRemoteHead;
|
|
289
|
+
/** The tag option given, else the remote's `remote.<name>.tagOpt`, else auto-follow. */
|
|
290
|
+
private effectiveTagOption;
|
|
291
|
+
/**
|
|
292
|
+
* The current branch's upstream: its `branch.<name>.remote` and `branch.<name>.merge`
|
|
293
|
+
* refs, when both are set (git's branch_has_merge_config); undefined on a detached HEAD
|
|
294
|
+
* or without upstream configuration.
|
|
295
|
+
*/
|
|
296
|
+
private upstreamConfig;
|
|
297
|
+
/**
|
|
298
|
+
* The `FETCH_HEAD` lines of a fetch, marked as git's get_ref_map marks them: refs from
|
|
299
|
+
* explicit refspecs (or the HEAD of an unconfigured remote) are to merge; with configured
|
|
300
|
+
* refspecs, the refs the current branch's `branch.<name>.merge` names (fetched for this
|
|
301
|
+
* alone when no refspec took them), or else the first ref when the first refspec names
|
|
302
|
+
* one ref. Tags (`--tags`, auto-follow), the rest, and anything that does not peel to a
|
|
303
|
+
* commit are `not-for-merge`.
|
|
229
304
|
*/
|
|
230
|
-
private
|
|
305
|
+
private fetchHeadEntries;
|
|
306
|
+
/** Whether `id` is a commit, or a tag (chain) of one (git's lookup_commit_reference_gently). */
|
|
307
|
+
private peelsToCommit;
|
|
231
308
|
/**
|
|
232
309
|
* Resolve remote name to URL.
|
|
233
310
|
*
|
|
@@ -237,12 +314,17 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
237
314
|
*/
|
|
238
315
|
private resolveRemoteUrl;
|
|
239
316
|
/**
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
317
|
+
* The stale remote-tracking refs (git's get_stale_heads): every local ref that the
|
|
318
|
+
* refspecs map from remote refs (all of the matching refspecs: overlapping ones count
|
|
319
|
+
* together), none of which the remote has, unless a negative refspec excludes it or it is
|
|
320
|
+
* a symbolic ref. They are deleted (reflogs too) in one batch, logged `fetch: prune`, and
|
|
321
|
+
* reported as deleted; a dry run reports them only. The symbolic refs left dangling are
|
|
322
|
+
* named in `messages` as git does. A refused delete does not stop the fetch: as in git
|
|
323
|
+
* (which then exits 1), the error goes into `errors` and nothing is reported deleted.
|
|
244
324
|
*/
|
|
245
325
|
private pruneDeletedRefs;
|
|
326
|
+
/** The symbolic refs whose chain ends at one of `names` (git's warn_if_dangling_symref). */
|
|
327
|
+
private danglingSymrefs;
|
|
246
328
|
}
|
|
247
329
|
/** The transport's tag mode for a {@link TagOption}. */
|
|
248
330
|
export declare function toTagMode(option: TagOption): TagMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,KAAK,cAAc,EAMnB,KAAK,OAAO,EAEb,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D;;;;GAIG;AACH,oBAAY,SAAS;IACnB,8DAA8D;IAC9D,WAAW,gBAAgB;IAC3B,qBAAqB;IACrB,UAAU,eAAe;IACzB,2BAA2B;IAC3B,OAAO,YAAY;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,YAAa,SAAQ,gBAAgB,CAAC,WAAW,CAAC;IAC7D,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,iBAAiB,CAAC,CAAU;IACpC,OAAO,CAAC,SAAS,CAAC,CAAU;IAC5B,OAAO,CAAC,MAAM,CAAC,CAAW;IAC1B,OAAO,CAAC,SAAS,CAAoC;IACrD,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,IAAI,CAAQ;IACpB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,YAAY,CAAC,CAAO;IAC5B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sB7E"}
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from "./stash-apply-command.js";
|
|
|
27
27
|
export * from "./stash-create-command.js";
|
|
28
28
|
export * from "./stash-drop-command.js";
|
|
29
29
|
export * from "./stash-list-command.js";
|
|
30
|
+
export * from "./stash-working-tree.js";
|
|
30
31
|
export * from "./status-command.js";
|
|
31
32
|
export * from "./tag-command.js";
|
|
32
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
package/dist/commands/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { AddCommand, BlameCommand, CheckoutCommand, CheckoutStage, CheckoutStatus, CherryPickCommand, CleanCommand, CloneCommand, CommitCommand, CreateBranchCommand, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DiffCommand, FetchCommand, GarbageCollectCommand, InitCommand, ListBranchCommand, ListTagCommand, LogCommand, LsRemoteCommand, MergeCommand, PackRefsCommand, PullCommand, PushCommand, RebaseCommand, RebaseOperation, ReflogCommand, RemoteAddCommand, RemoteListCommand, RemoteRemoveCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, RevFilter, RevertCommand, RmCommand, STASH_REF, StashApplyCommand, StashCreateCommand, StashDropCommand, StashListCommand, StatusCommand, TagCommand, TagOption, formatDiffEntry, toTagMode, toTrackingRefUpdate };
|
|
1
|
+
import { A as InitCommand, B as toTagMode, C as PushCommand, D as LsRemoteCommand, E as MergeCommand, F as DescribeCommand, G as CheckoutCommand, I as CommitCommand, J as CreateBranchCommand, K as CheckoutStage, L as CloneCommand, M as GarbageCollectCommand, N as DiffCommand, O as LogCommand, P as formatDiffEntry, R as FetchCommand, S as RebaseOperation, T as PackRefsCommand, U as CleanCommand, V as toTrackingRefUpdate, W as CherryPickCommand, X as ListBranchCommand, Y as DeleteBranchCommand, Z as RenameBranchCommand, _ as RemoteRenameCommand, a as StashDropCommand, b as ReflogCommand, c as StashApplyCommand, d as RmCommand, et as BlameCommand, f as RevertCommand, g as RemoteRemoveCommand, h as RemoteListCommand, i as StatusCommand, k as RevFilter, l as STASH_REF, m as RemoteAddCommand, n as ListTagCommand, o as StashCreateCommand, p as ResetCommand, q as CheckoutStatus, r as TagCommand, s as WorkingCopyStashProvider, t as DeleteTagCommand, tt as AddCommand, u as StashListCommand, v as RemoteSetHeadCommand, w as PullCommand, x as RebaseCommand, y as RemoteSetUrlCommand, z as TagOption } from "../commands-CsLNyvZ1.js";
|
|
2
|
+
export { AddCommand, BlameCommand, CheckoutCommand, CheckoutStage, CheckoutStatus, CherryPickCommand, CleanCommand, CloneCommand, CommitCommand, CreateBranchCommand, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DiffCommand, FetchCommand, GarbageCollectCommand, InitCommand, ListBranchCommand, ListTagCommand, LogCommand, LsRemoteCommand, MergeCommand, PackRefsCommand, PullCommand, PushCommand, RebaseCommand, RebaseOperation, ReflogCommand, RemoteAddCommand, RemoteListCommand, RemoteRemoveCommand, RemoteRenameCommand, RemoteSetHeadCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, RevFilter, RevertCommand, RmCommand, STASH_REF, StashApplyCommand, StashCreateCommand, StashDropCommand, StashListCommand, StatusCommand, TagCommand, TagOption, WorkingCopyStashProvider, formatDiffEntry, toTagMode, toTrackingRefUpdate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../src/commands/init-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../src/commands/init-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,QAAQ,EAGd,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EAEL,KAAK,OAAO,EAEZ,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,KAAK,CAAC,CAAW;IACzB,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,YAAY,CAAC,CAAU;IAC/B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,aAAa,CAAC,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAQ;IAExB;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAIjC;IAED;;;;;;;;OAQG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAIpC;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED;;;;;;;;OAQ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