@statewalker/vcs-commands 0.7.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 (568) hide show
  1. package/dist/commands/add-command.d.ts +70 -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 +102 -1
  7. package/dist/commands/am/am-command.d.ts.map +1 -1
  8. package/dist/commands/am/index.d.ts +1 -0
  9. package/dist/commands/am/index.d.ts.map +1 -1
  10. package/dist/commands/am/mailsplit.d.ts +88 -0
  11. package/dist/commands/am/mailsplit.d.ts.map +1 -0
  12. package/dist/commands/apply/apply-command.d.ts +2 -0
  13. package/dist/commands/apply/apply-command.d.ts.map +1 -1
  14. package/dist/commands/apply/apply-engine.d.ts.map +1 -1
  15. package/dist/commands/apply/apply-parse.d.ts +7 -0
  16. package/dist/commands/apply/apply-parse.d.ts.map +1 -1
  17. package/dist/commands/apply/index.d.ts +1 -1
  18. package/dist/commands/apply/index.d.ts.map +1 -1
  19. package/dist/commands/bisect/bisect-command.d.ts +2 -0
  20. package/dist/commands/bisect/bisect-command.d.ts.map +1 -1
  21. package/dist/commands/blame-command.d.ts +303 -8
  22. package/dist/commands/blame-command.d.ts.map +1 -1
  23. package/dist/commands/blame-ignore.d.ts +48 -0
  24. package/dist/commands/blame-ignore.d.ts.map +1 -0
  25. package/dist/commands/branch-command.d.ts +148 -18
  26. package/dist/commands/branch-command.d.ts.map +1 -1
  27. package/dist/commands/branch-info-command.d.ts +55 -0
  28. package/dist/commands/branch-info-command.d.ts.map +1 -0
  29. package/dist/commands/branch-tracking.d.ts +106 -17
  30. package/dist/commands/branch-tracking.d.ts.map +1 -1
  31. package/dist/commands/branch-upstream-command.d.ts +83 -0
  32. package/dist/commands/branch-upstream-command.d.ts.map +1 -0
  33. package/dist/commands/check-mailmap-command.d.ts +49 -0
  34. package/dist/commands/check-mailmap-command.d.ts.map +1 -0
  35. package/dist/commands/checkout-command.d.ts +26 -3
  36. package/dist/commands/checkout-command.d.ts.map +1 -1
  37. package/dist/commands/checkout-paths.d.ts +4 -0
  38. package/dist/commands/checkout-paths.d.ts.map +1 -1
  39. package/dist/commands/cherry-command.d.ts +61 -0
  40. package/dist/commands/cherry-command.d.ts.map +1 -0
  41. package/dist/commands/cherry-pick-command.d.ts +82 -1
  42. package/dist/commands/cherry-pick-command.d.ts.map +1 -1
  43. package/dist/commands/clean-command.d.ts +44 -0
  44. package/dist/commands/clean-command.d.ts.map +1 -1
  45. package/dist/commands/clean-interactive.d.ts +56 -0
  46. package/dist/commands/clean-interactive.d.ts.map +1 -0
  47. package/dist/commands/clone-command.d.ts +116 -2
  48. package/dist/commands/clone-command.d.ts.map +1 -1
  49. package/dist/commands/commit-command.d.ts +239 -5
  50. package/dist/commands/commit-command.d.ts.map +1 -1
  51. package/dist/commands/commit-reuse.d.ts +33 -0
  52. package/dist/commands/commit-reuse.d.ts.map +1 -0
  53. package/dist/commands/config-command.d.ts +236 -0
  54. package/dist/commands/config-command.d.ts.map +1 -0
  55. package/dist/commands/config-value-types.d.ts +91 -0
  56. package/dist/commands/config-value-types.d.ts.map +1 -0
  57. package/dist/commands/core-config.d.ts +20 -0
  58. package/dist/commands/core-config.d.ts.map +1 -1
  59. package/dist/commands/describe-command.d.ts +71 -64
  60. package/dist/commands/describe-command.d.ts.map +1 -1
  61. package/dist/commands/diff-color-config.d.ts +73 -0
  62. package/dist/commands/diff-color-config.d.ts.map +1 -0
  63. package/dist/commands/diff-command.d.ts +369 -10
  64. package/dist/commands/diff-command.d.ts.map +1 -1
  65. package/dist/commands/fetch-command.d.ts +80 -0
  66. package/dist/commands/fetch-command.d.ts.map +1 -1
  67. package/dist/commands/fetch-multiple-command.d.ts +193 -0
  68. package/dist/commands/fetch-multiple-command.d.ts.map +1 -0
  69. package/dist/commands/fmt-merge-msg-command.d.ts +124 -0
  70. package/dist/commands/fmt-merge-msg-command.d.ts.map +1 -0
  71. package/dist/commands/fork-point.d.ts +38 -0
  72. package/dist/commands/fork-point.d.ts.map +1 -0
  73. package/dist/commands/format-patch-command.d.ts +69 -3
  74. package/dist/commands/format-patch-command.d.ts.map +1 -1
  75. package/dist/commands/fsck/fetch-fsck.d.ts +51 -0
  76. package/dist/commands/fsck/fetch-fsck.d.ts.map +1 -1
  77. package/dist/commands/gc-command.d.ts +8 -0
  78. package/dist/commands/gc-command.d.ts.map +1 -1
  79. package/dist/commands/git-describe.d.ts +81 -4
  80. package/dist/commands/git-describe.d.ts.map +1 -1
  81. package/dist/commands/git-hooks.d.ts +50 -1
  82. package/dist/commands/git-hooks.d.ts.map +1 -1
  83. package/dist/commands/grep/grep-command.d.ts +210 -0
  84. package/dist/commands/grep/grep-command.d.ts.map +1 -0
  85. package/dist/commands/grep/grep-engine.d.ts +218 -0
  86. package/dist/commands/grep/grep-engine.d.ts.map +1 -0
  87. package/dist/commands/grep/index.d.ts +3 -0
  88. package/dist/commands/grep/index.d.ts.map +1 -0
  89. package/dist/commands/index-adder.d.ts +13 -2
  90. package/dist/commands/index-adder.d.ts.map +1 -1
  91. package/dist/commands/index.d.ts +38 -0
  92. package/dist/commands/index.d.ts.map +1 -1
  93. package/dist/commands/index.js +5 -3
  94. package/dist/commands/init-command.d.ts +89 -0
  95. package/dist/commands/init-command.d.ts.map +1 -1
  96. package/dist/commands/interpret-trailers-command.d.ts +90 -0
  97. package/dist/commands/interpret-trailers-command.d.ts.map +1 -0
  98. package/dist/commands/line-log.d.ts +161 -0
  99. package/dist/commands/line-log.d.ts.map +1 -0
  100. package/dist/commands/local-transport.d.ts +36 -5
  101. package/dist/commands/local-transport.d.ts.map +1 -1
  102. package/dist/commands/log-command.d.ts +527 -13
  103. package/dist/commands/log-command.d.ts.map +1 -1
  104. package/dist/commands/log-graph.d.ts +30 -3
  105. package/dist/commands/log-graph.d.ts.map +1 -1
  106. package/dist/commands/log-output.d.ts +199 -6
  107. package/dist/commands/log-output.d.ts.map +1 -1
  108. package/dist/commands/ls-remote-command.d.ts +2 -0
  109. package/dist/commands/ls-remote-command.d.ts.map +1 -1
  110. package/dist/commands/mailmap.d.ts +53 -0
  111. package/dist/commands/mailmap.d.ts.map +1 -1
  112. package/dist/commands/merge-base-command.d.ts +60 -0
  113. package/dist/commands/merge-base-command.d.ts.map +1 -0
  114. package/dist/commands/merge-bases.d.ts +23 -0
  115. package/dist/commands/merge-bases.d.ts.map +1 -1
  116. package/dist/commands/merge-command.d.ts +147 -10
  117. package/dist/commands/merge-command.d.ts.map +1 -1
  118. package/dist/commands/merge-drivers.d.ts +2 -0
  119. package/dist/commands/merge-drivers.d.ts.map +1 -1
  120. package/dist/commands/merge-strategy-options.d.ts +69 -0
  121. package/dist/commands/merge-strategy-options.d.ts.map +1 -0
  122. package/dist/commands/merge-support.d.ts +10 -0
  123. package/dist/commands/merge-support.d.ts.map +1 -1
  124. package/dist/commands/message-cleanup.d.ts +2 -0
  125. package/dist/commands/message-cleanup.d.ts.map +1 -1
  126. package/dist/commands/mv-command.d.ts +4 -0
  127. package/dist/commands/mv-command.d.ts.map +1 -1
  128. package/dist/commands/name-rev-command.d.ts +65 -0
  129. package/dist/commands/name-rev-command.d.ts.map +1 -0
  130. package/dist/commands/name-rev.d.ts +136 -0
  131. package/dist/commands/name-rev.d.ts.map +1 -0
  132. package/dist/commands/notes-command.d.ts.map +1 -1
  133. package/dist/commands/octopus-merge.d.ts +26 -1
  134. package/dist/commands/octopus-merge.d.ts.map +1 -1
  135. package/dist/commands/ort-merge.d.ts +16 -0
  136. package/dist/commands/ort-merge.d.ts.map +1 -1
  137. package/dist/commands/ort-recursive.d.ts.map +1 -1
  138. package/dist/commands/patch-id.d.ts +58 -0
  139. package/dist/commands/patch-id.d.ts.map +1 -1
  140. package/dist/commands/pathspec-file.d.ts +39 -0
  141. package/dist/commands/pathspec-file.d.ts.map +1 -0
  142. package/dist/commands/pathspec.d.ts +3 -0
  143. package/dist/commands/pathspec.d.ts.map +1 -1
  144. package/dist/commands/pretty-format.d.ts +43 -3
  145. package/dist/commands/pretty-format.d.ts.map +1 -1
  146. package/dist/commands/promisor-remote.d.ts.map +1 -1
  147. package/dist/commands/pull-command.d.ts +186 -32
  148. package/dist/commands/pull-command.d.ts.map +1 -1
  149. package/dist/commands/push-command.d.ts +225 -9
  150. package/dist/commands/push-command.d.ts.map +1 -1
  151. package/dist/commands/range-diff/index.d.ts +4 -0
  152. package/dist/commands/range-diff/index.d.ts.map +1 -0
  153. package/dist/commands/range-diff/linear-assignment.d.ts +27 -0
  154. package/dist/commands/range-diff/linear-assignment.d.ts.map +1 -0
  155. package/dist/commands/range-diff/range-diff-command.d.ts +121 -0
  156. package/dist/commands/range-diff/range-diff-command.d.ts.map +1 -0
  157. package/dist/commands/range-diff/range-diff.d.ts +106 -0
  158. package/dist/commands/range-diff/range-diff.d.ts.map +1 -0
  159. package/dist/commands/read-tree-command.d.ts +20 -0
  160. package/dist/commands/read-tree-command.d.ts.map +1 -1
  161. package/dist/commands/rebase-command.d.ts +189 -8
  162. package/dist/commands/rebase-command.d.ts.map +1 -1
  163. package/dist/commands/ref-filter/for-each-ref-command.d.ts +121 -0
  164. package/dist/commands/ref-filter/for-each-ref-command.d.ts.map +1 -0
  165. package/dist/commands/ref-filter/index.d.ts +8 -0
  166. package/dist/commands/ref-filter/index.d.ts.map +1 -0
  167. package/dist/commands/ref-filter/ref-atoms.d.ts +88 -0
  168. package/dist/commands/ref-filter/ref-atoms.d.ts.map +1 -0
  169. package/dist/commands/ref-filter/ref-filter.d.ts +178 -0
  170. package/dist/commands/ref-filter/ref-filter.d.ts.map +1 -0
  171. package/dist/commands/ref-filter/ref-format.d.ts +222 -0
  172. package/dist/commands/ref-filter/ref-format.d.ts.map +1 -0
  173. package/dist/commands/ref-filter/ref-listing-command.d.ts +56 -0
  174. package/dist/commands/ref-filter/ref-listing-command.d.ts.map +1 -0
  175. package/dist/commands/ref-filter/ref-quote.d.ts +20 -0
  176. package/dist/commands/ref-filter/ref-quote.d.ts.map +1 -0
  177. package/dist/commands/ref-filter/version-compare.d.ts +20 -0
  178. package/dist/commands/ref-filter/version-compare.d.ts.map +1 -0
  179. package/dist/commands/reflog-command.d.ts +120 -0
  180. package/dist/commands/reflog-command.d.ts.map +1 -1
  181. package/dist/commands/reflog-walk.d.ts +72 -0
  182. package/dist/commands/reflog-walk.d.ts.map +1 -0
  183. package/dist/commands/remerge-diff.d.ts +59 -0
  184. package/dist/commands/remerge-diff.d.ts.map +1 -0
  185. package/dist/commands/remote-command.d.ts +179 -29
  186. package/dist/commands/remote-command.d.ts.map +1 -1
  187. package/dist/commands/remote-show-command.d.ts +204 -0
  188. package/dist/commands/remote-show-command.d.ts.map +1 -0
  189. package/dist/commands/remote-transport.d.ts +7 -1
  190. package/dist/commands/remote-transport.d.ts.map +1 -1
  191. package/dist/commands/reset-command.d.ts +21 -4
  192. package/dist/commands/reset-command.d.ts.map +1 -1
  193. package/dist/commands/restore-command.d.ts +9 -3
  194. package/dist/commands/restore-command.d.ts.map +1 -1
  195. package/dist/commands/rev-filter/commit-filter.d.ts +95 -0
  196. package/dist/commands/rev-filter/commit-filter.d.ts.map +1 -0
  197. package/dist/commands/rev-filter/commit-grep.d.ts +91 -0
  198. package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -0
  199. package/dist/commands/rev-filter/index.d.ts +3 -0
  200. package/dist/commands/rev-filter/index.d.ts.map +1 -0
  201. package/dist/commands/rev-list-command.d.ts +226 -2
  202. package/dist/commands/rev-list-command.d.ts.map +1 -1
  203. package/dist/commands/revert-command.d.ts +54 -1
  204. package/dist/commands/revert-command.d.ts.map +1 -1
  205. package/dist/commands/revision-range.d.ts +34 -1
  206. package/dist/commands/revision-range.d.ts.map +1 -1
  207. package/dist/commands/revision-resolver.d.ts +15 -0
  208. package/dist/commands/revision-resolver.d.ts.map +1 -1
  209. package/dist/commands/rm-command.d.ts +70 -2
  210. package/dist/commands/rm-command.d.ts.map +1 -1
  211. package/dist/commands/sequencer-pick.d.ts +186 -5
  212. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  213. package/dist/commands/sequencer-support.d.ts +12 -1
  214. package/dist/commands/sequencer-support.d.ts.map +1 -1
  215. package/dist/commands/serve-repository.d.ts +7 -0
  216. package/dist/commands/serve-repository.d.ts.map +1 -1
  217. package/dist/commands/shortlog-command.d.ts +109 -0
  218. package/dist/commands/shortlog-command.d.ts.map +1 -0
  219. package/dist/commands/shortlog.d.ts +151 -0
  220. package/dist/commands/shortlog.d.ts.map +1 -0
  221. package/dist/commands/show-command.d.ts +130 -0
  222. package/dist/commands/show-command.d.ts.map +1 -0
  223. package/dist/commands/show-commit.d.ts +11 -0
  224. package/dist/commands/show-commit.d.ts.map +1 -0
  225. package/dist/commands/signature-check.d.ts +164 -0
  226. package/dist/commands/signature-check.d.ts.map +1 -0
  227. package/dist/commands/signing.d.ts +160 -0
  228. package/dist/commands/signing.d.ts.map +1 -0
  229. package/dist/commands/sparse-checkout-command.d.ts.map +1 -1
  230. package/dist/commands/sparse-index-view.d.ts +45 -0
  231. package/dist/commands/sparse-index-view.d.ts.map +1 -0
  232. package/dist/commands/ssh-signer.d.ts +29 -0
  233. package/dist/commands/ssh-signer.d.ts.map +1 -0
  234. package/dist/commands/ssh-verifier.d.ts +42 -0
  235. package/dist/commands/ssh-verifier.d.ts.map +1 -0
  236. package/dist/commands/stash-apply-command.d.ts +5 -0
  237. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  238. package/dist/commands/stash-branch-command.d.ts +34 -0
  239. package/dist/commands/stash-branch-command.d.ts.map +1 -0
  240. package/dist/commands/stash-create-command.d.ts +17 -0
  241. package/dist/commands/stash-create-command.d.ts.map +1 -1
  242. package/dist/commands/stash-info.d.ts +93 -0
  243. package/dist/commands/stash-info.d.ts.map +1 -0
  244. package/dist/commands/stash-list-command.d.ts +16 -0
  245. package/dist/commands/stash-list-command.d.ts.map +1 -1
  246. package/dist/commands/stash-pop-command.d.ts +39 -0
  247. package/dist/commands/stash-pop-command.d.ts.map +1 -0
  248. package/dist/commands/stash-show-command.d.ts +48 -0
  249. package/dist/commands/stash-show-command.d.ts.map +1 -0
  250. package/dist/commands/stash-store-command.d.ts +29 -0
  251. package/dist/commands/stash-store-command.d.ts.map +1 -0
  252. package/dist/commands/stash-working-tree.d.ts.map +1 -1
  253. package/dist/commands/status-command.d.ts +31 -2
  254. package/dist/commands/status-command.d.ts.map +1 -1
  255. package/dist/commands/status-header.d.ts +5 -0
  256. package/dist/commands/status-header.d.ts.map +1 -1
  257. package/dist/commands/submodule-add-command.d.ts +89 -0
  258. package/dist/commands/submodule-add-command.d.ts.map +1 -0
  259. package/dist/commands/submodule-auth.d.ts +90 -0
  260. package/dist/commands/submodule-auth.d.ts.map +1 -0
  261. package/dist/commands/submodule-commands.d.ts +463 -0
  262. package/dist/commands/submodule-commands.d.ts.map +1 -0
  263. package/dist/commands/submodule-fetch.d.ts +149 -0
  264. package/dist/commands/submodule-fetch.d.ts.map +1 -0
  265. package/dist/commands/submodule-model.d.ts +296 -0
  266. package/dist/commands/submodule-model.d.ts.map +1 -0
  267. package/dist/commands/submodule-unpack.d.ts +120 -0
  268. package/dist/commands/submodule-unpack.d.ts.map +1 -0
  269. package/dist/commands/submodule-update-command.d.ts +206 -0
  270. package/dist/commands/submodule-update-command.d.ts.map +1 -0
  271. package/dist/commands/subtree-shift.d.ts +27 -0
  272. package/dist/commands/subtree-shift.d.ts.map +1 -0
  273. package/dist/commands/switch-command.d.ts +3 -0
  274. package/dist/commands/switch-command.d.ts.map +1 -1
  275. package/dist/commands/tag-command.d.ts +259 -10
  276. package/dist/commands/tag-command.d.ts.map +1 -1
  277. package/dist/commands/trailers.d.ts +218 -17
  278. package/dist/commands/trailers.d.ts.map +1 -1
  279. package/dist/commands/tree-restore.d.ts +7 -0
  280. package/dist/commands/tree-restore.d.ts.map +1 -1
  281. package/dist/commands/verify-command.d.ts +92 -0
  282. package/dist/commands/verify-command.d.ts.map +1 -0
  283. package/dist/commands/worktree-add-command.d.ts +79 -7
  284. package/dist/commands/worktree-add-command.d.ts.map +1 -1
  285. package/dist/commands/worktree-overwrite-checks.d.ts +2 -0
  286. package/dist/commands/worktree-overwrite-checks.d.ts.map +1 -1
  287. package/dist/commands/worktree-path-rules.d.ts +66 -0
  288. package/dist/commands/worktree-path-rules.d.ts.map +1 -0
  289. package/dist/commands/worktree-remove-command.d.ts +10 -3
  290. package/dist/commands/worktree-remove-command.d.ts.map +1 -1
  291. package/dist/commands/worktree-repair-command.d.ts +15 -2
  292. package/dist/commands/worktree-repair-command.d.ts.map +1 -1
  293. package/dist/commands/worktree-support.d.ts +5 -0
  294. package/dist/commands/worktree-support.d.ts.map +1 -1
  295. package/dist/{commands-DIJ91NnD.js → commands-CNvli5bl.js} +49442 -54941
  296. package/dist/errors/checkout-errors.d.ts +19 -0
  297. package/dist/errors/checkout-errors.d.ts.map +1 -1
  298. package/dist/errors/command-errors.d.ts +25 -0
  299. package/dist/errors/command-errors.d.ts.map +1 -1
  300. package/dist/errors/index.js +85 -3
  301. package/dist/errors/ref-errors.d.ts +19 -0
  302. package/dist/errors/ref-errors.d.ts.map +1 -1
  303. package/dist/errors/worktree-errors.d.ts +6 -1
  304. package/dist/errors/worktree-errors.d.ts.map +1 -1
  305. package/dist/fsck-CPeDh9fh.js +5138 -0
  306. package/dist/git-command.d.ts +58 -2
  307. package/dist/git-command.d.ts.map +1 -1
  308. package/dist/git.d.ts +363 -1
  309. package/dist/git.d.ts.map +1 -1
  310. package/dist/guarded-transport-command.d.ts +82 -0
  311. package/dist/guarded-transport-command.d.ts.map +1 -0
  312. package/dist/index.d.ts +1 -0
  313. package/dist/index.d.ts.map +1 -1
  314. package/dist/index.js +6 -5
  315. package/dist/remote-config/index.d.ts +1 -1
  316. package/dist/remote-config/index.d.ts.map +1 -1
  317. package/dist/remote-config/remote-config-store.d.ts +55 -0
  318. package/dist/remote-config/remote-config-store.d.ts.map +1 -1
  319. package/dist/remote-transport-CCmBadm-.js +1606 -0
  320. package/dist/rename/detect-renames.d.ts +20 -0
  321. package/dist/rename/detect-renames.d.ts.map +1 -1
  322. package/dist/rename/diffcore-break.d.ts +51 -0
  323. package/dist/rename/diffcore-break.d.ts.map +1 -0
  324. package/dist/rename/index.d.ts +1 -0
  325. package/dist/rename/index.d.ts.map +1 -1
  326. package/dist/results/blame-format.d.ts +62 -1
  327. package/dist/results/blame-format.d.ts.map +1 -1
  328. package/dist/results/clone-result.d.ts +9 -0
  329. package/dist/results/clone-result.d.ts.map +1 -1
  330. package/dist/results/combined-diff.d.ts +3 -0
  331. package/dist/results/combined-diff.d.ts.map +1 -1
  332. package/dist/results/diff-check.d.ts +38 -0
  333. package/dist/results/diff-check.d.ts.map +1 -0
  334. package/dist/results/diff-color.d.ts +135 -0
  335. package/dist/results/diff-color.d.ts.map +1 -0
  336. package/dist/results/diff-dirstat.d.ts +36 -0
  337. package/dist/results/diff-dirstat.d.ts.map +1 -0
  338. package/dist/results/diff-entry.d.ts +10 -0
  339. package/dist/results/diff-entry.d.ts.map +1 -1
  340. package/dist/results/diff-formatter.d.ts.map +1 -1
  341. package/dist/results/diff-output.d.ts +103 -1
  342. package/dist/results/diff-output.d.ts.map +1 -1
  343. package/dist/results/diff-pickaxe.d.ts +67 -0
  344. package/dist/results/diff-pickaxe.d.ts.map +1 -0
  345. package/dist/results/diff-words.d.ts +55 -0
  346. package/dist/results/diff-words.d.ts.map +1 -0
  347. package/dist/results/fetch-result.d.ts +12 -1
  348. package/dist/results/fetch-result.d.ts.map +1 -1
  349. package/dist/results/index.d.ts +6 -0
  350. package/dist/results/index.d.ts.map +1 -1
  351. package/dist/results/index.js +2 -2
  352. package/dist/results/init-result.d.ts +8 -1
  353. package/dist/results/init-result.d.ts.map +1 -1
  354. package/dist/results/line-range-hunks.d.ts +27 -0
  355. package/dist/results/line-range-hunks.d.ts.map +1 -0
  356. package/dist/results/merge-result.d.ts +8 -1
  357. package/dist/results/merge-result.d.ts.map +1 -1
  358. package/dist/results/pull-result.d.ts +11 -0
  359. package/dist/results/pull-result.d.ts.map +1 -1
  360. package/dist/results/push-result.d.ts +12 -0
  361. package/dist/results/push-result.d.ts.map +1 -1
  362. package/dist/results/rebase-result.d.ts +2 -0
  363. package/dist/results/rebase-result.d.ts.map +1 -1
  364. package/dist/results/stash-result.d.ts +6 -0
  365. package/dist/results/stash-result.d.ts.map +1 -1
  366. package/dist/results/status-result.d.ts +1 -1
  367. package/dist/results/status-result.d.ts.map +1 -1
  368. package/dist/results-BDuEgdLU.js +46847 -0
  369. package/dist/transport-command.d.ts +14 -0
  370. package/dist/transport-command.d.ts.map +1 -1
  371. package/dist/whitespace/index.d.ts +2 -0
  372. package/dist/whitespace/index.d.ts.map +1 -0
  373. package/dist/whitespace/whitespace-rule.d.ts +94 -0
  374. package/dist/whitespace/whitespace-rule.d.ts.map +1 -0
  375. package/package.json +12 -12
  376. package/src/commands/add-command.ts +293 -17
  377. package/src/commands/add-patch/add-patch.ts +8 -0
  378. package/src/commands/add-patch/patch-backend.ts +20 -2
  379. package/src/commands/am/am-command.ts +400 -46
  380. package/src/commands/am/index.ts +1 -0
  381. package/src/commands/am/mailsplit.ts +326 -0
  382. package/src/commands/apply/apply-command.ts +58 -15
  383. package/src/commands/apply/apply-engine.ts +1 -1
  384. package/src/commands/apply/apply-parse.ts +17 -8
  385. package/src/commands/apply/index.ts +8 -1
  386. package/src/commands/bisect/bisect-command.ts +18 -5
  387. package/src/commands/blame-command.ts +1450 -51
  388. package/src/commands/blame-ignore.ts +307 -0
  389. package/src/commands/branch-command.ts +528 -53
  390. package/src/commands/branch-info-command.ts +150 -0
  391. package/src/commands/branch-tracking.ts +335 -60
  392. package/src/commands/branch-upstream-command.ts +218 -0
  393. package/src/commands/check-mailmap-command.ts +129 -0
  394. package/src/commands/checkout-command.ts +166 -55
  395. package/src/commands/checkout-paths.ts +28 -0
  396. package/src/commands/cherry-command.ts +187 -0
  397. package/src/commands/cherry-pick-command.ts +185 -1
  398. package/src/commands/clean-command.ts +126 -15
  399. package/src/commands/clean-interactive.ts +522 -0
  400. package/src/commands/clone-command.ts +598 -45
  401. package/src/commands/commit-command.ts +925 -74
  402. package/src/commands/commit-reuse.ts +94 -0
  403. package/src/commands/config-command.ts +1256 -0
  404. package/src/commands/config-value-types.ts +358 -0
  405. package/src/commands/core-config.ts +40 -0
  406. package/src/commands/describe-command.ts +341 -254
  407. package/src/commands/diff-color-config.ts +274 -0
  408. package/src/commands/diff-command.ts +1619 -99
  409. package/src/commands/fetch-command.ts +495 -14
  410. package/src/commands/fetch-multiple-command.ts +665 -0
  411. package/src/commands/fmt-merge-msg-command.ts +715 -0
  412. package/src/commands/fork-point.ts +63 -0
  413. package/src/commands/format-patch-command.ts +496 -116
  414. package/src/commands/fsck/fetch-fsck.ts +172 -18
  415. package/src/commands/gc-command.ts +31 -1
  416. package/src/commands/git-describe.ts +460 -201
  417. package/src/commands/git-hooks.ts +123 -3
  418. package/src/commands/grep/grep-command.ts +1077 -0
  419. package/src/commands/grep/grep-engine.ts +1024 -0
  420. package/src/commands/grep/index.ts +2 -0
  421. package/src/commands/index-adder.ts +46 -7
  422. package/src/commands/index.ts +43 -0
  423. package/src/commands/init-command.ts +603 -49
  424. package/src/commands/interpret-trailers-command.ts +256 -0
  425. package/src/commands/line-log.ts +931 -0
  426. package/src/commands/local-transport.ts +109 -10
  427. package/src/commands/log-command.ts +2599 -326
  428. package/src/commands/log-graph.ts +129 -29
  429. package/src/commands/log-output.ts +449 -27
  430. package/src/commands/ls-remote-command.ts +5 -0
  431. package/src/commands/mailmap.ts +155 -0
  432. package/src/commands/merge-base-command.ts +170 -0
  433. package/src/commands/merge-bases.ts +63 -8
  434. package/src/commands/merge-command.ts +601 -95
  435. package/src/commands/merge-drivers.ts +3 -0
  436. package/src/commands/merge-strategy-options.ts +224 -0
  437. package/src/commands/merge-support.ts +115 -22
  438. package/src/commands/message-cleanup.ts +1 -1
  439. package/src/commands/mv-command.ts +6 -3
  440. package/src/commands/name-rev-command.ts +184 -0
  441. package/src/commands/name-rev.ts +762 -0
  442. package/src/commands/notes-command.ts +11 -1
  443. package/src/commands/octopus-merge.ts +35 -11
  444. package/src/commands/ort-merge.ts +41 -7
  445. package/src/commands/ort-recursive.ts +40 -2
  446. package/src/commands/patch-id.ts +109 -0
  447. package/src/commands/pathspec-file.ts +72 -0
  448. package/src/commands/pathspec.ts +14 -2
  449. package/src/commands/pretty-format.ts +103 -19
  450. package/src/commands/promisor-remote.ts +10 -1
  451. package/src/commands/pull-command.ts +734 -221
  452. package/src/commands/push-command.ts +1035 -68
  453. package/src/commands/range-diff/index.ts +3 -0
  454. package/src/commands/range-diff/linear-assignment.ts +203 -0
  455. package/src/commands/range-diff/range-diff-command.ts +433 -0
  456. package/src/commands/range-diff/range-diff.ts +617 -0
  457. package/src/commands/read-tree-command.ts +102 -4
  458. package/src/commands/rebase-command.ts +1074 -194
  459. package/src/commands/ref-filter/for-each-ref-command.ts +298 -0
  460. package/src/commands/ref-filter/index.ts +7 -0
  461. package/src/commands/ref-filter/ref-atoms.ts +581 -0
  462. package/src/commands/ref-filter/ref-filter.ts +651 -0
  463. package/src/commands/ref-filter/ref-format.ts +1070 -0
  464. package/src/commands/ref-filter/ref-listing-command.ts +421 -0
  465. package/src/commands/ref-filter/ref-quote.ts +69 -0
  466. package/src/commands/ref-filter/version-compare.ts +177 -0
  467. package/src/commands/reflog-command.ts +492 -2
  468. package/src/commands/reflog-walk.ts +234 -0
  469. package/src/commands/remerge-diff.ts +241 -0
  470. package/src/commands/remote-command.ts +537 -69
  471. package/src/commands/remote-show-command.ts +836 -0
  472. package/src/commands/remote-transport.ts +9 -1
  473. package/src/commands/reset-command.ts +114 -34
  474. package/src/commands/restore-command.ts +27 -41
  475. package/src/commands/rev-filter/commit-filter.ts +159 -0
  476. package/src/commands/rev-filter/commit-grep.ts +444 -0
  477. package/src/commands/rev-filter/index.ts +2 -0
  478. package/src/commands/rev-list-command.ts +578 -15
  479. package/src/commands/revert-command.ts +123 -1
  480. package/src/commands/revision-range.ts +207 -5
  481. package/src/commands/revision-resolver.ts +23 -8
  482. package/src/commands/rm-command.ts +282 -21
  483. package/src/commands/sequencer-pick.ts +818 -111
  484. package/src/commands/sequencer-support.ts +184 -4
  485. package/src/commands/serve-repository.ts +18 -3
  486. package/src/commands/shortlog-command.ts +354 -0
  487. package/src/commands/shortlog.ts +361 -0
  488. package/src/commands/show-command.ts +491 -0
  489. package/src/commands/show-commit.ts +24 -0
  490. package/src/commands/signature-check.ts +657 -0
  491. package/src/commands/signing.ts +385 -0
  492. package/src/commands/sparse-checkout-command.ts +2 -9
  493. package/src/commands/sparse-checkout-support.ts +2 -2
  494. package/src/commands/sparse-index-view.ts +135 -0
  495. package/src/commands/ssh-signer.ts +199 -0
  496. package/src/commands/ssh-verifier.ts +523 -0
  497. package/src/commands/stash-apply-command.ts +16 -4
  498. package/src/commands/stash-branch-command.ts +88 -0
  499. package/src/commands/stash-create-command.ts +28 -0
  500. package/src/commands/stash-info.ts +243 -0
  501. package/src/commands/stash-list-command.ts +33 -0
  502. package/src/commands/stash-pop-command.ts +83 -0
  503. package/src/commands/stash-show-command.ts +141 -0
  504. package/src/commands/stash-store-command.ts +82 -0
  505. package/src/commands/stash-working-tree.ts +2 -2
  506. package/src/commands/status-command.ts +120 -27
  507. package/src/commands/status-format.ts +1 -1
  508. package/src/commands/status-header.ts +41 -7
  509. package/src/commands/submodule-add-command.ts +509 -0
  510. package/src/commands/submodule-auth.ts +276 -0
  511. package/src/commands/submodule-commands.ts +1835 -0
  512. package/src/commands/submodule-fetch.ts +789 -0
  513. package/src/commands/submodule-model.ts +938 -0
  514. package/src/commands/submodule-unpack.ts +265 -0
  515. package/src/commands/submodule-update-command.ts +1126 -0
  516. package/src/commands/subtree-shift.ts +215 -0
  517. package/src/commands/switch-command.ts +12 -1
  518. package/src/commands/tag-command.ts +876 -64
  519. package/src/commands/trailers.ts +837 -100
  520. package/src/commands/tree-restore.ts +44 -11
  521. package/src/commands/verify-command.ts +235 -0
  522. package/src/commands/worktree-add-command.ts +268 -24
  523. package/src/commands/worktree-overwrite-checks.ts +5 -0
  524. package/src/commands/worktree-path-rules.ts +183 -0
  525. package/src/commands/worktree-remove-command.ts +39 -5
  526. package/src/commands/worktree-repair-command.ts +52 -5
  527. package/src/commands/worktree-support.ts +22 -1
  528. package/src/errors/checkout-errors.ts +29 -0
  529. package/src/errors/command-errors.ts +37 -1
  530. package/src/errors/ref-errors.ts +23 -0
  531. package/src/errors/worktree-errors.ts +8 -1
  532. package/src/git-command.ts +153 -2
  533. package/src/git.ts +550 -1
  534. package/src/guarded-transport-command.ts +171 -0
  535. package/src/index.ts +1 -0
  536. package/src/remote-config/index.ts +2 -0
  537. package/src/remote-config/remote-config-store.ts +101 -0
  538. package/src/rename/detect-renames.ts +42 -8
  539. package/src/rename/diffcore-break.ts +166 -0
  540. package/src/rename/index.ts +1 -0
  541. package/src/results/blame-format.ts +268 -43
  542. package/src/results/clone-result.ts +6 -0
  543. package/src/results/combined-diff.ts +38 -18
  544. package/src/results/diff-check.ts +185 -0
  545. package/src/results/diff-color.ts +868 -0
  546. package/src/results/diff-dirstat.ts +117 -0
  547. package/src/results/diff-entry.ts +12 -0
  548. package/src/results/diff-formatter.ts +1 -0
  549. package/src/results/diff-output.ts +322 -32
  550. package/src/results/diff-pickaxe.ts +304 -0
  551. package/src/results/diff-words.ts +395 -0
  552. package/src/results/fetch-result.ts +12 -1
  553. package/src/results/index.ts +6 -0
  554. package/src/results/init-result.ts +10 -1
  555. package/src/results/line-range-hunks.ts +126 -0
  556. package/src/results/merge-result.ts +9 -0
  557. package/src/results/pull-result.ts +7 -0
  558. package/src/results/push-result.ts +12 -0
  559. package/src/results/rebase-result.ts +3 -0
  560. package/src/results/stash-result.ts +7 -0
  561. package/src/results/status-result.ts +2 -2
  562. package/src/transport-command.ts +34 -3
  563. package/src/whitespace/index.ts +1 -0
  564. package/src/{commands/apply/whitespace.ts → whitespace/whitespace-rule.ts} +173 -23
  565. package/dist/commands/apply/whitespace.d.ts +0 -58
  566. package/dist/commands/apply/whitespace.d.ts.map +0 -1
  567. package/dist/git-command-BGiOJ8Zk.js +0 -7246
  568. package/dist/results-WVlBhVb1.js +0 -2935
