@statewalker/vcs-commands 0.3.2 → 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/README.md +19 -0
- package/dist/commands/add-command.d.ts +0 -6
- package/dist/commands/add-command.d.ts.map +1 -1
- package/dist/commands/blame-command.d.ts +14 -0
- package/dist/commands/blame-command.d.ts.map +1 -1
- package/dist/commands/branch-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 +61 -21
- 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 +104 -37
- 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/merge-command.d.ts +15 -2
- package/dist/commands/merge-command.d.ts.map +1 -1
- package/dist/commands/push-command.d.ts +58 -25
- package/dist/commands/push-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/tag-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-COO4tJhv.js → commands-CsLNyvZ1.js} +3370 -1057
- package/dist/core-commands/add.command.impl.d.ts +0 -4
- package/dist/core-commands/add.command.impl.d.ts.map +1 -1
- package/dist/core-commands/index.d.ts +1 -3
- package/dist/core-commands/index.d.ts.map +1 -1
- package/dist/core-commands/store-worktree-file.d.ts +6 -0
- package/dist/core-commands/store-worktree-file.d.ts.map +1 -0
- 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 +22 -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/diff-formatter.d.ts +14 -7
- package/dist/results/diff-formatter.d.ts.map +1 -1
- package/dist/results/fetch-result.d.ts +16 -1
- package/dist/results/fetch-result.d.ts.map +1 -1
- package/dist/results/index.js +28 -23
- package/dist/results/push-result.d.ts +9 -2
- package/dist/results/push-result.d.ts.map +1 -1
- package/dist/results/status-result.d.ts +91 -20
- package/dist/results/status-result.d.ts.map +1 -1
- package/dist/{status-result-BwAyxq6R.js → status-result-BpyUK1Sg.js} +115 -5
- package/dist/transport-command.d.ts +12 -0
- package/dist/transport-command.d.ts.map +1 -1
- package/package.json +14 -12
- package/src/commands/add-command.ts +23 -30
- package/src/commands/blame-command.ts +41 -0
- package/src/commands/branch-command.ts +2 -53
- package/src/commands/checkout-command.ts +205 -127
- package/src/commands/clean-command.ts +187 -81
- package/src/commands/clone-command.ts +334 -137
- package/src/commands/core-config.ts +41 -0
- package/src/commands/fetch-command.ts +536 -211
- package/src/commands/gc-command.ts +1 -1
- package/src/commands/index.ts +1 -0
- package/src/commands/init-command.ts +108 -11
- package/src/commands/merge-command.ts +60 -27
- package/src/commands/pack-refs-command.ts +2 -2
- package/src/commands/push-command.ts +242 -308
- package/src/commands/reflog-command.ts +2 -2
- 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/tag-command.ts +2 -53
- package/src/commands/tree-restore.ts +143 -18
- package/src/commands/worktree-overwrite-checks.ts +215 -0
- package/src/core-commands/add.command.impl.ts +15 -20
- package/src/core-commands/index.ts +1 -8
- package/src/core-commands/store-worktree-file.ts +5 -0
- 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 +95 -8
- package/src/remote-config/remote-refs.ts +103 -0
- package/src/results/clone-result.ts +6 -0
- package/src/results/diff-formatter.ts +31 -38
- package/src/results/fetch-result.ts +16 -1
- package/src/results/push-result.ts +9 -2
- 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 -114
- package/dist/core-commands/checkout.command.impl.d.ts.map +0 -1
- package/dist/pack-import/index.d.ts +0 -8
- package/dist/pack-import/index.d.ts.map +0 -1
- package/dist/pack-import/pack-import.d.ts +0 -11
- package/dist/pack-import/pack-import.d.ts.map +0 -1
- package/src/core-commands/checkout.command.impl.ts +0 -586
- package/src/core-commands/checkout.command.ts +0 -125
- package/src/pack-import/index.ts +0 -8
- package/src/pack-import/pack-import.ts +0 -24
package/README.md
CHANGED
|
@@ -155,6 +155,25 @@ await git.cherryPick().include(commitId).call();
|
|
|
155
155
|
await git.revert().include(commitId).setNoCommit(true).call();
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
+
### Big and binary files in diff, merge and blame
|
|
159
|
+
|
|
160
|
+
```typescript
|
|
161
|
+
import { DiffFormatter } from "@statewalker/vcs-commands";
|
|
162
|
+
|
|
163
|
+
const formatter = new DiffFormatter(history.blobs, { bigFileThreshold: 10 * 2 ** 20 });
|
|
164
|
+
const diff = await formatter.format(entry);
|
|
165
|
+
console.log(formatter.toString(diff)); // "Binary files a/video.mp4 and b/video.mp4 differ"
|
|
166
|
+
|
|
167
|
+
await git.merge().include("feature").setContentMergeStrategy(ContentMergeStrategy.UNION).setBigFileThreshold(10 * 2 ** 20).call();
|
|
168
|
+
await git.blame().setFilePath("data.csv").setBigFileThreshold(10 * 2 ** 20).call();
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Diff, merge and blame read sizes from object headers first and never load a file above `bigFileThreshold` (50 MiB by default, git's `core.bigFileThreshold`). They check whether a file is binary as git does, from a NUL byte in its first 8000 bytes, and read only that prefix (`probeBlob` from `@statewalker/vcs-core`). Text under the threshold is still loaded whole, because the diff algorithms need it, by the same single read that checked it (`probeBlob(..., { loadText: true })`).
|
|
172
|
+
|
|
173
|
+
- `DiffFormatter` shows a big or binary file as `Binary files a/<path> and b/<path> differ` and loads neither side. `oldContent` and `newContent` are set for text files only.
|
|
174
|
+
- `merge()` never content-merges a big or binary file. With `ContentMergeStrategy.OURS` or `THEIRS` it takes that side's file whole, as `git merge -X ours` does; with `UNION`, or without a content strategy, the path is a conflict.
|
|
175
|
+
- `blame()` rejects for a file above the threshold. A parent version above it is not compared, so the lines stay with the child commit, and it is never a rename candidate.
|
|
176
|
+
|
|
158
177
|
### Remotes
|
|
159
178
|
|
|
160
179
|
```typescript
|
|
@@ -160,11 +160,5 @@ export declare class AddCommand extends GitCommand<AddResult> {
|
|
|
160
160
|
* Process files for staging.
|
|
161
161
|
*/
|
|
162
162
|
private processFiles;
|
|
163
|
-
/**
|
|
164
|
-
* Store file content as blob and return object ID.
|
|
165
|
-
*
|
|
166
|
-
* Note: The object store handles blob header internally.
|
|
167
|
-
*/
|
|
168
|
-
private storeFileContent;
|
|
169
163
|
}
|
|
170
164
|
//# sourceMappingURL=add-command.d.ts.map
|
|
@@ -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"}
|
|
@@ -108,6 +108,7 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
|
|
|
108
108
|
private followRenames;
|
|
109
109
|
private renameScore;
|
|
110
110
|
private diffAlgorithm;
|
|
111
|
+
private bigFileThreshold;
|
|
111
112
|
/**
|
|
112
113
|
* Set the file path to blame.
|
|
113
114
|
*
|
|
@@ -143,6 +144,17 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
|
|
|
143
144
|
* @param algorithm The algorithm to use (default: histogram)
|
|
144
145
|
*/
|
|
145
146
|
setAlgorithm(algorithm: SupportedAlgorithm): this;
|
|
147
|
+
/**
|
|
148
|
+
* Set the size above which a file is never loaded (git's
|
|
149
|
+
* `core.bigFileThreshold`, default 50 MiB).
|
|
150
|
+
*
|
|
151
|
+
* Blaming a file over it rejects. A parent version over it is not compared:
|
|
152
|
+
* the lines it would have taken stay with the child commit, and it is not a
|
|
153
|
+
* rename candidate.
|
|
154
|
+
*
|
|
155
|
+
* @param threshold Size in bytes
|
|
156
|
+
*/
|
|
157
|
+
setBigFileThreshold(threshold: number): this;
|
|
146
158
|
/**
|
|
147
159
|
* Execute the blame command.
|
|
148
160
|
*
|
|
@@ -238,6 +250,8 @@ export declare class BlameCommand extends GitCommand<BlameResult> {
|
|
|
238
250
|
* Collect all blob entries from a tree recursively.
|
|
239
251
|
*/
|
|
240
252
|
private collectTreeEntries;
|
|
253
|
+
/** Whether a blob is over the threshold (from its size, without reading it). */
|
|
254
|
+
private isBig;
|
|
241
255
|
/**
|
|
242
256
|
* Collect blob content into a single buffer.
|
|
243
257
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blame-command.d.ts","sourceRoot":"","sources":["../../src/commands/blame-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAa,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"blame-command.d.ts","sourceRoot":"","sources":["../../src/commands/blame-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAa,MAAM,uBAAuB,CAAC;AAGtF,OAAO,EAML,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C;;GAEG;AACH,MAAM,WA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EG;YACW,WAAW;IAuBzB;;OAEG;YACW,WAAW;IAwBzB;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU;IA+BlB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAgC5B;;OAEG;IACH,OAAO,CAAC,iBAAiB;CAqE1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch-command.d.ts","sourceRoot":"","sources":["../../src/commands/branch-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAU3D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"branch-command.d.ts","sourceRoot":"","sources":["../../src/commands/branch-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAU3D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,GAAG,CAAC;IACtD,OAAO,CAAC,IAAI,CAAC,CAAS;IACtB,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,KAAK,CAAS;IAEtB;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED;;;;;;;OAOG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAItC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CA6BzB;CACF;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,MAAM,EAAE,CAAC;IAC3D,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,KAAK,CAAS;IAEtB;;;;OAIG;IACH,cAAc,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAIvC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED;;;;;;;OAOG;IACG,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAiC9B;IAED;;OAEG;YACW,cAAc;CAe7B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,iBAAkB,SAAQ,UAAU,CAAC,GAAG,EAAE,CAAC;IACtD,OAAO,CAAC,QAAQ,CAAwB;IACxC,OAAO,CAAC,cAAc,CAAC,CAAW;IAElC;;;;OAIG;IACH,WAAW,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAItC;IAED;;;;OAIG;IACH,WAAW,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAIlC;IAED;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAqC3B;CACF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,GAAG,CAAC;IACtD,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB;;;;;;OAMG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED;;;;;;;OAOG;IACG,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAkDzB;CACF"}
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"checkout-command.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAA8C,KAAK,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAW7F,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAa/C;;GAEG;AACH,oBAAY,aAAa;IACvB,4BAA4B;IAC5B,IAAI,IAAI;IACR,kCAAkC;IAClC,IAAI,IAAI;IACR,mCAAmC;IACnC,MAAM,IAAI;CACX;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,sCAAsC;IACtC,EAAE,OAAO;IACT,6BAA6B;IAC7B,SAAS,cAAc;IACvB,qCAAqC;IACrC,UAAU,eAAe;IACzB,6BAA6B;IAC7B,SAAS,cAAc;IACvB,iCAAiC;IACjC,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,8BAA8B;IAC9B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAEhC,8BAA8B;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAE3B,8BAA8B;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAE3B,qDAAqD;IACrD,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAE7B,4DAA4D;IAC5D,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAcD;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,UAAU,CAAC,cAAc,CAAC;IAC7D,O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;;OAEG;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,27 +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
|
-
* Check
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Convert a remote ref name to mirror ref name.
|
|
219
|
-
*/
|
|
220
|
-
private toMirrorRefName;
|
|
221
|
-
/**
|
|
222
|
-
* Store received pack data.
|
|
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.
|
|
223
257
|
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
*
|
|
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`.
|
|
230
268
|
*/
|
|
231
269
|
private checkoutHead;
|
|
270
|
+
/** Whether symlinks are written as links: the worktree can, and `core.symlinks` allows. */
|
|
271
|
+
private symlinksEnabled;
|
|
232
272
|
}
|
|
233
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;;;;;;;;OAQ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AAI,CAIxC;IAED;;OAEG;IACH,eAAe,IAAI,IAAI,GAAG,SAAS,CAElC;IAED;;;;;;;OAOG;IACH,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAI9C;IAED;;OAEG;IACH,kBAAkB,IAAI,MAAM,EAAE,CAE7B;IAED;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type FetchRefUpdate, type TagMode } from "@statewalker/vcs-transport";
|
|
2
|
+
import { type FetchResult, type TrackingRefUpdate } from "../results/fetch-result.js";
|
|
2
3
|
import { TransportCommand } from "../transport-command.js";
|
|
3
4
|
/**
|
|
4
5
|
* Tag fetching option.
|
|
@@ -49,8 +50,13 @@ export declare enum TagOption {
|
|
|
49
50
|
export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
50
51
|
private remote;
|
|
51
52
|
private refSpecs;
|
|
52
|
-
private removeDeletedRefs
|
|
53
|
+
private removeDeletedRefs?;
|
|
54
|
+
private pruneTags?;
|
|
55
|
+
private refmap?;
|
|
53
56
|
private tagOption;
|
|
57
|
+
private tagOptionSet;
|
|
58
|
+
private writeFetchHead;
|
|
59
|
+
private appendFetchHead;
|
|
54
60
|
private thin;
|
|
55
61
|
private depth?;
|
|
56
62
|
private dryRun;
|
|
@@ -90,16 +96,63 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
90
96
|
/**
|
|
91
97
|
* Set whether to remove refs that no longer exist on the remote.
|
|
92
98
|
*
|
|
93
|
-
* 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.
|
|
94
104
|
*
|
|
95
105
|
* @param remove Whether to prune deleted refs
|
|
96
106
|
*/
|
|
97
107
|
setRemoveDeletedRefs(remove: boolean): this;
|
|
98
108
|
/**
|
|
99
|
-
* 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).
|
|
100
111
|
*/
|
|
101
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
|
+
*/
|
|
102
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;
|
|
103
156
|
/**
|
|
104
157
|
* Set thin-pack preference.
|
|
105
158
|
*
|
|
@@ -208,28 +261,50 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
208
261
|
/**
|
|
209
262
|
* Execute the fetch operation.
|
|
210
263
|
*
|
|
264
|
+
* Runs the transport's fetch client (git's fetch-pack): the local refs are offered as
|
|
265
|
+
* haves, so only the objects the working copy lacks are downloaded; shallow options and
|
|
266
|
+
* the shallow file are honoured; tags follow the tag option; each tracking ref is
|
|
267
|
+
* updated when it fast-forwards or its refspec (or {@link setForceUpdate}) forces it, and
|
|
268
|
+
* rejected otherwise.
|
|
269
|
+
*
|
|
211
270
|
* @returns Fetch result with updated refs
|
|
212
271
|
* @throws InvalidRemoteError if remote cannot be resolved
|
|
213
272
|
*/
|
|
214
273
|
call(): Promise<FetchResult>;
|
|
215
274
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
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`.
|
|
218
278
|
*/
|
|
219
|
-
private
|
|
279
|
+
private followRemoteHead;
|
|
220
280
|
/**
|
|
221
|
-
*
|
|
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.
|
|
222
287
|
*/
|
|
223
|
-
private
|
|
288
|
+
private setRemoteHead;
|
|
289
|
+
/** The tag option given, else the remote's `remote.<name>.tagOpt`, else auto-follow. */
|
|
290
|
+
private effectiveTagOption;
|
|
224
291
|
/**
|
|
225
|
-
* The
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
* `remote.<name>.fetch` lines, which is what makes `fetch().setRemote("origin")`
|
|
229
|
-
* update tracking refs without being told how. A remote given as a bare URL
|
|
230
|
-
* has no config and so still needs its refspecs spelled out.
|
|
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.
|
|
231
295
|
*/
|
|
232
|
-
private
|
|
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`.
|
|
304
|
+
*/
|
|
305
|
+
private fetchHeadEntries;
|
|
306
|
+
/** Whether `id` is a commit, or a tag (chain) of one (git's lookup_commit_reference_gently). */
|
|
307
|
+
private peelsToCommit;
|
|
233
308
|
/**
|
|
234
309
|
* Resolve remote name to URL.
|
|
235
310
|
*
|
|
@@ -239,28 +314,20 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
|
|
|
239
314
|
*/
|
|
240
315
|
private resolveRemoteUrl;
|
|
241
316
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
* Check if one commit is an ancestor of another.
|
|
250
|
-
*/
|
|
251
|
-
private isAncestor;
|
|
252
|
-
/**
|
|
253
|
-
* Prune refs that no longer exist on remote.
|
|
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.
|
|
254
324
|
*/
|
|
255
325
|
private pruneDeletedRefs;
|
|
256
|
-
/**
|
|
257
|
-
|
|
258
|
-
*
|
|
259
|
-
* Unpacks the pack into the working copy's history, so the objects the
|
|
260
|
-
* freshly written tracking refs point at are actually available locally.
|
|
261
|
-
* Import is idempotent: the stores are content-addressed, so re-importing
|
|
262
|
-
* a pack rewrites the same object IDs.
|
|
263
|
-
*/
|
|
264
|
-
private storePack;
|
|
326
|
+
/** The symbolic refs whose chain ends at one of `names` (git's warn_if_dangling_symref). */
|
|
327
|
+
private danglingSymrefs;
|
|
265
328
|
}
|
|
329
|
+
/** The transport's tag mode for a {@link TagOption}. */
|
|
330
|
+
export declare function toTagMode(option: TagOption): TagMode;
|
|
331
|
+
/** A transport ref update as a {@link TrackingRefUpdate}. */
|
|
332
|
+
export declare function toTrackingRefUpdate(update: FetchRefUpdate): TrackingRefUpdate;
|
|
266
333
|
//# sourceMappingURL=fetch-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-command.d.ts","sourceRoot":"","sources":["../../src/commands/fetch-command.ts"],"names":[],"mappings":"
|
|
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,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gGAAgG;YAClF,aAAa;IAW3B;;;;;;OAMG;YACW,gBAAgB;IAS9B;;;;;;;;OAQG;YACW,gBAAgB;IAyD9B,4FAA4F;YAC9E,eAAe;CAc9B;AAED,wDAAwD;AACxD,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CASpD;AAED,6DAA6D;AAC7D,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,iBAAiB,CAsB7E"}
|
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
|