@statewalker/vcs-commands 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/commands/add-command.d.ts.map +1 -1
  2. package/dist/commands/checkout-command.d.ts +7 -24
  3. package/dist/commands/checkout-command.d.ts.map +1 -1
  4. package/dist/commands/clean-command.d.ts +34 -4
  5. package/dist/commands/clean-command.d.ts.map +1 -1
  6. package/dist/commands/clone-command.d.ts +62 -7
  7. package/dist/commands/clone-command.d.ts.map +1 -1
  8. package/dist/commands/core-config.d.ts +16 -0
  9. package/dist/commands/core-config.d.ts.map +1 -0
  10. package/dist/commands/fetch-command.d.ts +96 -14
  11. package/dist/commands/fetch-command.d.ts.map +1 -1
  12. package/dist/commands/index.d.ts +1 -0
  13. package/dist/commands/index.d.ts.map +1 -1
  14. package/dist/commands/index.js +2 -2
  15. package/dist/commands/init-command.d.ts.map +1 -1
  16. package/dist/commands/remote-command.d.ts +115 -6
  17. package/dist/commands/remote-command.d.ts.map +1 -1
  18. package/dist/commands/reset-command.d.ts.map +1 -1
  19. package/dist/commands/stash-apply-command.d.ts +35 -13
  20. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  21. package/dist/commands/stash-create-command.d.ts +59 -25
  22. package/dist/commands/stash-create-command.d.ts.map +1 -1
  23. package/dist/commands/stash-drop-command.d.ts +8 -2
  24. package/dist/commands/stash-drop-command.d.ts.map +1 -1
  25. package/dist/commands/stash-list-command.d.ts +2 -4
  26. package/dist/commands/stash-list-command.d.ts.map +1 -1
  27. package/dist/commands/stash-working-tree.d.ts +72 -0
  28. package/dist/commands/stash-working-tree.d.ts.map +1 -0
  29. package/dist/commands/status-command.d.ts +29 -22
  30. package/dist/commands/status-command.d.ts.map +1 -1
  31. package/dist/commands/tree-restore.d.ts +52 -5
  32. package/dist/commands/tree-restore.d.ts.map +1 -1
  33. package/dist/commands/worktree-overwrite-checks.d.ts +64 -0
  34. package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -0
  35. package/dist/{commands-BpeXZTC3.js → commands-CsLNyvZ1.js} +2940 -631
  36. package/dist/core-commands/add.command.impl.d.ts.map +1 -1
  37. package/dist/core-commands/index.d.ts +0 -3
  38. package/dist/core-commands/index.d.ts.map +1 -1
  39. package/dist/errors/checkout-errors.d.ts +13 -0
  40. package/dist/errors/checkout-errors.d.ts.map +1 -1
  41. package/dist/errors/index.js +18 -1
  42. package/dist/git-command.d.ts +10 -1
  43. package/dist/git-command.d.ts.map +1 -1
  44. package/dist/git.d.ts +21 -3
  45. package/dist/git.d.ts.map +1 -1
  46. package/dist/index.js +4 -4
  47. package/dist/remote-config/index.d.ts +1 -0
  48. package/dist/remote-config/index.d.ts.map +1 -1
  49. package/dist/remote-config/remote-config-store.d.ts +18 -0
  50. package/dist/remote-config/remote-config-store.d.ts.map +1 -1
  51. package/dist/remote-config/remote-refs.d.ts +37 -0
  52. package/dist/remote-config/remote-refs.d.ts.map +1 -0
  53. package/dist/results/clone-result.d.ts +6 -0
  54. package/dist/results/clone-result.d.ts.map +1 -1
  55. package/dist/results/fetch-result.d.ts +9 -1
  56. package/dist/results/fetch-result.d.ts.map +1 -1
  57. package/dist/results/index.js +2 -2
  58. package/dist/results/status-result.d.ts +91 -20
  59. package/dist/results/status-result.d.ts.map +1 -1
  60. package/dist/{status-result-BapZoQaR.js → status-result-BpyUK1Sg.js} +113 -5
  61. package/dist/transport-command.d.ts +12 -0
  62. package/dist/transport-command.d.ts.map +1 -1
  63. package/package.json +11 -10
  64. package/src/commands/add-command.ts +9 -7
  65. package/src/commands/checkout-command.ts +200 -118
  66. package/src/commands/clean-command.ts +187 -88
  67. package/src/commands/clone-command.ts +244 -40
  68. package/src/commands/core-config.ts +41 -0
  69. package/src/commands/fetch-command.ts +476 -57
  70. package/src/commands/index.ts +1 -0
  71. package/src/commands/init-command.ts +32 -7
  72. package/src/commands/remote-command.ts +429 -19
  73. package/src/commands/reset-command.ts +18 -5
  74. package/src/commands/stash-apply-command.ts +632 -97
  75. package/src/commands/stash-create-command.ts +142 -62
  76. package/src/commands/stash-drop-command.ts +53 -5
  77. package/src/commands/stash-list-command.ts +10 -4
  78. package/src/commands/stash-working-tree.ts +243 -0
  79. package/src/commands/status-command.ts +197 -91
  80. package/src/commands/tree-restore.ts +142 -13
  81. package/src/commands/worktree-overwrite-checks.ts +215 -0
  82. package/src/core-commands/add.command.impl.ts +2 -4
  83. package/src/core-commands/index.ts +0 -8
  84. package/src/errors/checkout-errors.ts +20 -0
  85. package/src/git-command.ts +42 -1
  86. package/src/git.ts +30 -2
  87. package/src/remote-config/index.ts +1 -0
  88. package/src/remote-config/remote-config-store.ts +84 -8
  89. package/src/remote-config/remote-refs.ts +103 -0
  90. package/src/results/clone-result.ts +6 -0
  91. package/src/results/fetch-result.ts +9 -1
  92. package/src/results/status-result.ts +212 -29
  93. package/src/transport-command.ts +18 -0
  94. package/dist/core-commands/checkout.command.d.ts +0 -103
  95. package/dist/core-commands/checkout.command.d.ts.map +0 -1
  96. package/dist/core-commands/checkout.command.impl.d.ts +0 -110
  97. package/dist/core-commands/checkout.command.impl.d.ts.map +0 -1
  98. package/src/core-commands/checkout.command.impl.ts +0 -564
  99. package/src/core-commands/checkout.command.ts +0 -125
