@statewalker/vcs-commands 0.6.0 → 0.8.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 (481) hide show
  1. package/dist/commands/add-command.d.ts +38 -0
  2. package/dist/commands/add-command.d.ts.map +1 -1
  3. package/dist/commands/am/am-command.d.ts +55 -1
  4. package/dist/commands/am/am-command.d.ts.map +1 -1
  5. package/dist/commands/am/index.d.ts +1 -0
  6. package/dist/commands/am/index.d.ts.map +1 -1
  7. package/dist/commands/am/mailsplit.d.ts +88 -0
  8. package/dist/commands/am/mailsplit.d.ts.map +1 -0
  9. package/dist/commands/apply/apply-command.d.ts.map +1 -1
  10. package/dist/commands/apply/apply-engine.d.ts.map +1 -1
  11. package/dist/commands/apply/apply-parse.d.ts.map +1 -1
  12. package/dist/commands/bisect/bisect-command.d.ts +2 -0
  13. package/dist/commands/bisect/bisect-command.d.ts.map +1 -1
  14. package/dist/commands/bisect/bisect-engine.d.ts.map +1 -1
  15. package/dist/commands/branch-command.d.ts +148 -18
  16. package/dist/commands/branch-command.d.ts.map +1 -1
  17. package/dist/commands/branch-info-command.d.ts +55 -0
  18. package/dist/commands/branch-info-command.d.ts.map +1 -0
  19. package/dist/commands/branch-tracking.d.ts +106 -17
  20. package/dist/commands/branch-tracking.d.ts.map +1 -1
  21. package/dist/commands/branch-upstream-command.d.ts +83 -0
  22. package/dist/commands/branch-upstream-command.d.ts.map +1 -0
  23. package/dist/commands/checkout-command.d.ts +19 -3
  24. package/dist/commands/checkout-command.d.ts.map +1 -1
  25. package/dist/commands/cherry-pick-command.d.ts +59 -0
  26. package/dist/commands/cherry-pick-command.d.ts.map +1 -1
  27. package/dist/commands/clean-command.d.ts +12 -0
  28. package/dist/commands/clean-command.d.ts.map +1 -1
  29. package/dist/commands/clone-command.d.ts +17 -0
  30. package/dist/commands/clone-command.d.ts.map +1 -1
  31. package/dist/commands/comment-char-config.d.ts +35 -0
  32. package/dist/commands/comment-char-config.d.ts.map +1 -0
  33. package/dist/commands/commit-command.d.ts +191 -5
  34. package/dist/commands/commit-command.d.ts.map +1 -1
  35. package/dist/commands/commit-reuse.d.ts +33 -0
  36. package/dist/commands/commit-reuse.d.ts.map +1 -0
  37. package/dist/commands/config-command.d.ts +236 -0
  38. package/dist/commands/config-command.d.ts.map +1 -0
  39. package/dist/commands/config-value-types.d.ts +91 -0
  40. package/dist/commands/config-value-types.d.ts.map +1 -0
  41. package/dist/commands/core-config.d.ts +20 -0
  42. package/dist/commands/core-config.d.ts.map +1 -1
  43. package/dist/commands/default-branch.d.ts +70 -0
  44. package/dist/commands/default-branch.d.ts.map +1 -0
  45. package/dist/commands/diff-color-config.d.ts +73 -0
  46. package/dist/commands/diff-color-config.d.ts.map +1 -0
  47. package/dist/commands/diff-command.d.ts +252 -5
  48. package/dist/commands/diff-command.d.ts.map +1 -1
  49. package/dist/commands/fetch-command.d.ts +20 -0
  50. package/dist/commands/fetch-command.d.ts.map +1 -1
  51. package/dist/commands/fmt-merge-msg-command.d.ts +124 -0
  52. package/dist/commands/fmt-merge-msg-command.d.ts.map +1 -0
  53. package/dist/commands/fork-point.d.ts +38 -0
  54. package/dist/commands/fork-point.d.ts.map +1 -0
  55. package/dist/commands/format-patch-command.d.ts +41 -1
  56. package/dist/commands/format-patch-command.d.ts.map +1 -1
  57. package/dist/commands/fsck/fetch-fsck.d.ts +51 -0
  58. package/dist/commands/fsck/fetch-fsck.d.ts.map +1 -1
  59. package/dist/commands/fsck/fsck-command.d.ts +2 -0
  60. package/dist/commands/fsck/fsck-command.d.ts.map +1 -1
  61. package/dist/commands/fsck/fsck-loose.d.ts +3 -0
  62. package/dist/commands/fsck/fsck-loose.d.ts.map +1 -1
  63. package/dist/commands/fsck/fsck-object-checks.d.ts +25 -14
  64. package/dist/commands/fsck/fsck-object-checks.d.ts.map +1 -1
  65. package/dist/commands/fsck/fsck-object-table.d.ts +15 -7
  66. package/dist/commands/fsck/fsck-object-table.d.ts.map +1 -1
  67. package/dist/commands/fsck/fsck-pack.d.ts +11 -4
  68. package/dist/commands/fsck/fsck-pack.d.ts.map +1 -1
  69. package/dist/commands/fsck/verify-pack-command.d.ts.map +1 -1
  70. package/dist/commands/gc-command.d.ts +80 -48
  71. package/dist/commands/gc-command.d.ts.map +1 -1
  72. package/dist/commands/git-date.d.ts +1 -65
  73. package/dist/commands/git-date.d.ts.map +1 -1
  74. package/dist/commands/git-describe.d.ts +4 -0
  75. package/dist/commands/git-describe.d.ts.map +1 -1
  76. package/dist/commands/git-hooks.d.ts +43 -0
  77. package/dist/commands/git-hooks.d.ts.map +1 -1
  78. package/dist/commands/grep/grep-command.d.ts +210 -0
  79. package/dist/commands/grep/grep-command.d.ts.map +1 -0
  80. package/dist/commands/grep/grep-engine.d.ts +218 -0
  81. package/dist/commands/grep/grep-engine.d.ts.map +1 -0
  82. package/dist/commands/grep/index.d.ts +3 -0
  83. package/dist/commands/grep/index.d.ts.map +1 -0
  84. package/dist/commands/index-adder.d.ts +15 -2
  85. package/dist/commands/index-adder.d.ts.map +1 -1
  86. package/dist/commands/index.d.ts +28 -0
  87. package/dist/commands/index.d.ts.map +1 -1
  88. package/dist/commands/index.js +3 -3
  89. package/dist/commands/init-command.d.ts +50 -3
  90. package/dist/commands/init-command.d.ts.map +1 -1
  91. package/dist/commands/interpret-trailers-command.d.ts +90 -0
  92. package/dist/commands/interpret-trailers-command.d.ts.map +1 -0
  93. package/dist/commands/legacy-remotes.d.ts +55 -0
  94. package/dist/commands/legacy-remotes.d.ts.map +1 -0
  95. package/dist/commands/local-transport.d.ts +36 -5
  96. package/dist/commands/local-transport.d.ts.map +1 -1
  97. package/dist/commands/log-command.d.ts +296 -11
  98. package/dist/commands/log-command.d.ts.map +1 -1
  99. package/dist/commands/log-graph.d.ts +26 -1
  100. package/dist/commands/log-graph.d.ts.map +1 -1
  101. package/dist/commands/log-output.d.ts +133 -5
  102. package/dist/commands/log-output.d.ts.map +1 -1
  103. package/dist/commands/ls-remote-command.d.ts +2 -0
  104. package/dist/commands/ls-remote-command.d.ts.map +1 -1
  105. package/dist/commands/mailmap.d.ts +30 -0
  106. package/dist/commands/mailmap.d.ts.map +1 -1
  107. package/dist/commands/merge-base-command.d.ts +60 -0
  108. package/dist/commands/merge-base-command.d.ts.map +1 -0
  109. package/dist/commands/merge-bases.d.ts +23 -0
  110. package/dist/commands/merge-bases.d.ts.map +1 -1
  111. package/dist/commands/merge-command.d.ts +108 -9
  112. package/dist/commands/merge-command.d.ts.map +1 -1
  113. package/dist/commands/merge-support.d.ts +11 -3
  114. package/dist/commands/merge-support.d.ts.map +1 -1
  115. package/dist/commands/mv-command.d.ts +4 -0
  116. package/dist/commands/mv-command.d.ts.map +1 -1
  117. package/dist/commands/name-rev.d.ts +48 -0
  118. package/dist/commands/name-rev.d.ts.map +1 -0
  119. package/dist/commands/notes-command.d.ts.map +1 -1
  120. package/dist/commands/notes-merge-command.d.ts.map +1 -1
  121. package/dist/commands/notes-tree.d.ts +11 -1
  122. package/dist/commands/notes-tree.d.ts.map +1 -1
  123. package/dist/commands/patch-id.d.ts +3 -0
  124. package/dist/commands/patch-id.d.ts.map +1 -1
  125. package/dist/commands/pathspec-file.d.ts +39 -0
  126. package/dist/commands/pathspec-file.d.ts.map +1 -0
  127. package/dist/commands/pathspec.d.ts +3 -0
  128. package/dist/commands/pathspec.d.ts.map +1 -1
  129. package/dist/commands/pretty-format.d.ts +43 -3
  130. package/dist/commands/pretty-format.d.ts.map +1 -1
  131. package/dist/commands/promisor-remote.d.ts.map +1 -1
  132. package/dist/commands/pull-command.d.ts +28 -0
  133. package/dist/commands/pull-command.d.ts.map +1 -1
  134. package/dist/commands/push-command.d.ts +160 -9
  135. package/dist/commands/push-command.d.ts.map +1 -1
  136. package/dist/commands/read-tree-command.d.ts +6 -0
  137. package/dist/commands/read-tree-command.d.ts.map +1 -1
  138. package/dist/commands/rebase-command.d.ts +168 -6
  139. package/dist/commands/rebase-command.d.ts.map +1 -1
  140. package/dist/commands/ref-filter/for-each-ref-command.d.ts +121 -0
  141. package/dist/commands/ref-filter/for-each-ref-command.d.ts.map +1 -0
  142. package/dist/commands/ref-filter/index.d.ts +8 -0
  143. package/dist/commands/ref-filter/index.d.ts.map +1 -0
  144. package/dist/commands/ref-filter/ref-atoms.d.ts +88 -0
  145. package/dist/commands/ref-filter/ref-atoms.d.ts.map +1 -0
  146. package/dist/commands/ref-filter/ref-filter.d.ts +178 -0
  147. package/dist/commands/ref-filter/ref-filter.d.ts.map +1 -0
  148. package/dist/commands/ref-filter/ref-format.d.ts +222 -0
  149. package/dist/commands/ref-filter/ref-format.d.ts.map +1 -0
  150. package/dist/commands/ref-filter/ref-listing-command.d.ts +56 -0
  151. package/dist/commands/ref-filter/ref-listing-command.d.ts.map +1 -0
  152. package/dist/commands/ref-filter/ref-quote.d.ts +20 -0
  153. package/dist/commands/ref-filter/ref-quote.d.ts.map +1 -0
  154. package/dist/commands/ref-filter/version-compare.d.ts +20 -0
  155. package/dist/commands/ref-filter/version-compare.d.ts.map +1 -0
  156. package/dist/commands/reflog-command.d.ts +120 -0
  157. package/dist/commands/reflog-command.d.ts.map +1 -1
  158. package/dist/commands/reflog-walk.d.ts +72 -0
  159. package/dist/commands/reflog-walk.d.ts.map +1 -0
  160. package/dist/commands/remote-command.d.ts +138 -29
  161. package/dist/commands/remote-command.d.ts.map +1 -1
  162. package/dist/commands/remote-transport.d.ts +7 -1
  163. package/dist/commands/remote-transport.d.ts.map +1 -1
  164. package/dist/commands/reset-command.d.ts +2 -3
  165. package/dist/commands/reset-command.d.ts.map +1 -1
  166. package/dist/commands/restore-command.d.ts +2 -3
  167. package/dist/commands/restore-command.d.ts.map +1 -1
  168. package/dist/commands/rev-filter/commit-filter.d.ts +95 -0
  169. package/dist/commands/rev-filter/commit-filter.d.ts.map +1 -0
  170. package/dist/commands/rev-filter/commit-grep.d.ts +91 -0
  171. package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -0
  172. package/dist/commands/rev-filter/index.d.ts +3 -0
  173. package/dist/commands/rev-filter/index.d.ts.map +1 -0
  174. package/dist/commands/rev-list-command.d.ts +154 -2
  175. package/dist/commands/rev-list-command.d.ts.map +1 -1
  176. package/dist/commands/rev-parse-command.d.ts +9 -0
  177. package/dist/commands/rev-parse-command.d.ts.map +1 -1
  178. package/dist/commands/revert-command.d.ts +32 -0
  179. package/dist/commands/revert-command.d.ts.map +1 -1
  180. package/dist/commands/revision-range.d.ts +32 -1
  181. package/dist/commands/revision-range.d.ts.map +1 -1
  182. package/dist/commands/revision-resolver.d.ts +21 -2
  183. package/dist/commands/revision-resolver.d.ts.map +1 -1
  184. package/dist/commands/rm-command.d.ts +70 -2
  185. package/dist/commands/rm-command.d.ts.map +1 -1
  186. package/dist/commands/sequencer-pick.d.ts +85 -5
  187. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  188. package/dist/commands/sequencer-support.d.ts +2 -0
  189. package/dist/commands/sequencer-support.d.ts.map +1 -1
  190. package/dist/commands/serve-repository.d.ts +7 -0
  191. package/dist/commands/serve-repository.d.ts.map +1 -1
  192. package/dist/commands/show-command.d.ts +130 -0
  193. package/dist/commands/show-command.d.ts.map +1 -0
  194. package/dist/commands/show-commit.d.ts +11 -0
  195. package/dist/commands/show-commit.d.ts.map +1 -0
  196. package/dist/commands/signature-check.d.ts +164 -0
  197. package/dist/commands/signature-check.d.ts.map +1 -0
  198. package/dist/commands/signing.d.ts +160 -0
  199. package/dist/commands/signing.d.ts.map +1 -0
  200. package/dist/commands/sparse-checkout-command.d.ts.map +1 -1
  201. package/dist/commands/sparse-index-view.d.ts +45 -0
  202. package/dist/commands/sparse-index-view.d.ts.map +1 -0
  203. package/dist/commands/ssh-signer.d.ts +29 -0
  204. package/dist/commands/ssh-signer.d.ts.map +1 -0
  205. package/dist/commands/ssh-verifier.d.ts +42 -0
  206. package/dist/commands/ssh-verifier.d.ts.map +1 -0
  207. package/dist/commands/stash-apply-command.d.ts +5 -0
  208. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  209. package/dist/commands/stash-branch-command.d.ts +34 -0
  210. package/dist/commands/stash-branch-command.d.ts.map +1 -0
  211. package/dist/commands/stash-create-command.d.ts +18 -1
  212. package/dist/commands/stash-create-command.d.ts.map +1 -1
  213. package/dist/commands/stash-info.d.ts +93 -0
  214. package/dist/commands/stash-info.d.ts.map +1 -0
  215. package/dist/commands/stash-list-command.d.ts +16 -0
  216. package/dist/commands/stash-list-command.d.ts.map +1 -1
  217. package/dist/commands/stash-pop-command.d.ts +39 -0
  218. package/dist/commands/stash-pop-command.d.ts.map +1 -0
  219. package/dist/commands/stash-show-command.d.ts +48 -0
  220. package/dist/commands/stash-show-command.d.ts.map +1 -0
  221. package/dist/commands/stash-store-command.d.ts +29 -0
  222. package/dist/commands/stash-store-command.d.ts.map +1 -0
  223. package/dist/commands/stash-working-tree.d.ts.map +1 -1
  224. package/dist/commands/status-command.d.ts.map +1 -1
  225. package/dist/commands/status-header.d.ts +5 -0
  226. package/dist/commands/status-header.d.ts.map +1 -1
  227. package/dist/commands/submodule-add-command.d.ts +89 -0
  228. package/dist/commands/submodule-add-command.d.ts.map +1 -0
  229. package/dist/commands/submodule-auth.d.ts +90 -0
  230. package/dist/commands/submodule-auth.d.ts.map +1 -0
  231. package/dist/commands/submodule-commands.d.ts +375 -0
  232. package/dist/commands/submodule-commands.d.ts.map +1 -0
  233. package/dist/commands/submodule-model.d.ts +288 -0
  234. package/dist/commands/submodule-model.d.ts.map +1 -0
  235. package/dist/commands/submodule-summary-command.d.ts.map +1 -1
  236. package/dist/commands/submodule-update-command.d.ts +198 -0
  237. package/dist/commands/submodule-update-command.d.ts.map +1 -0
  238. package/dist/commands/switch-command.d.ts.map +1 -1
  239. package/dist/commands/tag-command.d.ts +259 -10
  240. package/dist/commands/tag-command.d.ts.map +1 -1
  241. package/dist/commands/trailers.d.ts +218 -17
  242. package/dist/commands/trailers.d.ts.map +1 -1
  243. package/dist/commands/tree-restore.d.ts +7 -0
  244. package/dist/commands/tree-restore.d.ts.map +1 -1
  245. package/dist/commands/untracked-cache-support.d.ts +2 -1
  246. package/dist/commands/untracked-cache-support.d.ts.map +1 -1
  247. package/dist/commands/verify-command.d.ts +92 -0
  248. package/dist/commands/verify-command.d.ts.map +1 -0
  249. package/dist/commands/worktree-add-command.d.ts +79 -7
  250. package/dist/commands/worktree-add-command.d.ts.map +1 -1
  251. package/dist/commands/worktree-list-command.d.ts.map +1 -1
  252. package/dist/commands/worktree-path-rules.d.ts +66 -0
  253. package/dist/commands/worktree-path-rules.d.ts.map +1 -0
  254. package/dist/commands/worktree-remove-command.d.ts +10 -3
  255. package/dist/commands/worktree-remove-command.d.ts.map +1 -1
  256. package/dist/commands/worktree-repair-command.d.ts +15 -2
  257. package/dist/commands/worktree-repair-command.d.ts.map +1 -1
  258. package/dist/commands/worktree-support.d.ts +5 -0
  259. package/dist/commands/worktree-support.d.ts.map +1 -1
  260. package/dist/{commands-DnmlfwGV.js → commands-ISM52N0n.js} +66120 -49271
  261. package/dist/errors/checkout-errors.d.ts +19 -0
  262. package/dist/errors/checkout-errors.d.ts.map +1 -1
  263. package/dist/errors/command-errors.d.ts.map +1 -1
  264. package/dist/errors/index.js +57 -3
  265. package/dist/errors/ref-errors.d.ts +19 -0
  266. package/dist/errors/ref-errors.d.ts.map +1 -1
  267. package/dist/errors/worktree-errors.d.ts +6 -1
  268. package/dist/errors/worktree-errors.d.ts.map +1 -1
  269. package/dist/{git-command-DxvwPrPB.js → fsck-DLRpbwTj.js} +6863 -1070
  270. package/dist/git-command.d.ts +43 -2
  271. package/dist/git-command.d.ts.map +1 -1
  272. package/dist/git.d.ts +276 -3
  273. package/dist/git.d.ts.map +1 -1
  274. package/dist/index.js +5 -5
  275. package/dist/remote-config/index.d.ts +1 -1
  276. package/dist/remote-config/index.d.ts.map +1 -1
  277. package/dist/remote-config/remote-config-store.d.ts +117 -3
  278. package/dist/remote-config/remote-config-store.d.ts.map +1 -1
  279. package/dist/rename/detect-renames.d.ts.map +1 -1
  280. package/dist/results/clone-result.d.ts +8 -0
  281. package/dist/results/clone-result.d.ts.map +1 -1
  282. package/dist/results/combined-diff.d.ts +3 -0
  283. package/dist/results/combined-diff.d.ts.map +1 -1
  284. package/dist/results/diff-check.d.ts +38 -0
  285. package/dist/results/diff-check.d.ts.map +1 -0
  286. package/dist/results/diff-color.d.ts +135 -0
  287. package/dist/results/diff-color.d.ts.map +1 -0
  288. package/dist/results/diff-output.d.ts +85 -1
  289. package/dist/results/diff-output.d.ts.map +1 -1
  290. package/dist/results/diff-pickaxe.d.ts +67 -0
  291. package/dist/results/diff-pickaxe.d.ts.map +1 -0
  292. package/dist/results/diff-words.d.ts +55 -0
  293. package/dist/results/diff-words.d.ts.map +1 -0
  294. package/dist/results/index.d.ts +4 -0
  295. package/dist/results/index.d.ts.map +1 -1
  296. package/dist/results/index.js +2 -2
  297. package/dist/results/init-result.d.ts +7 -0
  298. package/dist/results/init-result.d.ts.map +1 -1
  299. package/dist/results/pull-result.d.ts +5 -0
  300. package/dist/results/pull-result.d.ts.map +1 -1
  301. package/dist/results/push-result.d.ts +12 -0
  302. package/dist/results/push-result.d.ts.map +1 -1
  303. package/dist/results/rebase-result.d.ts +2 -0
  304. package/dist/results/rebase-result.d.ts.map +1 -1
  305. package/dist/results/stash-result.d.ts +6 -0
  306. package/dist/results/stash-result.d.ts.map +1 -1
  307. package/dist/results/status-result.d.ts.map +1 -1
  308. package/dist/{results-BZGa2Z3I.js → results-TB2IJ64h.js} +2178 -412
  309. package/dist/whitespace/index.d.ts +2 -0
  310. package/dist/whitespace/index.d.ts.map +1 -0
  311. package/dist/whitespace/whitespace-rule.d.ts +94 -0
  312. package/dist/whitespace/whitespace-rule.d.ts.map +1 -0
  313. package/package.json +12 -12
  314. package/src/commands/add-command.ts +178 -17
  315. package/src/commands/add-patch/add-interactive.ts +3 -3
  316. package/src/commands/am/am-command.ts +263 -43
  317. package/src/commands/am/index.ts +1 -0
  318. package/src/commands/am/mailsplit.ts +326 -0
  319. package/src/commands/apply/apply-command.ts +18 -8
  320. package/src/commands/apply/apply-engine.ts +6 -7
  321. package/src/commands/apply/apply-parse.ts +10 -10
  322. package/src/commands/attributes-source.ts +1 -1
  323. package/src/commands/bisect/bisect-command.ts +18 -5
  324. package/src/commands/bisect/bisect-engine.ts +2 -1
  325. package/src/commands/branch-command.ts +528 -53
  326. package/src/commands/branch-info-command.ts +150 -0
  327. package/src/commands/branch-tracking.ts +335 -60
  328. package/src/commands/branch-upstream-command.ts +218 -0
  329. package/src/commands/checkout-command.ts +70 -44
  330. package/src/commands/cherry-pick-command.ts +143 -0
  331. package/src/commands/clean-command.ts +34 -3
  332. package/src/commands/clone-command.ts +118 -5
  333. package/src/commands/comment-char-config.ts +160 -0
  334. package/src/commands/commit-command.ts +790 -71
  335. package/src/commands/commit-reuse.ts +94 -0
  336. package/src/commands/config-command.ts +1256 -0
  337. package/src/commands/config-value-types.ts +358 -0
  338. package/src/commands/core-config.ts +47 -2
  339. package/src/commands/default-branch.ts +196 -0
  340. package/src/commands/diff-color-config.ts +274 -0
  341. package/src/commands/diff-command.ts +1053 -75
  342. package/src/commands/fetch-command.ts +161 -13
  343. package/src/commands/fmt-merge-msg-command.ts +715 -0
  344. package/src/commands/fork-point.ts +63 -0
  345. package/src/commands/format-patch-command.ts +316 -43
  346. package/src/commands/fsck/fetch-fsck.ts +172 -18
  347. package/src/commands/fsck/fsck-command.ts +183 -66
  348. package/src/commands/fsck/fsck-loose.ts +14 -4
  349. package/src/commands/fsck/fsck-object-checks.ts +87 -46
  350. package/src/commands/fsck/fsck-object-table.ts +52 -42
  351. package/src/commands/fsck/fsck-pack.ts +64 -34
  352. package/src/commands/fsck/verify-pack-command.ts +5 -2
  353. package/src/commands/gc-command.ts +238 -107
  354. package/src/commands/git-date.ts +9 -895
  355. package/src/commands/git-describe.ts +31 -11
  356. package/src/commands/git-hooks.ts +92 -0
  357. package/src/commands/grep/grep-command.ts +1077 -0
  358. package/src/commands/grep/grep-engine.ts +1024 -0
  359. package/src/commands/grep/index.ts +2 -0
  360. package/src/commands/index-adder.ts +54 -10
  361. package/src/commands/index.ts +28 -0
  362. package/src/commands/init-command.ts +167 -11
  363. package/src/commands/interpret-trailers-command.ts +256 -0
  364. package/src/commands/legacy-remotes.ts +224 -0
  365. package/src/commands/local-transport.ts +109 -10
  366. package/src/commands/log-command.ts +1283 -232
  367. package/src/commands/log-graph.ts +123 -26
  368. package/src/commands/log-output.ts +280 -21
  369. package/src/commands/ls-remote-command.ts +9 -0
  370. package/src/commands/mailmap.ts +119 -0
  371. package/src/commands/merge-base-command.ts +170 -0
  372. package/src/commands/merge-bases.ts +63 -8
  373. package/src/commands/merge-command.ts +360 -82
  374. package/src/commands/merge-support.ts +43 -9
  375. package/src/commands/mv-command.ts +6 -3
  376. package/src/commands/name-rev.ts +171 -0
  377. package/src/commands/notes-command.ts +11 -1
  378. package/src/commands/notes-merge-command.ts +23 -14
  379. package/src/commands/notes-tree.ts +28 -13
  380. package/src/commands/octopus-merge.ts +3 -2
  381. package/src/commands/patch-id.ts +16 -8
  382. package/src/commands/pathspec-file.ts +72 -0
  383. package/src/commands/pathspec.ts +14 -2
  384. package/src/commands/pretty-format.ts +105 -20
  385. package/src/commands/promisor-remote.ts +10 -1
  386. package/src/commands/pull-command.ts +149 -22
  387. package/src/commands/push-command.ts +704 -72
  388. package/src/commands/read-tree-command.ts +34 -3
  389. package/src/commands/rebase-command.ts +957 -142
  390. package/src/commands/ref-filter/for-each-ref-command.ts +298 -0
  391. package/src/commands/ref-filter/index.ts +7 -0
  392. package/src/commands/ref-filter/ref-atoms.ts +581 -0
  393. package/src/commands/ref-filter/ref-filter.ts +651 -0
  394. package/src/commands/ref-filter/ref-format.ts +1070 -0
  395. package/src/commands/ref-filter/ref-listing-command.ts +421 -0
  396. package/src/commands/ref-filter/ref-quote.ts +69 -0
  397. package/src/commands/ref-filter/version-compare.ts +177 -0
  398. package/src/commands/reflog-command.ts +492 -2
  399. package/src/commands/reflog-walk.ts +234 -0
  400. package/src/commands/remote-command.ts +484 -74
  401. package/src/commands/remote-transport.ts +9 -1
  402. package/src/commands/reset-command.ts +40 -42
  403. package/src/commands/restore-command.ts +12 -41
  404. package/src/commands/rev-filter/commit-filter.ts +159 -0
  405. package/src/commands/rev-filter/commit-grep.ts +444 -0
  406. package/src/commands/rev-filter/index.ts +2 -0
  407. package/src/commands/rev-list-command.ts +402 -15
  408. package/src/commands/rev-parse-command.ts +22 -0
  409. package/src/commands/revert-command.ts +82 -0
  410. package/src/commands/revision-range.ts +204 -4
  411. package/src/commands/revision-resolver.ts +55 -22
  412. package/src/commands/rm-command.ts +282 -21
  413. package/src/commands/sequencer-pick.ts +504 -86
  414. package/src/commands/sequencer-support.ts +30 -5
  415. package/src/commands/serve-repository.ts +18 -3
  416. package/src/commands/show-command.ts +490 -0
  417. package/src/commands/show-commit.ts +24 -0
  418. package/src/commands/signature-check.ts +657 -0
  419. package/src/commands/signing.ts +385 -0
  420. package/src/commands/sparse-checkout-command.ts +2 -9
  421. package/src/commands/sparse-checkout-support.ts +2 -2
  422. package/src/commands/sparse-index-view.ts +135 -0
  423. package/src/commands/ssh-signer.ts +199 -0
  424. package/src/commands/ssh-verifier.ts +523 -0
  425. package/src/commands/stash-apply-command.ts +17 -5
  426. package/src/commands/stash-branch-command.ts +88 -0
  427. package/src/commands/stash-create-command.ts +30 -2
  428. package/src/commands/stash-info.ts +243 -0
  429. package/src/commands/stash-list-command.ts +33 -0
  430. package/src/commands/stash-pop-command.ts +83 -0
  431. package/src/commands/stash-show-command.ts +141 -0
  432. package/src/commands/stash-store-command.ts +82 -0
  433. package/src/commands/stash-working-tree.ts +2 -2
  434. package/src/commands/status-command.ts +7 -6
  435. package/src/commands/status-header.ts +44 -8
  436. package/src/commands/submodule-add-command.ts +509 -0
  437. package/src/commands/submodule-auth.ts +276 -0
  438. package/src/commands/submodule-commands.ts +1517 -0
  439. package/src/commands/submodule-model.ts +930 -0
  440. package/src/commands/submodule-summary-command.ts +6 -7
  441. package/src/commands/submodule-update-command.ts +1092 -0
  442. package/src/commands/switch-command.ts +3 -1
  443. package/src/commands/tag-command.ts +876 -64
  444. package/src/commands/trailers.ts +837 -100
  445. package/src/commands/tree-restore.ts +38 -10
  446. package/src/commands/untracked-cache-support.ts +16 -12
  447. package/src/commands/verify-command.ts +235 -0
  448. package/src/commands/worktree-add-command.ts +268 -24
  449. package/src/commands/worktree-list-command.ts +3 -5
  450. package/src/commands/worktree-path-rules.ts +183 -0
  451. package/src/commands/worktree-remove-command.ts +39 -5
  452. package/src/commands/worktree-repair-command.ts +52 -5
  453. package/src/commands/worktree-support.ts +22 -1
  454. package/src/core-commands/add.command.impl.ts +1 -1
  455. package/src/errors/checkout-errors.ts +29 -0
  456. package/src/errors/command-errors.ts +2 -1
  457. package/src/errors/ref-errors.ts +23 -0
  458. package/src/errors/worktree-errors.ts +8 -1
  459. package/src/git-command.ts +98 -3
  460. package/src/git.ts +420 -4
  461. package/src/remote-config/index.ts +4 -0
  462. package/src/remote-config/remote-config-store.ts +238 -11
  463. package/src/rename/detect-renames.ts +5 -1
  464. package/src/results/clone-result.ts +9 -0
  465. package/src/results/combined-diff.ts +38 -18
  466. package/src/results/diff-check.ts +185 -0
  467. package/src/results/diff-color.ts +868 -0
  468. package/src/results/diff-output.ts +204 -37
  469. package/src/results/diff-pickaxe.ts +304 -0
  470. package/src/results/diff-words.ts +395 -0
  471. package/src/results/index.ts +4 -0
  472. package/src/results/init-result.ts +9 -0
  473. package/src/results/pull-result.ts +5 -0
  474. package/src/results/push-result.ts +12 -0
  475. package/src/results/rebase-result.ts +3 -0
  476. package/src/results/stash-result.ts +7 -0
  477. package/src/results/status-result.ts +5 -2
  478. package/src/whitespace/index.ts +1 -0
  479. package/src/{commands/apply/whitespace.ts → whitespace/whitespace-rule.ts} +173 -23
  480. package/dist/commands/apply/whitespace.d.ts +0 -58
  481. package/dist/commands/apply/whitespace.d.ts.map +0 -1
