@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.
Files changed (165) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +591 -0
  3. package/dist/commands/add-command.d.ts +170 -0
  4. package/dist/commands/add-command.d.ts.map +1 -0
  5. package/dist/commands/blame-command.d.ts +267 -0
  6. package/dist/commands/blame-command.d.ts.map +1 -0
  7. package/dist/commands/branch-command.d.ts +211 -0
  8. package/dist/commands/branch-command.d.ts.map +1 -0
  9. package/dist/commands/checkout-command.d.ts +261 -0
  10. package/dist/commands/checkout-command.d.ts.map +1 -0
  11. package/dist/commands/cherry-pick-command.d.ts +128 -0
  12. package/dist/commands/cherry-pick-command.d.ts.map +1 -0
  13. package/dist/commands/clean-command.d.ts +91 -0
  14. package/dist/commands/clean-command.d.ts.map +1 -0
  15. package/dist/commands/clone-command.d.ts +233 -0
  16. package/dist/commands/clone-command.d.ts.map +1 -0
  17. package/dist/commands/commit-command.d.ts +199 -0
  18. package/dist/commands/commit-command.d.ts.map +1 -0
  19. package/dist/commands/describe-command.d.ts +175 -0
  20. package/dist/commands/describe-command.d.ts.map +1 -0
  21. package/dist/commands/diff-command.d.ts +96 -0
  22. package/dist/commands/diff-command.d.ts.map +1 -0
  23. package/dist/commands/fetch-command.d.ts +266 -0
  24. package/dist/commands/fetch-command.d.ts.map +1 -0
  25. package/dist/commands/gc-command.d.ts +83 -0
  26. package/dist/commands/gc-command.d.ts.map +1 -0
  27. package/dist/commands/index.d.ts +32 -0
  28. package/dist/commands/index.d.ts.map +1 -0
  29. package/dist/commands/index.js +2 -0
  30. package/dist/commands/init-command.d.ts +175 -0
  31. package/dist/commands/init-command.d.ts.map +1 -0
  32. package/dist/commands/log-command.d.ts +246 -0
  33. package/dist/commands/log-command.d.ts.map +1 -0
  34. package/dist/commands/ls-remote-command.d.ts +122 -0
  35. package/dist/commands/ls-remote-command.d.ts.map +1 -0
  36. package/dist/commands/merge-command.d.ts +169 -0
  37. package/dist/commands/merge-command.d.ts.map +1 -0
  38. package/dist/commands/pack-refs-command.d.ts +57 -0
  39. package/dist/commands/pack-refs-command.d.ts.map +1 -0
  40. package/dist/commands/pull-command.d.ts +111 -0
  41. package/dist/commands/pull-command.d.ts.map +1 -0
  42. package/dist/commands/push-command.d.ts +220 -0
  43. package/dist/commands/push-command.d.ts.map +1 -0
  44. package/dist/commands/rebase-command.d.ts +186 -0
  45. package/dist/commands/rebase-command.d.ts.map +1 -0
  46. package/dist/commands/reflog-command.d.ts +45 -0
  47. package/dist/commands/reflog-command.d.ts.map +1 -0
  48. package/dist/commands/remote-command.d.ts +205 -0
  49. package/dist/commands/remote-command.d.ts.map +1 -0
  50. package/dist/commands/reset-command.d.ts +114 -0
  51. package/dist/commands/reset-command.d.ts.map +1 -0
  52. package/dist/commands/revert-command.d.ts +129 -0
  53. package/dist/commands/revert-command.d.ts.map +1 -0
  54. package/dist/commands/rm-command.d.ts +72 -0
  55. package/dist/commands/rm-command.d.ts.map +1 -0
  56. package/dist/commands/stash-apply-command.d.ts +132 -0
  57. package/dist/commands/stash-apply-command.d.ts.map +1 -0
  58. package/dist/commands/stash-create-command.d.ts +137 -0
  59. package/dist/commands/stash-create-command.d.ts.map +1 -0
  60. package/dist/commands/stash-drop-command.d.ts +63 -0
  61. package/dist/commands/stash-drop-command.d.ts.map +1 -0
  62. package/dist/commands/stash-list-command.d.ts +42 -0
  63. package/dist/commands/stash-list-command.d.ts.map +1 -0
  64. package/dist/commands/status-command.d.ts +55 -0
  65. package/dist/commands/status-command.d.ts.map +1 -0
  66. package/dist/commands/tag-command.d.ts +155 -0
  67. package/dist/commands/tag-command.d.ts.map +1 -0
  68. package/dist/commands/tree-restore.d.ts +51 -0
  69. package/dist/commands/tree-restore.d.ts.map +1 -0
  70. package/dist/commands-COO4tJhv.js +10274 -0
  71. package/dist/core-commands/add.command.d.ts +71 -0
  72. package/dist/core-commands/add.command.d.ts.map +1 -0
  73. package/dist/core-commands/add.command.impl.d.ts +53 -0
  74. package/dist/core-commands/add.command.impl.d.ts.map +1 -0
  75. package/dist/core-commands/checkout.command.d.ts +103 -0
  76. package/dist/core-commands/checkout.command.d.ts.map +1 -0
  77. package/dist/core-commands/checkout.command.impl.d.ts +114 -0
  78. package/dist/core-commands/checkout.command.impl.d.ts.map +1 -0
  79. package/dist/core-commands/index.d.ts +6 -0
  80. package/dist/core-commands/index.d.ts.map +1 -0
  81. package/dist/errors/add-errors.d.ts +16 -0
  82. package/dist/errors/add-errors.d.ts.map +1 -0
  83. package/dist/errors/checkout-errors.d.ts +24 -0
  84. package/dist/errors/checkout-errors.d.ts.map +1 -0
  85. package/dist/errors/command-errors.d.ts +38 -0
  86. package/dist/errors/command-errors.d.ts.map +1 -0
  87. package/dist/errors/commit-errors.d.ts +27 -0
  88. package/dist/errors/commit-errors.d.ts.map +1 -0
  89. package/dist/errors/git-api-error.d.ts +9 -0
  90. package/dist/errors/git-api-error.d.ts.map +1 -0
  91. package/dist/errors/index.d.ts +13 -0
  92. package/dist/errors/index.d.ts.map +1 -0
  93. package/dist/errors/index.js +509 -0
  94. package/dist/errors/merge-errors.d.ts +63 -0
  95. package/dist/errors/merge-errors.d.ts.map +1 -0
  96. package/dist/errors/rebase-errors.d.ts +21 -0
  97. package/dist/errors/rebase-errors.d.ts.map +1 -0
  98. package/dist/errors/ref-errors.d.ts +63 -0
  99. package/dist/errors/ref-errors.d.ts.map +1 -0
  100. package/dist/errors/remote-errors.d.ts +16 -0
  101. package/dist/errors/remote-errors.d.ts.map +1 -0
  102. package/dist/errors/stash-errors.d.ts +24 -0
  103. package/dist/errors/stash-errors.d.ts.map +1 -0
  104. package/dist/errors/tag-errors.d.ts +11 -0
  105. package/dist/errors/tag-errors.d.ts.map +1 -0
  106. package/dist/errors/transport-errors.d.ts +42 -0
  107. package/dist/errors/transport-errors.d.ts.map +1 -0
  108. package/dist/git-command.d.ts +139 -0
  109. package/dist/git-command.d.ts.map +1 -0
  110. package/dist/git.d.ts +637 -0
  111. package/dist/git.d.ts.map +1 -0
  112. package/dist/index.d.ts +8 -0
  113. package/dist/index.d.ts.map +1 -0
  114. package/dist/index.js +5 -0
  115. package/dist/pack-import/index.d.ts +8 -0
  116. package/dist/pack-import/index.d.ts.map +1 -0
  117. package/dist/pack-import/pack-import.d.ts +11 -0
  118. package/dist/pack-import/pack-import.d.ts.map +1 -0
  119. package/dist/remote-config/index.d.ts +7 -0
  120. package/dist/remote-config/index.d.ts.map +1 -0
  121. package/dist/remote-config/remote-config-store.d.ts +93 -0
  122. package/dist/remote-config/remote-config-store.d.ts.map +1 -0
  123. package/dist/rename/index.d.ts +5 -0
  124. package/dist/rename/index.d.ts.map +1 -0
  125. package/dist/rename/similarity-index.d.ts +64 -0
  126. package/dist/rename/similarity-index.d.ts.map +1 -0
  127. package/dist/results/cherry-pick-result.d.ts +33 -0
  128. package/dist/results/cherry-pick-result.d.ts.map +1 -0
  129. package/dist/results/clone-result.d.ts +24 -0
  130. package/dist/results/clone-result.d.ts.map +1 -0
  131. package/dist/results/diff-entry.d.ts +77 -0
  132. package/dist/results/diff-entry.d.ts.map +1 -0
  133. package/dist/results/diff-formatter.d.ts +149 -0
  134. package/dist/results/diff-formatter.d.ts.map +1 -0
  135. package/dist/results/fetch-result.d.ts +78 -0
  136. package/dist/results/fetch-result.d.ts.map +1 -0
  137. package/dist/results/index.d.ts +14 -0
  138. package/dist/results/index.d.ts.map +1 -0
  139. package/dist/results/index.js +247 -0
  140. package/dist/results/init-result.d.ts +23 -0
  141. package/dist/results/init-result.d.ts.map +1 -0
  142. package/dist/results/merge-result.d.ts +117 -0
  143. package/dist/results/merge-result.d.ts.map +1 -0
  144. package/dist/results/pull-result.d.ts +24 -0
  145. package/dist/results/pull-result.d.ts.map +1 -0
  146. package/dist/results/push-result.d.ts +71 -0
  147. package/dist/results/push-result.d.ts.map +1 -0
  148. package/dist/results/rebase-result.d.ts +108 -0
  149. package/dist/results/rebase-result.d.ts.map +1 -0
  150. package/dist/results/revert-result.d.ts +33 -0
  151. package/dist/results/revert-result.d.ts.map +1 -0
  152. package/dist/results/stash-result.d.ts +48 -0
  153. package/dist/results/stash-result.d.ts.map +1 -0
  154. package/dist/results/status-result.d.ts +48 -0
  155. package/dist/results/status-result.d.ts.map +1 -0
  156. package/dist/status-result-BwAyxq6R.js +409 -0
  157. package/dist/transport-command.d.ts +83 -0
  158. package/dist/transport-command.d.ts.map +1 -0
  159. package/dist/tree-merge/index.d.ts +8 -0
  160. package/dist/tree-merge/index.d.ts.map +1 -0
  161. package/dist/tree-merge/tree-merge.d.ts +41 -0
  162. package/dist/tree-merge/tree-merge.d.ts.map +1 -0
  163. package/dist/types.d.ts +64 -0
  164. package/dist/types.d.ts.map +1 -0
  165. package/package.json +62 -0
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Remote configuration plumbing shared by the remote-facing commands.
3
+ *
4
+ * Internal: not re-exported from `src/index.ts`.
5
+ */
6
+ export { defaultFetchRefspec, listRemoteNames, type RemoteConfig, RemoteConfigStore, } from "./remote-config-store.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/remote-config/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,KAAK,YAAY,EACjB,iBAAiB,GAClB,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Reading and writing the `[remote "<name>"]` sections of a working copy's
3
+ * configuration.
4
+ *
5
+ * Internal to the package: the remote/fetch/push/ls-remote commands share it,
6
+ * the public API does not expose it. Only {@link RemoteConfig} is public, and
7
+ * it is re-exported from `commands/remote-command.ts`.
8
+ */
9
+ import type { WorkingCopy } from "@statewalker/vcs-working-tree";
10
+ /**
11
+ * Remote configuration entry.
12
+ *
13
+ * Based on JGit's RemoteConfig.
14
+ */
15
+ export interface RemoteConfig {
16
+ /** Remote name */
17
+ name: string;
18
+ /** Fetch URLs */
19
+ urls: string[];
20
+ /** Push URLs (defaults to fetch URLs if not set) */
21
+ pushUrls: string[];
22
+ /** Fetch refspecs */
23
+ fetchRefspecs: string[];
24
+ /** Push refspecs */
25
+ pushRefspecs: string[];
26
+ }
27
+ /** The default fetch refspec `git remote add` writes for a remote. */
28
+ export declare function defaultFetchRefspec(name: string): string;
29
+ /**
30
+ * The `[remote "<name>"]` sections of a working copy's configuration.
31
+ *
32
+ * Reading a remote is a **union** of two sources, and stays that way: the
33
+ * config sections, plus every name that appears under `refs/remotes/`. A
34
+ * remote that was fetched into tracking refs without ever being configured is
35
+ * a real remote to `git remote`, and so it is here — it simply has no URL.
36
+ */
37
+ export declare class RemoteConfigStore {
38
+ private readonly config;
39
+ private constructor();
40
+ /**
41
+ * Wrap a working copy's configuration.
42
+ *
43
+ * A config that implements the git-config methods is used directly, so
44
+ * changes reach its backing file; anything else is driven as a plain bag.
45
+ */
46
+ static from(workingCopy: WorkingCopy): RemoteConfigStore;
47
+ /** Remote names that have a config section. */
48
+ configuredNames(): string[];
49
+ /** Whether the remote has a config section. */
50
+ isConfigured(name: string): boolean;
51
+ /**
52
+ * Read a remote, filling in the default fetch refspec when none is
53
+ * configured, exactly as `git remote` reports one.
54
+ */
55
+ read(name: string): RemoteConfig;
56
+ /** Write every field of a remote, replacing whatever was there. */
57
+ write(remote: RemoteConfig): void;
58
+ /** Drop the whole `[remote "<name>"]` section. */
59
+ remove(name: string): void;
60
+ /**
61
+ * Point a remote at a URL.
62
+ *
63
+ * @param push Write `pushurl` instead of `url`
64
+ * @param oldUrl Replace only this URL, as `git remote set-url <name> <new> <old>` does
65
+ * @throws InvalidArgumentError if `oldUrl` is not among the configured URLs
66
+ */
67
+ setUrl(name: string, url: string, options?: {
68
+ push?: boolean;
69
+ oldUrl?: string;
70
+ }): void;
71
+ /**
72
+ * The URL to talk to a remote over, or undefined when it has none.
73
+ *
74
+ * @param push Prefer `pushurl`, falling back to `url`, as git does
75
+ */
76
+ urlFor(name: string, options?: {
77
+ push?: boolean;
78
+ }): string | undefined;
79
+ /** Flush to the backing file, if the config has one. */
80
+ save(): Promise<void>;
81
+ private strings;
82
+ private setAll;
83
+ }
84
+ /**
85
+ * Every remote name known to the repository: config sections ∪ the names
86
+ * appearing under `refs/remotes/`.
87
+ */
88
+ export declare function listRemoteNames(store: RemoteConfigStore, refs: {
89
+ list(prefix: string): AsyncIterable<{
90
+ name: string;
91
+ }>;
92
+ }): Promise<string[]>;
93
+ //# sourceMappingURL=remote-config-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-config-store.d.ts","sourceRoot":"","sources":["../../src/remote-config/remote-config-store.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAqB,MAAM,+BAA+B,CAAC;AAIpF;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB;IACjB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,oDAAoD;IACpD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,qBAAqB;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,oBAAoB;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,sEAAsE;AACtE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAmHD;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IACR,OAAO,CAAC,QAAQ,CAAC,MAAM;IAA3C,OAAO,eAAuD;IAE9D;;;;;OAKG;IACH,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,iBAAiB,CAIvD;IAED,+CAA+C;IAC/C,eAAe,IAAI,MAAM,EAAE,CAE1B;IAED,+CAA+C;IAC/C,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAElC;IAED;;;OAGG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAS/B;IAED,mEAAmE;IACnE,KAAK,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAKhC;IAED,kDAAkD;IAClD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAEzB;IAED;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,IAAI,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,IAAI,CAezF;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,MAAM,GAAG,SAAS,CAMzE;IAED,wDAAwD;IAClD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1B;IAED,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,MAAM;CASf;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,iBAAiB,EACxB,IAAI,EAAE;IAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,GAC9D,OAAO,CAAC,MAAM,EAAE,CAAC,CAOnB"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Rename detection utilities for Git commands.
3
+ */
4
+ export { DEFAULT_RENAME_SCORE, MAX_SCORE, SimilarityIndex } from "./similarity-index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rename/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * SimilarityIndex - computes content similarity between files
3
+ *
4
+ * Based on JGit's SimilarityIndex.java
5
+ *
6
+ * Hashes lines/blocks of content to create a fingerprint that can be
7
+ * efficiently compared with other files. Used for rename detection.
8
+ */
9
+ /**
10
+ * Maximum score (100% match)
11
+ */
12
+ export declare const MAX_SCORE = 100;
13
+ /**
14
+ * Default rename threshold (50% similarity)
15
+ */
16
+ export declare const DEFAULT_RENAME_SCORE = 50;
17
+ /**
18
+ * Index structure for computing content similarity.
19
+ *
20
+ * Hash-based approach: each line/block is hashed and counts are maintained.
21
+ * Similarity is computed by finding common hashes between two files.
22
+ */
23
+ export declare class SimilarityIndex {
24
+ /** Total bytes hashed */
25
+ private hashedCnt;
26
+ /** Hash table entries, sorted by key for efficient comparison */
27
+ private entries;
28
+ /** Lookup map during hashing (key -> index in entries) */
29
+ private hashMap;
30
+ /**
31
+ * Create a SimilarityIndex from content bytes.
32
+ */
33
+ static create(content: Uint8Array): SimilarityIndex;
34
+ /**
35
+ * Check if content is binary (contains NUL bytes in first 8000 bytes)
36
+ */
37
+ static isBinary(content: Uint8Array): boolean;
38
+ /**
39
+ * Hash the content.
40
+ */
41
+ hash(content: Uint8Array): void;
42
+ /**
43
+ * Sort entries by key for efficient comparison.
44
+ */
45
+ sort(): void;
46
+ /**
47
+ * Compute similarity score between this index and another.
48
+ *
49
+ * @param other The other index to compare with
50
+ * @param maxScore Maximum score (default 100)
51
+ * @returns Similarity score from 0 to maxScore
52
+ */
53
+ score(other: SimilarityIndex, maxScore?: number): number;
54
+ /**
55
+ * Count common bytes between this index and another.
56
+ * Both indices must be sorted.
57
+ */
58
+ private common;
59
+ /**
60
+ * Add a hash with count to the table.
61
+ */
62
+ private add;
63
+ }
64
+ //# sourceMappingURL=similarity-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"similarity-index.d.ts","sourceRoot":"","sources":["../../src/rename/similarity-index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;GAEG;AACH,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAWvC;;;;;GAKG;AACH,qBAAa,eAAe;IAC1B,yBAAyB;IACzB,OAAO,CAAC,SAAS,CAAK;IAEtB,iEAAiE;IACjE,OAAO,CAAC,OAAO,CAAmB;IAElC,0DAA0D;IAC1D,OAAO,CAAC,OAAO,CAA6B;IAE5C;;OAEG;IACH,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,GAAG,eAAe,CAKlD;IAED;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAE5C;IAED;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAqC9B;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,CAIX;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,GAAE,MAAkB,GAAG,MAAM,CAMlE;IAED;;;OAGG;IACH,OAAO,CAAC,MAAM;IAiCd;;OAEG;IACH,OAAO,CAAC,GAAG;CAeZ"}
@@ -0,0 +1,33 @@
1
+ import type { ObjectId } from "@statewalker/vcs-core";
2
+ import type { MergeFailureReason } from "../errors/merge-errors.js";
3
+ /**
4
+ * Status of a cherry-pick operation.
5
+ *
6
+ * Based on JGit's CherryPickResult.CherryPickStatus.
7
+ */
8
+ export declare enum CherryPickStatus {
9
+ /** Cherry-pick completed successfully */
10
+ OK = "ok",
11
+ /** Cherry-pick failed due to conflicts */
12
+ CONFLICTING = "conflicting",
13
+ /** Cherry-pick failed (preconditions not met) */
14
+ FAILED = "failed"
15
+ }
16
+ /**
17
+ * Result of a cherry-pick operation.
18
+ *
19
+ * Based on JGit's CherryPickResult.
20
+ */
21
+ export interface CherryPickResult {
22
+ /** Status of the cherry-pick operation */
23
+ readonly status: CherryPickStatus;
24
+ /** New HEAD commit after cherry-pick (if successful) */
25
+ readonly newHead?: ObjectId;
26
+ /** Cherry-picked commits (for OK status) */
27
+ readonly cherryPickedRefs: ObjectId[];
28
+ /** Paths with conflicts (for CONFLICTING status) */
29
+ readonly conflicts?: string[];
30
+ /** Paths that failed (for FAILED status) */
31
+ readonly failingPaths?: Map<string, MergeFailureReason>;
32
+ }
33
+ //# sourceMappingURL=cherry-pick-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cherry-pick-result.d.ts","sourceRoot":"","sources":["../../src/results/cherry-pick-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;GAIG;AACH,oBAAY,gBAAgB;IAC1B,yCAAyC;IACzC,EAAE,OAAO;IACT,0CAA0C;IAC1C,WAAW,gBAAgB;IAC3B,iDAAiD;IACjD,MAAM,WAAW;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,wDAAwD;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAC5B,4CAA4C;IAC5C,QAAQ,CAAC,gBAAgB,EAAE,QAAQ,EAAE,CAAC;IACtC,oDAAoD;IACpD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,4CAA4C;IAC5C,QAAQ,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;CACzD"}
@@ -0,0 +1,24 @@
1
+ import type { ObjectId } from "@statewalker/vcs-core";
2
+ import type { FetchResult } from "./fetch-result.js";
3
+ /**
4
+ * Result of a clone operation.
5
+ *
6
+ * Based on JGit's CloneCommand result (returns Git instance).
7
+ */
8
+ export interface CloneResult {
9
+ /** The fetch result containing refs and pack data */
10
+ fetchResult: FetchResult;
11
+ /**
12
+ * Default branch that was checked out, as a bare branch name (`main`), so
13
+ * it can be handed straight to a branch or checkout command. The advertised
14
+ * form is on {@link FetchResult.defaultBranch}.
15
+ */
16
+ defaultBranch: string;
17
+ /** Remote name used (typically "origin") */
18
+ remoteName: string;
19
+ /** Whether this was a bare clone */
20
+ bare: boolean;
21
+ /** Head commit after clone */
22
+ headCommit?: ObjectId;
23
+ }
24
+ //# sourceMappingURL=clone-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone-result.d.ts","sourceRoot":"","sources":["../../src/results/clone-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,qDAAqD;IACrD,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,8BAA8B;IAC9B,UAAU,CAAC,EAAE,QAAQ,CAAC;CACvB"}
@@ -0,0 +1,77 @@
1
+ import type { FileModeValue, ObjectId } from "@statewalker/vcs-core";
2
+ /**
3
+ * Type of change in a diff entry.
4
+ */
5
+ export declare enum ChangeType {
6
+ /** File was added */
7
+ ADD = "ADD",
8
+ /** File was modified */
9
+ MODIFY = "MODIFY",
10
+ /** File was deleted */
11
+ DELETE = "DELETE",
12
+ /** File was renamed */
13
+ RENAME = "RENAME",
14
+ /** File was copied */
15
+ COPY = "COPY"
16
+ }
17
+ /**
18
+ * Represents a change to a single file between two trees/commits.
19
+ *
20
+ * Based on JGit's DiffEntry class.
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * for (const entry of diffEntries) {
25
+ * switch (entry.changeType) {
26
+ * case ChangeType.ADD:
27
+ * console.log(`Added: ${entry.newPath}`);
28
+ * break;
29
+ * case ChangeType.DELETE:
30
+ * console.log(`Deleted: ${entry.oldPath}`);
31
+ * break;
32
+ * case ChangeType.MODIFY:
33
+ * console.log(`Modified: ${entry.newPath}`);
34
+ * break;
35
+ * }
36
+ * }
37
+ * ```
38
+ */
39
+ export interface DiffEntry {
40
+ /** Type of change */
41
+ changeType: ChangeType;
42
+ /** Path in the old tree (null for ADD) */
43
+ oldPath?: string;
44
+ /** Path in the new tree (null for DELETE) */
45
+ newPath?: string;
46
+ /** Object ID in the old tree (null for ADD) */
47
+ oldId?: ObjectId;
48
+ /** Object ID in the new tree (null for DELETE) */
49
+ newId?: ObjectId;
50
+ /** File mode in the old tree (null for ADD) */
51
+ oldMode?: FileModeValue;
52
+ /** File mode in the new tree (null for DELETE) */
53
+ newMode?: FileModeValue;
54
+ /** Similarity score for RENAME/COPY (0-100) */
55
+ score?: number;
56
+ }
57
+ /**
58
+ * Create a DiffEntry for an added file.
59
+ */
60
+ export declare function createAddEntry(path: string, id: ObjectId, mode: FileModeValue): DiffEntry;
61
+ /**
62
+ * Create a DiffEntry for a deleted file.
63
+ */
64
+ export declare function createDeleteEntry(path: string, id: ObjectId, mode: FileModeValue): DiffEntry;
65
+ /**
66
+ * Create a DiffEntry for a modified file.
67
+ */
68
+ export declare function createModifyEntry(path: string, oldId: ObjectId, newId: ObjectId, oldMode: FileModeValue, newMode: FileModeValue): DiffEntry;
69
+ /**
70
+ * Create a DiffEntry for a renamed file.
71
+ */
72
+ export declare function createRenameEntry(oldPath: string, newPath: string, oldId: ObjectId, newId: ObjectId, oldMode: FileModeValue, newMode: FileModeValue, score: number): DiffEntry;
73
+ /**
74
+ * Create a DiffEntry for a copied file.
75
+ */
76
+ export declare function createCopyEntry(oldPath: string, newPath: string, oldId: ObjectId, newId: ObjectId, oldMode: FileModeValue, newMode: FileModeValue, score: number): DiffEntry;
77
+ //# sourceMappingURL=diff-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diff-entry.d.ts","sourceRoot":"","sources":["../../src/results/diff-entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAErE;;GAEG;AACH,oBAAY,UAAU;IACpB,qBAAqB;IACrB,GAAG,QAAQ;IAEX,wBAAwB;IACxB,MAAM,WAAW;IAEjB,uBAAuB;IACvB,MAAM,WAAW;IAEjB,uBAAuB;IACvB,MAAM,WAAW;IAEjB,sBAAsB;IACtB,IAAI,SAAS;CACd;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,SAAS;IACxB,qBAAqB;IACrB,UAAU,EAAE,UAAU,CAAC;IAEvB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB,kDAAkD;IAClD,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,kDAAkD;IAClD,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,GAAG,SAAS,CAOzF;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,GAAG,SAAS,CAO5F;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,QAAQ,EACf,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,aAAa,GACrB,SAAS,CAUX;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,QAAQ,EACf,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,MAAM,GACZ,SAAS,CAWX;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,QAAQ,EACf,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,MAAM,GACZ,SAAS,CAWX"}
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Formatter for generating unified diff output from DiffEntry objects.
3
+ *
4
+ * Based on JGit's DiffFormatter class.
5
+ */
6
+ import type { Blobs } from "@statewalker/vcs-core";
7
+ import { type SupportedAlgorithm } from "@statewalker/vcs-utils";
8
+ import { type DiffEntry } from "./diff-entry.js";
9
+ /**
10
+ * Options for diff formatting.
11
+ */
12
+ export interface DiffFormatterOptions {
13
+ /** Number of context lines around changes (default: 3) */
14
+ contextLines?: number;
15
+ /** Whether to include file headers (default: true) */
16
+ includeHeaders?: boolean;
17
+ /** Whether to abbreviate object IDs (default: true) */
18
+ abbreviateIds?: boolean;
19
+ /** Length of abbreviated object IDs (default: 7) */
20
+ abbreviationLength?: number;
21
+ /** Diff algorithm to use (default: histogram) */
22
+ algorithm?: SupportedAlgorithm;
23
+ }
24
+ /**
25
+ * A hunk in unified diff format.
26
+ */
27
+ export interface DiffHunk {
28
+ /** Starting line in old file (1-based) */
29
+ oldStart: number;
30
+ /** Number of lines from old file */
31
+ oldCount: number;
32
+ /** Starting line in new file (1-based) */
33
+ newStart: number;
34
+ /** Number of lines from new file */
35
+ newCount: number;
36
+ /** Lines in the hunk (prefixed with ' ', '+', or '-') */
37
+ lines: string[];
38
+ }
39
+ /**
40
+ * Content diff result for a single file.
41
+ */
42
+ export interface FileContentDiff {
43
+ /** The original diff entry */
44
+ entry: DiffEntry;
45
+ /** Whether the file is binary */
46
+ isBinary: boolean;
47
+ /** File header line (e.g., "diff --git a/path b/path") */
48
+ header: string;
49
+ /** Old file header (e.g., "--- a/path") */
50
+ oldFileHeader?: string;
51
+ /** New file header (e.g., "+++ b/path") */
52
+ newFileHeader?: string;
53
+ /** Index line (e.g., "index abc123..def456 100644") */
54
+ indexLine?: string;
55
+ /** Hunks of changes */
56
+ hunks: DiffHunk[];
57
+ /** Raw old content (for binary display or further processing) */
58
+ oldContent?: Uint8Array;
59
+ /** Raw new content (for binary display or further processing) */
60
+ newContent?: Uint8Array;
61
+ }
62
+ /**
63
+ * Format DiffEntry objects into unified diff format.
64
+ *
65
+ * @example
66
+ * ```typescript
67
+ * const formatter = new DiffFormatter(store.blobs);
68
+ *
69
+ * // Get diff entries from DiffCommand
70
+ * const entries = await git.diff().setOldTree(commitA).setNewTree(commitB).call();
71
+ *
72
+ * // Format as unified diff
73
+ * for (const entry of entries) {
74
+ * const diff = await formatter.format(entry);
75
+ * console.log(formatter.toString(diff));
76
+ * }
77
+ * ```
78
+ */
79
+ export declare class DiffFormatter {
80
+ private readonly blobs;
81
+ private contextLines;
82
+ private includeHeaders;
83
+ private abbreviateIds;
84
+ private abbreviationLength;
85
+ private diffAlgorithm;
86
+ constructor(blobs: Blobs, options?: DiffFormatterOptions);
87
+ /**
88
+ * Format a DiffEntry into a content diff.
89
+ *
90
+ * @param entry The diff entry to format
91
+ * @returns Content diff with hunks
92
+ */
93
+ format(entry: DiffEntry): Promise<FileContentDiff>;
94
+ /**
95
+ * Convert a FileContentDiff to string format.
96
+ *
97
+ * @param diff The content diff to stringify
98
+ * @returns Unified diff string
99
+ */
100
+ toString(diff: FileContentDiff): string;
101
+ /**
102
+ * Format all diff entries to a single string.
103
+ *
104
+ * @param entries Array of diff entries
105
+ * @returns Complete unified diff output
106
+ */
107
+ formatAll(entries: DiffEntry[]): Promise<string>;
108
+ /**
109
+ * Load blob content from storage.
110
+ */
111
+ private loadContent;
112
+ /**
113
+ * Build the diff header line.
114
+ */
115
+ private buildHeader;
116
+ /**
117
+ * Build the index line.
118
+ */
119
+ private buildIndexLine;
120
+ /**
121
+ * Build the old file header line.
122
+ */
123
+ private buildOldFileHeader;
124
+ /**
125
+ * Build the new file header line.
126
+ */
127
+ private buildNewFileHeader;
128
+ /**
129
+ * Abbreviate an object ID.
130
+ */
131
+ private abbreviateId;
132
+ /**
133
+ * Format the hunk header.
134
+ */
135
+ private formatHunkHeader;
136
+ /**
137
+ * Format edits into hunks.
138
+ */
139
+ private formatEdits;
140
+ /**
141
+ * Combine edits that are within context range of each other.
142
+ */
143
+ private combineEdits;
144
+ /**
145
+ * Create a hunk from a group of edits.
146
+ */
147
+ private createHunk;
148
+ }
149
+ //# sourceMappingURL=diff-formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diff-formatter.d.ts","sourceRoot":"","sources":["../../src/results/diff-formatter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAY,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAOL,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sDAAsD;IACtD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,uDAAuD;IACvD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iDAAiD;IACjD,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,iCAAiC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,0DAA0D;IAC1D,MAAM,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,iEAAiE;IACjE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,iEAAiE;IACjE,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,aAAa;IAQtB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAPxB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,cAAc,CAAU;IAChC,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,kBAAkB,CAAS;IACnC,OAAO,CAAC,aAAa,CAAgB;IAErC,YACmB,KAAK,EAAE,KAAK,EAC7B,OAAO,GAAE,oBAAyB,EAOnC;IAED;;;;;OAKG;IACG,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC,CA+CvD;IAED;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAgCtC;IAED;;;;;OAKG;IACG,SAAS,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CASrD;IAED;;OAEG;YACW,WAAW;IAsBzB;;OAEG;IACH,OAAO,CAAC,WAAW;IAMnB;;OAEG;IACH,OAAO,CAAC,cAAc;IAQtB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAO1B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAO1B;;OAEG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAIxB;;OAEG;IACH,OAAO,CAAC,WAAW;IAgBnB;;OAEG;IACH,OAAO,CAAC,YAAY;IAkCpB;;OAEG;IACH,OAAO,CAAC,UAAU;CAoDnB"}
@@ -0,0 +1,78 @@
1
+ import type { ObjectId } from "@statewalker/vcs-core";
2
+ /**
3
+ * Result of a ref update during fetch.
4
+ *
5
+ * Based on JGit's TrackingRefUpdate.
6
+ */
7
+ export interface TrackingRefUpdate {
8
+ /** Local ref name that was updated */
9
+ localRef: string;
10
+ /** Remote ref name this tracks */
11
+ remoteRef: string;
12
+ /** Old object ID (before update) */
13
+ oldObjectId?: ObjectId;
14
+ /** New object ID (after update) */
15
+ newObjectId: ObjectId;
16
+ /** Update result status */
17
+ status: RefUpdateStatus;
18
+ }
19
+ /**
20
+ * Status of a ref update.
21
+ *
22
+ * Based on JGit's RefUpdate.Result.
23
+ */
24
+ export declare enum RefUpdateStatus {
25
+ /** Update was performed successfully */
26
+ NEW = "new",
27
+ /** Update was a fast-forward */
28
+ FAST_FORWARD = "fast-forward",
29
+ /** Update was forced (non-fast-forward) */
30
+ FORCED = "forced",
31
+ /** No update needed (already up to date) */
32
+ NO_CHANGE = "no-change",
33
+ /** Update rejected (non-fast-forward without force) */
34
+ REJECTED = "rejected",
35
+ /** Update rejected (ref is locked) */
36
+ LOCK_FAILURE = "lock-failure",
37
+ /** Ref was deleted */
38
+ DELETED = "deleted",
39
+ /** Update renamed the ref */
40
+ RENAMED = "renamed"
41
+ }
42
+ /**
43
+ * Result of a fetch operation.
44
+ *
45
+ * Based on JGit's FetchResult.
46
+ */
47
+ export interface FetchResult {
48
+ /** URI of the remote that was fetched from */
49
+ uri: string;
50
+ /** Refs advertised by the remote */
51
+ advertisedRefs: Map<string, ObjectId>;
52
+ /** Tracking ref updates that were performed */
53
+ trackingRefUpdates: TrackingRefUpdate[];
54
+ /**
55
+ * Default branch of the remote, exactly as advertised: the target of the
56
+ * `symref=HEAD:` capability, so a fully qualified `refs/heads/<name>` from
57
+ * any remote that qualifies it. Deliberately not normalised — see
58
+ * {@link CloneResult.defaultBranch} for the bare branch name.
59
+ */
60
+ defaultBranch?: string;
61
+ /** Total bytes received */
62
+ bytesReceived: number;
63
+ /** Whether the remote repository was empty */
64
+ isEmpty: boolean;
65
+ /** Messages from the remote */
66
+ messages: string[];
67
+ /** Submodule fetch results (if any) */
68
+ submodules?: Map<string, FetchResult>;
69
+ }
70
+ /**
71
+ * Check if fetch result has any updates.
72
+ */
73
+ export declare function hasUpdates(result: FetchResult): boolean;
74
+ /**
75
+ * Get successful updates from fetch result.
76
+ */
77
+ export declare function getSuccessfulUpdates(result: FetchResult): TrackingRefUpdate[];
78
+ //# sourceMappingURL=fetch-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-result.d.ts","sourceRoot":"","sources":["../../src/results/fetch-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,mCAAmC;IACnC,WAAW,EAAE,QAAQ,CAAC;IACtB,2BAA2B;IAC3B,MAAM,EAAE,eAAe,CAAC;CACzB;AAED;;;;GAIG;AACH,oBAAY,eAAe;IACzB,wCAAwC;IACxC,GAAG,QAAQ;IACX,gCAAgC;IAChC,YAAY,iBAAiB;IAC7B,2CAA2C;IAC3C,MAAM,WAAW;IACjB,4CAA4C;IAC5C,SAAS,cAAc;IACvB,uDAAuD;IACvD,QAAQ,aAAa;IACrB,sCAAsC;IACtC,YAAY,iBAAiB;IAC7B,sBAAsB;IACtB,OAAO,YAAY;IACnB,6BAA6B;IAC7B,OAAO,YAAY;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,8CAA8C;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtC,+CAA+C;IAC/C,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2BAA2B;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,uCAAuC;IACvC,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACvC;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,WAAW,GAAG,iBAAiB,EAAE,CAO7E"}
@@ -0,0 +1,14 @@
1
+ export * from "./cherry-pick-result.js";
2
+ export * from "./clone-result.js";
3
+ export * from "./diff-entry.js";
4
+ export * from "./diff-formatter.js";
5
+ export * from "./fetch-result.js";
6
+ export * from "./init-result.js";
7
+ export * from "./merge-result.js";
8
+ export * from "./pull-result.js";
9
+ export * from "./push-result.js";
10
+ export * from "./rebase-result.js";
11
+ export * from "./revert-result.js";
12
+ export * from "./stash-result.js";
13
+ export * from "./status-result.js";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/results/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}