@statewalker/vcs-commands 0.3.1 → 0.4.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.
Files changed (77) hide show
  1. package/README.md +193 -460
  2. package/dist/commands/add-command.d.ts +0 -6
  3. package/dist/commands/add-command.d.ts.map +1 -1
  4. package/dist/commands/blame-command.d.ts +14 -0
  5. package/dist/commands/blame-command.d.ts.map +1 -1
  6. package/dist/commands/branch-command.d.ts.map +1 -1
  7. package/dist/commands/checkout-command.d.ts.map +1 -1
  8. package/dist/commands/clean-command.d.ts.map +1 -1
  9. package/dist/commands/clone-command.d.ts +0 -15
  10. package/dist/commands/clone-command.d.ts.map +1 -1
  11. package/dist/commands/fetch-command.d.ts +16 -31
  12. package/dist/commands/fetch-command.d.ts.map +1 -1
  13. package/dist/commands/index.js +2 -2
  14. package/dist/commands/init-command.d.ts.map +1 -1
  15. package/dist/commands/merge-command.d.ts +15 -2
  16. package/dist/commands/merge-command.d.ts.map +1 -1
  17. package/dist/commands/push-command.d.ts +58 -25
  18. package/dist/commands/push-command.d.ts.map +1 -1
  19. package/dist/commands/stash-create-command.d.ts +1 -1
  20. package/dist/commands/stash-drop-command.d.ts +1 -1
  21. package/dist/commands/stash-list-command.d.ts +1 -1
  22. package/dist/commands/tag-command.d.ts.map +1 -1
  23. package/dist/commands/tree-restore.d.ts.map +1 -1
  24. package/dist/{commands-COO4tJhv.js → commands-BpeXZTC3.js} +473 -469
  25. package/dist/core-commands/add.command.impl.d.ts +0 -4
  26. package/dist/core-commands/add.command.impl.d.ts.map +1 -1
  27. package/dist/core-commands/checkout.command.impl.d.ts +2 -6
  28. package/dist/core-commands/checkout.command.impl.d.ts.map +1 -1
  29. package/dist/core-commands/index.d.ts +1 -0
  30. package/dist/core-commands/index.d.ts.map +1 -1
  31. package/dist/core-commands/store-worktree-file.d.ts +6 -0
  32. package/dist/core-commands/store-worktree-file.d.ts.map +1 -0
  33. package/dist/index.js +3 -3
  34. package/dist/remote-config/remote-config-store.d.ts +4 -0
  35. package/dist/remote-config/remote-config-store.d.ts.map +1 -1
  36. package/dist/results/diff-formatter.d.ts +14 -7
  37. package/dist/results/diff-formatter.d.ts.map +1 -1
  38. package/dist/results/fetch-result.d.ts +7 -0
  39. package/dist/results/fetch-result.d.ts.map +1 -1
  40. package/dist/results/index.js +27 -22
  41. package/dist/results/push-result.d.ts +9 -2
  42. package/dist/results/push-result.d.ts.map +1 -1
  43. package/dist/{status-result-BwAyxq6R.js → status-result-BapZoQaR.js} +2 -0
  44. package/package.json +19 -14
  45. package/src/commands/add-command.ts +16 -25
  46. package/src/commands/blame-command.ts +41 -0
  47. package/src/commands/branch-command.ts +2 -53
  48. package/src/commands/checkout-command.ts +7 -11
  49. package/src/commands/clean-command.ts +7 -0
  50. package/src/commands/clone-command.ts +102 -109
  51. package/src/commands/fetch-command.ts +103 -197
  52. package/src/commands/gc-command.ts +1 -1
  53. package/src/commands/init-command.ts +83 -11
  54. package/src/commands/merge-command.ts +60 -27
  55. package/src/commands/pack-refs-command.ts +2 -2
  56. package/src/commands/push-command.ts +242 -308
  57. package/src/commands/reflog-command.ts +2 -2
  58. package/src/commands/stash-apply-command.ts +1 -1
  59. package/src/commands/stash-create-command.ts +1 -1
  60. package/src/commands/stash-drop-command.ts +1 -1
  61. package/src/commands/stash-list-command.ts +1 -1
  62. package/src/commands/tag-command.ts +2 -53
  63. package/src/commands/tree-restore.ts +2 -6
  64. package/src/core-commands/add.command.impl.ts +16 -19
  65. package/src/core-commands/checkout.command.impl.ts +18 -40
  66. package/src/core-commands/index.ts +1 -0
  67. package/src/core-commands/store-worktree-file.ts +5 -0
  68. package/src/remote-config/remote-config-store.ts +11 -0
  69. package/src/results/diff-formatter.ts +31 -38
  70. package/src/results/fetch-result.ts +7 -0
  71. package/src/results/push-result.ts +9 -2
  72. package/dist/pack-import/index.d.ts +0 -8
  73. package/dist/pack-import/index.d.ts.map +0 -1
  74. package/dist/pack-import/pack-import.d.ts +0 -11
  75. package/dist/pack-import/pack-import.d.ts.map +0 -1
  76. package/src/pack-import/index.ts +0 -8
  77. package/src/pack-import/pack-import.ts +0 -24
