@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
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checkout interface for materializing tree contents to filesystem.
|
|
3
|
-
*
|
|
4
|
-
* Supports:
|
|
5
|
-
* - Branch/tag/commit checkout
|
|
6
|
-
* - Path-specific checkout
|
|
7
|
-
* - Conflict detection
|
|
8
|
-
* - Progress reporting
|
|
9
|
-
*
|
|
10
|
-
* Reference: jgit/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java
|
|
11
|
-
*/
|
|
12
|
-
import type { ObjectId } from "@statewalker/vcs-core";
|
|
13
|
-
/**
|
|
14
|
-
* Options for checkout operations.
|
|
15
|
-
*/
|
|
16
|
-
export interface CheckoutOptions {
|
|
17
|
-
/** Force checkout even if working tree has changes */
|
|
18
|
-
force?: boolean;
|
|
19
|
-
/** Create branch at target commit */
|
|
20
|
-
createBranch?: string;
|
|
21
|
-
/** Checkout specific paths only */
|
|
22
|
-
paths?: string[];
|
|
23
|
-
/** Source for path checkout (default: "index") */
|
|
24
|
-
source?: "index" | "head" | ObjectId;
|
|
25
|
-
/** Progress callback */
|
|
26
|
-
onProgress?: (current: number, total: number, path: string) => void;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Result of a checkout operation.
|
|
30
|
-
*/
|
|
31
|
-
export interface CheckoutResult {
|
|
32
|
-
/** Files updated in working tree */
|
|
33
|
-
updated: string[];
|
|
34
|
-
/** Files added to working tree */
|
|
35
|
-
added: string[];
|
|
36
|
-
/** Files removed from working tree */
|
|
37
|
-
removed: string[];
|
|
38
|
-
/** Files that couldn't be checked out (conflicts) */
|
|
39
|
-
conflicts: string[];
|
|
40
|
-
/** New HEAD after checkout */
|
|
41
|
-
newHead?: ObjectId;
|
|
42
|
-
/** New branch name if created */
|
|
43
|
-
newBranch?: string;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Checkout command interface.
|
|
47
|
-
*
|
|
48
|
-
* Materializes tree contents from commits, branches, or tags to the working tree.
|
|
49
|
-
* Handles conflict detection and index updates.
|
|
50
|
-
*/
|
|
51
|
-
export interface Checkout {
|
|
52
|
-
/**
|
|
53
|
-
* Checkout a branch, tag, or commit.
|
|
54
|
-
*
|
|
55
|
-
* If target is a branch name, HEAD becomes a symbolic ref to that branch.
|
|
56
|
-
* If target is a tag or commit, HEAD becomes detached.
|
|
57
|
-
*
|
|
58
|
-
* @param target Branch name, tag name, or commit ID
|
|
59
|
-
* @param options Checkout options
|
|
60
|
-
* @returns Checkout result with lists of affected files
|
|
61
|
-
* @throws Error if target cannot be resolved or conflicts exist (without force)
|
|
62
|
-
*/
|
|
63
|
-
checkout(target: string, options?: CheckoutOptions): Promise<CheckoutResult>;
|
|
64
|
-
/**
|
|
65
|
-
* Checkout specific paths from index or commit.
|
|
66
|
-
*
|
|
67
|
-
* Unlike full checkout, this:
|
|
68
|
-
* - Does not move HEAD
|
|
69
|
-
* - Only updates specified paths
|
|
70
|
-
* - Restores files from index (default) or a specific commit
|
|
71
|
-
*
|
|
72
|
-
* @param paths Paths to checkout
|
|
73
|
-
* @param options Checkout options (source specifies where to get files)
|
|
74
|
-
* @returns Checkout result
|
|
75
|
-
*/
|
|
76
|
-
checkoutPaths(paths: string[], options?: CheckoutOptions): Promise<CheckoutResult>;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Conflict information for a path.
|
|
80
|
-
*/
|
|
81
|
-
export interface CheckoutConflict {
|
|
82
|
-
/** Path with conflict */
|
|
83
|
-
path: string;
|
|
84
|
-
/** Reason for conflict */
|
|
85
|
-
reason: CheckoutConflictReason;
|
|
86
|
-
/** Local changes that would be overwritten (if applicable) */
|
|
87
|
-
localChanges?: "modified" | "deleted" | "untracked";
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Reasons why checkout failed for a path.
|
|
91
|
-
*/
|
|
92
|
-
export declare const CheckoutConflictReason: {
|
|
93
|
-
/** Local modifications would be overwritten */
|
|
94
|
-
readonly LOCAL_MODIFIED: "LOCAL_MODIFIED";
|
|
95
|
-
/** Untracked file would be overwritten */
|
|
96
|
-
readonly UNTRACKED_OVERWRITTEN: "UNTRACKED_OVERWRITTEN";
|
|
97
|
-
/** File deleted locally but modified in target */
|
|
98
|
-
readonly DELETED_LOCALLY: "DELETED_LOCALLY";
|
|
99
|
-
/** Cannot delete directory - not empty */
|
|
100
|
-
readonly DIRECTORY_NOT_EMPTY: "DIRECTORY_NOT_EMPTY";
|
|
101
|
-
};
|
|
102
|
-
export type CheckoutConflictReason = (typeof CheckoutConflictReason)[keyof typeof CheckoutConflictReason];
|
|
103
|
-
//# sourceMappingURL=checkout.command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.command.d.ts","sourceRoot":"","sources":["../../src/core-commands/checkout.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,sDAAsD;IACtD,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,kDAAkD;IAClD,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IAErC,wBAAwB;IACxB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAA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C"}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CheckoutCommand - Materializes tree contents to filesystem.
|
|
3
|
-
*
|
|
4
|
-
* Implements the Checkout interface to:
|
|
5
|
-
* - Checkout branches, tags, or commits
|
|
6
|
-
* - Checkout specific paths from index or commits
|
|
7
|
-
* - Detect and report conflicts
|
|
8
|
-
* - Update HEAD and index after checkout
|
|
9
|
-
*
|
|
10
|
-
* Reference: jgit/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java
|
|
11
|
-
*/
|
|
12
|
-
import { type Blobs, type Commits, type FilesApi, type RefStore, type Trees } from "@statewalker/vcs-core";
|
|
13
|
-
import type { Staging } from "@statewalker/vcs-working-tree";
|
|
14
|
-
import type { Checkout, CheckoutOptions, CheckoutResult } from "./checkout.command.js";
|
|
15
|
-
/**
|
|
16
|
-
* Options for creating a CheckoutCommand.
|
|
17
|
-
*/
|
|
18
|
-
export interface CheckoutCommandOptions {
|
|
19
|
-
/** FilesApi for filesystem operations */
|
|
20
|
-
files: FilesApi;
|
|
21
|
-
/** Working tree root path */
|
|
22
|
-
workTreeRoot: string;
|
|
23
|
-
/** Blob storage for loading file content */
|
|
24
|
-
blobs: Blobs;
|
|
25
|
-
/** Tree storage for loading tree entries */
|
|
26
|
-
trees: Trees;
|
|
27
|
-
/** Commit storage for resolving commits */
|
|
28
|
-
commits: Commits;
|
|
29
|
-
/** Reference storage for resolving refs and updating HEAD */
|
|
30
|
-
refs: RefStore;
|
|
31
|
-
/** Staging area (index) for updating after checkout */
|
|
32
|
-
staging: Staging;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* CheckoutCommand implementation.
|
|
36
|
-
*/
|
|
37
|
-
export declare class CheckoutCommand implements Checkout {
|
|
38
|
-
private readonly files;
|
|
39
|
-
private readonly workTreeRoot;
|
|
40
|
-
private readonly blobs;
|
|
41
|
-
private readonly trees;
|
|
42
|
-
private readonly commits;
|
|
43
|
-
private readonly refs;
|
|
44
|
-
private readonly staging;
|
|
45
|
-
constructor(options: CheckoutCommandOptions);
|
|
46
|
-
/**
|
|
47
|
-
* Checkout a branch, tag, or commit.
|
|
48
|
-
*/
|
|
49
|
-
checkout(target: string, options?: CheckoutOptions): Promise<CheckoutResult>;
|
|
50
|
-
/**
|
|
51
|
-
* Checkout specific paths from index or commit.
|
|
52
|
-
*/
|
|
53
|
-
checkoutPaths(paths: string[], options?: CheckoutOptions): Promise<CheckoutResult>;
|
|
54
|
-
/**
|
|
55
|
-
* Checkout a path from the index.
|
|
56
|
-
*/
|
|
57
|
-
private checkoutFromIndex;
|
|
58
|
-
/**
|
|
59
|
-
* Checkout a path from a tree.
|
|
60
|
-
*/
|
|
61
|
-
private checkoutFromTree;
|
|
62
|
-
/**
|
|
63
|
-
* Checkout an entire tree to the working directory.
|
|
64
|
-
*/
|
|
65
|
-
private checkoutTree;
|
|
66
|
-
/**
|
|
67
|
-
* Write file content to working tree.
|
|
68
|
-
*/
|
|
69
|
-
private writeFileContent;
|
|
70
|
-
/**
|
|
71
|
-
* Load blob content as Uint8Array.
|
|
72
|
-
*/
|
|
73
|
-
private loadBlobContent;
|
|
74
|
-
/**
|
|
75
|
-
* Remove file from working tree.
|
|
76
|
-
*/
|
|
77
|
-
private removeFile;
|
|
78
|
-
/**
|
|
79
|
-
* Remove empty parent directories.
|
|
80
|
-
*/
|
|
81
|
-
private cleanEmptyParents;
|
|
82
|
-
/**
|
|
83
|
-
* Flatten a tree into a map of path -> entry.
|
|
84
|
-
*/
|
|
85
|
-
private flattenTree;
|
|
86
|
-
/**
|
|
87
|
-
* Resolve target to commit ID.
|
|
88
|
-
*/
|
|
89
|
-
private resolveTarget;
|
|
90
|
-
/**
|
|
91
|
-
* Check if name is a local branch.
|
|
92
|
-
*/
|
|
93
|
-
private isLocalBranch;
|
|
94
|
-
/**
|
|
95
|
-
* Get HEAD's tree ID.
|
|
96
|
-
*/
|
|
97
|
-
private getHeadTreeId;
|
|
98
|
-
/**
|
|
99
|
-
* Detect conflicts - files that would be overwritten.
|
|
100
|
-
*/
|
|
101
|
-
private detectConflicts;
|
|
102
|
-
/**
|
|
103
|
-
* Rebuild index from tree.
|
|
104
|
-
*/
|
|
105
|
-
private rebuildIndex;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Create a CheckoutCommand.
|
|
109
|
-
*
|
|
110
|
-
* @param options Command options
|
|
111
|
-
* @returns New CheckoutCommand instance
|
|
112
|
-
*/
|
|
113
|
-
export declare function createCheckoutCommand(options: CheckoutCommandOptions): Checkout;
|
|
114
|
-
//# sourceMappingURL=checkout.command.impl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.command.impl.d.ts","sourceRoot":"","sources":["../../src/core-commands/checkout.command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,KAAK,KAAK,EACV,KAAK,OAAO,EAEZ,KAAK,QAAQ,EAGb,KAAK,QAAQ,EAEb,KAAK,KAAK,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAUvF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,yCAAyC;IACzC,KAAK,EAAE,QAAQ,CAAC;IAEhB,6BAA6B;IAC7B,YAAY,EAAE,MAAM,CAAC;IAErB,4CAA4C;IAC5C,KAAK,EAAE,KAAK,CAAC;IAEb,4CAA4C;IAC5C,KAAK,EAAE,KAAK,CAAC;IAEb,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IAEjB,6DAA6D;IAC7D,IAAI,EAAE,QAAQ,CAAC;IAEf,uDAAuD;IACvD,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,qBAAa,eAAgB,YAAW,QAAQ;IAC9C,OAAO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@statewalker/vcs-core";
|
|
2
|
-
/**
|
|
3
|
-
* Unpack pack data into a history's object stores.
|
|
4
|
-
*
|
|
5
|
-
* Uses the history's own {@link SerializationApi} when it exposes one
|
|
6
|
-
* (a `HistoryWithOperations`), otherwise builds a default one over its
|
|
7
|
-
* object stores — `WorkingCopy.history` is typed as a plain `History`,
|
|
8
|
-
* so `serialization` is not statically available.
|
|
9
|
-
*/
|
|
10
|
-
export declare function importPackIntoHistory(history: History, packData: Uint8Array): Promise<void>;
|
|
11
|
-
//# sourceMappingURL=pack-import.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pack-import.d.ts","sourceRoot":"","sources":["../../src/pack-import/pack-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAyB,MAAM,uBAAuB,CAAC;AAK5E;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAUjG"}
|