@@ -1,6 +1,8 @@
1
1
  import type { ObjectId, Ref } from "@statewalker/vcs-core";
2
2
  import { GitCommand } from "../git-command.js";
3
3
  import { ListBranchMode } from "../types.js";
4
+ import { TrackMode } from "./branch-tracking.js";
5
+ import { RefListingCommand } from "./ref-filter/index.js";
4
6
  /**
5
7
  * Create a new branch.
6
8
  *
@@ -32,6 +34,11 @@ export declare class CreateBranchCommand extends GitCommand<Ref> {
32
34
  private name?;
33
35
  private startPoint?;
34
36
  private force;
37
+ private track;
38
+ private createReflog;
39
+ private quiet;
40
+ private readonly output;
41
+ private readonly warnings;
35
42
  /**
36
43
  * Set the name of the branch to create.
37
44
  *
@@ -56,11 +63,48 @@ export declare class CreateBranchCommand extends GitCommand<Ref> {
56
63
  */
57
64
  setForce(force: boolean): this;
58
65
  /**
59
- * Execute the branch creation.
66
+ * How the new branch tracks its start point: git's `-t`/`--track[=direct]`
67
+ * (`TrackMode.DIRECT`: the start point must be a branch, a local one tracked with
68
+ * `remote = .`), `--track=inherit` (the start branch's own upstream copied), `--no-track`;
69
+ * by default `branch.autoSetupMerge` decides (`true`: a remote-tracking start point is
70
+ * tracked; `always`, `inherit`, `simple`, `false`). `branch.autoSetupRebase` adds
71
+ * `branch.<name>.rebase = true`.
72
+ *
73
+ * @example
74
+ * ```typescript
75
+ * const command = git.branchCreate().setName("topic").setStartPoint("origin/topic");
76
+ * await command.setTrack(TrackMode.DIRECT).call();
77
+ * command.getOutput(); // ["branch 'topic' set up to track 'origin/topic'."]
78
+ * ```
79
+ */
80
+ setTrack(mode: TrackMode): this;
81
+ /**
82
+ * git's `--create-reflog`: the branch's reflog is created whatever
83
+ * `core.logAllRefUpdates` says.
84
+ */
85
+ setCreateReflog(createReflog: boolean): this;
86
+ /** git's `-q`: no "set up to track" message ({@link getOutput} stays empty). */
87
+ setQuiet(quiet: boolean): this;
88
+ /**
89
+ * What git printed on stdout, line by line: `branch '<b>' set up to track
90
+ * '<upstream>'.` (see {@link setTrack}). Read after {@link call}.
91
+ */
92
+ getOutput(): string[];
93
+ /**
94
+ * What git printed on stderr, line by line: `warning: asked to inherit tracking from
95
+ * '<b>', but no remote is set` and the like. Read after {@link call}.
96
+ */
97
+ getWarnings(): string[];
98
+ /**
99
+ * Execute the branch creation (git's `create_branch`).
60
100
  *
61
101
  * @returns The created branch ref
62
102
  * @throws InvalidRefNameError if branch name is invalid
63
103
  * @throws RefAlreadyExistsError if branch exists and force is false
104
+ * @throws RefNotFoundError when the start point names nothing (`fatal: not a valid object
105
+ * name: '<start>'`), or when several remotes fetch into the tracked start point (once the
106
+ * branch is created, as git dies)
107
+ * @throws InvalidArgumentError when `--track` cannot track the start point
64
108
  */