@@ -0,0 +1,218 @@
1
+ /**
2
+ * git's grep matcher and printer (`grep.c`): the patterns compiled as `compile_grep_patterns`
3
+ * compiles them, each line of a source matched as `grep_source_1` matches it, and the output
4
+ * written as `show_line`, `show_pre_context` and `show_funcname_line` write it.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * const engine = new GrepEngine([grepPattern("foo")], { lineNumber: true });
9
+ * engine.grepSource({ name: encode("file"), content: encode("a foo\nb\n") });
10
+ * new TextDecoder().decode(engine.output()); // "file:1:a foo\n"
11
+ * ```
12
+ *
13
+ * What git does, kept here:
14
+ * - A pattern with newlines is one pattern per line. Patterns are basic POSIX regexes by
15
+ * default (`extended`, `fixed`, `perl`), compiled with `REG_NEWLINE`, `-i` as `REG_ICASE`;
16
+ * one without a regex character (`$()*+.?[\^{|`) is a literal, as with `-F`. A pattern
17
+ * holding a NUL byte dies unless it is `-P`. `-P` is a git built without PCRE: a literal
18
+ * `-P` pattern matches, any other dies.
19
+ * - `-w` takes a match only between non-word characters (or the line's ends), and retries
20
+ * from after the next non-word character as `headerless_match_one_pattern` does.
21
+ * - `--and`, `--not`, `(`, `)` (and `--all-match`) build git's expression tree; `--or` is the
22
+ * default between patterns. `--column` evaluates every branch, a `--not` swapping the
23
+ * column of a match and of an inverted one.
24
+ * - Context (`-A`, `-B`), function lines (`-p`) and function bodies (`-W`) through the
25
+ * source's funcname pattern, or git's default (a line starting with a letter, `_` or `$`).
26
+ * - Several sources print as git's threaded grep prints them (its default): each source's
27
+ * output starts with a hunk mark (`--`, or an empty line with `--break`), and the first line
28
+ * of the first output is dropped. {@link GrepEngineOptions.threads} `1` prints as git's
29
+ * single-threaded grep (`--threads=1`).
30
+ *
31
+ * @module
32
+ */
33
+ import type { FindFunction } from "@statewalker/vcs-utils/diff";
34
+ import { GitApiError } from "../../errors/index.js";
35
+ import { type GrepPatternType } from "../rev-filter/index.js";
36
+ /** One element of git's pattern list: a pattern or an expression operator. */
37
+ export type GrepToken = {
38
+ kind: "pattern";
39
+ /** The pattern's bytes */
40
+ pattern: Uint8Array;
41
+ /** Where it came from: `-e option`, `command line`, or a `-f` file's name */
42
+ origin: string;
43
+ /** Its line in a `-f` file (1-based, empty lines not counted), else 0 */
44
+ no: number;
45
+ } | {
46
+ kind: "and";
47
+ } | {
48
+ kind: "not";
49
+ } | {
50
+ kind: "open";
51
+ } | {
52
+ kind: "close";
53
+ };
54
+ /** A pattern token (`-e <pattern>`), its origin `-e option` unless given. */
55
+ export declare function grepPattern(pattern: string | Uint8Array, origin?: string, no?: number): GrepToken;
56
+ /**
57
+ * The patterns of a `-f` file (builtin/grep.c `file_callback`): one per line (a CR before
58
+ * the newline dropped), empty lines skipped, each numbered by the non-empty lines before it.
59
+ */
60
+ export declare function grepPatternFile(content: string | Uint8Array, name: string): GrepToken[];
61
+ /** git's die() of grep (an expression or option it refuses): exit status 128. */
62
+ export declare class GrepError extends GitApiError {
63
+ /** git's lines */
64
+ readonly lines: string[];
65
+ constructor(line: string);
66
+ }
67
+ /** The escape sequences of the colored output (`color.grep.<slot>`); "" for none. */
68
+ export interface GrepColors {
69
+ context: string;
70
+ filename: string;
71
+ function: string;
72
+ lineNumber: string;
73
+ column: string;
74
+ matchContext: string;
75
+ matchSelected: string;
76
+ selected: string;
77
+ separator: string;
78
+ }
79
+ /** git's default grep colors (`GREP_OPT_INIT`). */
80
+ export declare const DEFAULT_GREP_COLORS: Readonly<GrepColors>;
81
+ /** How binary sources are searched (`-a`, `-I`). */
82
+ export type GrepBinaryMode = "default" | "text" | "nomatch";
83
+ /** What the engine matches and prints (git's `struct grep_opt`). */
84
+ export interface GrepEngineOptions {
85
+ /** The pattern type (default basic) */
86
+ patternType?: GrepPatternType;
87
+ /** `-i` */
88
+ ignoreCase?: boolean;
89
+ /** `-w` */
90
+ wordRegexp?: boolean;
91
+ /** `-v` */
92
+ invert?: boolean;
93
+ /** `--all-match` */
94
+ allMatch?: boolean;
95
+ /** `-n` */
96
+ lineNumber?: boolean;
97
+ /** `--column` */
98
+ column?: boolean;
99
+ /** Names before the lines (default true; `-h` false, `-H` true) */
100
+ pathname?: boolean;
101
+ /** `-z`: names followed by NUL, unquoted */
102
+ nullFollowingName?: boolean;
103
+ /** `-o` (ignored with `-v`, as git does) */
104
+ onlyMatching?: boolean;
105
+ /** `-c` */
106
+ count?: boolean;
107
+ /** `-l` */
108
+ nameOnly?: boolean;
109
+ /** `-L` */
110
+ unmatchNameOnly?: boolean;
111
+ /** `-q` */
112
+ statusOnly?: boolean;
113
+ /** `--break` */
114
+ fileBreak?: boolean;
115
+ /** `--heading` */
116
+ heading?: boolean;
117
+ /** `-B` */
118
+ preContext?: number;
119
+ /** `-A` */
120
+ postContext?: number;
121
+ /** `-p` */
122
+ funcname?: boolean;
123
+ /** `-W` */
124
+ funcbody?: boolean;
125
+ /** `-m` (negative: no limit) */
126
+ maxCount?: number;
127
+ /** `-a` (`text`), `-I` (`nomatch`) */
128
+ binary?: GrepBinaryMode;
129
+ /** Colors, or none (undefined) */
130
+ colors?: GrepColors;
131
+ /**
132
+ * The git version whose output and messages to follow (default `2.56`): 2.43 counts `-o`
133
+ * columns after the first from the end of the previous match, keeps a trailing empty line
134
+ * in a `-W` body, and words two expression errors differently
135
+ */
136
+ compatibility?: "2.43" | "2.56";
137
+ /**
138
+ * git's worker threads: undefined or more than one prints as git's threaded grep (its
139
+ * default), 1 as `--threads=1`
140
+ */
141
+ threads?: number;
142
+ }
143
+ /** One file or blob to search. */
144
+ export interface GrepSourceInput {
145
+ /** The name printed for it (relative, quoted, `<rev>:` before it) */
146
+ name: Uint8Array;
147
+ /** Its content (textconv applied when {@link textconv}), undefined when it cannot be read */
148
+ content: Uint8Array | undefined;
149
+ /** The diff driver's verdict (`-diff`, `diff.<driver>.binary`), else the content decides */
150
+ binary?: boolean;
151
+ /** The content is a textconv's output: never binary */
152
+ textconv?: boolean;
153
+ /**
154
+ * The function lines of `-p`/`-W` (the diff driver's funcname pattern); undefined: git's
155
+ * default rule. Asked only when needed; may throw as git dies on a bad pattern.
156
+ */
157
+ findFunction?: () => FindFunction | undefined;
158
+ }
159
+ /** `buffer_is_binary`: a NUL among the first 8000 bytes */
160
+ export declare function bufferIsBinary(content: Uint8Array): boolean;
161
+ /**
162
+ * Matches sources and collects git grep's output. Create one per `git grep` run (its hunk
163
+ * marks depend on what earlier sources printed); {@link output} gives what was printed.
164
+ *
165
+ * @throws GrepPatternError, GrepError (from the constructor) where git dies compiling
166
+ */
167
+ export declare class GrepEngine {
168
+ private readonly patterns;
169
+ private readonly expr?;
170
+ private readonly allMatch;
171
+ private readonly o;
172
+ private readonly colors?;
173
+ private readonly threaded;
174
+ /** git 2.43 compatibility */
175
+ private readonly legacy;
176
+ private readonly skipFirstLineSetting;
177
+ private skipFirstLine;
178
+ private lastShown;
179
+ private showHunkMark;
180
+ private readonly out;
181
+ private cur;
182
+ /** The current source's funcname matcher: undefined not asked yet, null the default rule */
183
+ private findFunc;
184
+ private source?;
185
+ private buf;
186
+ constructor(tokens: readonly GrepToken[], options?: GrepEngineOptions);
187
+ /** Everything printed so far */
188
+ output(): Uint8Array;
189
+ /** Searches one source (grep.c's `grep_source`); returns whether it hit. */
190
+ grepSource(source: GrepSourceInput): boolean;
191
+ /** builtin/grep.c's work_done: the source's output, the first line of all dropped when threaded */
192
+ private workDone;
193
+ private emit;
194
+ private emitColor;
195
+ private emitSep;
196
+ private showName;
197
+ /** headerless_match_one_pattern: `[so, eo]` from `bol` */
198
+ private matchOne;
199
+ /** match_expr_eval; `col` and `icol` are the earliest match and inverted match columns */
200
+ private evaluate;
201
+ /** match_line */
202
+ private matchLine;
203
+ /** grep_next_match over every pattern: the earliest match (the longest of those) */
204
+ private nextMatch;
205
+ private showLineHeader;
206
+ /** show_line */
207
+ private showLine;
208
+ /** match_funcname */
209
+ private matchFuncname;
210
+ private isEmptyLine;
211
+ /** show_funcname_line */
212
+ private showFuncnameLine;
213
+ /** show_pre_context */
214
+ private showPreContext;
215
+ /** grep_source_1 */
216
+ private grepSource1;
217
+ }
218
+ //# sourceMappingURL=grep-engine.d.ts.map
@@ -0,0 +1 @@
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CAAU;IAC/B,OAAO,CAAC,SAAS,CAAK;IACtB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAa;IACjC,OAAO,CAAC,GAAG,CAAa;IACxB,4FAA4F;IAC5F,OAAO,CAAC,QAAQ,CAAkC;IAClD,OAAO,CAAC,MAAM,CAAC,CAAkB;IACjC,OAAO,CAAC,GAAG,CAAiC;IAE5C,YAAY,MAAM,EAAE,SAAS,SAAS,EAAE,EAAE,OAAO,GAAE,iBAAsB,EA8ExE;IAED,gCAAgC;IAChC,MAAM,IAAI,UAAU,CAEnB;IAED,4EAA4E;IAC5E,UAAU,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAe3C;IAED,mGAAmG;IACnG,OAAO,CAAC,QAAQ;IAWhB,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,QAAQ;IAKhB,0DAA0D;IAC1D,OAAO,CAAC,QAAQ;IAgChB,0FAA0F;IAC1F,OAAO,CAAC,QAAQ;IA0ChB,iBAAiB;IACjB,OAAO,CAAC,SAAS;IAoBjB,oFAAoF;IACpF,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,cAAc;IAqBtB,gBAAgB;IAChB,OAAO,CAAC,QAAQ;IAqDhB,qBAAqB;IACrB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,WAAW;IAMnB,yBAAyB;IACzB,OAAO,CAAC,gBAAgB;IAgBxB,uBAAuB;IACvB,OAAO,CAAC,cAAc;IAmDtB,oBAAoB;IACpB,OAAO,CAAC,WAAW;CA+HpB"}
@@ -0,0 +1,3 @@
1
+ export * from "./grep-command.js";
2
+ export * from "./grep-engine.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/grep/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
@@ -2,7 +2,7 @@
2
2
  * git's `add_to_index` and `remove_file_from_index` over one index editor: what `git add`
