@statewalker/vcs-commands 0.1.1
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/LICENSE +21 -0
- package/README.md +591 -0
- package/dist/commands/add-command.d.ts +170 -0
- package/dist/commands/add-command.d.ts.map +1 -0
- package/dist/commands/blame-command.d.ts +267 -0
- package/dist/commands/blame-command.d.ts.map +1 -0
- package/dist/commands/branch-command.d.ts +211 -0
- package/dist/commands/branch-command.d.ts.map +1 -0
- package/dist/commands/checkout-command.d.ts +261 -0
- package/dist/commands/checkout-command.d.ts.map +1 -0
- package/dist/commands/cherry-pick-command.d.ts +128 -0
- package/dist/commands/cherry-pick-command.d.ts.map +1 -0
- package/dist/commands/clean-command.d.ts +91 -0
- package/dist/commands/clean-command.d.ts.map +1 -0
- package/dist/commands/clone-command.d.ts +233 -0
- package/dist/commands/clone-command.d.ts.map +1 -0
- package/dist/commands/commit-command.d.ts +199 -0
- package/dist/commands/commit-command.d.ts.map +1 -0
- package/dist/commands/describe-command.d.ts +175 -0
- package/dist/commands/describe-command.d.ts.map +1 -0
- package/dist/commands/diff-command.d.ts +96 -0
- package/dist/commands/diff-command.d.ts.map +1 -0
- package/dist/commands/fetch-command.d.ts +266 -0
- package/dist/commands/fetch-command.d.ts.map +1 -0
- package/dist/commands/gc-command.d.ts +83 -0
- package/dist/commands/gc-command.d.ts.map +1 -0
- package/dist/commands/index.d.ts +32 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +2 -0
- package/dist/commands/init-command.d.ts +175 -0
- package/dist/commands/init-command.d.ts.map +1 -0
- package/dist/commands/log-command.d.ts +246 -0
- package/dist/commands/log-command.d.ts.map +1 -0
- package/dist/commands/ls-remote-command.d.ts +122 -0
- package/dist/commands/ls-remote-command.d.ts.map +1 -0
- package/dist/commands/merge-command.d.ts +169 -0
- package/dist/commands/merge-command.d.ts.map +1 -0
- package/dist/commands/pack-refs-command.d.ts +57 -0
- package/dist/commands/pack-refs-command.d.ts.map +1 -0
- package/dist/commands/pull-command.d.ts +111 -0
- package/dist/commands/pull-command.d.ts.map +1 -0
- package/dist/commands/push-command.d.ts +220 -0
- package/dist/commands/push-command.d.ts.map +1 -0
- package/dist/commands/rebase-command.d.ts +186 -0
- package/dist/commands/rebase-command.d.ts.map +1 -0
- package/dist/commands/reflog-command.d.ts +45 -0
- package/dist/commands/reflog-command.d.ts.map +1 -0
- package/dist/commands/remote-command.d.ts +205 -0
- package/dist/commands/remote-command.d.ts.map +1 -0
- package/dist/commands/reset-command.d.ts +114 -0
- package/dist/commands/reset-command.d.ts.map +1 -0
- package/dist/commands/revert-command.d.ts +129 -0
- package/dist/commands/revert-command.d.ts.map +1 -0
- package/dist/commands/rm-command.d.ts +72 -0
- package/dist/commands/rm-command.d.ts.map +1 -0
- package/dist/commands/stash-apply-command.d.ts +132 -0
- package/dist/commands/stash-apply-command.d.ts.map +1 -0
- package/dist/commands/stash-create-command.d.ts +137 -0
- package/dist/commands/stash-create-command.d.ts.map +1 -0
- package/dist/commands/stash-drop-command.d.ts +63 -0
- package/dist/commands/stash-drop-command.d.ts.map +1 -0
- package/dist/commands/stash-list-command.d.ts +42 -0
- package/dist/commands/stash-list-command.d.ts.map +1 -0
- package/dist/commands/status-command.d.ts +55 -0
- package/dist/commands/status-command.d.ts.map +1 -0
- package/dist/commands/tag-command.d.ts +155 -0
- package/dist/commands/tag-command.d.ts.map +1 -0
- package/dist/commands/tree-restore.d.ts +51 -0
- package/dist/commands/tree-restore.d.ts.map +1 -0
- package/dist/commands-COO4tJhv.js +10274 -0
- package/dist/core-commands/add.command.d.ts +71 -0
- package/dist/core-commands/add.command.d.ts.map +1 -0
- package/dist/core-commands/add.command.impl.d.ts +53 -0
- package/dist/core-commands/add.command.impl.d.ts.map +1 -0
- package/dist/core-commands/checkout.command.d.ts +103 -0
- package/dist/core-commands/checkout.command.d.ts.map +1 -0
- package/dist/core-commands/checkout.command.impl.d.ts +114 -0
- package/dist/core-commands/checkout.command.impl.d.ts.map +1 -0
- package/dist/core-commands/index.d.ts +6 -0
- package/dist/core-commands/index.d.ts.map +1 -0
- package/dist/errors/add-errors.d.ts +16 -0
- package/dist/errors/add-errors.d.ts.map +1 -0
- package/dist/errors/checkout-errors.d.ts +24 -0
- package/dist/errors/checkout-errors.d.ts.map +1 -0
- package/dist/errors/command-errors.d.ts +38 -0
- package/dist/errors/command-errors.d.ts.map +1 -0
- package/dist/errors/commit-errors.d.ts +27 -0
- package/dist/errors/commit-errors.d.ts.map +1 -0
- package/dist/errors/git-api-error.d.ts +9 -0
- package/dist/errors/git-api-error.d.ts.map +1 -0
- package/dist/errors/index.d.ts +13 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +509 -0
- package/dist/errors/merge-errors.d.ts +63 -0
- package/dist/errors/merge-errors.d.ts.map +1 -0
- package/dist/errors/rebase-errors.d.ts +21 -0
- package/dist/errors/rebase-errors.d.ts.map +1 -0
- package/dist/errors/ref-errors.d.ts +63 -0
- package/dist/errors/ref-errors.d.ts.map +1 -0
- package/dist/errors/remote-errors.d.ts +16 -0
- package/dist/errors/remote-errors.d.ts.map +1 -0
- package/dist/errors/stash-errors.d.ts +24 -0
- package/dist/errors/stash-errors.d.ts.map +1 -0
- package/dist/errors/tag-errors.d.ts +11 -0
- package/dist/errors/tag-errors.d.ts.map +1 -0
- package/dist/errors/transport-errors.d.ts +42 -0
- package/dist/errors/transport-errors.d.ts.map +1 -0
- package/dist/git-command.d.ts +139 -0
- package/dist/git-command.d.ts.map +1 -0
- package/dist/git.d.ts +637 -0
- package/dist/git.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/pack-import/index.d.ts +8 -0
- package/dist/pack-import/index.d.ts.map +1 -0
- package/dist/pack-import/pack-import.d.ts +11 -0
- package/dist/pack-import/pack-import.d.ts.map +1 -0
- package/dist/remote-config/index.d.ts +7 -0
- package/dist/remote-config/index.d.ts.map +1 -0
- package/dist/remote-config/remote-config-store.d.ts +93 -0
- package/dist/remote-config/remote-config-store.d.ts.map +1 -0
- package/dist/rename/index.d.ts +5 -0
- package/dist/rename/index.d.ts.map +1 -0
- package/dist/rename/similarity-index.d.ts +64 -0
- package/dist/rename/similarity-index.d.ts.map +1 -0
- package/dist/results/cherry-pick-result.d.ts +33 -0
- package/dist/results/cherry-pick-result.d.ts.map +1 -0
- package/dist/results/clone-result.d.ts +24 -0
- package/dist/results/clone-result.d.ts.map +1 -0
- package/dist/results/diff-entry.d.ts +77 -0
- package/dist/results/diff-entry.d.ts.map +1 -0
- package/dist/results/diff-formatter.d.ts +149 -0
- package/dist/results/diff-formatter.d.ts.map +1 -0
- package/dist/results/fetch-result.d.ts +78 -0
- package/dist/results/fetch-result.d.ts.map +1 -0
- package/dist/results/index.d.ts +14 -0
- package/dist/results/index.d.ts.map +1 -0
- package/dist/results/index.js +247 -0
- package/dist/results/init-result.d.ts +23 -0
- package/dist/results/init-result.d.ts.map +1 -0
- package/dist/results/merge-result.d.ts +117 -0
- package/dist/results/merge-result.d.ts.map +1 -0
- package/dist/results/pull-result.d.ts +24 -0
- package/dist/results/pull-result.d.ts.map +1 -0
- package/dist/results/push-result.d.ts +71 -0
- package/dist/results/push-result.d.ts.map +1 -0
- package/dist/results/rebase-result.d.ts +108 -0
- package/dist/results/rebase-result.d.ts.map +1 -0
- package/dist/results/revert-result.d.ts +33 -0
- package/dist/results/revert-result.d.ts.map +1 -0
- package/dist/results/stash-result.d.ts +48 -0
- package/dist/results/stash-result.d.ts.map +1 -0
- package/dist/results/status-result.d.ts +48 -0
- package/dist/results/status-result.d.ts.map +1 -0
- package/dist/status-result-BwAyxq6R.js +409 -0
- package/dist/transport-command.d.ts +83 -0
- package/dist/transport-command.d.ts.map +1 -0
- package/dist/tree-merge/index.d.ts +8 -0
- package/dist/tree-merge/index.d.ts.map +1 -0
- package/dist/tree-merge/tree-merge.d.ts +41 -0
- package/dist/tree-merge/tree-merge.d.ts.map +1 -0
- package/dist/types.d.ts +64 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Add command interface for staging files.
|
|
3
|
+
*
|
|
4
|
+
* Adds files from the working tree to the staging area (index).
|
|
5
|
+
* Similar to `git add` command.
|
|
6
|
+
*
|
|
7
|
+
* Reference: jgit/org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Options for adding files.
|
|
11
|
+
*/
|
|
12
|
+
export interface AddOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Update only files already tracked in the index.
|
|
15
|
+
* Default: false (add new files too)
|
|
16
|
+
*/
|
|
17
|
+
update?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Also remove deleted files from index.
|
|
20
|
+
* Default: false
|
|
21
|
+
*/
|
|
22
|
+
all?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Only add intent-to-add entries (placeholders).
|
|
25
|
+
* Default: false
|
|
26
|
+
*/
|
|
27
|
+
intentToAdd?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Force adding ignored files.
|
|
30
|
+
* Default: false
|
|
31
|
+
*/
|
|
32
|
+
force?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Progress callback.
|
|
35
|
+
*/
|
|
36
|
+
onProgress?: (path: string, current: number, total: number) => void;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Result of add operation.
|
|
40
|
+
*/
|
|
41
|
+
export interface AddResult {
|
|
42
|
+
/** Paths that were added or updated */
|
|
43
|
+
added: string[];
|
|
44
|
+
/** Paths that were skipped (ignored) */
|
|
45
|
+
skipped: string[];
|
|
46
|
+
/** Paths that were removed (deleted from worktree, all mode) */
|
|
47
|
+
removed: string[];
|
|
48
|
+
/** Total files processed */
|
|
49
|
+
totalProcessed: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Add command interface.
|
|
53
|
+
*/
|
|
54
|
+
export interface Add {
|
|
55
|
+
/**
|
|
56
|
+
* Add files matching patterns to staging area.
|
|
57
|
+
*
|
|
58
|
+
* @param filePatterns File patterns (globs or exact paths)
|
|
59
|
+
* @param options Add options
|
|
60
|
+
* @returns Add result
|
|
61
|
+
*/
|
|
62
|
+
add(filePatterns: string[], options?: AddOptions): Promise<AddResult>;
|
|
63
|
+
/**
|
|
64
|
+
* Add all files in working tree to staging area.
|
|
65
|
+
*
|
|
66
|
+
* @param options Add options
|
|
67
|
+
* @returns Add result
|
|
68
|
+
*/
|
|
69
|
+
addAll(options?: AddOptions): Promise<AddResult>;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=add.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.command.d.ts","sourceRoot":"","sources":["../../src/core-commands/add.command.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,uCAAuC;IACvC,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB,wCAAwC;IACxC,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,gEAAgE;IAChE,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,4BAA4B;IAC5B,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB;;;;;;OAMG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtE;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAClD"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AddCommand - Stages files from working tree to index.
|
|
3
|
+
*
|
|
4
|
+
* Implements `git add` functionality:
|
|
5
|
+
* - Adds new files to index
|
|
6
|
+
* - Updates modified files in index
|
|
7
|
+
* - Optionally removes deleted files (--all mode)
|
|
8
|
+
*
|
|
9
|
+
* Reference: jgit/org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java
|
|
10
|
+
*/
|
|
11
|
+
import { type Blobs } from "@statewalker/vcs-core";
|
|
12
|
+
import { type Staging, type Worktree } from "@statewalker/vcs-working-tree";
|
|
13
|
+
import type { Add, AddOptions, AddResult } from "./add.command.js";
|
|
14
|
+
/**
|
|
15
|
+
* Options for creating an AddCommand.
|
|
16
|
+
*/
|
|
17
|
+
export interface AddCommandOptions {
|
|
18
|
+
/** Working tree iterator */
|
|
19
|
+
worktree: Worktree;
|
|
20
|
+
/** Blob storage for file content */
|
|
21
|
+
blobs: Blobs;
|
|
22
|
+
/** Staging area (index) */
|
|
23
|
+
staging: Staging;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* AddCommand implementation.
|
|
27
|
+
*/
|
|
28
|
+
export declare class AddCommand implements Add {
|
|
29
|
+
private readonly worktree;
|
|
30
|
+
private readonly blobs;
|
|
31
|
+
private readonly staging;
|
|
32
|
+
constructor(options: AddCommandOptions);
|
|
33
|
+
/**
|
|
34
|
+
* Add files matching patterns to staging area.
|
|
35
|
+
*/
|
|
36
|
+
add(filePatterns: string[], options?: AddOptions): Promise<AddResult>;
|
|
37
|
+
/**
|
|
38
|
+
* Add all files in working tree to staging area.
|
|
39
|
+
*/
|
|
40
|
+
addAll(options?: AddOptions): Promise<AddResult>;
|
|
41
|
+
/**
|
|
42
|
+
* Store file content as blob and return object ID.
|
|
43
|
+
*/
|
|
44
|
+
private storeFileContent;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Create an AddCommand.
|
|
48
|
+
*
|
|
49
|
+
* @param options Command options
|
|
50
|
+
* @returns New AddCommand instance
|
|
51
|
+
*/
|
|
52
|
+
export declare function createAddCommand(options: AddCommandOptions): Add;
|
|
53
|
+
//# sourceMappingURL=add.command.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.command.impl.d.ts","sourceRoot":"","sources":["../../src/core-commands/add.command.impl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAEL,KAAK,OAAO,EAEZ,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IAEnB,oCAAoC;IACpC,KAAK,EAAE,KAAK,CAAC;IAEb,2BAA2B;IAC3B,OAAO,EAAE,OAAO,CAAC;CAClB;AAgED;;GAEG;AACH,qBAAa,UAAW,YAAW,GAAG;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAW;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAElC,YAAY,OAAO,EAAE,iBAAiB,EAIrC;IAED;;OAEG;IACG,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,SAAS,CAAC,CAoI9E;IAED;;OAEG;IACG,MAAM,CAAC,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,SAAS,CAAC,CAEzD;IAED;;OAEG;YACW,gBAAgB;CAM/B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,GAAG,GAAG,CAEhE"}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,oCAAoC;IACpC,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,kCAAkC;IAClC,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB,sCAAsC;IACtC,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,qDAAqD;IACrD,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,QAAQ,CAAC;IAEnB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAE7E;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CACpF;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IAEb,0BAA0B;IAC1B,MAAM,EAAE,sBAAsB,CAAC;IAE/B,8DAA8D;IAC9D,YAAY,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;CACrD;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB;IACjC,+CAA+C;aAC/C,cAAc,EAAE,gBAAgB;IAEhC,0CAA0C;aAC1C,qBAAqB,EAAE,uBAAuB;IAE9C,kDAAkD;aAClD,eAAe,EAAE,iBAAiB;IAElC,0CAA0C;aAC1C,mBAAmB,EAAE,qBAAqB;CAClC,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,EAAE,KAAK,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,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAClC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAW;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAElC,YAAY,OAAO,EAAE,sBAAsB,EAQ1C;IAED;;OAEG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,cAAc,CAAC,CA8CrF;IAED;;OAEG;IACG,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,cAAc,CAAC,CA4B3F;IAED;;OAEG;YACW,iBAAiB;IAS/B;;OAEG;YACW,gBAAgB;IA8B9B;;OAEG;YACW,YAAY;IA4E1B;;OAEG;YACW,gBAAgB;IAkB9B;;OAEG;YACW,eAAe;IAY7B;;OAEG;YACW,UAAU;IAQxB;;OAEG;YACW,iBAAiB;IA0B/B;;OAEG;YACW,WAAW;IAwBzB;;OAEG;YACW,aAAa;IA2B3B;;OAEG;YACW,aAAa;IAI3B;;OAEG;YACW,aAAa;IAQ3B;;OAEG;YACW,eAAe;IA6E7B;;OAEG;YACW,YAAY;CAgC3B;AAqBD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,sBAAsB,GAAG,QAAQ,CAE/E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./add.command.impl.js";
|
|
2
|
+
export type { Add, AddOptions } from "./add.command.js";
|
|
3
|
+
export * from "./checkout.command.impl.js";
|
|
4
|
+
export type { Checkout, CheckoutConflict, CheckoutConflictReason, CheckoutOptions, } from "./checkout.command.js";
|
|
5
|
+
export { CheckoutConflictReason as CheckoutConflictReasonValues } from "./checkout.command.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core-commands/index.ts"],"names":[],"mappings":"AAGA,cAAc,uBAAuB,CAAC;AACtC,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,YAAY,EACV,QAAQ,EACR,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Errors for AddCommand operations.
|
|
3
|
+
*
|
|
4
|
+
* Based on JGit's add-related exception classes.
|
|
5
|
+
*/
|
|
6
|
+
import { GitApiError } from "./git-api-error.js";
|
|
7
|
+
/**
|
|
8
|
+
* Thrown when AddCommand is called without file patterns
|
|
9
|
+
* and not in update or all mode.
|
|
10
|
+
*
|
|
11
|
+
* Equivalent to JGit's NoFilepatternException.
|
|
12
|
+
*/
|
|
13
|
+
export declare class NoFilepatternError extends GitApiError {
|
|
14
|
+
constructor(message?: string);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=add-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-errors.d.ts","sourceRoot":"","sources":["../../src/errors/add-errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,YAAY,OAAO,SAA0C,EAG5D;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { GitApiError } from "./git-api-error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Thrown when a path is not found in the index during checkout.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PathNotInIndexError extends GitApiError {
|
|
6
|
+
readonly path: string;
|
|
7
|
+
constructor(path: string, message?: string);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Thrown when a path is not found in the tree during checkout.
|
|
11
|
+
*/
|
|
12
|
+
export declare class PathNotFoundInTreeError extends GitApiError {
|
|
13
|
+
readonly path: string;
|
|
14
|
+
readonly treeish?: string;
|
|
15
|
+
constructor(path: string, treeish?: string, message?: string);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Thrown when a path is expected to be a directory but is not.
|
|
19
|
+
*/
|
|
20
|
+
export declare class NotADirectoryError extends GitApiError {
|
|
21
|
+
readonly path: string;
|
|
22
|
+
constructor(path: string, message?: string);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=checkout-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout-errors.d.ts","sourceRoot":"","sources":["../../src/errors/checkout-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,YAAY,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAIzC;CACF;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,WAAW;IACtD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B,YAAY,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAK3D;CACF;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,YAAY,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAIzC;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { GitApiError } from "./git-api-error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Thrown when a required command argument is missing.
|
|
4
|
+
*/
|
|
5
|
+
export declare class MissingArgumentError extends GitApiError {
|
|
6
|
+
readonly argumentName: string;
|
|
7
|
+
constructor(argumentName: string, message?: string);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Thrown when a command argument has an invalid value.
|
|
11
|
+
*/
|
|
12
|
+
export declare class InvalidArgumentError extends GitApiError {
|
|
13
|
+
readonly argumentName: string;
|
|
14
|
+
readonly value: unknown;
|
|
15
|
+
constructor(argumentName: string, value: unknown, message?: string);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Thrown when incompatible command options are used together.
|
|
19
|
+
*/
|
|
20
|
+
export declare class IncompatibleOptionsError extends GitApiError {
|
|
21
|
+
readonly options: string[];
|
|
22
|
+
constructor(options: string[], message?: string);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Thrown when a feature is not yet implemented.
|
|
26
|
+
*/
|
|
27
|
+
export declare class NotImplementedError extends GitApiError {
|
|
28
|
+
readonly feature: string;
|
|
29
|
+
constructor(feature: string, message?: string);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Thrown when a required store or service is not available.
|
|
33
|
+
*/
|
|
34
|
+
export declare class StoreNotAvailableError extends GitApiError {
|
|
35
|
+
readonly storeName: string;
|
|
36
|
+
constructor(storeName: string, message?: string);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=command-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-errors.d.ts","sourceRoot":"","sources":["../../src/errors/command-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B,YAAY,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAIjD;CACF;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IAExB,YAAY,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,EAKjE;CACF;AAED;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;IACvD,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAE3B,YAAY,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,EAI9C;CACF;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;IAClD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,YAAY,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAI5C;CACF;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,WAAW;IACrD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,YAAY,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAI9C;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GitApiError } from "./git-api-error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Thrown when commit message is missing.
|
|
4
|
+
*
|
|
5
|
+
* Based on JGit's NoMessageException.
|
|
6
|
+
*/
|
|
7
|
+
export declare class NoMessageError extends GitApiError {
|
|
8
|
+
constructor(message?: string);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Thrown when trying to create an empty commit without allow-empty.
|
|
12
|
+
*
|
|
13
|
+
* Based on JGit's EmptyCommitException.
|
|
14
|
+
*/
|
|
15
|
+
export declare class EmptyCommitError extends GitApiError {
|
|
16
|
+
constructor(message?: string);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Thrown when there are unmerged paths that prevent commit.
|
|
20
|
+
*
|
|
21
|
+
* Based on JGit's UnmergedPathsException (internal to commit).
|
|
22
|
+
*/
|
|
23
|
+
export declare class UnmergedPathsError extends GitApiError {
|
|
24
|
+
readonly paths: string[];
|
|
25
|
+
constructor(paths?: string[], message?: string);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=commit-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-errors.d.ts","sourceRoot":"","sources":["../../src/errors/commit-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C,YAAY,OAAO,CAAC,EAAE,MAAM,EAG3B;CACF;AAED;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,YAAY,OAAO,CAAC,EAAE,MAAM,EAG3B;CACF;AAED;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IAEzB,YAAY,KAAK,GAAE,MAAM,EAAO,EAAE,OAAO,CAAC,EAAE,MAAM,EAIjD;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-api-error.d.ts","sourceRoot":"","sources":["../../src/errors/git-api-error.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC,YAAY,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,EAGlD;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./add-errors.js";
|
|
2
|
+
export * from "./checkout-errors.js";
|
|
3
|
+
export * from "./command-errors.js";
|
|
4
|
+
export * from "./commit-errors.js";
|
|
5
|
+
export * from "./git-api-error.js";
|
|
6
|
+
export * from "./merge-errors.js";
|
|
7
|
+
export * from "./rebase-errors.js";
|
|
8
|
+
export * from "./ref-errors.js";
|
|
9
|
+
export * from "./remote-errors.js";
|
|
10
|
+
export * from "./stash-errors.js";
|
|
11
|
+
export * from "./tag-errors.js";
|
|
12
|
+
export * from "./transport-errors.js";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|