@@ -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,EAGL,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/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,O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AAQ,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;CA+I3B"}
@@ -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;AAEtF,OAAO,EAML,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,6CAA6C;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,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B;;OAEG;YACW,kBAAkB;IAgBhC;;OAEG;YACW,aAAa;IAM3B;;OAEG;YACW,eAAe;IAqB7B;;OAEG;YACW,oBAAoB;CAenC"}
@@ -1 +1 @@
1
- {"version":3,"file":"clean-command.d.ts","sourceRoot":"","sources":["../../src/commands/clean-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,4CAA4C;IAC5C,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;IAEtB;;;;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;;;;OAIG;IACH,mBAAmB,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAI9C;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CAyFjC;IAED;;OAEG;YACW,gBAAgB;CAgB/B"}
1
+ {"version":3,"file":"clean-command.d.ts","sourceRoot":"","sources":["../../src/commands/clean-command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,4CAA4C;IAC5C,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;IAEtB;;;;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;;;;OAIG;IACH,mBAAmB,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAI9C;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CA+FjC;IAED;;OAEG;YACW,gBAAgB;CAgB/B"}
@@ -210,21 +210,6 @@ export declare class CloneCommand extends TransportCommand<CloneResult> {
210
210
  * Determine which branch to clone based on options.
211
211
  */
212
212
  private determineBranchToClone;
213
- /**
214
- * Check if a ref should be skipped based on tag option.
215
- */
216
- private shouldSkipRef;
217
- /**
218
- * Convert a remote ref name to mirror ref name.
219
- */
220
- private toMirrorRefName;
221
- /**
222
- * Store received pack data.
223
- *
224
- * Unpacks the pack into the working copy's history, so the objects the
225
- * cloned refs point at are actually available locally.
226
- */
227
- private storePack;
228
213
  /**
229
214
  * Checkout HEAD commit to staging area.
230
215
  */
@@ -1 +1 @@
1
- {"version":3,"file":"clone-command.d.ts","sourceRoot":"","sources":["../../src/commands/clone-command.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAM9D,OAA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AAS,IAAI,MAAM,CAElB;IAED;;;;;;;OAOG;IACH,mBAAmB,CAAC,gBAAgB,EAAE,OAAO,GAAG,IAAI,CAInD;IAED;;OAEG;IACH,kBAAkB,IAAI,OAAO,CAE5B;IAED;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAO/B;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAElB;IAED;;;;;;;OAOG;IACH,kBAAkB,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAIlD;IAED;;OAEG;IACH,kBAAkB,IAAI,MAAM,EAAE,CAE7B;IAED;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAIvC;IAED;;OAEG;IACH,YAAY,IAAI,SAAS,CAExB;IAED;;;;;;;OAOG;IACH,SAAS,IAAI,IAAI,CAEhB;IAED;;;;;;OAMG;IACH,eAAe,CAAC,YAAY,EAAE,IAAI,GAAG,IAAI,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,CAmHjC;IAED;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAwB9B;;OAEG;IACH,OAAO,CAAC,aAAa;IAQrB;;OAEG;IACH,OAAO,CAAC,eAAe;IASvB;;;;;OAKG;YACW,SAAS;IAIvB;;OAEG;YACW,YAAY;CAY3B"}
1
+ {"version":3,"file":"clone-command.d.ts","sourceRoot":"","sources":["../../src/commands/clone-command.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3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BAAmB,CAAC,gBAAgB,EAAE,OAAO,GAAG,IAAI,CAInD;IAED;;OAEG;IACH,kBAAkB,IAAI,OAAO,CAE5B;IAED;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAO/B;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAElB;IAED;;;;;;;OAOG;IACH,kBAAkB,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAIlD;IAED;;OAEG;IACH,kBAAkB,IAAI,MAAM,EAAE,CAE7B;IAED;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAIvC;IAED;;OAEG;IACH,YAAY,IAAI,SAAS,CAExB;IAED;;;;;;;OAOG;IACH,SAAS,IAAI,IAAI,CAEhB;IAED;;;;;;OAMG;IACH,eAAe,CAAC,YAAY,EAAE,IAAI,GAAG,IAAI,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,CAsJjC;IAED;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAmB9B;;OAEG;YACW,YAAY;CAY3B"}
@@ -1,4 +1,5 @@
1
- import { type FetchResult } from "../results/fetch-result.js";
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.
@@ -208,19 +209,16 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
208
209
  /**
209
210
  * Execute the fetch operation.
210
211
  *
212
+ * Runs the transport's fetch client (git's fetch-pack): the local refs are offered as
213
+ * haves, so only the objects the working copy lacks are downloaded; shallow options and
214
+ * the shallow file are honoured; tags follow the tag option; each tracking ref is
215
+ * updated when it fast-forwards or its refspec (or {@link setForceUpdate}) forces it, and
216
+ * rejected otherwise.
217
+ *
211
218
  * @returns Fetch result with updated refs
212
219
  * @throws InvalidRemoteError if remote cannot be resolved
213
220
  */
214
221
  call(): Promise<FetchResult>;
215
- /**
216
- * Map a server ref name to a local ref name using parsed refspecs.
217
- * Returns undefined if no refspec matches.
218
- */
219
- private mapServerRef;
220
- /**
221
- * Check if any matching refspec has the force flag for a given server ref.
222
- */
223
- private isRefSpecForced;
224
222
  /**
225
223
  * The refspecs this fetch runs with.
226
224
  *
@@ -239,28 +237,15 @@ export declare class FetchCommand extends TransportCommand<FetchResult> {
239
237
  */
240
238
  private resolveRemoteUrl;
241
239
  /**
242
- * Compute ref update status using pre-fetch ref values.
243
- *
244
- * Uses saved pre-fetch values to correctly determine
245
- * NEW vs NO_CHANGE vs FAST_FORWARD status.
246
- */
247
- private computeRefUpdate;
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.
240
+ * Prune local refs that a refspec maps from a remote ref that no longer exists (git's
241
+ * `--prune`): for each refspec with a destination, the local refs matching the
242
+ * destination whose source is not among the remote refs are deleted, unless a negative
243
+ * refspec excludes that source (git's query_matches_negative_refspec).
254
244
  */
255
245
  private pruneDeletedRefs;
256
- /**
257
- * Store received pack data.
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;
265
246
  }
247
+ /** The transport's tag mode for a {@link TagOption}. */
248
+ export declare function toTagMode(option: TagOption): TagMode;
249
+ /** A transport ref update as a {@link TrackingRefUpdate}. */
250
+ export declare function toTrackingRefUpdate(update: FetchRefUpdate): TrackingRefUpdate;
266
251
  //# sourceMappingUR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AG,IAAI,CAI9C;IAED;;OAEG;IACH,kBAAkB,IAAI,MAAM,EAAE,CAE7B;IAED;;;;;;;;OAQG;IACH,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAIrC;IAED;;OAEG;IACH,WAAW,IAAI,OAAO,CAErB;IAED;;;;;;;;;;;OAWG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CA4DjC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;;;;;OAMG;YACW,gBAAgB;IAS9B;;;;;OAKG;YACW,gBAAgB;CAqC/B;AAED,wDAAwD;AACxD,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CASpD;AAED,6DAA6D;AAC7D,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,iBAAiB,CAsB7E"}
@@ -1,2 +1,2 @@
1
- import { A as DiffCommand, B as CheckoutCommand, C as MergeCommand, D as InitCommand, E as RevFilter, F as FetchCommand, G as ListBranchCommand, H as CheckoutStatus, I as TagOption, K as RenameBranchCommand, M as DescribeCommand, N as CommitCommand, P as CloneCommand, R as CleanCommand, S as PackRefsCommand, T as LogCommand, U as CreateBranchCommand, V as CheckoutStage, W as DeleteBranchCommand, X as AddCommand, Y as BlameCommand, _ as ReflogCommand, a as StashDropCommand, b as PushCommand, c as STASH_REF, d as RevertCommand, f as ResetCommand, g as RemoteSetUrlCommand, h as RemoteRemoveCommand, i as StatusCommand, j as formatDiffEntry, k as GarbageCollectCommand, l as StashListCommand, m as RemoteListCommand, n as ListTagCommand, o as StashCreateCommand, p as RemoteAddCommand, r as TagCommand, s as StashApplyCommand, t as DeleteTagCommand, u as RmCommand, v as RebaseCommand, w as LsRemoteCommand, x as PullCommand, y as RebaseOperation, z as CherryPickCommand } from "../commands-COO4tJhv.js";
2
- export { AddCommand, BlameCommand, CheckoutCommand, CheckoutStage, CheckoutStatus, CherryPickCommand, CleanCommand, CloneCommand, CommitCommand, CreateBranchCommand, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DiffCommand, FetchCommand, GarbageCollectCommand, InitCommand, ListBranchCommand, ListTagCommand, LogCommand, LsRemoteCommand, MergeCommand, PackRefsCommand, PullCommand, PushCommand, RebaseCommand, RebaseOperation, ReflogCommand, RemoteAddCommand, RemoteListCommand, RemoteRemoveCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, RevFilter, RevertCommand, RmCommand, STASH_REF, StashApplyCommand, StashCreateCommand, StashDropCommand, StashListCommand, StatusCommand, TagCommand, TagOption, formatDiffEntry };
1
+ import { A as DiffCommand, B as CleanCommand, C as MergeCommand, D as InitCommand, E as RevFilter, F as FetchCommand, G as CreateBranchCommand, H as CheckoutCommand, I as TagOption, J as RenameBranchCommand, K as DeleteBranchCommand, L as toTagMode, M as DescribeCommand, N as CommitCommand, P as CloneCommand, Q as AddCommand, R as toTrackingRefUpdate, S as PackRefsCommand, T as LogCommand, U as CheckoutStage, V as CherryPickCommand, W as CheckoutStatus, Z as BlameCommand, _ as ReflogCommand, a as StashDropCommand, b as PushCommand, c as STASH_REF, d as RevertCommand, f as ResetCommand, g as RemoteSetUrlCommand, h as RemoteRemoveCommand, i as StatusCommand, j as formatDiffEntry, k as GarbageCollectCommand, l as StashListCommand, m as RemoteListCommand, n as ListTagCommand, o as StashCreateCommand, p as RemoteAddCommand, q as ListBranchCommand, r as TagCommand, s as StashApplyCommand, t as DeleteTagCommand, u as RmCommand, v as RebaseCommand, w as LsRemoteCommand, x as PullCommand, y as RebaseOperation } from "../commands-BpeXZTC3.js";
2
+ export { AddCommand, BlameCommand, CheckoutCommand, CheckoutStage, CheckoutStatus, CherryPickCommand, CleanCommand, CloneCommand, CommitCommand, CreateBranchCommand, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DiffCommand, FetchCommand, GarbageCollectCommand, InitCommand, ListBranchCommand, ListTagCommand, LogCommand, LsRemoteCommand, MergeCommand, PackRefsCommand, PullCommand, PushCommand, RebaseCommand, RebaseOperation, ReflogCommand, RemoteAddCommand, RemoteListCommand, RemoteRemoveCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, RevFilter, RevertCommand, RmCommand, STASH_REF, StashApplyCommand, StashCreateCommand, StashDropCommand, StashListCommand, StatusCommand, TagCommand, TagOption, formatDiffEntry, toTagMode, toTrackingRefUpdate };
@@ -1 +1 @@
1
- {"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../src/commands/init-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGnG,OAAO,EAEL,KAAK,OAAO,EAEZ,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,KAAK,CAAC,CAAW;IACzB,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,YAAY,CAAC,CAAU;IAC/B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,aAAa,CAAC,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAQ;IAExB;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAIjC;IAED;;;;;;;;OAQG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAIpC;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED;;;;;;;;OAQG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM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E,MAAM,GAAG,IAAI,CAIpC;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED;;;;;;;;OAQG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIrC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,eAAe,CAAC,YAAY,EAAE,OAAO,GAAG,IAAI,CAI3C;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIlC;IAED;;;;;;;OAOG;IACH,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAKzC;IAED;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAyJhC;IAED;;OAEG;IACH,OAAO,CAAC,aAAa;IAqBrB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAMrB;;OAEG;IACH,OAAO,CAAC,WAAW;CAGpB"}
@@ -47,6 +47,7 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
47
47
  private squash;
48
48
  private commit;
49
49
  private message?;
50
+ private bigFileThreshold;
50
51
  /**
51
52
  * Add a commit/branch to merge.
52
53
  *
@@ -87,6 +88,17 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
87
88
  * @param contentStrategy Content merge strategy
88
89
  */
89
90
  setContentMergeStrategy(contentStrategy: ContentMergeStrategy): this;
91
+ /**
92
+ * Set the size above which files are binary to the content merge (git's
93
+ * `core.bigFileThreshold`, default 50 MiB).
94
+ *
95
+ * A binary file (over the threshold, or a NUL byte in its first 8000 bytes) is
96
+ * never content-merged and never loaded: as git does, OURS and THEIRS take that
97
+ * side's file whole, and UNION reports a conflict.
98
+ *
99
+ * @param threshold Size in bytes
100
+ */
101
+ setBigFileThreshold(threshold: number): this;
90
102
  /**
91
103
  * Set squash mode.
92
104
  *
@@ -138,9 +150,10 @@ export declare class MergeCommand extends GitCommand<MergeResult> {
138
150
  */
139
151
  private tryContentMerge;
140
152
  /**
141
- * Collect all bytes from a blob into a single Uint8Array.
153
+ * The blobs' contents, each read once; nothing when one is binary or over the
154
+ * threshold (then the rest are not read). A missing id is empty content.
142
155
  */
143
- private collectBlobContent;
156
+ private loadTexts;
144
157
  /**
145
158
  * Convert ContentMergeStrategy to utils MergeContentStrategy.
146
159
  */
@@ -1 +1 @@
1
- {"version":3,"file":"merge-command.d.ts","sourceRoot":"","sources":["../../src/commands/merge-command.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,KAAK,WAAW,EAEhB,aAAa,EACd,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,qBAAa,YAAa,SAAQ,UAAU,CAAC,WAAW,CAAC;IACvD,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,eAAe,CAAsB;IAC7C,OAAO,CAAC,QAAQ,CAA2B;IAC3C,OAAO,CAAC,eAAe,CAAC,CAAuB;IAC/C,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB;;;;OAIG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAI7B;IAED;;;;;;;;OAQG;IACH,kBAAkB,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,CAI9C;IAED;;;;;;;;;OASG;IACH,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAIzC;IAED;;;;;;;;;;;OAWG;IACH,uBAAuB,CAAC,eAAe,EAAE,oBAAoB,GAAG,IAAI,CAInE;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO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OAAO,EAAE,MAAM,GAAG,IAAI,CAI7B;IAED;;;;;;;;OAQG;IACH,kBAAkB,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,CAI9C;IAED;;;;;;;;;OASG;IACH,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAIzC;IAED;;;;;;;;;;;OAWG;IACH,uBAAuB,CAAC,eAAe,EAAE,oBAAoB,GAAG,IAAI,CAInE;IAED;;;;;;;;;OASG;IACH,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAI3C;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CAoDjC;IAED;;OAEG;YACW,aAAa;IA0C3B;;OAEG;YACW,OAAO;IA2HrB;;OAEG;YACW,UAAU;IAiCxB;;;;OAIG;YACW,kBAAkB;IA6DhC;;;;OAIG;YACW,eAAe;IA0D7B;;;OAGG;YACW,SAAS;IAmBvB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAW9B;;OAEG;YACW,kBAAkB;IAoBhC;;OAEG;IACH,OAAO,CAAC,UAAU;IA8BlB;;OAEG;IACH,OAAO,CAAC,SAAS;IAMjB;;OAEG;YACW,oBAAoB;IAiDlC;;OAEG;YACW,kBAAkB;CAgBjC"}
@@ -51,6 +51,10 @@ export declare class PushCommand extends TransportCommand<PushResult> {
51
51
  private useBitmaps;
52
52
  private pushOptions;
53
53
  private receivePack?;
54
+ private prune;
55
+ private streamRequestBody?;
56
+ /** Leases (an entry without a ref: every other pushed ref at its tracking value) */
57
+ private leases?;
54
58
  /**
55
59
  * Set the remote to push to.
56
60
  *
@@ -88,6 +92,31 @@ export declare class PushCommand extends TransportCommand<PushResult> {
88
92
  * Whether force push is enabled.
89
93
  */
90
94
  isForce(): boolean;
95
+ /**
96
+ * `--force-with-lease`: allow a non-fast-forward of `ref` only while the remote ref still
97
+ * has `expect` (`""` or the zero id: it must not exist). Without `expect` the remote ref's
98
+ * remote-tracking value is expected (`refs/remotes/<remote>/...`). Without `ref` every pushed
99
+ * ref (that no explicit lease names) is leased at its remote-tracking value; `expect` may be
100
+ * a revision or an abbreviated id. A lease that does not hold is
101
+ * REJECTED_REMOTE_CHANGED; {@link setForce} overrides it, as in git.
102
+ *
103
+ * @param ref The remote ref (full or short name)
104
+ * @param expect The value it must have
105
+ */
106
+ setForceWithLease(ref?: string, expect?: string): this;
107
+ /**
108
+ * Stream the smart-HTTP request body (default: outside browsers, where supported); `false`
109
+ * collects it first, so the request has a `Content-Length` (servers or proxies that refuse
110
+ * chunked requests).
111
+ */
112
+ setStreamRequestBody(stream: boolean): this;
113
+ /** Whether the request body streams (undefined: the transport decides). */
114
+ isStreamRequestBody(): boolean | undefined;
115
+ /**
116
+ * `--prune`: delete remote refs a pattern refspec's destination covers whose local source is
117
+ * gone (with `+refs/*:refs/*`, `--mirror`).
118
+ */
119
+ setPrune(prune: boolean): this;
91
120
  /**
92
121
  * Set atomic push mode.
93
122
  *
@@ -170,11 +199,21 @@ export declare class PushCommand extends TransportCommand<PushResult> {
170
199
  */
171
200
  getReceivePack(): string | undefined;
172
201
  /**
173
- * Execute the push operation.
202
+ * Execute the push.
203
+ *
204
+ * Runs the transport's push client (git's send-pack): the refspecs are mapped onto the
205
+ * remote refs as `git push` does (short names, `HEAD`, patterns, `:dst` deletes); each ref
206
+ * is checked first (fast-forward, "fetch first", tags, `--force-with-lease`) and refused
207
+ * refs are not sent; the pack is thin against the remote refs here. Once the server accepts
208
+ * a ref, the remote-tracking ref of a named remote follows it (`refs/remotes/<remote>/…`).
174
209
  *
175
- * @returns Push result with updated refs
210
+ * Without refspecs (nor `setPushAll`/`setPushTags`), the configured `remote.<name>.push`
211
+ * refspecs are used, else `push.default` decides (default `simple`: the current branch to
212
+ * its upstream of the same name on its own remote, to the same name elsewhere; see
213
+ * `buildRefSpecs`). A detached HEAD is refused.
214
+ *
215
+ * @returns Push result with each remote ref's status
176
216
  * @throws InvalidRemoteError if remote cannot be resolved
177
- * @throws PushRejectedException if push is rejected
178
217
  */
179
218
  call(): Promise<PushResult>;
180
219
  /**
@@ -190,31 +229,25 @@ export declare class PushCommand extends TransportCommand<PushResult> {
190
229
  */
191
230
  private resolveRemoteUrl;
192
231
  /**
193
- * Build refspecs for the push.
194
- */
195
- private buildRefSpecs;
196
- /**
197
- * Get objects to push.
232
+ * The refspecs to push: the explicit ones, `--all` (every branch), `--tags` (every tag);
233
+ * else the remote's configured push refspecs; else what `push.default` says (git's
234
+ * builtin/push.c `setup_default_push_refspecs`, default `simple`):
198
235
  *
199
- * Returns objects reachable from newIds but not from oldIds.
200
- */
201
- private getObjectsToPush;
202
- /**
203
- * Collect all commits reachable from a given commit.
204
- */
205
- private collectReachableCommits;
206
- /**
207
- * Yield tree and blob objects recursively.
236
+ * - `simple`: the current branch to its upstream of the same name when pushing to the
237
+ * branch's own remote (refused without an upstream, or with one of another name); to the
238
+ * same name when pushing elsewhere (a URL, another remote)
239
+ * - `current`: the current branch to the same name
240
+ * - `upstream` (`tracking`): the current branch to its upstream, on its remote only
241
+ * - `matching`: `:` (the branches both sides have)
242
+ * - `nothing`: refused
243
+ *
244
+ * A detached HEAD is refused, except with `matching`.
208
245
  */
209
- private yieldTreeObjects;
246
+ private buildRefSpecs;
210
247
  /**
211
- * Load an object for pushing.
212
- *
213
- * Serializes objects to raw Git format based on type:
214
- * - type 1 (commit): serialize via serializeCommit()
215
- * - type 2 (tree): serialize via serializeTree()
216
- * - type 3 (blob): load raw content from blob store
248
+ * The remote-tracking ref of a remote ref (`refs/heads/main` → `refs/remotes/origin/main`)
249
+ * through the named remote's fetch refspecs; none for a URL.
217
250
  */
218
- private loadObjectForPush;
251
+ private trackingRefMapper;
219
252
  }
220
253
  //# sourceMappingURL=push-command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"push-command.d.ts","sourceRoot":"","sources":["../../src/commands/push-command.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,UAAU,EAAoC,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAuD3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,qBAAa,WAAY,SAAQ,gBAAgB,CAAC,UAAU,CAAC;IAC3D,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,IAAI,CAAQ;IACpB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,WAAW,CAAC,CAAS;IAE7B;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED;;OAEG;IACH,SAAS,IAAI,MAAM,CAElB;IAED;;;;OAIG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIzB;IAED;;;;OAIG;IACH,WAAW,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAIvC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED;;OAEG;IACH,OAAO,IAAI,OAAO,CAEjB;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAElB;IAED;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED;;OAEG;IACH,MAAM,IAAI,OAAO,CAEhB;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAElB;IAED;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED;;;;OAIG;IACH,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAInC;IAED;;;;;;OAMG;IACH,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAIvC;IAED;;OAEG;IACH,YAAY,IAAI,OAAO,CAEtB;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAItC;IAED;;OAEG;IACH,cAAc,IAAI,MAAM,EAAE,CAEzB;IAED;;;;OAIG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAIxC;IAED;;OAEG;IACH,cAAc,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAgHhC;IAED;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,UAAU,CAAC,CAiBvC;IAED;;;;;;OAMG;YACW,gBAAgB;IAS9B;;OAEG;YACW,aAAa;IAwC3B;;;;OAIG;YACY,gBAAgB;IA4C/B;;OAEG;YACW,uBAAuB;IA0BrC;;OAEG;YACY,gBAAgB;IA6B/B;;;;;;;OAOG;YACW,iBAAiB;CAyChC"}
1
+ {"version":3,"file":"push-command.d.ts","sourceRoot":"","sources":["../../src/commands/push-command.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,KAAK,UAAU,EAAoC,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAkD3D;;;;;;;;;;;;;;;;;;;;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AI,CAI7B;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAElB;IAED;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3B;IAED;;OAEG;IACH,MAAM,IAAI,OAAO,CAEhB;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAElB;IAED;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED;;;;OAIG;IACH,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAInC;IAED;;;;;;OAMG;IACH,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAIvC;IAED;;OAEG;IACH,YAAY,IAAI,OAAO,CAEtB;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAItC;IAED;;OAEG;IACH,cAAc,IAAI,MAAM,EAAE,CAEzB;IAED;;;;OAIG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAIxC;IAED;;OAEG;IACH,cAAc,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED;;;;;;;;;;;;;;;;OAgBG;IACG,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CA2EhC;IAED;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,UAAU,CAAC,CAqBvC;IAED;;;;;;OAMG;YACW,gBAAgB;IAS9B;;;;;;;;;;;;;;OAcG;YACW,aAAa;IAyE3B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;CAY1B"}
@@ -129,7 +129,7 @@ export declare class StashCreateCommand extends GitCommand<ObjectId | undefined>
129
129
  /**
130
130
  * Update the stash ref.
131
131
  *
132
- * Note: Reflog support is not part of the core RefStore interface.
132
+ * Note: Reflog support is not part of the core Refs interface.
133
133
  * Stash history is tracked via parent commit chain instead.
134
134
  */
135
135
  private updateStashRef;
@@ -7,7 +7,7 @@ import { GitCommand } from "../git-command.js";
7
7
  *
8
8
  * Based on JGit's StashDropCommand.
9
9
  *
10
- * Note: Without reflog support in RefStore, only the most recent stash (index 0)
10
+ * Note: Without reflog support in Refs, only the most recent stash (index 0)
11
11
  * can be dropped. Dropping by index > 0 requires reflog support.
12
12
  *
13
13
  * @example
@@ -30,7 +30,7 @@ export declare class StashListCommand extends GitCommand<StashEntry[]> {
30
30
  /**
31
31
  * Get stash entries.
32
32
  *
33
- * Note: Without reflog support in the core RefStore interface,
33
+ * Note: Without reflog support in the core Refs interface,
34
34
  * this returns only the most recent stash (if any).
35
35
  */
36
36
  private getStashReflog;
@@ -1 +1 @@
1
- {"version":3,"file":"tag-command.d.ts","sourceRoot":"","sources":["../../src/commands/tag-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,QAAQ,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAStF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAmE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,UAAW,SAAQ,UAAU,CAAC,GAAG,CAAC;IAC7C,OAAO,CAAC,IAAI,CAAC,CAAS;IACtB,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAC,CAAW;IAC5B,OAAO,CAAC,MAAM,CAAC,CAAc;IAC7B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED;;;;;;OAMG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED;;;;;;OAMG;IACH,WAA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,EAAE,CAAC;IACnD;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAgB3B;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"tree-restore.d.ts","sourceRoot":"","sources":["../../src/commands/tree-restore.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,oEAAoE;AACpE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,6CAA6C;AAC7C,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB;;;;OAIG;IACH,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,QAAQ,EAChB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,eAAe,CAAC,CAI1B;AA2CD;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAcf"}
1
+ {"version":3,"file":"tree-restore.d.ts","sourceRoot":"","sources":["../../src/commands/tree-restore.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,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