@statewalker/vcs-commands 0.8.0 → 0.9.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 (297) hide show
  1. package/dist/commands/add-command.d.ts +32 -0
  2. package/dist/commands/add-command.d.ts.map +1 -1
  3. package/dist/commands/add-patch/add-patch.d.ts +7 -0
  4. package/dist/commands/add-patch/add-patch.d.ts.map +1 -1
  5. package/dist/commands/add-patch/patch-backend.d.ts.map +1 -1
  6. package/dist/commands/am/am-command.d.ts +47 -0
  7. package/dist/commands/am/am-command.d.ts.map +1 -1
  8. package/dist/commands/apply/apply-command.d.ts +2 -0
  9. package/dist/commands/apply/apply-command.d.ts.map +1 -1
  10. package/dist/commands/apply/apply-parse.d.ts +7 -0
  11. package/dist/commands/apply/apply-parse.d.ts.map +1 -1
  12. package/dist/commands/apply/index.d.ts +1 -1
  13. package/dist/commands/apply/index.d.ts.map +1 -1
  14. package/dist/commands/blame-command.d.ts +303 -8
  15. package/dist/commands/blame-command.d.ts.map +1 -1
  16. package/dist/commands/blame-ignore.d.ts +48 -0
  17. package/dist/commands/blame-ignore.d.ts.map +1 -0
  18. package/dist/commands/check-mailmap-command.d.ts +49 -0
  19. package/dist/commands/check-mailmap-command.d.ts.map +1 -0
  20. package/dist/commands/checkout-command.d.ts +7 -0
  21. package/dist/commands/checkout-command.d.ts.map +1 -1
  22. package/dist/commands/checkout-paths.d.ts +4 -0
  23. package/dist/commands/checkout-paths.d.ts.map +1 -1
  24. package/dist/commands/cherry-command.d.ts +61 -0
  25. package/dist/commands/cherry-command.d.ts.map +1 -0
  26. package/dist/commands/cherry-pick-command.d.ts +23 -1
  27. package/dist/commands/cherry-pick-command.d.ts.map +1 -1
  28. package/dist/commands/clean-command.d.ts +32 -0
  29. package/dist/commands/clean-command.d.ts.map +1 -1
  30. package/dist/commands/clean-interactive.d.ts +56 -0
  31. package/dist/commands/clean-interactive.d.ts.map +1 -0
  32. package/dist/commands/clone-command.d.ts +116 -2
  33. package/dist/commands/clone-command.d.ts.map +1 -1
  34. package/dist/commands/commit-command.d.ts +50 -2
  35. package/dist/commands/commit-command.d.ts.map +1 -1
  36. package/dist/commands/describe-command.d.ts +71 -64
  37. package/dist/commands/describe-command.d.ts.map +1 -1
  38. package/dist/commands/diff-command.d.ts +118 -6
  39. package/dist/commands/diff-command.d.ts.map +1 -1
  40. package/dist/commands/fetch-command.d.ts +60 -0
  41. package/dist/commands/fetch-command.d.ts.map +1 -1
  42. package/dist/commands/fetch-multiple-command.d.ts +193 -0
  43. package/dist/commands/fetch-multiple-command.d.ts.map +1 -0
  44. package/dist/commands/format-patch-command.d.ts +28 -2
  45. package/dist/commands/format-patch-command.d.ts.map +1 -1
  46. package/dist/commands/git-describe.d.ts +77 -4
  47. package/dist/commands/git-describe.d.ts.map +1 -1
  48. package/dist/commands/git-hooks.d.ts +15 -1
  49. package/dist/commands/git-hooks.d.ts.map +1 -1
  50. package/dist/commands/index.d.ts +12 -0
  51. package/dist/commands/index.d.ts.map +1 -1
  52. package/dist/commands/index.js +5 -3
  53. package/dist/commands/init-command.d.ts +89 -0
  54. package/dist/commands/init-command.d.ts.map +1 -1
  55. package/dist/commands/line-log.d.ts +161 -0
  56. package/dist/commands/line-log.d.ts.map +1 -0
  57. package/dist/commands/log-command.d.ts +235 -6
  58. package/dist/commands/log-command.d.ts.map +1 -1
  59. package/dist/commands/log-graph.d.ts +4 -2
  60. package/dist/commands/log-graph.d.ts.map +1 -1
  61. package/dist/commands/log-output.d.ts +66 -1
  62. package/dist/commands/log-output.d.ts.map +1 -1
  63. package/dist/commands/mailmap.d.ts +24 -1
  64. package/dist/commands/mailmap.d.ts.map +1 -1
  65. package/dist/commands/merge-command.d.ts +51 -1
  66. package/dist/commands/merge-command.d.ts.map +1 -1
  67. package/dist/commands/merge-drivers.d.ts +2 -0
  68. package/dist/commands/merge-drivers.d.ts.map +1 -1
  69. package/dist/commands/merge-strategy-options.d.ts +69 -0
  70. package/dist/commands/merge-strategy-options.d.ts.map +1 -0
  71. package/dist/commands/merge-support.d.ts +10 -0
  72. package/dist/commands/merge-support.d.ts.map +1 -1
  73. package/dist/commands/message-cleanup.d.ts +2 -0
  74. package/dist/commands/message-cleanup.d.ts.map +1 -1
  75. package/dist/commands/name-rev-command.d.ts +65 -0
  76. package/dist/commands/name-rev-command.d.ts.map +1 -0
  77. package/dist/commands/name-rev.d.ts +110 -22
  78. package/dist/commands/name-rev.d.ts.map +1 -1
  79. package/dist/commands/octopus-merge.d.ts +26 -1
  80. package/dist/commands/octopus-merge.d.ts.map +1 -1
  81. package/dist/commands/ort-merge.d.ts +16 -0
  82. package/dist/commands/ort-merge.d.ts.map +1 -1
  83. package/dist/commands/ort-recursive.d.ts.map +1 -1
  84. package/dist/commands/patch-id.d.ts +58 -0
  85. package/dist/commands/patch-id.d.ts.map +1 -1
  86. package/dist/commands/pull-command.d.ts +182 -38
  87. package/dist/commands/pull-command.d.ts.map +1 -1
  88. package/dist/commands/push-command.d.ts +65 -0
  89. package/dist/commands/push-command.d.ts.map +1 -1
  90. package/dist/commands/range-diff/index.d.ts +4 -0
  91. package/dist/commands/range-diff/index.d.ts.map +1 -0
  92. package/dist/commands/range-diff/linear-assignment.d.ts +27 -0
  93. package/dist/commands/range-diff/linear-assignment.d.ts.map +1 -0
  94. package/dist/commands/range-diff/range-diff-command.d.ts +121 -0
  95. package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -0
  96. package/dist/commands/range-diff/range-diff.d.ts +106 -0
  97. package/dist/commands/range-diff/range-diff.d.ts.map +1 -0
  98. package/dist/commands/read-tree-command.d.ts +14 -0
  99. package/dist/commands/read-tree-command.d.ts.map +1 -1
  100. package/dist/commands/rebase-command.d.ts +21 -2
  101. package/dist/commands/rebase-command.d.ts.map +1 -1
  102. package/dist/commands/remerge-diff.d.ts +59 -0
  103. package/dist/commands/remerge-diff.d.ts.map +1 -0
  104. package/dist/commands/remote-command.d.ts +41 -0
  105. package/dist/commands/remote-command.d.ts.map +1 -1
  106. package/dist/commands/remote-show-command.d.ts +204 -0
  107. package/dist/commands/remote-show-command.d.ts.map +1 -0
  108. package/dist/commands/reset-command.d.ts +19 -1
  109. package/dist/commands/reset-command.d.ts.map +1 -1
  110. package/dist/commands/restore-command.d.ts +7 -0
  111. package/dist/commands/restore-command.d.ts.map +1 -1
  112. package/dist/commands/rev-list-command.d.ts +75 -3
  113. package/dist/commands/rev-list-command.d.ts.map +1 -1
  114. package/dist/commands/revert-command.d.ts +22 -1
  115. package/dist/commands/revert-command.d.ts.map +1 -1
  116. package/dist/commands/revision-range.d.ts +2 -0
  117. package/dist/commands/revision-range.d.ts.map +1 -1
  118. package/dist/commands/sequencer-pick.d.ts +102 -1
  119. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  120. package/dist/commands/sequencer-support.d.ts +10 -1
  121. package/dist/commands/sequencer-support.d.ts.map +1 -1
  122. package/dist/commands/shortlog-command.d.ts +109 -0
  123. package/dist/commands/shortlog-command.d.ts.map +1 -0
  124. package/dist/commands/shortlog.d.ts +151 -0
  125. package/dist/commands/shortlog.d.ts.map +1 -0
  126. package/dist/commands/status-command.d.ts +31 -2
  127. package/dist/commands/status-command.d.ts.map +1 -1
  128. package/dist/commands/submodule-commands.d.ts +90 -2
  129. package/dist/commands/submodule-commands.d.ts.map +1 -1
  130. package/dist/commands/submodule-fetch.d.ts +149 -0
  131. package/dist/commands/submodule-fetch.d.ts.map +1 -0
  132. package/dist/commands/submodule-model.d.ts +8 -0
  133. package/dist/commands/submodule-model.d.ts.map +1 -1
  134. package/dist/commands/submodule-unpack.d.ts +120 -0
  135. package/dist/commands/submodule-unpack.d.ts.map +1 -0
  136. package/dist/commands/submodule-update-command.d.ts +8 -0
  137. package/dist/commands/submodule-update-command.d.ts.map +1 -1
  138. package/dist/commands/subtree-shift.d.ts +27 -0
  139. package/dist/commands/subtree-shift.d.ts.map +1 -0
  140. package/dist/commands/switch-command.d.ts +3 -0
  141. package/dist/commands/switch-command.d.ts.map +1 -1
  142. package/dist/commands/tree-restore.d.ts.map +1 -1
  143. package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
  144. package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
  145. package/dist/{commands-ISM52N0n.js → commands-CNvli5bl.js} +39426 -61169
  146. package/dist/errors/command-errors.d.ts +25 -0
  147. package/dist/errors/command-errors.d.ts.map +1 -1
  148. package/dist/errors/index.js +29 -1
  149. package/dist/fsck-CPeDh9fh.js +5138 -0
  150. package/dist/git-command.d.ts +31 -1
  151. package/dist/git-command.d.ts.map +1 -1
  152. package/dist/git.d.ts +97 -1
  153. package/dist/git.d.ts.map +1 -1
  154. package/dist/guarded-transport-command.d.ts +82 -0
  155. package/dist/guarded-transport-command.d.ts.map +1 -0
  156. package/dist/index.d.ts +1 -0
  157. package/dist/index.d.ts.map +1 -1
  158. package/dist/index.js +6 -5
  159. package/dist/remote-transport-CCmBadm-.js +1606 -0
  160. package/dist/rename/detect-renames.d.ts +20 -0
  161. package/dist/rename/detect-renames.d.ts.map +1 -1
  162. package/dist/rename/diffcore-break.d.ts +51 -0
  163. package/dist/rename/diffcore-break.d.ts.map +1 -0
  164. package/dist/rename/index.d.ts +1 -0
  165. package/dist/rename/index.d.ts.map +1 -1
  166. package/dist/results/blame-format.d.ts +62 -1
  167. package/dist/results/blame-format.d.ts.map +1 -1
  168. package/dist/results/clone-result.d.ts +9 -0
  169. package/dist/results/clone-result.d.ts.map +1 -1
  170. package/dist/results/diff-dirstat.d.ts +36 -0
  171. package/dist/results/diff-dirstat.d.ts.map +1 -0
  172. package/dist/results/diff-entry.d.ts +10 -0
  173. package/dist/results/diff-entry.d.ts.map +1 -1
  174. package/dist/results/diff-formatter.d.ts.map +1 -1
  175. package/dist/results/diff-output.d.ts +18 -0
  176. package/dist/results/diff-output.d.ts.map +1 -1
  177. package/dist/results/fetch-result.d.ts +12 -1
  178. package/dist/results/fetch-result.d.ts.map +1 -1
  179. package/dist/results/index.d.ts +2 -0
  180. package/dist/results/index.d.ts.map +1 -1
  181. package/dist/results/index.js +2 -2
  182. package/dist/results/init-result.d.ts +8 -1
  183. package/dist/results/init-result.d.ts.map +1 -1
  184. package/dist/results/line-range-hunks.d.ts +27 -0
  185. package/dist/results/line-range-hunks.d.ts.map +1 -0
  186. package/dist/results/merge-result.d.ts +8 -1
  187. package/dist/results/merge-result.d.ts.map +1 -1
  188. package/dist/results/pull-result.d.ts +11 -0
  189. package/dist/results/pull-result.d.ts.map +1 -1
  190. package/dist/results/push-result.d.ts +5 -0
  191. package/dist/results/push-result.d.ts.map +1 -1
  192. package/dist/results/status-result.d.ts +1 -1
  193. package/dist/results/status-result.d.ts.map +1 -1
  194. package/dist/results-BDuEgdLU.js +46847 -0
  195. package/dist/transport-command.d.ts +14 -0
  196. package/dist/transport-command.d.ts.map +1 -1
  197. package/package.json +12 -12
  198. package/src/commands/add-command.ts +115 -0
  199. package/src/commands/add-patch/add-patch.ts +8 -0
  200. package/src/commands/add-patch/patch-backend.ts +20 -2
  201. package/src/commands/am/am-command.ts +138 -4
  202. package/src/commands/apply/apply-command.ts +52 -9
  203. package/src/commands/apply/apply-parse.ts +10 -0
  204. package/src/commands/apply/index.ts +8 -1
  205. package/src/commands/blame-command.ts +1450 -51
  206. package/src/commands/blame-ignore.ts +307 -0
  207. package/src/commands/check-mailmap-command.ts +129 -0
  208. package/src/commands/checkout-command.ts +97 -12
  209. package/src/commands/checkout-paths.ts +28 -0
  210. package/src/commands/cherry-command.ts +187 -0
  211. package/src/commands/cherry-pick-command.ts +42 -1
  212. package/src/commands/clean-command.ts +92 -12
  213. package/src/commands/clean-interactive.ts +522 -0
  214. package/src/commands/clone-command.ts +596 -44
  215. package/src/commands/commit-command.ts +180 -47
  216. package/src/commands/describe-command.ts +341 -254
  217. package/src/commands/diff-command.ts +616 -56
  218. package/src/commands/fetch-command.ts +353 -6
  219. package/src/commands/fetch-multiple-command.ts +665 -0
  220. package/src/commands/format-patch-command.ts +189 -77
  221. package/src/commands/git-describe.ts +456 -217
  222. package/src/commands/git-hooks.ts +42 -3
  223. package/src/commands/index.ts +17 -0
  224. package/src/commands/init-command.ts +603 -49
  225. package/src/commands/line-log.ts +931 -0
  226. package/src/commands/log-command.ts +1414 -177
  227. package/src/commands/log-graph.ts +6 -3
  228. package/src/commands/log-output.ts +173 -10
  229. package/src/commands/mailmap.ts +41 -5
  230. package/src/commands/merge-command.ts +274 -16
  231. package/src/commands/merge-drivers.ts +3 -0
  232. package/src/commands/merge-strategy-options.ts +224 -0
  233. package/src/commands/merge-support.ts +101 -21
  234. package/src/commands/message-cleanup.ts +1 -1
  235. package/src/commands/name-rev-command.ts +184 -0
  236. package/src/commands/name-rev.ts +700 -109
  237. package/src/commands/octopus-merge.ts +35 -11
  238. package/src/commands/ort-merge.ts +41 -7
  239. package/src/commands/ort-recursive.ts +40 -2
  240. package/src/commands/patch-id.ts +109 -0
  241. package/src/commands/pull-command.ts +718 -224
  242. package/src/commands/push-command.ts +353 -3
  243. package/src/commands/range-diff/index.ts +3 -0
  244. package/src/commands/range-diff/linear-assignment.ts +203 -0
  245. package/src/commands/range-diff/range-diff-command.ts +433 -0
  246. package/src/commands/range-diff/range-diff.ts +617 -0
  247. package/src/commands/read-tree-command.ts +74 -3
  248. package/src/commands/rebase-command.ts +141 -65
  249. package/src/commands/remerge-diff.ts +241 -0
  250. package/src/commands/remote-command.ts +98 -10
  251. package/src/commands/remote-show-command.ts +836 -0
  252. package/src/commands/reset-command.ts +78 -3
  253. package/src/commands/restore-command.ts +15 -0
  254. package/src/commands/rev-list-command.ts +187 -11
  255. package/src/commands/revert-command.ts +41 -1
  256. package/src/commands/revision-range.ts +3 -1
  257. package/src/commands/sequencer-pick.ts +323 -29
  258. package/src/commands/sequencer-support.ts +164 -2
  259. package/src/commands/shortlog-command.ts +354 -0
  260. package/src/commands/shortlog.ts +361 -0
  261. package/src/commands/show-command.ts +2 -1
  262. package/src/commands/status-command.ts +115 -25
  263. package/src/commands/status-format.ts +1 -1
  264. package/src/commands/submodule-commands.ts +321 -3
  265. package/src/commands/submodule-fetch.ts +789 -0
  266. package/src/commands/submodule-model.ts +9 -1
  267. package/src/commands/submodule-unpack.ts +265 -0
  268. package/src/commands/submodule-update-command.ts +39 -5
  269. package/src/commands/subtree-shift.ts +215 -0
  270. package/src/commands/switch-command.ts +9 -0
  271. package/src/commands/tree-restore.ts +6 -1
  272. package/src/commands/worktree-overwrite-checks.ts +5 -0
  273. package/src/errors/command-errors.ts +35 -0
  274. package/src/git-command.ts +87 -1
  275. package/src/git.ts +146 -0
  276. package/src/guarded-transport-command.ts +171 -0
  277. package/src/index.ts +1 -0
  278. package/src/rename/detect-renames.ts +42 -8
  279. package/src/rename/diffcore-break.ts +166 -0
  280. package/src/rename/index.ts +1 -0
  281. package/src/results/blame-format.ts +268 -43
  282. package/src/results/clone-result.ts +6 -0
  283. package/src/results/diff-dirstat.ts +117 -0
  284. package/src/results/diff-entry.ts +12 -0
  285. package/src/results/diff-formatter.ts +1 -0
  286. package/src/results/diff-output.ts +127 -2
  287. package/src/results/fetch-result.ts +12 -1
  288. package/src/results/index.ts +2 -0
  289. package/src/results/init-result.ts +10 -1
  290. package/src/results/line-range-hunks.ts +126 -0
  291. package/src/results/merge-result.ts +9 -0
  292. package/src/results/pull-result.ts +7 -0
  293. package/src/results/push-result.ts +5 -0
  294. package/src/results/status-result.ts +2 -2
  295. package/src/transport-command.ts +34 -3
  296. package/dist/fsck-DLRpbwTj.js +0 -13405
  297. package/dist/results-TB2IJ64h.js +0 -4700