65
109
  call(): Promise<Ref>;
66
110
  }
@@ -129,50 +173,136 @@ export declare class DeleteBranchCommand extends GitCommand<string[]> {
129
173
  */
130
174
  private isBranchMerged;
131
175
  }
176
+ /** What {@link ListBranchCommand.callText} printed. */
177
+ export interface BranchListResult {
178
+ /** git's stdout: each branch's line and its newline (bytes outside UTF-8 as `decodeGitPath` keeps them) */
179
+ output: string;
180
+ /** Each shown branch's line, in order (an empty one left out with `--omit-empty`) */
181
+ lines: string[];
182
+ /** The refs shown, in order (`HEAD` for a detached HEAD) */
183
+ branches: {
184
+ refname: string;
185
+ objectId: ObjectId;
186
+ }[];
187
+ /** git's warnings on stderr */
188
+ warnings: string[];
189
+ }
132
190
  /**
133
191
  * List branches.
134
192
  *
135
- * Equivalent to `git branch -l`.
193
+ * Equivalent to `git branch --list`. {@link call} returns the branch refs (symbolic ones
194
+ * left out); {@link callText} prints git's listing: `* ` before the branch checked out here,
195
+ * `+ ` before one another worktree has checked out, a detached HEAD first as
196
+ * `(HEAD detached at <name>)` (or `from`, `(no branch, rebasing <branch>)`,
197
+ * `(no branch, bisect started on <branch>)`), symbolic refs as `name -> target`, and with
198
+ * `-v` each branch's abbreviated id, upstream tracking and subject (`-vv`: the upstream's
199
+ * name and other worktrees' paths), aligned as git aligns them.
136
200
  *
137
- * Based on JGit's ListBranchCommand.
201
+ * The ref filter is git's (`ref-filter`): patterns match after `refs/heads/` or
202
+ * `refs/remotes/` (`setPatterns("feature/*")`), `setSort` keys follow `--sort` (the last is
203
+ * primary; `branch.sort` keys come before them, `refname` when none), `setFormat` takes the
204
+ * `for-each-ref` language, and the reachability filters (`setContains`, `setNoContains`,
205
+ * `setMerged`, `setNoMerged`, `setPointsAt`) take revision names (HEAD when none is given).
206
+ * Colors follow `--color` or `color.branch`/`color.ui` set to `always` (no terminal is
207
+ * assumed), with `color.branch.<slot>`. Not supported: `--column` layouts (lines are
208
+ * printed as `--no-column` prints them).
209
+ *
210
+ * Based on JGit's ListBranchCommand and git's builtin/branch.c.
138
211
  *
139
212
  * @example
140
213
  * ```typescript
141
214
  * // List local branches
142
215
  * const branches = await git.branchList().call();
143
216
  *
144
- * // List remote branches
145
- * const remote = await git.branchList()
146
- * .setListMode(ListBranchMode.REMOTE)
147
- * .call();
148
- *
149
- * // List all branches
150
- * const all = await git.branchList()
217
+ * // git branch -a -vv --merged
218
+ * const { output } = await git.branchList()
151
219
  * .setListMode(ListBranchMode.ALL)
152
- * .call();
220
+ * .setVerbose(2)
221
+ * .setMerged()
222
+ * .callText();
223
+ *
224
+ * // git branch --sort=-committerdate --format='%(refname:short)' 'feature/*'
225
+ * const { lines } = await git.branchList()
226
+ * .setSort("-committerdate")
227
+ * .setFormat("%(refname:short)")
228
+ * .setPatterns("feature/*")
229
+ * .callText();
153
230
  * ```
154
231
  */