3
3
  * and a partial commit's `add_remove_files` do to each path, applied together at `finish`.
4
4
  */
5
- import { type Blobs, type ObjectId } from "@statewalker/vcs-core";
5
+ import { type Blobs, type ObjectId, type WorktreePathOptions } from "@statewalker/vcs-core";
6
6
  import { type GitlinkHeadState, type Staging, type StagingEntry, type Worktree, type WorktreeEntry, type WorktreeModeTrust } from "@statewalker/vcs-working-tree";
7
7
  /** What {@link IndexAdder.add} did with a path. */
8
8
  export type AddOutcome = "unchanged" | "same" | "added";
@@ -88,8 +88,16 @@ export declare function gitlinkHeadState(worktree: Worktree, path: string): Prom
88
88
  * git's error line for each matching entry that is no regular file ("error: cannot chmod
89
89
  * +x '<path>'"). With `pretend` (`--dry-run`) nothing changes, the errors are the same.
90
90
  */
91
- export declare function chmodIndexEntries(staging: Staging, flip: "+" | "-", matches: (entry: StagingEntry) => boolean, options?: {
91
+ export declare function chmodIndexEntries(staging: Staging, flip: "+" | "-", matches: (entry: StagingEntry) => boolean,
92
+ /**
93
+ * `includeSkipWorktree`: skip-worktree entries too (`git add --sparse --chmod`);
94
+ * `collapsed`: sparse directories git holds as one entry each (`out/`), refused as any
95
+ * entry that is no regular file when matched
96
+ */
97
+ options?: {
92
98
  pretend?: boolean;
99
+ includeSkipWorktree?: boolean;
100
+ collapsed?: readonly string[];
93
101
  }): Promise<string[]>;
94
102
  /**
95
103
  * Index edits made as git's `add_index_entry_with_check` makes them, with
@@ -114,6 +122,8 @@ export declare class IndexAdder {
114
122
  private readonly trust;
115
123
  /** git's `ADD_CACHE_PRETEND` (`add --dry-run`): nothing is written or edited */
116
124
  private readonly pretend;
125
+ /** `verify_path`'s rules (`core.protectNTFS`, `core.protectHFS`; default both on) */
126
+ private readonly pathRules;
117
127
  private readonly editor;
118
128
  private readonly resolveUndo;
119
129
  /** The paths' conflict stages, until a stage-0 entry or a removal resolves them */
@@ -139,6 +149,7 @@ export declare class IndexAdder {
139
149
  */
140
150
  static open(staging: Staging, blobs: Blobs, trust: WorktreeModeTrust, options?: {
141
151
  pretend?: boolean;
152
+ pathRules?: WorktreePathOptions;
142
153
  }): Promise<IndexAdder>;
143
154
  /**
144
155
  * Whether the index had a stage-0 entry at `path` before the edits: a binary search of the
@@ -185,6 +196,8 @@ export declare class IndexAdder {
185
196
  */
186
197
  private statUnchanged;
187
198
  /** git's `set_object_name_for_intent_to_add_entry`: the empty blob written (once). */
199
+ /** The empty blob's id in the repository's format (the id an intent-to-add entry gets) */
200
+ private get emptyBlobId();
188
201
  private storeEmptyBlob;
189
202
  /** git's `remove_file_from_index`: every stage of `path` removed (conflicts as resolve-undo). */
190
203
  remove(path: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index-adder.d.ts","sourceRoot":"","sources":["../../src/commands/index-adder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,KAAK,KAAK,EAIV,KAAK,QAAQ,EACd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAKL,KAAK,gBAAgB,EAMrB,KAAK,OAAO,EACZ,KAAK,YAAY,EAEjB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,iBAAiB,EAEvB,MAAM,+BAA+B,CAAC;AAKvC,mDAAmD;AACnD,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;AAExD,yCAAyC;AACzC,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uEAAuE;IACvE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,OAAO,CAAC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FAAyF;IACzF,OAAO,CAAC,OAAO;IAmBf;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAatB,wDAAwD;IACxD,OAAO,CAAC,WAAW;IAwBnB,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,WAAW;CAIpB;AAED,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAIpE;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,EACvC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,EACvB,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,GACxB,MAAM,EAAE,CAaV"}
@@ -6,33 +6,43 @@ export * from "./backfill-command.js";
6
6
  export * from "./bisect/index.js";
7
7
  export * from "./blame-command.js";
8
8
  export * from "./branch-command.js";
9
+ export * from "./branch-info-command.js";
9
10
  export { TrackMode } from "./branch-tracking.js";
11
+ export * from "./branch-upstream-command.js";
10
12
  export * from "./checkout-command.js";
11
13
  export * from "./checkout-paths.js";
12
14
  export * from "./cherry-pick-command.js";
13
15
  export * from "./clean-command.js";
14
16
  export * from "./clone-command.js";
17
+ export * from "./comment-char-config.js";
15
18
  export * from "./commit-command.js";
19
+ export * from "./config-command.js";
16
20
  export * from "./date-format.js";
21
+ export * from "./default-branch.js";
17
22
  export * from "./describe-command.js";
23
+ export * from "./diff-color-config.js";
18
24
  export * from "./diff-command.js";
19
25
  export * from "./diff-textconv.js";
20
26
  export * from "./fetch-command.js";
27
+ export * from "./fmt-merge-msg-command.js";
21
28
  export * from "./format-patch-command.js";
22
29
  export * from "./fsck/index.js";
23
30
  export * from "./gc-command.js";
24
31
  export * from "./git-describe.js";
25
32
  export * from "./git-hooks.js";
26
33
  export * from "./git-ident.js";
34
+ export * from "./grep/index.js";
27
35
  export * from "./hook-command.js";
28
36
  export { IndexVersionConfigError, indexFormatDefault, indexVersionConfigError, takeIndexWarnings, } from "./index-host.js";
29
37
  export * from "./init-command.js";
38
+ export * from "./interpret-trailers-command.js";
30
39
  export { httpBackendEnv, quarantineEnv, remoteHookSession } from "./local-transport.js";
31
40
  export * from "./log-command.js";
32
41
  export * from "./log-graph.js";
33
42
  export * from "./log-output.js";
34
43
  export * from "./ls-remote-command.js";
35
44
  export * from "./mailmap.js";
45
+ export * from "./merge-base-command.js";
36
46
  export * from "./merge-command.js";
37
47
  export { createMergeDriver, installMergeDrivers, type MergeAttributeValue, type MergeDriver, type MergeDriverInput, type MergeDriverRegistry, type MergeDriverResult, mergeDriversOf, } from "./merge-drivers.js";
38
48
  export { CleanupMode, stripspace } from "./message-cleanup.js";
@@ -50,11 +60,13 @@ export * from "./push-command.js";
50
60
  export * from "./read-tree-command.js";
51
61
  export * from "./rebase-command.js";
52
62
  export * from "./ref-decoration-filter.js";
63
+ export * from "./ref-filter/index.js";
53
64
  export * from "./reflog-command.js";
54
65
  export { committerIdent, reflogMessages, reflogSubject, } from "./reflog-messages.js";
55
66
  export * from "./remote-command.js";
56
67
  export * from "./reset-command.js";
57
68
  export * from "./restore-command.js";
69
+ export * from "./rev-filter/index.js";
58
70
  export * from "./rev-list-command.js";
59
71
  export * from "./rev-parse-command.js";
60
72
  export * from "./revert-command.js";
@@ -64,19 +76,35 @@ export * from "./revision-resolver.js";
64
76
  export * from "./rm-command.js";
65
77
  export { SequencerOperation } from "./sequencer-pick.js";
66
78
  export * from "./serve-repository.js";
79
+ export * from "./show-command.js";
80
+ export * from "./signature-check.js";
81
+ export * from "./signing.js";
67
82
  export * from "./sparse-checkout-command.js";
83
+ export * from "./ssh-signer.js";
84
+ export * from "./ssh-verifier.js";
68
85
  export * from "./stash-apply-command.js";
86
+ export * from "./stash-branch-command.js";
69
87
  export * from "./stash-create-command.js";
70
88
  export * from "./stash-drop-command.js";
89
+ export * from "./stash-info.js";
71
90
  export * from "./stash-list-command.js";
91
+ export * from "./stash-pop-command.js";
92
+ export * from "./stash-show-command.js";
93
+ export * from "./stash-store-command.js";
72
94
  export * from "./stash-working-tree.js";
73
95
  export * from "./status-command.js";
74
96
  export * from "./status-format.js";
97
+ export * from "./submodule-add-command.js";
98
+ export * from "./submodule-auth.js";
99
+ export * from "./submodule-commands.js";
100
+ export * from "./submodule-model.js";
75
101
  export * from "./submodule-summary.js";
76
102
  export * from "./submodule-summary-command.js";
103
+ export * from "./submodule-update-command.js";
77
104
  export * from "./switch-command.js";
78
105
  export * from "./tag-command.js";
79
106
  export * from "./trailers.js";
107
+ export * from "./verify-command.js";
80
108
  export * from "./worktree-add-command.js";
81
109
  export * from "./worktree-list-command.js";
82
110
  export * from "./worktree-lock-command.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,g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C7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,WAAW,EACX,KAAK,cAAc,GACpB,MAAM,uBAAuB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { $ as RemoteRenameCommand, $n as hostZoneName, $r as parseColorSpec, $t as CommitCommand, A as NotesListCommand, Ai as latin1ToPath, An as PRN_MODULO, Ar as cutLine, At as parseTagBuffer, B as HookRunCommand, Bi as textconvRunnerOf, Bn as NotesError, Br as SubmoduleRepository, C as NotesCommands, Ci as installMergeDrivers, Cn as strbufRtrim, Cr as patchModeFor, Ct as fsckCommit, D as NotesCopyCommand, Di as ApplyEngine, Dn as BisectNode, Dr as DiffCommand, Dt as parseCommitBuffer, E as NotesAppendCommand, Ei as parseWhitespaceAction, En as BisectGraph, Er as createPatchBackend, Et as hexIdAt, F as MvCommand, Fi as formatStatusText, Fn as managedSkipped, Fr as WorktreeListCommand, Ft as FSCK_MSG_IDS, G as FormatPatchError, Gn as combineNotesOverwrite, Gr as readGitmodulesEntries, Gt as CleanCommand, H as GarbageCollectCommand, Hn as combineNotesCatSortUniq, Hr as openSubmoduleRepository, Ht as quarantineEnv, I as LsRemoteCommand, Ii as statusCommitInfo, In as skipAway, Ir as shortenUnambiguousRef, It as FsckMessageTypes, J as SparseCheckoutCommand, Jn as mailFromHeader, Jr as PrettyFormatError, Jt as MergeCommand, K as DescribeCommand, Kn as Mailmap, Kr as showSubmoduleDiffSummary, Kt as CherryPickCommand, L as InitCommand, Li as CleanupMode, Ln as skipAwayIndex, Lr as parseExpiry, Lt as UnknownFsckMsgIdError, M as NotesRemoveCommand, Mi as createRefDecorationFilter, Mn as UNINTERESTING, Mr as parseUntrackedFilesMode, Mt as scanTree, N as NotesShowCommand, Ni as decorateFullRefs, Nn as estimateBisectSteps, Nr as readShowUntrackedFiles, Nt as treeEntryId, O as NotesEditCommand, Oi as bytesToLatin1, On as FIND_BISECTION_ALL, Or as formatDiffEntry, Ot as parseCommitLinks, P as NotesSubcommand, Pi as StatusPrinter, Pn as findBisection, Pr as readSubmoduleDirt, Pt as walkTree, Q as RemoteRemoveCommand, Qn as DateModeError, Qr as loadRefDecorations, Qt as favorOf, Ri as stripspace, Rn as LogCommand, Rr as SubmoduleSummaryCommand, Rt as parseFsckMsgId, S as PackRefsCommand, Si as createMergeDriver, Sn as sqQuoteArgv, Sr as PATCH_MODES, St as fsckBlob, T as NotesAddCommand, Ti as ApplyCommand, Tn as BisectDie, Tr as IndexRefresh, Tt as fsckTree, U as WorktreePruneCommand, Un as combineNotesConcatenate, Ur as parseSubmoduleDiffFormat, Ut as remoteHookSession, V as createDescriber, Vn as NotesTree, Vr as SubmoduleWalkError, Vt as httpBackendEnv, W as FormatPatchCommand, Wn as combineNotesIgnore, Wr as readDiffSubmoduleConfig, Wt as ReadTreeCommand, X as RemoteGetUrlCommand, Xn as LogGraph, Xr as formatRefDecorations, Xt as UNMERGED_FILES_MESSAGE, Y as RemoteAddCommand, Yn as mergesMode, Yr as formatCommitPretty, Yt as MergeOperation, Z as RemoteListCommand, Zn as DEFAULT_DATE_MODE, Zr as humanDate, Zt as UNRELATED_HISTORIES_MESSAGE, _ as ReflogCommand, _n as BisectCode, _r as runAddInteractive, _t as FsckConfigError, a as WorktreeUnlockCommand, ai as formatTrailersOf, an as BlameCommand, ar as nonCommitSwitchError, at as toTagMode, b as RebaseCommand, bi as STASH_REF, bn as sqDequoteToArgv, br as runPatchSelection, bt as checkSubmoduleName, c as ListTagCommand, ci as NoStagedChangesError, cn as BisectNextCommand, cr as runPathCheckout, ct as VerifyPackCommand, d as StashDropCommand, di as StashWorktreeRemovalError, dn as BisectRunCommand, dr as revisionMergeBases, dt as FSCK_ERROR_MULTI_PACK_INDEX_243, ei as relativeDate, en as CopyBranchCommand, er as parseDateMode, et as RemoteSetHeadCommand, f as servedRepositoryOf, fi as WorkingCopyStashProvider, fn as BisectSkipCommand, fr as AmCommand, ft as FSCK_ERROR_OBJECT, g as RestoreCommand, gi as restoreWorktreeHard, gn as BISECT_USAGE, gr as AddCommand, gt as FsckCommand, h as RevListCommand, hi as recordWrittenStat, hn as BisectTermsCommand, hr as mailsplit, ht as FSCK_ERROR_REFS, i as WorktreeLockCommand, ii as appendTrailers, in as RenameBranchCommand, ir as CheckoutStatus, it as TagOption, j as NotesPruneCommand, ji as pathToLatin1, jn as TREESAME, jr as parseIgnoredMode, jt as rawIdAt, k as NotesGetRefCommand, ki as latin1ToBytes, kn as FIND_BISECTION_FIRST_PARENT_ONLY, kr as StatusCommand, kt as parseGitmodulesConfig, l as TagCommand, li as StashCreateCommand, ln as BisectReplayCommand, lr as BackfillCommand, lt as FSCK_ERROR_BITMAP_243, m as RevertCommand, mi as checkFlaggedEntries, mn as BisectStateCommand, mr as mailinfo, mt as FSCK_ERROR_REACHABLE, n as WorktreeMoveCommand, ni as wrapText, nn as DeleteBranchCommand, nr as CheckoutCommand, nt as isValidRemoteName, o as WorktreeAddCommand, oi as trailerConfigOf, on as BisectCommand, or as pathCheckoutResult, ot as toTrackingRefUpdate, p as RmCommand, pi as ResetCommand, pn as BisectStartCommand, pr as ensureUtf8, pt as FSCK_ERROR_PACK, q as CloneCommand, qn as LogPrinter, qr as submoduleHeader, qt as SequencerOperation, r as WorktreeRemoveCommand, ri as appendSignoff, rn as ListBranchCommand, rr as CheckoutStage, rt as FetchCommand, s as DeleteTagCommand, si as NoChangesSelectedError, sn as BisectLogCommand, sr as checkoutPaths, t as WorktreeRepairCommand, ti as sanitizedSubject, tn as CreateBranchCommand, tr as showDate, tt as RemoteSetUrlCommand, u as SwitchCommand, ui as StashPathspecResetError, un as BisectResetCommand, ur as RevParseCommand, ut as FSCK_ERROR_COMMIT_GRAPH, v as PushCommand, vn as BisectEngine, vr as patchRevisionOf, vt as fetchFsckOf, w as NotesMergeCommand, wi as mergeDriversOf, wn as strbufTrim, wr as promptIndex, wt as fsckTag, x as RebaseOperation, xi as StashListCommand, xn as sqQuote, xr as runAddPatch, xt as checkSubmoduleUrl, y as PullCommand, yi as StashApplyCommand, yn as isBisectSuccess, yr as pathPatchMode, yt as canonMode, z as HookListCommand, zi as installTextconvRunner, zn as RevFilter, zr as NULL_OBJECT_ID } from "../commands-DnmlfwGV.js";
2
- import { A as registerPartialClone, Bt as InvalidIdentError, Ct as isKnownHook, D as installPromisorFetcher, Dt as sequencerPostCommit, E as hasPromisorRemote, Et as runPostCheckoutHook, F as takeIndexWarnings, Gt as identConfigOf, Ht as committerIdentOf, Jt as resolveIdentDate, Kt as resolveAuthorIdent, Lt as DEFAULT_IDENT, M as indexFormatDefault, N as indexVersionConfigError, O as promisorOf, Ot as sequencerPrepareMessage, Qt as parseGitDate, Rt as IdentityUnknownError, St as hookSettingsFromEntries, T as createPromisorFetcher, Tt as refTransactionHookOf, Ut as findIdent, Vt as authorIdentOf, Wt as hostEnvironmentOf, Yt as withoutCrud, Zt as localTimezoneOffset, _ as unknownRevisionMessage, _t as gitCommitAfterHooks, b as reflogMessages, bt as hookRunnerOf, d as lstatExists, f as parseRevisionAndPathArgs, g as parseRevisionArgs, gt as configuredHooks, h as handleRevisionArg, ht as configuredHookEntries, j as IndexVersionConfigError, k as promisorRemotes, l as checkFilename, m as verifyNonFilename, mt as LOCAL_REPO_ENV, n as RevisionResolver, p as verifyFilename, pt as HookSession, qt as resolveCommitterIdent, r as TrackMode, u as looksLikePathspec, v as committerIdent, vt as gitCommitMessageHooks, w as LAZY_FETCH_DISABLED_WARNING, wt as nullIdLike, x as reflogSubject, xt as hookSettingsCheck, yt as hookHostOf, zt as InvalidDateError } from "../git-command-DxvwPrPB.js";
3
- export { AddCommand, AmCommand, ApplyCommand, ApplyEngine, BISECT_USAGE, BackfillCommand, BisectCode, BisectCommand, BisectDie, BisectEngine, BisectGraph, BisectLogCommand, BisectNextCommand, BisectNode, BisectReplayCommand, BisectResetCommand, BisectRunCommand, BisectSkipCommand, BisectStartCommand, BisectStateCommand, BisectTermsCommand, BlameCommand, CheckoutCommand, CheckoutStage, CheckoutStatus, CherryPickCommand, CleanCommand, CleanupMode, CloneCommand, CommitCommand, CopyBranchCommand, CreateBranchCommand, DEFAULT_DATE_MODE, DEFAULT_IDENT, DateModeError, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DiffCommand, FIND_BISECTION_ALL, FIND_BISECTION_FIRST_PARENT_ONLY, FSCK_ERROR_BITMAP_243, FSCK_ERROR_COMMIT_GRAPH, FSCK_ERROR_MULTI_PACK_INDEX_243, FSCK_ERROR_OBJECT, FSCK_ERROR_PACK, FSCK_ERROR_REACHABLE, FSCK_ERROR_REFS, FSCK_MSG_IDS, FetchCommand, FormatPatchCommand, FormatPatchError, FsckCommand, FsckConfigError, FsckMessageTypes, GarbageCollectCommand, HookListCommand, HookRunCommand, HookSession, IdentityUnknownError, IndexRefresh, IndexVersionConfigError, InitCommand, InvalidDateError, InvalidIdentError, LAZY_FETCH_DISABLED_WARNING, LOCAL_REPO_ENV, ListBranchCommand, ListTagCommand, LogCommand, LogGraph, LogPrinter, LsRemoteCommand, Mailmap, MergeCommand, MergeOperation, MvCommand, NULL_OBJECT_ID, NoChangesSelectedError, NoStagedChangesError, NotesAddCommand, NotesAppendCommand, NotesCommands, NotesCopyCommand, NotesEditCommand, NotesError, NotesGetRefCommand, NotesListCommand, NotesMergeCommand, NotesPruneCommand, NotesRemoveCommand, NotesShowCommand, NotesSubcommand, NotesTree, PATCH_MODES, PRN_MODULO, PackRefsCommand, PrettyFormatError, PullCommand, PushCommand, ReadTreeCommand, RebaseCommand, RebaseOperation, ReflogCommand, RemoteAddCommand, RemoteGetUrlCommand, RemoteListCommand, RemoteRemoveCommand, RemoteRenameCommand, RemoteSetHeadCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, RestoreCommand, RevFilter, RevListCommand, RevParseCommand, RevertCommand, RevisionResolver, RmCommand, STASH_REF, SequencerOperation, SparseCheckoutCommand, StashApplyCommand, StashCreateCommand, StashDropCommand, StashListCommand, StashPathspecResetError, StashWorktreeRemovalError, StatusCommand, StatusPrinter, SubmoduleRepository, SubmoduleSummaryCommand, SubmoduleWalkError, SwitchCommand, TREESAME, TagCommand, TagOption, TrackMode, UNINTERESTING, UNMERGED_FILES_MESSAGE, UNRELATED_HISTORIES_MESSAGE, UnknownFsckMsgIdError, VerifyPackCommand, WorkingCopyStashProvider, WorktreeAddCommand, WorktreeListCommand, WorktreeLockCommand, WorktreeMoveCommand, WorktreePruneCommand, WorktreeRemoveCommand, WorktreeRepairCommand, WorktreeUnlockCommand, appendSignoff, appendTrailers, authorIdentOf, bytesToLatin1, canonMode, checkFilename, checkFlaggedEntries, checkSubmoduleName, checkSubmoduleUrl, checkoutPaths, combineNotesCatSortUniq, combineNotesConcatenate, combineNotesIgnore, combineNotesOverwrite, committerIdent, committerIdentOf, configuredHookEntries, configuredHooks, createDescriber, createMergeDriver, createPatchBackend, createPromisorFetcher, createRefDecorationFilter, cutLine, decorateFullRefs, ensureUtf8, estimateBisectSteps, favorOf, fetchFsckOf, findBisection, findIdent, formatCommitPretty, formatDiffEntry, formatRefDecorations, formatStatusText, formatTrailersOf, fsckBlob, fsckCommit, fsckTag, fsckTree, gitCommitAfterHooks, gitCommitMessageHooks, handleRevisionArg, hasPromisorRemote, hexIdAt, hookHostOf, hookRunnerOf, hookSettingsCheck, hookSettingsFromEntries, hostEnvironmentOf, hostZoneName, httpBackendEnv, humanDate, identConfigOf, indexFormatDefault, indexVersionConfigError, installMergeDrivers, installPromisorFetcher, installTextconvRunner, isBisectSuccess, isKnownHook, isValidRemoteName, latin1ToBytes, latin1ToPath, loadRefDecorations, localTimezoneOffset, looksLikePathspec, lstatExists, mailFromHeader, mailinfo, mailsplit, managedSkipped, mergeDriversOf, mergesMode, nonCommitSwitchError, nullIdLike, openSubmoduleRepository, parseColorSpec, parseCommitBuffer, parseCommitLinks, parseDateMode, parseExpiry, parseFsckMsgId, parseGitDate, parseGitmodulesConfig, parseIgnoredMode, parseRevisionAndPathArgs, parseRevisionArgs, parseSubmoduleDiffFormat, parseTagBuffer, parseUntrackedFilesMode, parseWhitespaceAction, patchModeFor, patchRevisionOf, pathCheckoutResult, pathPatchMode, pathToLatin1, promisorOf, promisorRemotes, promptIndex, quarantineEnv, rawIdAt, readDiffSubmoduleConfig, readGitmodulesEntries, readShowUntrackedFiles, readSubmoduleDirt, recordWrittenStat, refTransactionHookOf, reflogMessages, reflogSubject, registerPartialClone, relativeDate, remoteHookSession, resolveAuthorIdent, resolveCommitterIdent, resolveIdentDate, restoreWorktreeHard, revisionMergeBases, runAddInteractive, runAddPatch, runPatchSelection, runPathCheckout, runPostCheckoutHook, sanitizedSubject, scanTree, sequencerPostCommit, sequencerPrepareMessage, servedRepositoryOf, shortenUnambiguousRef, showDate, showSubmoduleDiffSummary, skipAway, skipAwayIndex, sqDequoteToArgv, sqQuote, sqQuoteArgv, statusCommitInfo, strbufRtrim, strbufTrim, stripspace, submoduleHeader, takeIndexWarnings, textconvRunnerOf, toTagMode, toTrackingRefUpdate, trailerConfigOf, treeEntryId, unknownRevisionMessage, verifyFilename, verifyNonFilename, walkTree, withoutCrud, wrapText };
1
+ import { $n as IdentityUnknownError, A as walkTree, An as gitFileOf, At as InvalidInitialBranchError, B as signCommit, Bn as sequencerPrepareMessage, C as parseCommitBuffer, Cn as HookSession, Ct as hasPromisorRemote, D as rawIdAt, Dn as configuredHooks, Dt as registerPartialClone, E as parseTagBuffer, En as configuredHookEntries, Et as promisorRemotes, Fn as isKnownHook, Ft as defaultRefFormat, G as RevisionResolver, Gn as AutoCommentCharRemovedError, H as signRequestOf, I as SIGNING_FAILED_LINES, In as nullIdLike, It as isValidBranchName, K as TrackMode, Kn as autoCommentCharLines, L as SigningFailedError, Ln as refTransactionHookOf, Lt as IndexVersionConfigError, M as FsckMessageTypes, Mn as hookRunnerOf, Mt as UnknownRefFormatError, N as UnknownFsckMsgIdError, Nn as hookSettingsCheck, Nt as defaultBranchHint, O as scanTree, On as gitCommitAfterHooks, P as parseFsckMsgId, Pn as hookSettingsFromEntries, Pt as defaultInitialBranch, Qn as DEFAULT_IDENT, R as refuseCommitSigning, Rn as runPostCheckoutHook, Rt as indexFormatDefault, S as hexIdAt, St as createPromisorFetcher, T as parseGitmodulesConfig, Tn as commonGitFileOf, Tt as promisorOf, U as signerOf, V as signPayload, Vt as takeIndexWarnings, W as signingConfigOf, _ as checkSubmoduleUrl, _t as reflogMessages, a as FSCK_ERROR_OBJECT, ar as hostEnvironmentOf, b as fsckTag, c as FSCK_ERROR_REACHABLE, cr as resolveCommitterIdent, ct as lstatExists, d as FsckConfigError, dt as verifyNonFilename, er as InvalidDateError, f as fetchFsckOf, ft as handleRevisionArg, g as checkSubmoduleName, h as canonMode, ht as committerIdent, i as FSCK_ERROR_MULTI_PACK_INDEX_243, ir as findIdent, j as FSCK_MSG_IDS, jn as hookHostOf, jt as MissingDefaultBranchValueError, k as treeEntryId, kn as gitCommitMessageHooks, kt as InvalidDefaultBranchError, l as FSCK_ERROR_REFS, lr as resolveIdentDate, lt as parseRevisionAndPathArgs, m as SHA1_ID_SHAPE, mr as parseGitDate, mt as unknownRevisionMessage, n as FSCK_ERROR_BITMAP_243, nr as authorIdentOf, o as FSCK_ERROR_PACK, or as identConfigOf, ot as checkFilename, p as receiveFsckOf, pr as localTimezoneOffset, pt as parseRevisionArgs, qn as checkAutoCommentChar, r as FSCK_ERROR_COMMIT_GRAPH, rr as committerIdentOf, s as FSCK_ERROR_PACK_REV_INDEX_243, sr as resolveAuthorIdent, st as looksLikePathspec, t as VerifyPackCommand, tr as InvalidIdentError, u as FsckCommand, ur as withoutCrud, ut as verifyFilename, v as fsckBlob, vt as reflogSubject, w as parseCommitLinks, wn as LOCAL_REPO_ENV, wt as installPromisorFetcher, x as fsckTree, xt as LAZY_FETCH_DISABLED_WARNING, y as fsckCommit, z as resolveSigning, zn as sequencerPostCommit, zt as indexVersionConfigError } from "../fsck-DLRpbwTj.js";
2
+ import { $ as physicalFilesPath, $a as compileCommitGrep, $i as parseColorSpec, $n as filterAndFormatRefs, $r as CheckoutStatus, $t as GarbageCollectCommand, A as RmCommand, Aa as readGitmodulesEntries, Ai as parseIgnoredMode, An as UNMERGED_FILES_MESSAGE, Ao as hostZoneName, Ar as BisectCode, At as NotesListCommand, B as SubmoduleSyncCommand, Ba as parseSignedBuffer, Bi as installTextconvRunner, Bn as ShowCurrentBranchCommand, Bo as parseWhitespaceAction, Br as BisectNode, Bt as ReinitializeHashError, C as StashBranchCommand, Ca as parseExpiry, Ci as createPatchBackend, Cn as remoteHookSession, Co as signoffLine, Cr as BisectResetCommand, Ct as NotesCommands, D as createSshSigner, Da as openSubmoduleRepository, Di as hasPickaxe, Dn as SequencerOperation, Do as validateTrailerArgs, Dr as BisectStateCommand, Dt as NotesCopyCommand, E as createSshVerifier, Ea as SubmoduleWalkError, Ei as formatDiffEntry, En as CherryPickCommand, Eo as trailerLinesOf, Er as BisectStartCommand, Et as NotesAppendCommand, F as SubmoduleDeinitCommand, Fa as checkSignature, Fi as StatusPrinter, Fn as fmtMergeMsgConfigOf, Fo as graphColumnColors, Fr as sqQuoteArgv, Ft as MvCommand, G as SubmoduleModel, Ga as signatureLetter, Gi as PrettyFormatError, Gn as RenameBranchCommand, Go as pathToLatin1, Gr as UNINTERESTING, Gt as GrepCommand, H as shellQuote, Ha as readStoredObjectBytes, Hi as DEFAULT_DECORATION_COLORS, Hn as CreateBranchCommand, Ho as bytesToLatin1, Hr as FIND_BISECTION_FIRST_PARENT_ONLY, I as SubmoduleForeachCommand, Ia as mergetagsOf, Ii as formatStatusText, In as CommitCommand, Io as createMergeDriver, Ir as strbufRtrim, It as MergeBaseCommand, J as joinFilesPath, Ja as verifyMergeSignature, Ji as formatRefDecorations, Jn as RefListingCommand, Jo as createRefDecorationFilter, Jr as managedSkipped, Jt as GrepEngine, K as defaultRemoteOf, Ka as trustRank, Ki as expandStringArg, Kn as DEFAULT_FOR_EACH_REF_FORMAT, Ko as CleanupMode, Kr as estimateBisectSteps, Kt as grepNoIndex, L as SubmoduleInitCommand, La as parseBufferSignedByHeader, Li as statusCommitInfo, Ln as SetUpstreamBranchCommand, Lo as installMergeDrivers, Lr as strbufTrim, Lt as LsRemoteCommand, M as SubmoduleAbsorbGitDirsCommand, Ma as submoduleHeader, Mi as readShowUntrackedFiles, Mn as favorOf, Mo as showDate, Mr as isBisectSuccess, Mt as NotesRemoveCommand, N as SubmoduleCommandBase, Na as SignatureVerificationError, Ni as readSubmoduleDirt, Nn as DEFAULT_MERGE_LOG_LENGTH, No as GRAPH_COLUMN_COLORS_ANSI, Nr as sqDequoteToArgv, Nt as NotesShowCommand, O as ShowCommand, Oa as parseSubmoduleDiffFormat, Oi as StatusCommand, On as MergeCommand, Oo as DEFAULT_DATE_MODE, Or as BisectTermsCommand, Ot as NotesEditCommand, P as SubmoduleCommandError, Pa as bytesOf, Pi as SubmoduleSummaryCommand, Pn as FmtMergeMsgCommand, Po as LogGraph, Pr as sqQuote, Pt as NotesSubcommand, Q as parseSubmoduleUpdateStrategy, Qa as applyMailmapToHeader, Qi as matchBoolArg, Qn as fillIsBase, Qr as CheckoutStage, Qt as grepPatternFile, R as SubmoduleSetBranchCommand, Ra as parseGpgOutput, Ri as RevParseCommand, Rn as UnsetUpstreamBranchCommand, Ro as mergeDriversOf, Rr as BisectDie, Rt as InterpretTrailersCommand, S as StashPopCommand, Sa as shortenUnambiguousRef, Si as IndexRefresh, Sn as quarantineEnv, So as processTrailers, Sr as BisectReplayCommand, St as PackRefsCommand, T as StashDropCommand, Ta as SubmoduleRepository, Ti as checkPickaxeOptions, Tn as CleanCommand, To as trailerConfigOf, Tr as BisectSkipCommand, Tt as NotesAddCommand, U as Gitmodules, Ua as removeSignatureHeaders, Ui as readDiffColorSettings, Un as DeleteBranchCommand, Uo as latin1ToBytes, Ur as PRN_MODULO, Ut as HookListCommand, V as notFromUser, Va as parseSshOutput, Vi as textconvRunnerOf, Vn as CopyBranchCommand, Vo as ApplyEngine, Vr as FIND_BISECTION_ALL, Vt as UnknownHashAlgorithmError, W as SubmoduleGitDirError, Wa as signatureFormatAt, Wi as whitespaceRuleError, Wn as ListBranchCommand, Wo as latin1ToPath, Wr as TREESAME, Wt as HookRunCommand, X as openConfigFile, Xa as CommitFilters, Xi as loadRefDecorations, Xn as compareBytes, Xr as skipAwayIndex, Xt as bufferIsBinary, Y as lstatKind, Ya as verifyTagBytes, Yi as humanDate, Yn as createDescriber, Yo as decorateFullRefs, Yr as skipAway, Yt as GrepError, Z as parentIsDirectory, Za as GrepPatternError, Zi as matchArgValue, Zn as fillAheadBehind, Zr as CheckoutCommand, Zt as grepPattern, _ as strictUrlOrigin, _a as STASH_REF, _i as runPatchSelection, _n as toTagMode, _o as ignoredLogMessageBytes, _r as parseAtom, _t as RevListCommand, a as WorktreeUnlockCommand, aa as NoStagedChangesError, ai as AmCommand, an as CloneCommand, ao as combineNotesOverwrite, ar as versionCompare, at as safeCreateLeadingDirectories, b as StashStoreCommand, ba as RevFilter, bi as patchModeFor, bo as parseTrailerIfMissing, br as BisectLogCommand, bt as RebaseCommand, c as VerifyTagCommand, ca as StashWorktreeRemovalError, ci as maildirFilenameCompare, cn as RemoteGetUrlCommand, co as LogPrinter, cr as lstripRef, ct as submoduleUpdateTypeName, d as TagCommand, da as checkFlaggedEntries, di as mailinfo, dn as RemoteRenameCommand, do as mergesMode, dr as signatureStart, dt as validateSubmoduleGitDir, ea as parseMaybeBool, ei as nonCommitSwitchError, en as WorktreePruneCommand, eo as NotesError, er as filterRefs, et as relativeFilesPath, f as SwitchCommand, fa as recordWrittenStat, fi as mailsplit, fn as RemoteSetHeadCommand, fo as reencodedCommitParts, fr as tagHeader, ft as validateSubmodulePath, g as guardSubmoduleTransports, ga as StashApplyCommand, gi as pathPatchMode, gn as TagOption, go as formatTrailersOf, gr as atomSource, gt as ReflogCommand, h as createSubmoduleAuthPolicy, hi as patchRevisionOf, hn as FetchCommand, ho as appendTrailers, hr as ATOM_NAMES, ht as RestoreCommand, i as WorktreeLockCommand, ia as NoChangesSelectedError, ii as BackfillCommand, in as ConfigCommand, io as combineNotesIgnore, ir as sortRefs, it as resolveRelativeUrl, j as SUBMODULE_UNSET_ENV, ja as showSubmoduleDiffSummary, ji as parseUntrackedFilesMode, jn as UNRELATED_HISTORIES_MESSAGE, jo as parseDateMode, jr as BisectEngine, jt as NotesPruneCommand, k as servedRepositoryOf, ka as readDiffSubmoduleConfig, ki as cutLine, kn as MergeOperation, ko as DateModeError, kr as BISECT_USAGE, kt as NotesGetRefCommand, l as DeleteTagCommand, la as WorkingCopyStashProvider, li as mailsplitFiles, ln as RemoteListCommand, lo as mailFromHeader, lr as rstripRef, lt as upPathOf, m as SubmoduleUpdateCommand, mi as runAddInteractive, mn as isValidRemoteName, mo as appendSignoff, mr as quoteRefValue, mt as RevertCommand, n as WorktreeMoveCommand, na as sanitizedSubject, ni as checkoutPaths, nn as FormatPatchError, no as combineNotesCatSortUniq, nr as parseRefSorting, nt as remoteFromUrl, o as WorktreeAddCommand, oa as StashCreateCommand, oi as ensureUtf8, on as SparseCheckoutCommand, oo as Mailmap, or as RefFormat, ot as setInConfigFile, p as SubmoduleStatusCommand, pa as restoreWorktreeHard, pi as AddCommand, pn as RemoteSetUrlCommand, po as amendWithTrailers, pr as trimTrailingSpaces, pt as worktreeHostPath, q as isRelativeSubmoduleUrl, qa as verifyCommitBytes, qi as formatCommitPretty, qn as ForEachRefCommand, qo as stripspace, qr as findBisection, qt as DEFAULT_GREP_COLORS, r as WorktreeRemoveCommand, ra as wrapText, ri as runPathCheckout, rn as DescribeCommand, ro as combineNotesConcatenate, rr as refKindOf, rt as resolveFilesLinks, s as VerifyCommitCommand, sa as StashPathspecResetError, si as isMboxFromLine, sn as RemoteAddCommand, so as readRepositoryMailmap, sr as RefKind, st as submodulePathConfigOf, t as WorktreeRepairCommand, ta as relativeDate, ti as pathCheckoutResult, tn as FormatPatchCommand, to as NotesTree, tr as isRootRef, tt as relativeUrl, u as ListTagCommand, ua as ResetCommand, ui as splitMail, un as RemoteRemoveCommand, uo as mailSubjectLine, ur as shortenRefName, ut as urlIsLocalNotSsh, v as SubmoduleAddCommand, va as StashListCommand, vi as runAddPatch, vn as toTrackingRefUpdate, vo as interpretTrailers, vr as BlameCommand, vt as PushCommand, w as StashInfoCommand, wa as NULL_OBJECT_ID, wi as DiffCommand, wn as ReadTreeCommand, wo as trailerConfigFromEntries, wr as BisectRunCommand, wt as NotesMergeCommand, x as StashShowCommand, xa as WorktreeListCommand, xi as promptIndex, xn as httpBackendEnv, xo as parseTrailerWhere, xr as BisectNextCommand, xt as RebaseOperation, y as gitUrlBasename, ya as LogCommand, yi as PATCH_MODES, yo as parseTrailerIfExists, yr as BisectCommand, yt as PullCommand, z as SubmoduleSetUrlCommand, za as parseSignature, zi as revisionMergeBases, zn as EditBranchDescriptionCommand, zo as ApplyCommand, zr as BisectGraph, zt as InitCommand } from "../commands-ISM52N0n.js";
3
+ export { ATOM_NAMES, AddCommand, AmCommand, ApplyCommand, ApplyEngine, AutoCommentCharRemovedError, BISECT_USAGE, BackfillCommand, BisectCode, BisectCommand, BisectDie, BisectEngine, BisectGraph, BisectLogCommand, BisectNextCommand, BisectNode, BisectReplayCommand, BisectResetCommand, BisectRunCommand, BisectSkipCommand, BisectStartCommand, BisectStateCommand, BisectTermsCommand, BlameCommand, CheckoutCommand, CheckoutStage, CheckoutStatus, CherryPickCommand, CleanCommand, CleanupMode, CloneCommand, CommitCommand, CommitFilters, ConfigCommand, CopyBranchCommand, CreateBranchCommand, DEFAULT_DATE_MODE, DEFAULT_DECORATION_COLORS, DEFAULT_FOR_EACH_REF_FORMAT, DEFAULT_GREP_COLORS, DEFAULT_IDENT, DEFAULT_MERGE_LOG_LENGTH, DateModeError, DeleteBranchCommand, DeleteTagCommand, DescribeCommand, DiffCommand, EditBranchDescriptionCommand, FIND_BISECTION_ALL, FIND_BISECTION_FIRST_PARENT_ONLY, FSCK_ERROR_BITMAP_243, FSCK_ERROR_COMMIT_GRAPH, FSCK_ERROR_MULTI_PACK_INDEX_243, FSCK_ERROR_OBJECT, FSCK_ERROR_PACK, FSCK_ERROR_PACK_REV_INDEX_243, FSCK_ERROR_REACHABLE, FSCK_ERROR_REFS, FSCK_MSG_IDS, FetchCommand, FmtMergeMsgCommand, ForEachRefCommand, FormatPatchCommand, FormatPatchError, FsckCommand, FsckConfigError, FsckMessageTypes, GRAPH_COLUMN_COLORS_ANSI, GarbageCollectCommand, Gitmodules, GrepCommand, GrepEngine, GrepError, GrepPatternError, HookListCommand, HookRunCommand, HookSession, IdentityUnknownError, IndexRefresh, IndexVersionConfigError, InitCommand, InterpretTrailersCommand, InvalidDateError, InvalidDefaultBranchError, InvalidIdentError, InvalidInitialBranchError, LAZY_FETCH_DISABLED_WARNING, LOCAL_REPO_ENV, ListBranchCommand, ListTagCommand, LogCommand, LogGraph, LogPrinter, LsRemoteCommand, Mailmap, MergeBaseCommand, MergeCommand, MergeOperation, MissingDefaultBranchValueError, MvCommand, NULL_OBJECT_ID, NoChangesSelectedError, NoStagedChangesError, NotesAddCommand, NotesAppendCommand, NotesCommands, NotesCopyCommand, NotesEditCommand, NotesError, NotesGetRefCommand, NotesListCommand, NotesMergeCommand, NotesPruneCommand, NotesRemoveCommand, NotesShowCommand, NotesSubcommand, NotesTree, PATCH_MODES, PRN_MODULO, PackRefsCommand, PrettyFormatError, PullCommand, PushCommand, ReadTreeCommand, RebaseCommand, RebaseOperation, RefFormat, RefKind, RefListingCommand, ReflogCommand, ReinitializeHashError, RemoteAddCommand, RemoteGetUrlCommand, RemoteListCommand, RemoteRemoveCommand, RemoteRenameCommand, RemoteSetHeadCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, RestoreCommand, RevFilter, RevListCommand, RevParseCommand, RevertCommand, RevisionResolver, RmCommand, SHA1_ID_SHAPE, SIGNING_FAILED_LINES, STASH_REF, SUBMODULE_UNSET_ENV, SequencerOperation, SetUpstreamBranchCommand, ShowCommand, ShowCurrentBranchCommand, SignatureVerificationError, SigningFailedError, SparseCheckoutCommand, StashApplyCommand, StashBranchCommand, StashCreateCommand, StashDropCommand, StashInfoCommand, StashListCommand, StashPathspecResetError, StashPopCommand, StashShowCommand, StashStoreCommand, StashWorktreeRemovalError, StatusCommand, StatusPrinter, SubmoduleAbsorbGitDirsCommand, SubmoduleAddCommand, SubmoduleCommandBase, SubmoduleCommandError, SubmoduleDeinitCommand, SubmoduleForeachCommand, SubmoduleGitDirError, SubmoduleInitCommand, SubmoduleModel, SubmoduleRepository, SubmoduleSetBranchCommand, SubmoduleSetUrlCommand, SubmoduleStatusCommand, SubmoduleSummaryCommand, SubmoduleSyncCommand, SubmoduleUpdateCommand, SubmoduleWalkError, SwitchCommand, TREESAME, TagCommand, TagOption, TrackMode, UNINTERESTING, UNMERGED_FILES_MESSAGE, UNRELATED_HISTORIES_MESSAGE, UnknownFsckMsgIdError, UnknownHashAlgorithmError, UnknownRefFormatError, UnsetUpstreamBranchCommand, VerifyCommitCommand, VerifyPackCommand, VerifyTagCommand, WorkingCopyStashProvider, WorktreeAddCommand, WorktreeListCommand, WorktreeLockCommand, WorktreeMoveCommand, WorktreePruneCommand, WorktreeRemoveCommand, WorktreeRepairCommand, WorktreeUnlockCommand, amendWithTrailers, appendSignoff, appendTrailers, applyMailmapToHeader, atomSource, authorIdentOf, autoCommentCharLines, bufferIsBinary, bytesOf, bytesToLatin1, canonMode, checkAutoCommentChar, checkFilename, checkFlaggedEntries, checkPickaxeOptions, checkSignature, checkSubmoduleName, checkSubmoduleUrl, checkoutPaths, combineNotesCatSortUniq, combineNotesConcatenate, combineNotesIgnore, combineNotesOverwrite, committerIdent, committerIdentOf, commonGitFileOf, compareBytes, compileCommitGrep, configuredHookEntries, configuredHooks, createDescriber, createMergeDriver, createPatchBackend, createPromisorFetcher, createRefDecorationFilter, createSshSigner, createSshVerifier, createSubmoduleAuthPolicy, cutLine, decorateFullRefs, defaultBranchHint, defaultInitialBranch, defaultRefFormat, defaultRemoteOf, ensureUtf8, estimateBisectSteps, expandStringArg, favorOf, fetchFsckOf, fillAheadBehind, fillIsBase, filterAndFormatRefs, filterRefs, findBisection, findIdent, fmtMergeMsgConfigOf, formatCommitPretty, formatDiffEntry, formatRefDecorations, formatStatusText, formatTrailersOf, fsckBlob, fsckCommit, fsckTag, fsckTree, gitCommitAfterHooks, gitCommitMessageHooks, gitFileOf, gitUrlBasename, graphColumnColors, grepNoIndex, grepPattern, grepPatternFile, guardSubmoduleTransports, handleRevisionArg, hasPickaxe, hasPromisorRemote, hexIdAt, hookHostOf, hookRunnerOf, hookSettingsCheck, hookSettingsFromEntries, hostEnvironmentOf, hostZoneName, httpBackendEnv, humanDate, identConfigOf, ignoredLogMessageBytes, indexFormatDefault, indexVersionConfigError, installMergeDrivers, installPromisorFetcher, installTextconvRunner, interpretTrailers, isBisectSuccess, isKnownHook, isMboxFromLine, isRelativeSubmoduleUrl, isRootRef, isValidBranchName, isValidRemoteName, joinFilesPath, latin1ToBytes, latin1ToPath, loadRefDecorations, localTimezoneOffset, looksLikePathspec, lstatExists, lstatKind, lstripRef, mailFromHeader, mailSubjectLine, maildirFilenameCompare, mailinfo, mailsplit, mailsplitFiles, managedSkipped, matchArgValue, matchBoolArg, mergeDriversOf, mergesMode, mergetagsOf, nonCommitSwitchError, notFromUser, nullIdLike, openConfigFile, openSubmoduleRepository, parentIsDirectory, parseAtom, parseBufferSignedByHeader, parseColorSpec, parseCommitBuffer, parseCommitLinks, parseDateMode, parseExpiry, parseFsckMsgId, parseGitDate, parseGitmodulesConfig, parseGpgOutput, parseIgnoredMode, parseMaybeBool, parseRefSorting, parseRevisionAndPathArgs, parseRevisionArgs, parseSignature, parseSignedBuffer, parseSshOutput, parseSubmoduleDiffFormat, parseSubmoduleUpdateStrategy, parseTagBuffer, parseTrailerIfExists, parseTrailerIfMissing, parseTrailerWhere, parseUntrackedFilesMode, parseWhitespaceAction, patchModeFor, patchRevisionOf, pathCheckoutResult, pathPatchMode, pathToLatin1, physicalFilesPath, processTrailers, promisorOf, promisorRemotes, promptIndex, quarantineEnv, quoteRefValue, rawIdAt, readDiffColorSettings, readDiffSubmoduleConfig, readGitmodulesEntries, readRepositoryMailmap, readShowUntrackedFiles, readStoredObjectBytes, readSubmoduleDirt, receiveFsckOf, recordWrittenStat, reencodedCommitParts, refKindOf, refTransactionHookOf, reflogMessages, reflogSubject, refuseCommitSigning, registerPartialClone, relativeDate, relativeFilesPath, relativeUrl, remoteFromUrl, remoteHookSession, removeSignatureHeaders, resolveAuthorIdent, resolveCommitterIdent, resolveFilesLinks, resolveIdentDate, resolveRelativeUrl, resolveSigning, restoreWorktreeHard, revisionMergeBases, rstripRef, runAddInteractive, runAddPatch, runPatchSelection, runPathCheckout, runPostCheckoutHook, safeCreateLeadingDirectories, sanitizedSubject, scanTree, sequencerPostCommit, sequencerPrepareMessage, servedRepositoryOf, setInConfigFile, shellQuote, shortenRefName, shortenUnambiguousRef, showDate, showSubmoduleDiffSummary, signCommit, signPayload, signRequestOf, signatureFormatAt, signatureLetter, signatureStart, signerOf, signingConfigOf, signoffLine, skipAway, skipAwayIndex, sortRefs, splitMail, sqDequoteToArgv, sqQuote, sqQuoteArgv, statusCommitInfo, strbufRtrim, strbufTrim, strictUrlOrigin, stripspace, submoduleHeader, submodulePathConfigOf, submoduleUpdateTypeName, tagHeader, takeIndexWarnings, textconvRunnerOf, toTagMode, toTrackingRefUpdate, trailerConfigFromEntries, trailerConfigOf, trailerLinesOf, treeEntryId, trimTrailingSpaces, trustRank, unknownRevisionMessage, upPathOf, urlIsLocalNotSsh, validateSubmoduleGitDir, validateSubmodulePath, validateTrailerArgs, verifyCommitBytes, verifyFilename, verifyMergeSignature, verifyNonFilename, verifyTagBytes, versionCompare, walkTree, whitespaceRuleError, withoutCrud, worktreeHostPath, wrapText };
@@ -43,12 +43,29 @@ export declare class InitCommand {
43
43
  private directory?;
44
44
  private gitDir?;
45
45
  private bare;
46
- private initialBranch;
46
+ /** `--initial-branch`; undefined: git's default (see {@link defaultInitialBranch}) */
47
+ private initialBranch?;
47
48
  private stagingStore?;
48
49
  private worktreeEnabled;
49
50
  private worktreeStore?;
50
51
  private environment?;
52
+ /** `--object-format`; undefined: `$GIT_DEFAULT_HASH`, `init.defaultObjectFormat`, else sha1 */
53
+ private objectFormatName?;
54
+ /** `--ref-format`; undefined: git's default (see {@link defaultRefFormat}) */
55
+ private refFormat?;
51
56
  private callable;
57
+ /**
58
+ * Set the object format of the new repository (`git init --object-format=<format>`):
59
+ * `sha1` (git's default) or `sha256`. Without it, `$GIT_DEFAULT_HASH`
60
+ * (`GitHostEnvironment.defaultHash`), then `init.defaultObjectFormat` from the system or
61
+ * global configuration (or `git -c`), else SHA-1. A name git does not know fails the call
62
+ * (`UnknownHashAlgorithmError`), and so does re-initialising an existing repository with
63
+ * another format (`ReinitializeHashError`); an existing repository keeps its own otherwise.
64
+ *
65
+ * @param format `sha1` or `sha256`
66
+ * @returns this for method chaining
67
+ */
68
+ setObjectFormat(format: string): this;
52
69
  /**
53
70
  * Set the FilesApi implementation for storage.
54
71
  *
@@ -91,13 +108,24 @@ export declare class InitCommand {
91
108
  /**
92
109
  * Set the initial branch name.
93
110
  *
94
- * This is the branch that HEAD will point to after initialization.
95
- * Defaults to "main".
111
+ * This is the branch that HEAD will point to after initialization. Without it, git's
112
+ * default: `init.defaultBranch` from the system or global configuration (or `git -c`),
113
+ * else `master`, or `main` with `GitHostEnvironment.breakingChanges` (git 3.0).
96
114
  *
97
115
  * @param branch The initial branch name
98
116
  * @returns this for method chaining
99
117
  */
100
118
  setInitialBranch(branch: string): this;
119
+ /**
120
+ * Set the ref storage format of a new repository (`git init --ref-format`): `files` (loose
121
+ * refs and packed-refs) or `reftable` (`.git/reftable`). Without it, git's default:
122
+ * `$GIT_DEFAULT_REF_FORMAT`, `init.defaultRefFormat`, else `files`, or `reftable` with
123
+ * `GitHostEnvironment.breakingChanges` (git 3.0). An existing repository keeps its format.
124
+ *
125
+ * @param format "files" or "reftable"
126
+ * @returns this for method chaining
127
+ */
128
+ setRefFormat(format: "files" | "reftable" | string): this;
101
129
  /**
102
130
  * Set a custom staging store.
103
131
  *
@@ -169,6 +197,12 @@ export declare class InitCommand {
169
197
  * @throws Error if the command has already been called
170
198
  */
171
199
  call(): Promise<InitResult>;
200
+ /**
201
+ * The format of a new repository without `--object-format` (validate_hash_algorithm):
202
+ * `$GIT_DEFAULT_HASH` (an unknown name dies), else `init.defaultObjectFormat` (git 2.45+;
203
+ * an unknown name warns and is ignored), else SHA-1.
204
+ */
205
+ private defaultObjectFormat;
172
206
  /**
173
207
  * Resolve the git directory path based on configuration.
174
208
  */
@@ -183,4 +217,17 @@ export declare class InitCommand {
183
217
  */
184
218
  private setCallable;
185
219
  }
220
+ /** `--object-format` or `$GIT_DEFAULT_HASH` names no format git knows: git dies (exit 128). */
221
+ export declare class UnknownHashAlgorithmError extends Error {
222
+ readonly value: string;
223
+ name: string;
224
+ readonly lines: string[];
225
+ constructor(value: string);
226
+ }
227
+ /** `--object-format` names another format than the existing repository's: git dies (exit 128). */
228
+ export declare class ReinitializeHashError extends Error {
229
+ name: string;
230
+ readonly lines: string[];
231
+ constructor();
232
+ }
186
233
  //# sourceMappingURL=init-command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../src/commands/init-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,QAAQ,EAGd,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,OAAO,EAEZ,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,KAAK,CAAC,CAAW;IACzB,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,YAAY,CAAC,CAAU;IAC/B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,aAAa,CAAC,CAAW;IACjC,OAAO,CAAC,WAAW,CAAC,CAAqB;IACzC,OAAO,CAAC,QAAQ,CAAQ;IAExB;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAIjC;IAED;;;;;;;;OAQG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAIpC;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,IAAI,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