@@ -0,0 +1,121 @@
1
+ /**
2
+ * `git range-diff` (builtin/range-diff.c and range-diff.c): two versions of a patch series
3
+ * compared commit by commit.
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * // git range-diff main..topic main..topic-v2
8
+ * const text = await git.rangeDiff().addArgument("main..topic").addArgument("main..topic-v2").callText();
9
+ * // "1: 4de457d = 1: a4b3333 s/5/A/\n2: fccce22 ! 2: f51d370 s/4/A/\n @@ ..."
10
+ * // git range-diff topic...topic-v2, and git range-diff main topic topic-v2, the same
11
+ * ```
12
+ *
13
+ * The arguments are git's: `<base> <old-tip> <new-tip>`, `<old-range> <new-range>` or
14
+ * `<old-tip>...<new-tip>` (either side defaulting to HEAD), each form recognized as git
15
+ * recognizes it, a `--` among them saying which one is meant; what follows the ranges (paths
16
+ * after `--`) goes to the `git log` that reads each range.
17
+ */
18
+ import { GitCommand } from "../../git-command.js";
19
+ import type { LogOutputOptions } from "../log-output.js";
20
+ /** `--notes`, `--notes=<ref>` and `--no-notes` as given: true, the ref, false. */
21
+ export type RangeDiffNotesOption = boolean | string;
22
+ /**
23
+ * What the `git log` reading a range is told of notes (`--show-notes-by-default` and the
24
+ * notes options after it, revision.c's display_notes_opt).
25
+ */
26
+ export declare function rangeDiffNotesOptions(given: readonly RangeDiffNotesOption[]): Pick<LogOutputOptions, "notes" | "notesRefs">;
27
+ /** What reads the patches of a range and prints the pairs (shared with format-patch). */
28
+ export interface RangeDiffRun {
29
+ creationFactor: number;
30
+ /** `--notes`... passed to the log reading each range */
31
+ notes: readonly RangeDiffNotesOption[];
32
+ /** More arguments of that log (paths after `--`) */
33
+ logArgs?: readonly string[];
34
+ dualColor: boolean;
35
+ /** The color of the output (`--color`): undefined reads the configuration */
36
+ color?: boolean;
37
+ leftOnly?: boolean;
38
+ rightOnly?: boolean;
39
+ patch?: boolean;
40
+ stat?: boolean;
41
+ noPatch?: boolean;
42
+ /** `--abbrev=<n>` (undefined: the default length) */
43
+ abbrev?: number;
44
+ /** `--max-memory`: the largest cost matrix in bytes (default 4 GiB) */
45
+ maxMemory?: bigint;
46
+ }
47
+ /**
48
+ * The base of commands printing range-diffs (`show_range_diff`): `git range-diff` and
49
+ * format-patch's `--range-diff`.
50
+ */
51
+ export declare abstract class RangeDiffBase<T> extends GitCommand<T> {
52
+ /** `show_range_diff`: the output for two ranges, as bytes. */
53
+ protected showRangeDiff(range1: string, range2: string, run: RangeDiffRun): Promise<Uint8Array>;
54
+ private readPatches;
55
+ /** `find_unique_abbrev(oid, abbrev)` */
56
+ private shortId;
57
+ /** `pp_commit_easy(CMIT_FMT_ONELINE)` as a binary string. */
58
+ private subjectOf;
59
+ /** `is_range_diff_range`: a revision argument with both a positive and a negative side. */
60
+ protected isRangeDiffRange(arg: string): Promise<boolean>;
61
+ /** `repo_get_oid_committish` succeeds */
62
+ protected isCommittish(arg: string): Promise<boolean>;
63
+ }
64
+ /** `git range-diff`. */
65
+ export declare class RangeDiffCommand extends RangeDiffBase<Uint8Array> {
66
+ private readonly args;
67
+ private creationFactor;
68
+ /** `--no-dual-color` (1), `--dual-color` (0), neither (-1) */
69
+ private simpleColor;
70
+ private color?;
71
+ private leftOnly;
72
+ private rightOnly;
73
+ private readonly notes;
74
+ private noPatch;
75
+ private stat;
76
+ private patch;
77
+ private abbrev?;
78
+ private maxMemory?;
79
+ /**
80
+ * A positional argument as git takes it: a range, a commit, `--`, or what follows the
81
+ * ranges (paths after `--`).
82
+ */
83
+ addArgument(arg: string): this;
84
+ /** A path the ranges' logs are limited to (after a `--`, added when not there yet). */
85
+ addPath(path: string): this;
86
+ /** `--creation-factor=<percent>` (default 60). */
87
+ setCreationFactor(factor: number): this;
88
+ /** `--dual-color` (true: also forces colors) / `--no-dual-color` (false). */
89
+ setDualColor(dual: boolean): this;
90
+ /** `--color` / `--no-color` (unset: `color.diff`/`color.ui`, `auto` is none). */
91
+ setColor(color: boolean): this;
92
+ /** `--left-only`: only what concerns the first range. */
93
+ setLeftOnly(value: boolean): this;
94
+ /** `--right-only`: only what concerns the second range. */
95
+ setRightOnly(value: boolean): this;
96
+ /** `--notes` (true), `--notes=<ref>`, `--no-notes` (false), in order. */
97
+ addNotes(value: RangeDiffNotesOption): this;
98
+ /** `-s` / `--no-patch`: only the pairs. */
99
+ setNoPatch(value: boolean): this;
100
+ /** `--stat`: the diffstat of each changed pair's patches. */
101
+ setStat(value: boolean): this;
102
+ /** `-p`: the patches' diff too (with `--stat`). */
103
+ setPatch(value: boolean): this;
104
+ /** `--abbrev[=<n>]` of the commit ids (true: the default length). */
105
+ setAbbrev(abbrev: number | true): this;
106
+ /**
107
+ * `--max-memory=<size>` (git 2.52): the largest cost matrix built, in bytes or with a `k`,
108
+ * `m` or `g` unit (default 4 GiB, which ours applies whatever the version). A value git
109
+ * refuses fails the call with its `invalid max-memory value` and the usage (exit 129).
110
+ */
111
+ setMaxMemory(size: string | number | bigint): this;
112
+ /** The output as bytes. */
113
+ call(): Promise<Uint8Array>;
114
+ /** {@link call} as bytes. */
115
+ callBytes(): Promise<Uint8Array>;
116
+ /** {@link call} as text (UTF-8). */
117
+ callText(): Promise<string>;
118
+ /** cmd_range_diff's reading of the arguments. */
119
+ private ranges;
120
+ }
121
+ //# sourceMappingURL=range-diff-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range-diff-command.d.ts","sourceRoot":"","sources":["../../../src/commands/range-diff/range-diff-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAwBzD,kFAAkF;AAClF,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,oBAAoB,EAAE,GACrC,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,WAAW,CAAC,CAuB/C;AAED,yFAAyF;AACzF,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,KAAK,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACvC,oDAAoD;IACpD,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,O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ff.c: the commits of two ranges read as patches (`read_patches`, from the
3
+ * output of a `git log -p` with range-diff's own options), paired first by identical diffs
4
+ * (`find_exact_matches`), then by the cheapest assignment of the others (`get_correspondences`:
5
+ * the size of the diff between two patches, against the cost of creating a patch scaled by
6
+ * the creation factor, solved by {@link computeAssignment}), and shown in the order of the
7
+ * second range with the diff of each pair's patches (`output`). Patches are binary strings
8
+ * (one character per byte), so the output is git's byte for byte.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * const a = readRangeDiffPatches(latin1LogOfRange1);
13
+ * const b = readRangeDiffPatches(latin1LogOfRange2);
14
+ * findExactMatches(a, b);
15
+ * getCorrespondences(a, b, 60);
16
+ * const out = await writeRangeDiff(a, b, { abbrev, subject, dualColor: true });
17
+ * ```
18
+ */
19
+ import type { ObjectId } from "@statewalker/vcs-core";
20
+ import type { DiffColors } from "../../results/diff-color.js";
21
+ /** range-diff.h's RANGE_DIFF_CREATION_FACTOR_DEFAULT */
22
+ export declare const RANGE_DIFF_CREATION_FACTOR_DEFAULT = 60;
23
+ /** range-diff.h's CREATION_FACTOR_FOR_THE_SAME_SERIES (format-patch from 2.46 on) */
24
+ export declare const CREATION_FACTOR_FOR_THE_SAME_SERIES = 999;
25
+ /**
26
+ * range-diff.h's RANGE_DIFF_MAX_MEMORY_DEFAULT on 64-bit hosts: the largest cost matrix
27
+ * (`4 * n * n` bytes) range-diff builds, 4 GiB. git 2.52 added it with `--max-memory`;
28
+ * ours applies it whatever the version, so that a huge pair of ranges is refused rather than
29
+ * trying to allocate gigabytes.
30
+ */
31
+ export declare const RANGE_DIFF_MAX_MEMORY_DEFAULT: bigint;
32
+ /**
33
+ * builtin/range-diff.c's `parse_max_memory` (`git_parse_unsigned` up to SIZE_MAX): a number
34
+ * (decimal, `0x` hex or `0` octal, as strtoumax reads it) with an optional `k`, `m` or `g`
35
+ * unit (any case); undefined for what git refuses (`invalid max-memory value`).
36
+ */
37
+ export declare function parseRangeDiffMaxMemory(value: string): bigint | undefined;
38
+ /** strbuf.c's `humanise_bytes` (not compact): `4.00 GiB`, `1.50 MiB`, `12 bytes`. */
39
+ export declare function humaniseBytes(bytes: bigint): string;
40
+ /** Thrown where range-diff dies over the cost matrix's size (exit 128). */
41
+ export declare class RangeDiffMemoryError extends Error {
42
+ }
43
+ /** One commit of a range as range-diff holds it (`struct patch_util`). */
44
+ export interface RangeDiffPatch {
45
+ oid: ObjectId;
46
+ /** The whole patch: the metadata, message and diff sections */
47
+ patch: string;
48
+ /** Where the diff starts in {@link patch} (0 when the commit changes nothing) */
49
+ diffOffset: number;
50
+ /** The lines of the diff part */
51
+ diffsize: number;
52
+ /** Its position in its range */
53
+ i: number;
54
+ /** The position of the matching patch in the other range, or -1 */
55
+ matching: number;
56
+ shown: boolean;
57
+ }
58
+ /** Thrown where range-diff's reading fails (`error(...)`; the command then exits 1). */
59
+ export declare class RangeDiffError extends Error {
60
+ }
61
+ /**
62
+ * `read_patches`: the patches of a `git log --no-color -p --reverse --date-order
63
+ * --decorate=no --no-prefix --submodule=short --no-abbrev-commit --pretty=medium` output
64
+ * (as a binary string, ordinary `+`/`-`/` ` indicators), each commit's section headers
65
+ * (` ## Metadata ##`, ` ## Commit message ##`, ` ## Notes ##`, ` ## <file> ##`) and hunk
66
+ * lines rewritten as git rewrites them.
67
+ */
68
+ export declare function readRangeDiffPatches(log: string, includeMerges?: boolean): RangeDiffPatch[];
69
+ /**
70
+ * `find_exact_matches`: the patches whose diffs are identical paired (several identical ones
71
+ * in `a`: the last one first, as git's hashmap returns them).
72
+ */
73
+ export declare function findExactMatches(a: RangeDiffPatch[], b: RangeDiffPatch[]): void;
74
+ /**
75
+ * `get_correspondences`: the patches not matched exactly paired by the least total cost (the
76
+ * size of the diff between two patches; creating or dropping a patch costs its size times
77
+ * `creationFactor` percent).
78
+ */
79
+ export declare function getCorrespondences(a: RangeDiffPatch[], b: RangeDiffPatch[], creationFactor: number, maxMemory?: bigint): void;
80
+ /** What {@link writeRangeDiff} prints with. */
81
+ export interface RangeDiffOutputOptions {
82
+ /** The palette, or none for no colors */
83
+ colors?: DiffColors;
84
+ /** `dual_color_diffed_diffs` (default true): the outer and inner signs colored apart */
85
+ dualColor?: boolean;
86
+ leftOnly?: boolean;
87
+ rightOnly?: boolean;
88
+ /** `-p`: each pair's diff of patches, also with {@link stat} (shown by default without it) */
89
+ patch?: boolean;
90
+ /** `--stat`: the diffstat of each pair's patches */
91
+ stat?: boolean;
92
+ /** `-s`/`--no-patch`: only the pairs' headers */
93
+ noPatch?: boolean;
94
+ /** A commit id as `find_unique_abbrev` shortens it */
95
+ abbrev(id: ObjectId): Promise<string>;
96
+ /** A commit's oneline subject, as a binary string */
97
+ subject(id: ObjectId): Promise<string>;
98
+ }
99
+ /**
100
+ * `output`: the pairs in the order of the second range, each dropped patch of the first
101
+ * once its predecessors were shown, each pair's header (`n: <id> = n: <id> <subject>`, `!`
102
+ * when the patches differ, `<`/`>` for a patch on one side only) and the diff of its
103
+ * patches, four spaces in. The result is a binary string.
104
+ */
105
+ export declare function writeRangeDiff(a: RangeDiffPatch[], b: RangeDiffPatch[], options: RangeDiffOutputOptions): Promise<string>;
106
+ //# sourceMappingURL=range-diff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range-diff.d.ts","sourceRoot":"","sources":["../../../src/commands/range-diff/range-diff.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAe9D,wDAAwD;AACxD,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,qFAAqF;AACrF,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,QAA6B,CAAC;AAKxE;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAA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AC;IACf,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,MAAM,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACtC,qDAAqD;IACrD,OAAO,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACxC;AAYD;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,CAAC,EAAE,cAAc,EAAE,EACnB,CAAC,EAAE,cAAc,EAAE,EACnB,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,MAAM,CAAC,CAwEjB"}
@@ -44,6 +44,9 @@ export declare class ReadTreeCommand extends GitCommand<ReadTreeResult> {
44
44
  private trivial;
45
45
  private aggressive;
46
46
  private skipSparseCheckout;
47
+ private recurseSubmodules?;
48
+ private dryRun;
49
+ private superPrefix;
47
50
  /** A tree-ish to read (up to eight). */
48
51
  addTree(treeish: string): this;
49
52
  /** `-m`: merge the trees with the index (one-, two- or three-way by their number). */
@@ -67,9 +70,20 @@ export declare class ReadTreeCommand extends GitCommand<ReadTreeResult> {
67
70
  * which an update shorter than two seconds never prints; nothing is reported here.
68
71
  */
69
72
  setVerbose(_verbose: boolean): this;
73
+ /**
74
+ * `--[no-]recurse-submodules` (default `submodule.recurse`): the active submodules' worktrees
75
+ * are checked and moved with the superproject's (unpack-trees' `check_submodule_move_head`,
76
+ * entry.c's `submodule_move_head`).
77
+ */
78
+ setRecurseSubmodules(recurse: boolean): this;
79
+ /** `-n` / `--dry-run`: everything checked, neither the index nor the worktree written. */
80
+ setDryRun(dryRun: boolean): this;
81
+ /** @internal git's `--super-prefix`: the submodule's path in its superproject, in messages. */
82
+ setSuperPrefix(prefix: string): this;
70
83
  /** `--no-sparse-checkout`: the sparse-checkout patterns are not applied. */
71
84
  setSkipSparseCheckout(skip: boolean): this;
72
85
  call(): Promise<ReadTreeResult>;
86
+ private callChecked;
73
87
  /** {@link call}, collecting the trees it reads into `read`. */
74
88
  private callOnce;
75
89
  /** `cache_tree_update(WRITE_TREE_SILENT | WRITE_TREE_REPAIR)` of the index as it is. */
@@ -1 +1 @@
1
- {"version":3,"file":"read-tree-command.d.ts","sourceRoot":"","sources":["../../src/commands/read-tree-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgBH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AA2B/C,yCAAyC;AACzC,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAKD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,eAAgB,SAAQ,UAAU,CAAC,cAAc,CAAC;IAC7D,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,kBAAkB,CAAS;IAEnC,wCAAwC;IACxC,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAI7B;IAED,sFAAsF;IACtF,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED,mFAAmF;IACnF,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED,oGAAoG;IACpG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAI1C;IAED,0DAA0D;IAC1D,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAI/B;IAED,iEAAiE;IACjE,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAIrC;IAED,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,CAYpC;IAED,OAAO,CAAC,WAAW;IAanB,+DAA+D;YACjD,QAAQ;IAoJtB,wFAAwF;YAC1E,iBAAiB;YAajB,SAAS;IAQvB;;;;;;OAMG;YACW,gBAAgB;IAkC9B;;;;;;;;;;;OAWG;YACW,SAAS;IAwHvB,wFAAwF;YAC1E,WAAW;IAQzB,2FAA2F;YAC7E,UAAU;IAqBxB;;;;;;;;;;;;OAYG;YACW,aAAa;CA2O5B"}
@@ -1,6 +1,6 @@
1
1
  import { type ObjectId, type PersonIdent } from "@statewalker/vcs-core";
2
2
  import { GitCommand } from "../git-command.js";
3
- import { type ContentMergeStrategy, MergeStrategy } from "../results/merge-result.js";
3
+ import { ContentMergeStrategy, MergeStrategy } from "../results/merge-result.js";
4
4
  import type { RebaseResult, RebaseTodoLine } from "../results/rebase-result.js";
5
5
  /**
6
6
  * Rebase operation types.
@@ -93,7 +93,12 @@ export declare class RebaseCommand extends GitCommand<RebaseResult> {
93
93
  private upstreamCommit?;
94
94
  private upstreamCommitName?;
95
95
  private strategy;
96
+ private strategyGiven;
96
97
  private contentStrategy?;
98
+ /** `-X <option>`s */
99
+ private strategyOptions;
100
+ /** The run's `-s` and `-X` (rebase-merge/strategy, strategy_opts), once read */
101
+ private runStrategyState?;
97
102
  private preserveMerges;
98
103
  private interactiveHandler?;
99
104
  /** Whose messages to give where git 2.43 and 2.5x differ (default: the hooks') */
@@ -244,11 +249,25 @@ export declare class RebaseCommand extends GitCommand<RebaseResult> {
244
249
  */
245
250
  getOperation(): RebaseOperation;
246
251
  /**
247
- * Set the merge strategy (only git's merge-ort is run; kept for compatibility).
252
+ * Set the merge strategy (`-s`): merge-ort (RECURSIVE, ORT), RESOLVE (git-merge-resolve)
253
+ * or SUBTREE (git merge-subtree) for each pick; kept in `rebase-merge/strategy`.
248
254
  *
249
255
  * @param strategy Merge strategy
250
256
  */
251
257
  setStrategy(strategy: MergeStrategy): this;
258
+ /**
259
+ * The `-X <option>`s of each pick (see `MergeCommand.setStrategyOptions`), kept in
260
+ * `rebase-merge/strategy_opts`; with no `-s`, the strategy is `ort` (builtin/rebase.c).
261
+ */
262
+ setStrategyOptions(options: readonly string[]): this;
263
+ /** Adds one `-X <option>` (see {@link setStrategyOptions}). */
264
+ addStrategyOption(option: string): this;
265
+ /** The `-X` options as given: `-X ours`/`-X theirs` of the content strategy first. */
266
+ private givenStrategyOptions;
267
+ /** The run's `-s` (`ort` when only `-X` was given) as builtin/rebase.c settles it. */
268
+ private givenStrategyName;
269
+ /** The run's `-s` and `-X`: read back from `rebase-merge/` (read_strategy_opts), else given. */
270
+ private runStrategy;
252
271
  /**
253
272
  * Get the merge strategy.
254
273
  */
@@ -1 +1 @@
1
- {"version":3,"file":"rebase-command.d.ts","sourceRoot":"","sources":["../../src/commands/rebase-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,WAAW,EAGjB,MAAM,uBAAuB,CAAC;AAc/B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EACL,KAAK,oBAAoB,EAIzB,aAAa,EACd,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAqFhF;;GAEG;AACH,oBAAY,eAAe;IACzB,yBAAyB;IACzB,KAAK,UAAU;IACf,yCAAyC;IACzC,QAAQ,aAAa;IACrB,8BAA8B;IAC9B,IAAI,SAAS;IACb,uCAAuC;IACvC,KAAK,UAAU;IACf,6CAA6C;IAC7C,aAAa,kBAAkB;IAC/B,2FAA2F;IAC3F,SAAS,cAAc;IACvB;;;OAGG;IACH,IAAI,SAAS;IACb;;;OAGG;IACH,kBAAkB,uBAAuB;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAElD;;;OA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;;;;;;OAMG;YACW,eAAe;IAiD7B;;;;;OAKG;YACW,iBAAiB;IA6D/B,iEAAiE;YACnD,UAAU;IASxB;;;;OAIG;YACW,gBAAgB;IAmC9B;;;;;OAKG;YACW,cAAc;YAqBd,UAAU;CAIzB"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * `--remerge-diff` (log-tree.c's do_remerge_diff): a merge's parents merged again by
3
+ * merge-ort in memory, conflict markers and all, so the merge can be shown as the diff from
4
+ * that automatic result to the recorded one, with merge-ort's conflict messages as
5
+ * `remerge CONFLICT` headers.
6
+ *
7
+ * git writes the re-merge's blobs and trees into a temporary object directory
8
+ * (`tmp_objdir`) it discards after each merge. Here they go to an in-memory overlay
9
+ * ({@link remergeObjectsView}) over the repository's stores: reads see the overlay first,
10
+ * then the repository; writes stay in the overlay, which is dropped with the view.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * const view = remergeObjectsView(history);
15
+ * const { treeId, pathMessages } = await new RemergeTreeCommand(workingCopy)
16
+ * .setObjectsView(view)
17
+ * .setParents(first, second)
18
+ * .call();
19
+ * // diff treeId against the merge's tree through the same view
20
+ * ```
21
+ */
22
+ import { type History, type ObjectId } from "@statewalker/vcs-core";
23
+ import { GitCommand } from "../git-command.js";
24
+ /**
25
+ * `history` with its blobs and trees read through an in-memory store first and written only
26
+ * to it: what is stored through the view never reaches `history`. Other stores (commits,
27
+ * refs, tags) are `history`'s own.
28
+ */
29
+ export declare function remergeObjectsView(history: History): History;
30
+ /** What {@link RemergeTreeCommand} found. */
31
+ export interface RemergeResult {
32
+ /** merge-ort's result tree (conflicted files with their markers), in the view */
33
+ treeId: ObjectId;
34
+ /**
35
+ * merge-ort's conflict messages by the path they are about (no omittable hints), as
36
+ * `--remerge-diff` shows them: `remerge ` first, each newline followed by a space
37
+ */
38
+ pathMessages: Map<string, string[]>;
39
+ }
40
+ /**
41
+ * do_remerge_diff's merge: the two parents merged as merge_incore_recursive merges them
42
+ * (their merge bases, a virtual one for several), sides named `<abbrev> (<subject>)`. Run it
43
+ * over a {@link remergeObjectsView} (`setObjectsView`): it stores the merge's blobs and trees.
44
+ */
45
+ export declare class RemergeTreeCommand extends GitCommand<RemergeResult> {
46
+ private parents?;
47
+ private parentless?;
48
+ /**
49
+ * Commits read as having no parents in the merge-base computation (git 2.43's log freed
50
+ * the parents of the commits it had shown)
51
+ */
52
+ setParentlessCommits(ids: ReadonlySet<ObjectId>): this;
53
+ /** The merge's first and second parent */
54
+ setParents(first: ObjectId, second: ObjectId): this;
55
+ call(): Promise<RemergeResult>;
56
+ /** The re-merge stores its objects only in its view */
57
+ protected writesNoObjects(): boolean;
58
+ }
59
+ //# sourceMappingURL=remerge-diff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remerge-diff.d.ts","sourceRoot":"","sources":["../../src/commands/remerge-diff.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,QAAQ,EAId,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAQ/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CA2E5D;AAED,6CAA6C;AAC7C,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,MAAM,EAAE,QAAQ,CAAC;IACjB;;;OAGG;IACH,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACrC;AAED;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,UAAU,CAAC,aAAa,CAAC;IAC/D,OAAO,CAAC,OAAO,CAAC,CAAuB;IACvC,OAAO,CAAC,UAAU,CAAC,CAAwB;IAE3C;;;OAGG;IACH,oBAAoB,CAAC,GAAG,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG,IAAI,CAIrD;IAED,0CAA0C;IAC1C,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,CAIlD;IAEK,IAAI,IAAI,OAAO,CAAC,aAAa,CAAC,CA0EnC;IAED,uDAAuD;IACvD,UAAmB,eAAe,IAAI,OAAO,CAE5C;CACF"}
@@ -451,4 +451,45 @@ export declare class RemoteSetHeadCommand extends TransportCommand<string | unde
451
451
  */
452
452
  private remoteHeads;
453
453
  }
454
+ /**
455
+ * Change the branches a remote's fetch tracks: `git remote set-branches [--add] <name>
456
+ * <branch>...`.
457
+ *
458
+ * As builtin/remote.c `set_branches`: every `remote.<name>.fetch` is removed (unless
459
+ * {@link setAdd}), then one `+refs/heads/<branch>:refs/remotes/<name>/<branch>` added per
460
+ * branch, a pattern written as given (`feat/*`); a remote with `remote.<name>.mirror` gets
461
+ * `+refs/<branch>:refs/<branch>`. The remote must be configured in the repository.
462
+ *
463
+ * @example
464
+ * ```typescript
465
+ * await git.remoteSetBranches().setRemoteName("origin").setBranches("main", "next").call();
466
+ * await git.remoteSetBranches().setRemoteName("origin").setBranches("topic").setAdd(true).call();
467
+ * ```
468
+ */
469
+ export declare class RemoteSetBranchesCommand extends GitCommand<RemoteConfig> {
470
+ /** git's command reads no core settings: an unparsable `core.whitespace` does not stop it */
471
+ protected readsCoreConfig(): boolean;
472
+ private remoteName?;
473
+ private branches;
474
+ private addMode;
475
+ private messages;
476
+ /** The remote whose fetch refspecs change. */
477
+ setRemoteName(name: string): this;
478
+ /** The branches (or patterns) to track. */
479
+ setBranches(...branches: string[]): this;
480
+ /** Add the branches to the ones tracked (`--add`) instead of replacing them. */
481
+ setAdd(add: boolean): this;
482
+ /** git 2.5x's warnings reading a legacy remote file. Empty before {@link call}. */
483
+ getMessages(): string[];
484
+ /**
485
+ * @returns the remote as configured now
486
+ * @throws MissingArgumentError without a remote (git: "no remote specified" and its usage,
487
+ * exit 129)
488
+ * @throws RemoteNotFoundError (exit 2) when the repository does not configure the remote
489
+ * (git: "No such remote '<name>'")
490
+ * @throws GitApiError (exit 1, no message) without {@link setAdd} when the remote has no
491
+ * fetch refspec to remove: git's config write finds nothing to replace, and nothing changes
492
+ */
493
+ call(): Promise<RemoteConfig>;
494
+ }
454
495
  //# sourceMappingURL=remote-command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-command.d.ts","sourceRoot":"","sources":["../../src/commands/remote-command.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,gBAAiB,SAAQ,gBAAgB,CAAC,YAAY,CAAC;IAClE,6FAA6F;IAC7F,UAAmB,eAAe,IAAI,OAAO,CAE5C;IAED,OAAO,CAAC,IAAI,CAAC,CAAS;IACtB,OAAO,CAAC,GAAG,CAAC,CAAS;IACrB,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,MAAM,CAAC,CAAmB;IAClC,OAAO,CAAC,IAAI,CAAC,CAAU;IACvB,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,WAAW,CAAC,CAAc;IAElC;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED;;OAEG;IACH,OAAO,IAAI,MAAM,GAAG,SAAS,CAE5B;IAED;;;;OAIG;IACH,MAAM,CAAC,GAAG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