155
- export declare class ListBranchCommand extends GitCommand<Ref[]> {
232
+ export declare class ListBranchCommand extends RefListingCommand<Ref[]> {
156
233
  private listMode;
157
- private containsCommit?;
234
+ private patterns;
235
+ private verbose;
236
+ private abbrev?;
237
+ private format?;
238
+ private sortKeys;
239
+ private ignoreCase;
240
+ private omitEmpty;
241
+ private color?;
242
+ private pointsAt;
243
+ private contains;
244
+ private noContains;
245
+ private merged;
246
+ private noMerged;
247
+ private compatibility;
158
248
  /**
159
- * Set the listing mode.
249
+ * Set the listing mode: local branches (default), `-r` (remote-tracking) or `-a` (both).
160
250
  *
161
251
  * @param mode Which branches to list
162
252
  */
163
253
  setListMode(mode: ListBranchMode): this;
254
+ /** `<pattern>...`: branches whose name after `refs/heads/` or `refs/remotes/` matches one. */
255
+ setPatterns(...patterns: string[]): this;
256
+ /** `-v` (1) or `-vv` (2): ids and subjects, then upstreams and worktree paths. */
257
+ setVerbose(level: number): this;
258
+ /** `--abbrev=<n>` for `-v`'s ids (0: `--no-abbrev`, the full id). */
259
+ setAbbrev(length: number): this;
260
+ /** `--format=<format>`: each branch through git's ref format language. */
261
+ setFormat(format: string): this;
262
+ /** `--sort=<key>` for each key, in command-line order (the last is the primary key). */
263
+ setSort(...keys: string[]): this;
264
+ /** `-i`: patterns and sorting without case. */
265
+ setIgnoreCase(ignore: boolean): this;
266
+ /** `--omit-empty`: no line for a branch whose format expands to nothing. */
267
+ setOmitEmpty(omit: boolean): this;
268
+ /** `--color` (true) or `--no-color` (false); default `color.branch`/`color.ui` `always`. */
269
+ setColor(color: boolean): this;
270
+ /** `--points-at=<object>`: branches naming one of these objects. */
271
+ setPointsAt(...objects: string[]): this;
164
272
  /**
165
- * Filter to branches containing the given commit.
273
+ * `--contains[=<commit>]` (HEAD without one): branches whose commit reaches one of these.
166
274
  *
167
- * @param commit Commit that must be in branch history
275
+ * @param commits Revision names or object ids
168
276
  */
169
- setContains(commit: ObjectId): this;
277
+ setContains(...commits: string[]): this;
278
+ /** `--no-contains[=<commit>]` (HEAD without one): branches whose commit reaches none. */
279
+ setNoContains(...commits: string[]): this;
280
+ /** `--merged[=<commit>]` (HEAD without one): branches one of these reaches. */
281
+ setMerged(...commits: string[]): this;
282
+ /** `--no-merged[=<commit>]` (HEAD without one): branches none of these reaches. */
283
+ setNoMerged(...commits: string[]): this;
284
+ /**
285
+ * The git version whose `--format` output to follow where versions differ (default 2.56;
286
+ * see `ForEachRefCommand.setCompatibility`).
287
+ */
288
+ setCompatibility(version: "2.43" | "2.56"): this;
289
+ private kind;
290
+ private filterOptions;
170
291
  /**
171
292
  * Execute the branch listing.
172
293
  *
173
- * @returns List of branch refs
294
+ * @returns The branch refs the filters keep, symbolic refs left out, in name order
174
295
  */
175
296
  call(): Promise<Ref[]>;
297
+ /**
298
+ * `git branch --list`'s output.
299
+ *
300
+ * @throws RefFilterError where git refuses an option or dies (bad format, bad sort key,
301
+ * a name that is no commit)
302
+ */
303
+ callText(): Promise<BranchListResult>;
304
+ /** get_head_description over this repository's state. */
305
+ private headDescription;
176
306
  }
177
307
  /**
178
308
  * Rename a branch. Other worktrees whose HEAD is on it follow the new name, with git's
@@ -1 +1 @@
1
- {"version":3,"file":"branch-command.d.ts","sourceRoot":"","sources":["../../src/commands/branch-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAiB,GAAG,EAAQ,MAAM,uBAAuB,CAAC;AAmBhF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAM7C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,GAAG,CAAC;IACtD,OAAO,CAAC,IAAI,CAAC,CAAS;IACtB,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,KAAK,CAAS;IAEtB;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI1B;IAED;;;;;;;OAOG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAItC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,OAA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IACG,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CA4GzB;CACF;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,iBAAkB,SAAQ,UAAU,CAAC,GAAG,CAAC;IACpD,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,KAAK,CAAS;IAEtB,qDAAqD;IACrD,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED,6BAA6B;IAC7B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED,uFAAuF;IACvF,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAI7B;IAED;;;;;;;OAOG;IACG,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAkFzB;CACF"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * `git branch --show-current` and `git branch --edit-description` (builtin/branch.c
3
+ * `print_current_branch_name`, `edit_branch_description`).
4
+ */
5
+ import { GitCommand } from "../git-command.js";
6
+ import type { CommitEditor } from "./commit-command.js";
7
+ /**
8
+ * The branch checked out.
9
+ *
10
+ * Equivalent to `git branch --show-current`: the branch HEAD names, an unborn one too, and
11
+ * undefined on a detached HEAD (git prints nothing). A HEAD naming a ref outside
12
+ * `refs/heads/` is refused as `git branch` refuses it (`fatal: HEAD not found below refs/heads!`).
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const name = await git.branchShowCurrent().call(); // "main", or undefined when detached
17
+ * ```
18
+ */
19
+ export declare class ShowCurrentBranchCommand extends GitCommand<string | undefined> {
20
+ call(): Promise<string | undefined>;
21
+ }
22
+ /**
23
+ * Edit a branch's description (`branch.<name>.description`).
24
+ *
25
+ * Equivalent to `git branch --edit-description [<branch>]`: the description so far, then
26
+ * git's commented help, is written to `EDIT_DESCRIPTION` in the git directory and given to
27
+ * the editor (a library cannot launch `core.editor`; the callback has the shape of
28
+ * `CommitCommand.setEditor`'s and returns the edited text, or nothing once it changed the
29
+ * file). The result is cleaned up as git's `stripspace` with comments stripped; an empty
30
+ * one removes the description.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * await git.branchEditDescription().setEditor(async () => "Work on the parser\n").call();
35
+ * ```
36
+ */
37
+ export declare class EditBranchDescriptionCommand extends GitCommand<string | undefined> {
38
+ private branch?;
39
+ private editor?;
40
+ /** The branch to describe (default: the one checked out). */
41
+ setBranch(branch: string): this;
42
+ /**
43
+ * The editor: called with `EDIT_DESCRIPTION` and the text written there. Without one the
44
+ * text is taken as written (the description kept, cleaned up).
45
+ */
46
+ setEditor(editor: CommitEditor): this;
47
+ /**
48
+ * @returns the new description, undefined when there is none
49
+ * @throws GitApiError on a detached HEAD (`fatal: cannot give description to detached
50
+ * HEAD`), for a branch that does not exist (`error: no branch named '<b>'`, or `no commit
51
+ * on branch '<b>' yet` for one checked out; exit status 1)
52
+ */
53
+ call(): Promise<string | undefined>;
54
+ }
55
+ //# sourceMappingURL=branch-info-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch-info-command.d.ts","sourceRoot":"","sources":["../../src/commands/branch-info-command.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKxD;;;;;;;;;;;GAWG;AACH,qBAAa,wBAAyB,SAAQ,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC;IACpE,IAAI,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAkBxC;CACF;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC;IAC9E,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,MAAM,CAAC,CAAe;IAE9B,6DAA6D;IAC7D,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAIpC;IAED;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAyDxC;CACF"}
@@ -7,11 +7,13 @@
7
7
  * @example
8
8
  * ```typescript
9
9
  * // `git switch -c topic origin/topic`: branch.topic.remote=origin, .merge=refs/heads/topic
10
- * await setupTracking(workingCopy, refs, "topic", "refs/remotes/origin/topic", TrackMode.DEFAULT);
10
+ * const { plan } = planTracking(workingCopy, "topic", "refs/remotes/origin/topic", TrackMode.DEFAULT);
11
+ * if (plan) await installTracking(workingCopy, "topic", plan); // ["branch 'topic' set up to track 'origin/topic'."]
11
12
  * ```
12
13
  */
13
14
  import { type Refs } from "@statewalker/vcs-core";
14
15
  import type { WorkingCopy } from "@statewalker/vcs-working-tree";
16
+ import { InvalidArgumentError } from "../errors/index.js";
15
17
  /**
16
18
  * How a new branch tracks its start point (git's `--track`, `--no-track`,
17
19
  * `branch.autoSetupMerge`).
@@ -42,16 +44,53 @@ export declare function applyRefspecs(specStrings: string[], src: string): strin
42
44
  * (a `refs/remotes/...` ref no remote writes is not tracked as a branch).
43
45
  */
44
46
  export declare function isRemoteTrackingBranch(workingCopy: WorkingCopy, ref: string): boolean;
47
+ /** What {@link uniqueTrackingName} found. */
48
+ export interface TrackingNameMatch {
49
+ /**
50
+ * The tracking ref picked (a full ref name): the only match, else the one of
51
+ * `checkout.defaultRemote`; undefined when none or several match without a default.
52
+ */
53
+ readonly ref?: string;
54
+ /** The remotes whose fetch refspecs map `refs/heads/<name>` onto an existing ref, in order. */
55
+ readonly remotes: string[];
56
+ }
57
+ /**
58
+ * git's `unique_tracking_name` (checkout.c): every remote, in configuration order, whose
59
+ * fetch refspecs map `refs/heads/<name>` onto a ref that exists (in `refs/remotes/` or
60
+ * anywhere else, as `refs/repo_d/*`); the one match, or with several the one of
61
+ * `checkout.defaultRemote`.
62
+ */
63
+ export declare function uniqueTrackingName(workingCopy: WorkingCopy, refs: Refs, name: string): Promise<TrackingNameMatch>;
64
+ /** Whether `advice.checkoutAmbiguousRemoteBranchName` is on (the default). */
65
+ export declare function ambiguousRemoteAdvice(workingCopy: WorkingCopy): boolean;
66
+ /**
67
+ * builtin/checkout.c's `advise_disambiguating_remotes` for `git checkout` / `git switch`
68
+ * (git 2.43 words it without the remotes, and always as `git checkout`).
69
+ */
70
+ export declare function checkoutAmbiguityHints(command: "checkout" | "switch", name: string, remotes: string[], compatibility?: TrackingCompatibility): string[];
71
+ /**
72
+ * builtin/worktree.c's `advise_disambiguating_remotes` (git 2.5x; 2.43's `worktree add`
73
+ * takes an ambiguous name for no remote branch at all).
74
+ */
75
+ export declare function worktreeAmbiguityHints(path: string, name: string, remotes: string[]): string[];
76
+ /** Options of {@link guessRemoteBranch}. */
77
+ export interface GuessRemoteBranchOptions {
78
+ /** The command whose advice an ambiguous name gets (default `checkout`). */
79
+ command?: "checkout" | "switch";
80
+ /** The git version whose advice it follows (default 2.56). */
81
+ compatibility?: TrackingCompatibility;
82
+ }
45
83
  /**
46
84
  * The remote-tracking branch git's checkout and switch turn `name` into when no ref has
47
- * that name (`--guess`, on by default): the one `refs/remotes/<remote>/...` ref that some
85
+ * that name (`--guess`, on by default, git's `parse_remote_branch`): the one ref that some
48
86
  * remote fetches `refs/heads/<name>` into; with several, the one of `checkout.defaultRemote`.
49
87
  *
50
88
  * @returns the full name of the tracking ref, or undefined when no remote has the branch
51
- * @throws InvalidArgumentError when several remotes have it (git's `'<name>' matched
52
- * multiple (<n>) remote tracking branches`)
89
+ * @throws InvalidArgumentError when several remotes have it: the
90
+ * `advice.checkoutAmbiguousRemoteBranchName` hints, then git's `fatal: '<name>' matched
91
+ * multiple (<n>) remote tracking branches`
53
92
  */
54
- export declare function guessRemoteBranch(workingCopy: WorkingCopy, refs: Refs, name: string): Promise<string | undefined>;
93
+ export declare function guessRemoteBranch(workingCopy: WorkingCopy, refs: Refs, name: string, options?: GuessRemoteBranchOptions): Promise<string | undefined>;
55
94
  /**
56
95
  * The start point's full ref name when it names a branch git would track (git's
57
96
  * `dwim_branch_start`): a local branch, or a remote-tracking branch some remote fetches
@@ -61,6 +100,21 @@ export declare function guessRemoteBranch(workingCopy: WorkingCopy, refs: Refs,
61
100
  export declare function trackableStart(workingCopy: WorkingCopy, refs: Refs, start: string, mode: TrackMode): Promise<string | undefined>;
62
101
  /** The ref a (possibly symbolic) ref ends at, when that one exists. */
63
102
  export declare function endOfSymbolicChain(refs: Refs, name: string): Promise<string | undefined>;
103
+ /** The git version whose wording a tracking message follows (hints differ). */
104
+ export type TrackingCompatibility = "2.43" | "2.56";
105
+ /**
106
+ * git's `advise()` lines of `text`: `hint: <line>`, an empty line `hint:` (2.43 wrote
107
+ * `hint: ` with the space).
108
+ */
109
+ export declare function hintLines(text: string, compatibility?: TrackingCompatibility): string[];
110
+ /** The closing line of `advise_if_enabled`, as the version words it. */
111
+ export declare function disableHint(name: string, compatibility?: TrackingCompatibility): string;
112
+ /**
113
+ * git's `upstream_missing` death of `dwim_branch_start` under `--track` /
114
+ * `--set-upstream-to`: `fatal: the requested upstream branch '<start>' does not exist`,
115
+ * with the `advice.setUpstreamFailure` hint.
116
+ */
117
+ export declare function upstreamMissingError(workingCopy: WorkingCopy, start: string, compatibility?: TrackingCompatibility): InvalidArgumentError;
64
118
  /**
65
119
  * The upstream configuration {@link planTracking} decided on: `branch.<name>.remote` (none
66
120
  * for a local start, written as `.`), `.merge` and whether `.rebase` is set.
@@ -70,29 +124,64 @@ export interface TrackingPlan {
70
124
  readonly merges: string[];
71
125
  readonly rebase: boolean;
72
126
  }
127
+ /**
128
+ * What {@link planTracking} decided: the plan (none when nothing is tracked) and the
129
+ * warnings git prints instead (`warning: asked to inherit tracking from '<b>', but no
130
+ * remote is set`, `warning: not setting branch '<b>' as its own upstream`).
131
+ */
132
+ export interface TrackingDecision {
133
+ readonly plan?: TrackingPlan;
134
+ readonly warnings: string[];
135
+ }
136
+ /** Options of {@link planTracking}. */
137
+ export interface PlanTrackingOptions {
138
+ /** The git version whose hints the refusals follow (default 2.56). */
139
+ compatibility?: TrackingCompatibility;
140
+ }
73
141
  /**
74
142
  * git's `setup_tracking` up to the point it writes: what a new branch that starts at the
75
143
  * branch `startRef` (a full ref name, see {@link trackableStart}) tracks, as `mode` and
76
144
  * `branch.autoSetupMerge` say. Nothing is written; {@link installTracking} does that.
77
145
  *
78
- * @returns the plan, or undefined when nothing is tracked
146
+ * @returns the plan (none when nothing is tracked) with git's warnings
79
147
  * @throws RefNotFoundError when several remotes fetch into `startRef` (git's `not
80
- * tracking: ambiguous information for ref '<ref>'`)
148
+ * tracking: ambiguous information for ref '<ref>'` and the `advice.ambiguousFetchRefspec`
149
+ * hint)
150
+ * @throws InvalidArgumentError when several refs are inherited and `branch.autoSetupRebase`
151
+ * asks for rebasing (`cannot inherit upstream tracking configuration of multiple refs
152
+ * when rebasing is requested`)
81
153
  */
82
- export declare function planTracking(workingCopy: WorkingCopy, newBranch: string, startRef: string, mode: TrackMode): TrackingPlan | undefined;
154
+ export declare function planTracking(workingCopy: WorkingCopy, newBranch: string, startRef: string, mode: TrackMode, options?: PlanTrackingOptions): TrackingDecision;
83
155
  /**
84
- * Write a {@link TrackingPlan} as `branch.<newBranch>.*` and save the configuration.
156
+ * The plan of `git push -u` (transport.c `set_upstreams` → `install_branch_config`): the
157
+ * branch tracks `merge` (a `refs/heads/` ref) of `remote` (the remote's name, or the URL
158
+ * pushed to), rebasing as `branch.autoSetupRebase` says.
85
159
  *
86
- * @returns the upstream set up (`origin/topic`, a local `main`)
160
+ * @example
161
+ * ```typescript
162
+ * const plan = pushTrackingPlan(workingCopy, "origin", "refs/heads/topic");
163
+ * await installTracking(workingCopy, "topic", plan); // ["branch 'topic' set up to track 'origin/topic'."]
164
+ * ```
165
+ */
166
+ export declare function pushTrackingPlan(workingCopy: WorkingCopy, remote: string, merge: string): TrackingPlan;
167
+ /**
168
+ * Whether git's `install_branch_config_multiple_remotes` sets `branch.<name>.rebase` for an
169
+ * upstream on `remote` (undefined: a local branch), as `branch.autoSetupRebase` says.
170
+ */
171
+ export declare function autoSetupRebase(workingCopy: WorkingCopy, remote: string | undefined): boolean;
172
+ /**
173
+ * What git prints once it wrote a {@link TrackingPlan} (`BRANCH_CONFIG_VERBOSE`):
174
+ * `branch '<b>' set up to track '<remote>/<branch>'.` (`... by rebasing.`), the local
175
+ * branch's name alone for `remote = .` set up by `--track`, `./<branch>` for one inherited,
176
+ * one line per upstream after `branch '<b>' set up to track:` for several.
87
177
  */
88
- export declare function installTracking(workingCopy: WorkingCopy, newBranch: string, plan: TrackingPlan): Promise<string>;
178
+ export declare function trackingMessage(newBranch: string, plan: TrackingPlan): string[];
89
179
  /**
90
- * git's `setup_tracking`: `branch.<name>.remote` and `branch.<name>.merge` (and
91
- * `branch.<name>.rebase` as `branch.autoSetupRebase` asks) for a new branch that starts at
92
- * the branch `startRef` (a full ref name, see {@link trackableStart}), as `mode` and
93
- * `branch.autoSetupMerge` say. The configuration is saved.
180
+ * Write a {@link TrackingPlan} as `branch.<newBranch>.*` and save the configuration, as
181
+ * git's `install_branch_config_multiple_remotes`: `.remote` set, every `.merge` replaced,
182
+ * `.rebase = true` when rebasing.
94
183
  *
95
- * @returns the upstream set up (`origin/topic`, a local `main`), or undefined when none
184
+ * @returns what git prints (see {@link trackingMessage})
96
185
  */
97
- export declare function setupTracking(workingCopy: WorkingCopy, newBranch: string, startRef: string, mode: TrackMode): Promise<string | undefined>;
186
+ export declare function installTracking(workingCopy: WorkingCopy, newBranch: string, plan: TrackingPlan): Promise<string[]>;
98
187
  //# sourceMappingURL=branch-tracking.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"branch-tracking.d.ts","sourceRoot":"","sources":["../../src/commands/branch-tracking.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAiB,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAGjE,OAAO,KA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MAAM,GAAG,SAAS,GAAG,OAAO,CAE7F;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,EAAE,CAa/E;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,YAAY,GACjB,OAAO,CAAC,MAAM,EAAE,CAAC,CAUnB"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * `git branch --set-upstream-to` and `git branch --unset-upstream` (builtin/branch.c): the
3
+ * `branch.<name>.remote` / `.merge` configuration of an existing branch.
4
+ */
5
+ import { GitCommand } from "../git-command.js";
6
+ /**
7
+ * The branch a set/unset-upstream names (cmd_branch's `branch_get`): the one checked out
8
+ * when none is given or it is `HEAD`, else the name as `copy_branchname` interprets it.
9
+ */
10
+ declare abstract class BranchUpstreamBase<T> extends GitCommand<T> {
11
+ protected branch?: string;
12
+ /**
13
+ * The branch to change (default: the one checked out). `HEAD` names the current branch,
14
+ * `@{-1}` the previous one.
15
+ */
16
+ setBranch(branch: string): this;
17
+ /**
18
+ * The branch's short name, or undefined on a detached HEAD (git's `branch_get(NULL)`).
19
+ */
20
+ protected branchName(): Promise<string | undefined>;
21
+ /** git's `branch_checked_out`: whether some worktree (this one at least) has it. */
22
+ protected checkedOut(name: string): Promise<boolean>;
23
+ }
24
+ /**
25
+ * Set the upstream of a branch.
26
+ *
27
+ * Equivalent to `git branch --set-upstream-to=<upstream> [<branch>]`: the upstream must be a
28
+ * branch (a remote-tracking branch some remote fetches into, or a local branch, tracked with
29
+ * `remote = .`); `branch.autoSetupRebase` adds `branch.<name>.rebase = true`. git's message
30
+ * (`branch 'main' set up to track 'origin/main'.`) is in {@link getOutput}, its warning for a
31
+ * branch set as its own upstream in {@link getWarnings}.
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * const command = git.branchSetUpstream().setUpstream("origin/main");
36
+ * await command.call();
37
+ * command.getOutput(); // ["branch 'main' set up to track 'origin/main'."]
38
+ * ```
39
+ */
40
+ export declare class SetUpstreamBranchCommand extends BranchUpstreamBase<void> {
41
+ private upstream?;
42
+ private quiet;
43
+ private readonly output;
44
+ private readonly warnings;
45
+ /** The upstream: a branch name (`origin/main`, `main`, `refs/remotes/origin/main`). */
46
+ setUpstream(upstream: string): this;
47
+ /** git's `-q`: no "set up to track" message. */
48
+ setQuiet(quiet: boolean): this;
49
+ /** What git printed on stdout, line by line. Read after {@link call}. */
50
+ getOutput(): string[];
51
+ /** What git printed on stderr (its warnings), line by line. Read after {@link call}. */
52
+ getWarnings(): string[];
53
+ /**
54
+ * @throws GitApiError with git's `fatal:` lines: a detached HEAD, a branch that does not
55
+ * exist, an upstream that names nothing or no branch, ambiguous remotes
56
+ */
57
+ call(): Promise<void>;
58
+ /**
59
+ * git 2.5x's `die_if_upstream_looks_like_remote`: `--set-upstream-to origin topic` meant
60
+ * `origin/topic` when `origin` is a remote and `refs/remotes/origin/topic` exists.
61
+ */
62
+ private refuseRemoteSlip;
63
+ }
64
+ /**
65
+ * Remove the upstream of a branch.
66
+ *
67
+ * Equivalent to `git branch --unset-upstream [<branch>]`: `branch.<name>.remote` and
68
+ * `branch.<name>.merge` are removed (`.rebase` stays, as git leaves it); a branch without
69
+ * both is refused (`fatal: branch '<b>' has no upstream information`).
70
+ *
71
+ * @example
72
+ * ```typescript
73
+ * await git.branchUnsetUpstream().setBranch("topic").call();
74
+ * ```
75
+ */
76
+ export declare class UnsetUpstreamBranchCommand extends BranchUpstreamBase<void> {
77
+ /**
78
+ * @throws GitApiError with git's `fatal:` line: a detached HEAD, no upstream configured
79
+ */
80
+ call(): Promise<void>;
81
+ }
82
+ export {};
83
+ //# sourceMappingURL=branch-upstream-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch-upstream-command.d.ts","sourceRoot":"","sources":["../../src/commands/branch-upstream-command.ts"],"names":[],"mappings":"AAAA;;;GA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's mailmap
3
+ * maps it (`.mailmap`, `mailmap.blob`, `mailmap.file`, plus `--mailmap-blob` and
4
+ * `--mailmap-file`).
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * // git check-mailmap "nick1 <bugs@company.xx>"
9
+ * await git.checkMailmap().addContact("nick1 <bugs@company.xx>").call();
10
+ * // "Some Dude <some@dude.xx>\n"
11
+ * ```
12
+ */
13
+ import { GitCommand } from "../git-command.js";
14
+ /**
15
+ * The contacts of `git check-mailmap <contact>...` (and `--stdin`'s lines after them), one
16
+ * output line each: `Name <email>`, or `<email>` when the result has no name.
17
+ *
18
+ * git 2.43 (`setCompatibility("2.43")`) takes only `Name <email>` contacts (`fatal: unable
19
+ * to parse contact: <contact>`) and has no `--mailmap-file`/`--mailmap-blob`; 2.47 and later
20
+ * also map a bare address. Where git dies, the error carries what was printed before
21
+ * ({@link getOutput}).
22
+ */
23
+ export declare class CheckMailmapCommand extends GitCommand<string> {
24
+ private readonly contacts;
25
+ private stdin?;
26
+ private mailmapFile?;
27
+ private mailmapBlob?;
28
+ private compatibility;
29
+ private output;
30
+ private readonly errors;
31
+ /** A contact argument. */
32
+ addContact(contact: string): this;
33
+ /** `--stdin`: these lines (git's stdin) checked after the arguments. */
34
+ setStdin(text: string): this;
35
+ /** `--mailmap-file=<file>` (git 2.47+): more entries from this host file. */
36
+ setMailmapFile(path: string): this;
37
+ /** `--mailmap-blob=<blob>` (git 2.47+): more entries from this blob. */
38
+ setMailmapBlob(name: string): this;
39
+ /** The git version whose behaviour to follow (default 2.56). */
40
+ setCompatibility(version: "2.43" | "2.56"): this;
41
+ /** What was printed on stdout (also after a death). */
42
+ getOutput(): string;
43
+ /** git's `error:` lines (a mailmap blob that is no blob). */
44
+ getErrors(): string[];
45
+ /** The output. */
46
+ call(): Promise<string>;
47
+ private check;
48
+ }
49
+ //# sourceMappingURL=check-mailmap-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-mailmap-command.d.ts","sourceRoot":"","sources":["../../src/commands/check-mailmap-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C;;;;;;;;GAQG;AACH,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,MAAM,CAAC;IACzD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC,0BAA0B;IAC1B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhC;IAED,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI3B;IAED,6EAA6E;IAC7E,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIjC;IAED,wEAAwE;IACxE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIjC;IAED,gEAAgE;IAChE,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/C;IAED,uDAAuD;IACvD,SAAS,IAAI,MAAM,CAElB;IAED,6DAA6D;IAC7D,SAAS,IAAI,MAAM,EAAE,CAEpB;IAED,kBAAkB;IACZ,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAiC5B;IAED,OAAO,CAAC,KAAK;CASd"}