@@ -1 +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,EAA2B,MAAM,uBAAuB,CAAC;AAC5E,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;AAGnE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IAEnB,oCAAoC;IACpC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O,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,CAuI9E;IAED;;OAEG;IACG,MAAM,CAAC,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,SAAS,CAAC,CAEzD;CACF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,GAAG,GAAG,CAEhE"}
@@ -1,7 +1,4 @@
1
1
  export * from "./add.command.impl.js";
2
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
3
  export * from "./store-worktree-file.js";
7
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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;AAC/F,cAAc,0BAA0B,CAAC"}
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,0BAA0B,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { CloneResult } from "../results/index.js";
1
2
  import { GitApiError } from "./git-api-error.js";
2
3
  /**
3
4
  * Thrown when a path is not found in the index during checkout.
@@ -21,4 +22,16 @@ export declare class NotADirectoryError extends GitApiError {
21
22
  readonly path: string;
22
23
  constructor(path: string, message?: string);
23
24
  }
25
+ /**
26
+ * Thrown when a clone fetched its objects and wrote its refs and configuration, but could
27
+ * not check out the commit HEAD names (git: "Clone succeeded, but checkout failed").
28
+ *
29
+ * The repository is usable: `result` is what the clone returns, and the cause says
30
+ * why the checkout failed. As with git, fixing the cause and checking out again (or a
31
+ * `reset --hard`) completes the clone.
32
+ */
33
+ export declare class CloneCheckoutError extends GitApiError {
34
+ readonly result: CloneResult;
35
+ constructor(result: CloneResult, cause: unknown);
36
+ }
24
37
  //# sourceMappingURL=checkout-errors.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"checkout-errors.d.ts","sourceRoot":"","sources":["../../src/errors/checkout-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,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;AAED;;;;;;;GAOG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAE7B,YAAY,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAK9C;CACF"}
@@ -66,6 +66,23 @@ var NotADirectoryError = class extends GitApiError {
66
66
  this.path = path;
67
67
  }
68
68
  };
69
+ /**
70
+ * Thrown when a clone fetched its objects and wrote its refs and configuration, but could
71
+ * not check out the commit HEAD names (git: "Clone succeeded, but checkout failed").
72
+ *
73
+ * The repository is usable: `result` is what the clone returns, and the cause says
74
+ * why the checkout failed. As with git, fixing the cause and checking out again (or a
75
+ * `reset --hard`) completes the clone.
76
+ */
77
+ var CloneCheckoutError = class extends GitApiError {
78
+ result;
79
+ constructor(result, cause) {
80
+ const reason = cause instanceof Error ? cause.message : String(cause);
81
+ super(`Clone succeeded, but checkout failed: ${reason}`, { cause });
82
+ this.name = "CloneCheckoutError";
83
+ this.result = result;
84
+ }
85
+ };
69
86
  //#endregion
70
87
  //#region src/errors/command-errors.ts
71
88
  /**
@@ -506,4 +523,4 @@ var NonFastForwardError = class extends PushRejectedException {
506
523
  }
507
524
  };
508
525
  //#endregion
509
- export { AuthenticationError, CannotDeleteCurrentBranchError, CommitNotFoundError, DetachedHeadError, EmptyCommitError, GitApiError, IncompatibleOptionsError, InvalidArgumentError, InvalidMainlineParentError, InvalidMergeHeadsError, InvalidRefNameError, InvalidRemoteError, InvalidStashIndexError, InvalidTagNameError, MergeConflictError, MergeFailureReason, MissingArgumentError, MultipleParentsNotAllowedError, NoFilepatternError, NoHeadError, NoMergeBaseError, NoMessageError, NoRebaseInProgressError, NonFastForwardError, NotADirectoryError, NotFastForwardError, NotImplementedError, NotMergedError, PathNotFoundInTreeError, PathNotInIndexError, PushRejectedException, RefAlreadyExistsError, RefNotFoundError, RemoteAlreadyExistsError, RemoteNotFoundError, StashApplyFailedError, StashNotFoundError, StoreNotAvailableError, TransportError, UnmergedPathsError, UpstreamRequiredError };
526
+ export { AuthenticationError, CannotDeleteCurrentBranchError, CloneCheckoutError, CommitNotFoundError, DetachedHeadError, EmptyCommitError, GitApiError, IncompatibleOptionsError, InvalidArgumentError, InvalidMainlineParentError, InvalidMergeHeadsError, InvalidRefNameError, InvalidRemoteError, InvalidStashIndexError, InvalidTagNameError, MergeConflictError, MergeFailureReason, MissingArgumentError, MultipleParentsNotAllowedError, NoFilepatternError, NoHeadError, NoMergeBaseError, NoMessageError, NoRebaseInProgressError, NonFastForwardError, NotADirectoryError, NotFastForwardError, NotImplementedError, NotMergedError, PathNotFoundInTreeError, PathNotInIndexError, PushRejectedException, RefAlreadyExistsError, RefNotFoundError, RemoteAlreadyExistsError, RemoteNotFoundError, StashApplyFailedError, StashNotFoundError, StoreNotAvailableError, TransportError, UnmergedPathsError, UpstreamRequiredError };
@@ -1,5 +1,5 @@
1
1
  import type { Blobs, Commit, Commits, ObjectId, Ref, Refs, SymbolicRef, Tag, Tags, Tree, TreeEntry, Trees } from "@statewalker/vcs-core";
2
- import type { Staging, WorkingCopy, Worktree } from "@statewalker/vcs-working-tree";
2
+ import { type Staging, type WorkingCopy, type Worktree } from "@statewalker/vcs-working-tree";
3
3
  /**
4
4
  * Extended Trees interface with legacy method names for command compatibility.
5
5
  */
@@ -49,6 +49,7 @@ export interface CommandCommits extends Commits {
49
49
  export declare abstract class GitCommand<T> {
50
50
  protected readonly _workingCopy: WorkingCopy;
51
51
  private callable;
52
+ private racyCheckInstalled;
52
53
  constructor(workingCopy: WorkingCopy);
53
54
  /**
54
55
  * Access blob storage.
@@ -77,6 +78,14 @@ export declare abstract class GitCommand<T> {
77
78
  * Supports both new architecture (checkout.staging) and legacy/init (staging directly).
78
79
  */
79
80
  protected get staging(): Staging;
81
+ /**
82
+ * Gives the staging git's racy-git smudging for its writes: an entry whose mtime second is
83
+ * not older than the index file and whose content changed behind a matching stat is
84
+ * written with size 0 (`ce_smudge_racily_clean_entry`), so a later same-size edit in that
85
+ * second is never taken as clean.
86
+ */
87
+ private installRacyCheck;
88
+ private resolveStaging;
80
89
  /**
81
90
  * Access worktree interface.
82
91
  */
@@ -1 +1 @@
1
- {"version":3,"file":"git-command.d.ts","sourceRoot":"","sources":["../src/git-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACN,OAAO,EACP,QAAQ,EACR,GAAG,EACH,IAAI,EACJ,WAAW,EACX,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,KAAK,EACN,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAIpF;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ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tC;IAED;;;OAGG;IACH,SAAS,KAAK,SAAS,IAAI,WAAW,GAAG,SAAS,CAMjD;IAED;;;OAGG;IACH,SAAS,KAAK,SAAS,IAAI,WAAW,CAKrC;IAED;;;OAGG;IACH,SAAS,KAAK,OAAO,IAAI,OAAO,CAO/B;IAED;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAkBxB,OAAO,CAAC,cAAc;IActB;;OAEG;IACH,SAAS,KAAK,cAAc,IAAI,QAAQ,GAAG,SAAS,CAEnD;IAED;;OAEG;IACH,SAAS,KAAK,WAAW,IAAI,WAAW,CAEvC;IAED;;;OAGG;IACH,QAAQ,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;IAE5B;;;OAGG;IACH,SAAS,CAAC,aAAa,IAAI,IAAI,CAI9B;IAED;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAE1C;IAED;;;;;OAKG;IACH,UAAgB,WAAW,IAAI,OAAO,CAAC,QAAQ,CAAC,CAM/C;IAED;;;;OAIG;IACH,UAAgB,gBAAgB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAM9D;IAED;;;;;;OAMG;IACH,UAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAgC7D;IAED;;OAEG;YACW,kBAAkB;IA4ChC;;OAEG;YACW,YAAY;IAwB1B;;;;;OAKG;IACH,UAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,GAAG,WAAW,GAAG,SAAS,CAAC,CAE9E;CACF"}
package/dist/git.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { History } from "@statewalker/vcs-core";
2
2
  import type { Checkout, WorkingCopy, Worktree } from "@statewalker/vcs-working-tree";
3
- import { AddCommand, BlameCommand, CheckoutCommand, CherryPickCommand, CleanCommand, CloneCommand, CommitCommand, CreateBranchCommand, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DiffCommand, FetchCommand, GarbageCollectCommand, InitCommand, ListBranchCommand, ListTagCommand, LogCommand, LsRemoteCommand, MergeCommand, PackRefsCommand, PullCommand, PushCommand, RebaseCommand, ReflogCommand, RemoteAddCommand, RemoteListCommand, RemoteRemoveCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, RevertCommand, RmCommand, StashApplyCommand, StashCreateCommand, StashDropCommand, StashListCommand, StatusCommand, TagCommand } from "./commands/index.js";
3
+ import { AddCommand, BlameCommand, CheckoutCommand, CherryPickCommand, CleanCommand, CloneCommand, CommitCommand, CreateBranchCommand, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DiffCommand, FetchCommand, GarbageCollectCommand, InitCommand, ListBranchCommand, ListTagCommand, LogCommand, LsRemoteCommand, MergeCommand, PackRefsCommand, PullCommand, PushCommand, RebaseCommand, ReflogCommand, RemoteAddCommand, RemoteListCommand, RemoteRemoveCommand, RemoteRenameCommand, RemoteSetHeadCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, RevertCommand, RmCommand, StashApplyCommand, StashCreateCommand, StashDropCommand, StashListCommand, StatusCommand, TagCommand } from "./commands/index.js";
4
4
  /**
5
5
  * Main entry point for high-level Git operations.
6
6
  *
@@ -365,7 +365,7 @@ export declare class Git implements Disposable {
365
365
  */
366
366
  clean(): CleanCommand;
367
367
  /**
368
- * Create a StatusCommand for showing staging area status.
368
+ * Create a StatusCommand for showing the index and worktree status.
369
369
  *
370
370
  * @example
371
371
  * ```typescript
@@ -487,6 +487,24 @@ export declare class Git implements Disposable {
487
487
  * ```
488
488
  */
489
489
  remoteSetUrl(): RemoteSetUrlCommand;
490
+ /**
491
+ * Create a RemoteSetHeadCommand for setting or deleting `refs/remotes/<name>/HEAD`.
492
+ *
493
+ * @example
494
+ * ```typescript
495
+ * await git.remoteSetHead().setRemoteName("origin").setBranch("develop").call();
496
+ * ```
497
+ */
498
+ remoteSetHead(): RemoteSetHeadCommand;
499
+ /**
500
+ * Create a RemoteRenameCommand for renaming a remote (`git remote rename`).
501
+ *
502
+ * @example
503
+ * ```typescript
504
+ * await git.remoteRename().setOldName("origin").setNewName("upstream").call();
505
+ * ```
506
+ */
507
+ remoteRename(): RemoteRenameCommand;
490
508
  /**
491
509
  * Create a RebaseCommand for rebasing commits.
492
510
  *
@@ -509,8 +527,8 @@ export declare class Git implements Disposable {
509
527
  *
510
528
  * @example
511
529
  * ```typescript
530
+ * // the working copy's index and worktree are stashed, then reset to HEAD
512
531
  * const stashCommit = await git.stashCreate()
513
- * .setWorkingTreeProvider(provider)
514
532
  * .setMessage("WIP: feature work")
515
533
  * .call();
516
534
  * ```
package/dist/git.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAErF,OAAO,EACL,UAAU,EACV,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,eAAe,EACf,YAAY,EACZ,eAAe,EACf,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,UAAU,EACX,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,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H,IAAI,aAAa,IAAI,QAAQ,GAAG,SAAS,CAExC;IAED;;;;;;;;;;;;;;;OAeG;IACH,IAAI,QAAQ,IAAI,QAAQ,GAAG,SAAS,CAEnC;IAID;;;;;OAKG;IACH,KAAK,IAAI,IAAI,CAEZ;IAED;;OAEG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,CAEvB;IAID,OAAO,CAAC,WAAW;CAKpB"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as GitCommand, 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, O as Git, P as CloneCommand, Q as AddCommand, R as toTrackingRefUpdate, S as PackRefsCommand, T as LogCommand, U as CheckoutStage, V as CherryPickCommand, W as CheckoutStatus, X as ResetMode, Y as ListBranchMode, 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, z as TransportCommand } from "./commands-BpeXZTC3.js";
2
- import { AuthenticationError, CannotDeleteCurrentBranchError, CommitNotFoundError, DetachedHeadError, EmptyCommitError, GitApiError, IncompatibleOptionsError, InvalidArgumentError, InvalidMainlineParentError, InvalidMergeHeadsError, InvalidRefNameError, InvalidRemoteError, InvalidStashIndexError, InvalidTagNameError, MergeConflictError, MergeFailureReason, MissingArgumentError, MultipleParentsNotAllowedError, NoFilepatternError, NoHeadError, NoMergeBaseError, NoMessageError, NoRebaseInProgressError, NonFastForwardError, NotADirectoryError, NotFastForwardError, NotImplementedError, NotMergedError, PathNotFoundInTreeError, PathNotInIndexError, PushRejectedException, RefAlreadyExistsError, RefNotFoundError, RemoteAlreadyExistsError, RemoteNotFoundError, StashApplyFailedError, StashNotFoundError, StoreNotAvailableError, TransportError, UnmergedPathsError, UpstreamRequiredError } from "./errors/index.js";
3
- import { C as isMergeSuccessful, S as MergeStrategy, _ as getSuccessfulUpdates, a as RebaseStatus, b as FastForwardMode, c as getFailedUpdates, d as createAddEntry, f as createCopyEntry, g as RefUpdateStatus, h as createRenameEntry, i as RebaseAction, l as isPushSuccessful, m as createModifyEntry, n as StashApplyStatus, o as isRebaseSuccessful, p as createDeleteEntry, r as RevertStatus, s as PushStatus, t as StatusImpl, u as ChangeType, v as hasUpdates, w as CherryPickStatus, x as MergeStatus, y as ContentMergeStrategy } from "./status-result-BapZoQaR.js";
1
+ import { $ as ResetMode, A as InitCommand, B as toTagMode, C as PushCommand, D as LsRemoteCommand, E as MergeCommand, F as DescribeCommand, G as CheckoutCommand, H as TransportCommand, I as CommitCommand, J as CreateBranchCommand, K as CheckoutStage, L as CloneCommand, M as GarbageCollectCommand, N as DiffCommand, O as LogCommand, P as formatDiffEntry, Q as ListBranchMode, R as FetchCommand, S as RebaseOperation, T as PackRefsCommand, U as CleanCommand, V as toTrackingRefUpdate, W as CherryPickCommand, X as ListBranchCommand, Y as DeleteBranchCommand, Z as RenameBranchCommand, _ as RemoteRenameCommand, a as StashDropCommand, b as ReflogCommand, c as StashApplyCommand, d as RmCommand, et as BlameCommand, f as RevertCommand, g as RemoteRemoveCommand, h as RemoteListCommand, i as StatusCommand, j as Git, k as RevFilter, l as STASH_REF, m as RemoteAddCommand, n as ListTagCommand, nt as GitCommand, o as StashCreateCommand, p as ResetCommand, q as CheckoutStatus, r as TagCommand, s as WorkingCopyStashProvider, t as DeleteTagCommand, tt as AddCommand, u as StashListCommand, v as RemoteSetHeadCommand, w as PullCommand, x as RebaseCommand, y as RemoteSetUrlCommand, z as TagOption } from "./commands-CsLNyvZ1.js";
2
+ import { AuthenticationError, CannotDeleteCurrentBranchError, CloneCheckoutError, CommitNotFoundError, DetachedHeadError, EmptyCommitError, GitApiError, IncompatibleOptionsError, InvalidArgumentError, InvalidMainlineParentError, InvalidMergeHeadsError, InvalidRefNameError, InvalidRemoteError, InvalidStashIndexError, InvalidTagNameError, MergeConflictError, MergeFailureReason, MissingArgumentError, MultipleParentsNotAllowedError, NoFilepatternError, NoHeadError, NoMergeBaseError, NoMessageError, NoRebaseInProgressError, NonFastForwardError, NotADirectoryError, NotFastForwardError, NotImplementedError, NotMergedError, PathNotFoundInTreeError, PathNotInIndexError, PushRejectedException, RefAlreadyExistsError, RefNotFoundError, RemoteAlreadyExistsError, RemoteNotFoundError, StashApplyFailedError, StashNotFoundError, StoreNotAvailableError, TransportError, UnmergedPathsError, UpstreamRequiredError } from "./errors/index.js";
3
+ import { C as MergeStrategy, S as MergeStatus, T as CherryPickStatus, _ as RefUpdateStatus, a as RebaseAction, b as ContentMergeStrategy, c as PushStatus, d as ChangeType, f as createAddEntry, g as createRenameEntry, h as createModifyEntry, i as RevertStatus, l as getFailedUpdates, m as createDeleteEntry, n as formatStatusPorcelain, o as RebaseStatus, p as createCopyEntry, r as StashApplyStatus, s as isRebaseSuccessful, t as StatusImpl, u as isPushSuccessful, v as getSuccessfulUpdates, w as isMergeSuccessful, x as FastForwardMode, y as hasUpdates } from "./status-result-BpyUK1Sg.js";
4
4
  import { DiffFormatter, isPullSuccessful } from "./results/index.js";
5
- export { AddCommand, AuthenticationError, BlameCommand, CannotDeleteCurrentBranchError, ChangeType, CheckoutCommand, CheckoutStage, CheckoutStatus, CherryPickCommand, CherryPickStatus, CleanCommand, CloneCommand, CommitCommand, CommitNotFoundError, ContentMergeStrategy, CreateBranchCommand, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DetachedHeadError, DiffCommand, DiffFormatter, EmptyCommitError, FastForwardMode, FetchCommand, GarbageCollectCommand, Git, GitApiError, GitCommand, IncompatibleOptionsError, InitCommand, InvalidArgumentError, InvalidMainlineParentError, InvalidMergeHeadsError, InvalidRefNameError, InvalidRemoteError, InvalidStashIndexError, InvalidTagNameError, ListBranchCommand, ListBranchMode, ListTagCommand, LogCommand, LsRemoteCommand, MergeCommand, MergeConflictError, MergeFailureReason, MergeStatus, MergeStrategy, MissingArgumentError, MultipleParentsNotAllowedError, NoFilepatternError, NoHeadError, NoMergeBaseError, NoMessageError, NoRebaseInProgressError, NonFastForwardError, NotADirectoryError, NotFastForwardError, NotImplementedError, NotMergedError, PackRefsCommand, PathNotFoundInTreeError, PathNotInIndexError, PullCommand, PushCommand, PushRejectedException, PushStatus, RebaseAction, RebaseCommand, RebaseOperation, RebaseStatus, RefAlreadyExistsError, RefNotFoundError, RefUpdateStatus, ReflogCommand, RemoteAddCommand, RemoteAlreadyExistsError, RemoteListCommand, RemoteNotFoundError, RemoteRemoveCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, ResetMode, RevFilter, RevertCommand, RevertStatus, RmCommand, STASH_REF, StashApplyCommand, StashApplyFailedError, StashApplyStatus, StashCreateCommand, StashDropCommand, StashListCommand, StashNotFoundError, StatusCommand, StatusImpl, StoreNotAvailableError, TagCommand, TagOption, TransportCommand, TransportError, UnmergedPathsError, UpstreamRequiredError, createAddEntry, createCopyEntry, createDeleteEntry, createModifyEntry, createRenameEntry, formatDiffEntry, getFailedUpdates, getSuccessfulUpdates, hasUpdates, isMergeSuccessful, isPullSuccessful, isPushSuccessful, isRebaseSuccessful, toTagMode, toTrackingRefUpdate };
5
+ export { AddCommand, AuthenticationError, BlameCommand, CannotDeleteCurrentBranchError, ChangeType, CheckoutCommand, CheckoutStage, CheckoutStatus, CherryPickCommand, CherryPickStatus, CleanCommand, CloneCheckoutError, CloneCommand, CommitCommand, CommitNotFoundError, ContentMergeStrategy, CreateBranchCommand, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DetachedHeadError, DiffCommand, DiffFormatter, EmptyCommitError, FastForwardMode, FetchCommand, GarbageCollectCommand, Git, GitApiError, GitCommand, IncompatibleOptionsError, InitCommand, InvalidArgumentError, InvalidMainlineParentError, InvalidMergeHeadsError, InvalidRefNameError, InvalidRemoteError, InvalidStashIndexError, InvalidTagNameError, ListBranchCommand, ListBranchMode, ListTagCommand, LogCommand, LsRemoteCommand, MergeCommand, MergeConflictError, MergeFailureReason, MergeStatus, MergeStrategy, MissingArgumentError, MultipleParentsNotAllowedError, NoFilepatternError, NoHeadError, NoMergeBaseError, NoMessageError, NoRebaseInProgressError, NonFastForwardError, NotADirectoryError, NotFastForwardError, NotImplementedError, NotMergedError, PackRefsCommand, PathNotFoundInTreeError, PathNotInIndexError, PullCommand, PushCommand, PushRejectedException, PushStatus, RebaseAction, RebaseCommand, RebaseOperation, RebaseStatus, RefAlreadyExistsError, RefNotFoundError, RefUpdateStatus, ReflogCommand, RemoteAddCommand, RemoteAlreadyExistsError, RemoteListCommand, RemoteNotFoundError, RemoteRemoveCommand, RemoteRenameCommand, RemoteSetHeadCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, ResetMode, RevFilter, RevertCommand, RevertStatus, RmCommand, STASH_REF, StashApplyCommand, StashApplyFailedError, StashApplyStatus, StashCreateCommand, StashDropCommand, StashListCommand, StashNotFoundError, StatusCommand, StatusImpl, StoreNotAvailableError, TagCommand, TagOption, TransportCommand, TransportError, UnmergedPathsError, UpstreamRequiredError, WorkingCopyStashProvider, createAddEntry, createCopyEntry, createDeleteEntry, createModifyEntry, createRenameEntry, formatDiffEntry, formatStatusPorcelain, getFailedUpdates, getSuccessfulUpdates, hasUpdates, isMergeSuccessful, isPullSuccessful, isPushSuccessful, isRebaseSuccessful, toTagMode, toTrackingRefUpdate };
@@ -4,4 +4,5 @@
4
4
  * Internal: not re-exported from `src/index.ts`.
5
5
  */
6
6
  export { defaultFetchRefspec, listRemoteNames, type RemoteConfig, RemoteConfigStore, } from "./remote-config-store.js";
7
+ export { deleteRefs, moveRefs, type RefMove } from "./remote-refs.js";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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;AAClC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -53,10 +53,24 @@ export declare class RemoteConfigStore {
53
53
  * configured, exactly as `git remote` reports one.
54
54
  */
55
55
  read(name: string): RemoteConfig;
56
+ /**
57
+ * The `remote.<name>.fetch` lines as configured, without the default {@link read} fills
58
+ * in: a remote without any fetches only its HEAD, as `git fetch <name>` does.
59
+ */
60
+ configuredFetchRefspecs(name: string): string[];
56
61
  /** Write every field of a remote, replacing whatever was there. */
57
62
  write(remote: RemoteConfig): void;
58
63
  /** Drop the whole `[remote "<name>"]` section. */
59
64
  remove(name: string): void;
65
+ /**
66
+ * Rename the `[remote "<oldName>"]` section to `[remote "<newName>"]`, in place where the
67
+ * config can (git's rename_section), else by copying every `remote.<oldName>.*` variable.
68
+ */
69
+ rename(oldName: string, newName: string): void;
70
+ /** Subsection names of a section (`branch`: the branch names with configuration). */
71
+ subsections(section: string): string[];
72
+ /** Remove every value of a config variable. */
73
+ unset(key: string): void;
60
74
  /**
61
75
  * Point a remote at a URL.
62
76
  *
@@ -78,8 +92,12 @@ export declare class RemoteConfigStore {
78
92
  }): string | undefined;
79
93
  /** A config variable (`push.default`, `branch.main.merge`), the last value when repeated. */
80
94
  value(key: string): string | undefined;
95
+ /** Every value of a config variable (`branch.main.merge` may repeat). */
96
+ values(key: string): string[];
81
97
  /** Sets a config variable, replacing every value it had. */
82
98
  setValue(key: string, value: string): void;
99
+ /** Sets every value of a config variable, in order (none: unset). */
100
+ setValues(key: string, values: string[]): void;
83
101
  /** Flush to the backing file, if the config has one. */
84
102
  save(): Promise<void>;
85
103
  private strings;
@@ -1 +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,YAA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AO,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,6FAA6F;IAC7F,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGrC;IAED,yEAAyE;IACzE,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAK5B;IAED,4DAA4D;IAC5D,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAEzC;IAED,qEAAqE;IACrE,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAO7C;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,37 @@
1
+ /**
2
+ * Multi-ref writes of the remote commands (`git remote remove`, `git remote rename`,
3
+ * `git fetch --prune`), as one ref batch where the store can apply it.
4
+ *
5
+ * Internal to the package.
6
+ */
7
+ import { type OwnReflogLine, type Refs } from "@statewalker/vcs-core";
8
+ /** One ref of a {@link moveRefs}: where it goes and the reflog it takes along. */
9
+ export interface RefMove {
10
+ from: string;
11
+ to: string;
12
+ /** The reflog lines of the new name, oldest first (git carries the old log over) */
13
+ reflog?: OwnReflogLine[];
14
+ }
15
+ /**
16
+ * Deletes `names` with their reflogs: the refs holding an object id in one atomic batch
17
+ * (logged `message` where the store logs deletes), symbolic refs themselves (not their
18
+ * targets) one by one, as git deletes with REF_NO_DEREF. A store that cannot batch several
19
+ * refs (`unsupported`) deletes them one by one.
20
+ *
21
+ * @throws Error naming the refs when the batch is refused (nothing deleted then)
22
+ */
23
+ export declare function deleteRefs(refs: Refs, names: string[], message: string): Promise<void>;
24
+ /**
25
+ * Renames refs, as `git remote rename` moves `refs/remotes/<old>/*`: the refs holding an
26
+ * object id are deleted and created under their new names in one atomic batch, each new
27
+ * name with the reflog lines given (the old log, carried over); symbolic refs are then
28
+ * re-created under their new names pointing at `symbolicTarget(old target)`. A store whose
29
+ * batch refuses several refs (`unsupported`: vcs-core's interim `kvStoreRefs`, which keeps
30
+ * no reflogs) moves them one by one: each new name is created only if it does not exist
31
+ * (compare-and-swap) before the old one goes, so no ref is overwritten or lost.
32
+ *
33
+ * @throws Error naming the refs when the batch is refused (a name conflict: nothing moved),
34
+ * or naming the ref whose new name exists in the one-by-one move (the refs before it moved)
35
+ */
36
+ export declare function moveRefs(refs: Refs, moves: RefMove[], symbolicTarget: (target: string) => string): Promise<void>;
37
+ //# sourceMappingURL=remote-refs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-refs.d.ts","sourceRoot":"","sources":["../../src/remote-config/remote-refs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAiB,KAAK,aAAa,EAAE,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAErF,kFAAkF;AAClF,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,oFAAoF;IACpF,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAmB5F;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,QAAQ,CAC5B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,OAAO,EAAE,EAChB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GACzC,OAAO,CAAC,IAAI,CAAC,CAmCf"}
@@ -20,5 +20,11 @@ export interface CloneResult {
20
20
  bare: boolean;
21
21
  /** Head commit after clone */
22
22
  headCommit?: ObjectId;
23
+ /**
24
+ * Files of the checked-out tree whose paths differ only in case (`README`, `readme`),
25
+ * on a worktree that folds case (`core.ignorecase`): only one of each group is in the
26
+ * worktree, as with git's "the following paths have collided" warning.
27
+ */
28
+ collidedPaths?: string[];
23
29
  }
24
30
  //# sourceMappingURL=clone-result.d.ts.map
@@ -1 +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"}
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;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B"}
@@ -69,8 +69,16 @@ export interface FetchResult {
69
69
  bytesReceived: number;
70
70
  /** Whether the remote repository was empty */
71
71
  isEmpty: boolean;
72
- /** Messages from the remote */
72
+ /**
73
+ * Messages as git prints them: the `followRemoteHEAD=warn` warning and its hint lines,
74
+ * the symbolic refs a prune left dangling
75
+ */
73
76
  messages: string[];
77
+ /**
78
+ * What failed without stopping the fetch (a refused prune), where git reports an error
79
+ * and exits 1; absent when nothing failed
80
+ */
81
+ errors?: string[];
74
82
  /** Submodule fetch results (if any) */
75
83
  submodules?: Map<string, FetchResult>;
76
84
  }
@@ -1 +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;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gGAAgG;IAChG,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,oBAAY,eAAe;IACzB,wCAAwC;IACxC,GAAG,QAAQ;IACX,gCAAgC;IACh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Successful, S as MergeStrategy, _ as getSuccessfulUpdates, a as RebaseStatus, b as FastForwardMode, c as getFailedUpdates, d as createAddEntry, f as createCopyEntry, g as RefUpdateStatus, h as createRenameEntry, i as RebaseAction, l as isPushSuccessful, m as createModifyEntry, n as StashApplyStatus, o as isRebaseSuccessful, p as createDeleteEntry, r as RevertStatus, s as PushStatus, t as StatusImpl, u as ChangeType, v as hasUpdates, w as CherryPickStatus, x as MergeStatus, y as ContentMergeStrategy } from "../status-result-BapZoQaR.js";
1
+ import { C as MergeStrategy, S as MergeStatus, T as CherryPickStatus, _ as RefUpdateStatus, a as RebaseAction, b as ContentMergeStrategy, c as PushStatus, d as ChangeType, f as createAddEntry, g as createRenameEntry, h as createModifyEntry, i as RevertStatus, l as getFailedUpdates, m as createDeleteEntry, n as formatStatusPorcelain, o as RebaseStatus, p as createCopyEntry, r as StashApplyStatus, s as isRebaseSuccessful, t as StatusImpl, u as isPushSuccessful, v as getSuccessfulUpdates, w as isMergeSuccessful, x as FastForwardMode, y as hasUpdates } from "../status-result-BpyUK1Sg.js";
2
2
  import { DEFAULT_BIG_FILE_THRESHOLD, probeBlob } from "@statewalker/vcs-core";
3
3
  import { DEFAULT_ALGORITHM, RawText, RawTextComparator, getAlgorithm } from "@statewalker/vcs-utils";
4
4
  //#region src/results/diff-formatter.ts
@@ -249,4 +249,4 @@ function isPullSuccessful(result) {
249
249
  return result.successful;
250
250
  }
251
251
  //#endregion
252
- export { ChangeType, CherryPickStatus, ContentMergeStrategy, DiffFormatter, FastForwardMode, MergeStatus, MergeStrategy, PushStatus, RebaseAction, RebaseStatus, RefUpdateStatus, RevertStatus, StashApplyStatus, StatusImpl, createAddEntry, createCopyEntry, createDeleteEntry, createModifyEntry, createRenameEntry, getFailedUpdates, getSuccessfulUpdates, hasUpdates, isMergeSuccessful, isPullSuccessful, isPushSuccessful, isRebaseSuccessful };
252
+ export { ChangeType, CherryPickStatus, ContentMergeStrategy, DiffFormatter, FastForwardMode, MergeStatus, MergeStrategy, PushStatus, RebaseAction, RebaseStatus, RefUpdateStatus, RevertStatus, StashApplyStatus, StatusImpl, createAddEntry, createCopyEntry, createDeleteEntry, createModifyEntry, createRenameEntry, formatStatusPorcelain, getFailedUpdates, getSuccessfulUpdates, hasUpdates, isMergeSuccessful, isPullSuccessful, isPushSuccessful, isRebaseSuccessful };
@@ -1,48 +1,119 @@
1
+ import type { ObjectId } from "@statewalker/vcs-core";
2
+ import type { StageStateValue } from "@statewalker/vcs-working-tree";
1
3
  /**
2
- * Status of the staging area compared to HEAD.
4
+ * One column of `git status --porcelain`: `X` (the index against HEAD) or `Y` (the
5
+ * worktree against the index). `" "` unchanged, `M` modified, `T` type changed, `A` added,
6
+ * `D` deleted, `U` unmerged, `?` untracked, `!` ignored.
7
+ */
8
+ export type StatusCode = " " | "M" | "T" | "A" | "D" | "U" | "?" | "!";
9
+ /** A side of a path: its mode and object id. */
10
+ export interface StatusSide {
11
+ mode: number;
12
+ id: ObjectId;
13
+ }
14
+ /**
15
+ * The status of one path, as a line of `git status --porcelain` describes it.
3
16
  *
4
- * This is a simplified version for repositories without working trees,
5
- * focusing on staged changes and conflicts.
17
+ * @example
18
+ * ```typescript
19
+ * const entry = status.files.find((f) => f.path === "a.txt");
20
+ * // { path: "a.txt", index: "M", worktree: " ", head: {...}, staged: {...} }
21
+ * ```
22
+ */
23
+ export interface StatusFileEntry {
24
+ path: string;
25
+ /** `X`: the index against HEAD (`U` for an unmerged path, `?`/`!` for untracked/ignored) */
26
+ index: StatusCode;
27
+ /** `Y`: the worktree against the index */
28
+ worktree: StatusCode;
29
+ /** The HEAD entry, if HEAD has the path */
30
+ head?: StatusSide;
31
+ /** The index entry (stage 0), if the index has the path */
32
+ staged?: StatusSide;
33
+ /** The mode git would stage for the worktree file, if there is one */
34
+ worktreeMode?: number;
35
+ /** A submodule whose checked-out commit differs from the index's (porcelain v2 `SC..`) */
36
+ submoduleCommitChanged?: boolean;
37
+ /** An unmerged path's stages 1-3 (base, ours, theirs) */
38
+ stages?: [StatusSide | undefined, StatusSide | undefined, StatusSide | undefined];
39
+ }
40
+ /**
41
+ * Status of the repository: the index against HEAD, and the worktree against the index, as
42
+ * `git status` reports them.
6
43
  *
7
- * Based on JGit's Status but without working tree operations.
44
+ * Based on JGit's Status.
8
45
  */
9
46
  export interface Status {
10
- /**
11
- * Files added to staging (not in HEAD).
12
- */
47
+ /** Files added to the index (not in HEAD). */
13
48
  readonly added: Set<string>;
14
- /**
15
- * Files modified in staging (different from HEAD).
16
- */
49
+ /** Files changed in the index (content, mode or type differs from HEAD). */
17
50
  readonly changed: Set<string>;
18
- /**
19
- * Files removed from staging (in HEAD but not in staging).
20
- */
51
+ /** Files removed from the index (in HEAD, not in the index). */
21
52
  readonly removed: Set<string>;
53
+ /** Files with merge conflicts (unmerged index entries). */
54
+ readonly conflicting: Set<string>;
55
+ /** The kind of each conflict (both modified, deleted by them, ...). */
56
+ readonly conflictingStageState: Map<string, StageStateValue>;
57
+ /** Tracked files whose worktree content, mode or type differs from the index. */
58
+ readonly modified: Set<string>;
59
+ /** Tracked files missing from the worktree. */
60
+ readonly missing: Set<string>;
61
+ /** Files the index does not track (a nested repository as `sub/`). */
62
+ readonly untracked: Set<string>;
63
+ /** Untracked files the ignore rules exclude (only with `setIgnored(true)`). */
64
+ readonly ignored: Set<string>;
22
65
  /**
23
- * Files with merge conflicts.
66
+ * Every path with a status, as the lines of `git status --porcelain`: a path HEAD has,
67
+ * the index removed and the worktree still holds appears twice (`D ` and `??`).
24
68
  */
25
- readonly conflicting: Set<string>;
69
+ readonly files: StatusFileEntry[];
26
70
  /**
27
- * Check if the staging area is clean (no changes, no conflicts).
71
+ * Whether there is nothing to report: no staged or unstaged change, no conflict and no
72
+ * untracked file (`git status`: "nothing to commit, working tree clean").
28
73
  */
29
74
  isClean(): boolean;
30
75
  /**
31
- * Check if there are uncommitted changes.
32
- * True if any files are added, changed, removed, or conflicting.
76
+ * Whether there are uncommitted changes to tracked files: staged, unstaged or conflicting
77
+ * (untracked files are not changes).
33
78
  */
34
79
  hasUncommittedChanges(): boolean;
35
80
  }
36
81
  /**
37
- * Implementation of Status interface.
82
+ * Implementation of the Status interface.
38
83
  */
39
84
  export declare class StatusImpl implements Status {
40
85
  readonly added: Set<string>;
41
86
  readonly changed: Set<string>;
42
87
  readonly removed: Set<string>;
43
88
  readonly conflicting: Set<string>;
44
- constructor(added: Set<string>, changed: Set<string>, removed: Set<string>, conflicting: Set<string>);
89
+ readonly modified: Set<string>;
90
+ readonly missing: Set<string>;
91
+ readonly untracked: Set<string>;
92
+ readonly ignored: Set<string>;
93
+ readonly conflictingStageState: Map<string, StageStateValue>;
94
+ readonly files: StatusFileEntry[];
95
+ constructor(added: Set<string>, changed: Set<string>, removed: Set<string>, conflicting: Set<string>, worktree?: {
96
+ modified?: Set<string>;
97
+ missing?: Set<string>;
98
+ untracked?: Set<string>;
99
+ ignored?: Set<string>;
100
+ conflictingStageState?: Map<string, StageStateValue>;
101
+ files?: StatusFileEntry[];
102
+ });
45
103
  isClean(): boolean;
46
104
  hasUncommittedChanges(): boolean;
47
105
  }
106
+ /**
107
+ * The status as `git status --porcelain` (v1) or `--porcelain=v2` prints it, with
108
+ * `--untracked-files=all` (and the ignored files when the status has them): the changed
109
+ * tracked paths first, then the untracked, then the ignored ones, each in git's path order.
110
+ * Renames are not detected (as `-c status.renames=false`).
111
+ *
112
+ * @example
113
+ * ```typescript
114
+ * formatStatusPorcelain(await git.status().call());
115
+ * // " M a.txt\nA b.txt\n?? new.txt\n"
116
+ * ```
117
+ */
118
+ export declare function formatStatusPorcelain(status: Status, version?: 1 | 2): string;
48
119
  //# sourceMappingURL=status-result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"status-result.d.ts","sourceRoot":"","sources":["../../src/results/status-result.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CA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