@statewalker/vcs-commands 0.7.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 (410) 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/branch-command.d.ts +148 -18
  15. package/dist/commands/branch-command.d.ts.map +1 -1
  16. package/dist/commands/branch-info-command.d.ts +55 -0
  17. package/dist/commands/branch-info-command.d.ts.map +1 -0
  18. package/dist/commands/branch-tracking.d.ts +106 -17
  19. package/dist/commands/branch-tracking.d.ts.map +1 -1
  20. package/dist/commands/branch-upstream-command.d.ts +83 -0
  21. package/dist/commands/branch-upstream-command.d.ts.map +1 -0
  22. package/dist/commands/checkout-command.d.ts +19 -3
  23. package/dist/commands/checkout-command.d.ts.map +1 -1
  24. package/dist/commands/cherry-pick-command.d.ts +59 -0
  25. package/dist/commands/cherry-pick-command.d.ts.map +1 -1
  26. package/dist/commands/clean-command.d.ts +12 -0
  27. package/dist/commands/clean-command.d.ts.map +1 -1
  28. package/dist/commands/clone-command.d.ts.map +1 -1
  29. package/dist/commands/commit-command.d.ts +191 -5
  30. package/dist/commands/commit-command.d.ts.map +1 -1
  31. package/dist/commands/commit-reuse.d.ts +33 -0
  32. package/dist/commands/commit-reuse.d.ts.map +1 -0
  33. package/dist/commands/config-command.d.ts +236 -0
  34. package/dist/commands/config-command.d.ts.map +1 -0
  35. package/dist/commands/config-value-types.d.ts +91 -0
  36. package/dist/commands/config-value-types.d.ts.map +1 -0
  37. package/dist/commands/core-config.d.ts +20 -0
  38. package/dist/commands/core-config.d.ts.map +1 -1
  39. package/dist/commands/diff-color-config.d.ts +73 -0
  40. package/dist/commands/diff-color-config.d.ts.map +1 -0
  41. package/dist/commands/diff-command.d.ts +252 -5
  42. package/dist/commands/diff-command.d.ts.map +1 -1
  43. package/dist/commands/fetch-command.d.ts +20 -0
  44. package/dist/commands/fetch-command.d.ts.map +1 -1
  45. package/dist/commands/fmt-merge-msg-command.d.ts +124 -0
  46. package/dist/commands/fmt-merge-msg-command.d.ts.map +1 -0
  47. package/dist/commands/fork-point.d.ts +38 -0
  48. package/dist/commands/fork-point.d.ts.map +1 -0
  49. package/dist/commands/format-patch-command.d.ts +41 -1
  50. package/dist/commands/format-patch-command.d.ts.map +1 -1
  51. package/dist/commands/fsck/fetch-fsck.d.ts +51 -0
  52. package/dist/commands/fsck/fetch-fsck.d.ts.map +1 -1
  53. package/dist/commands/gc-command.d.ts +8 -0
  54. package/dist/commands/gc-command.d.ts.map +1 -1
  55. package/dist/commands/git-describe.d.ts +4 -0
  56. package/dist/commands/git-describe.d.ts.map +1 -1
  57. package/dist/commands/git-hooks.d.ts +35 -0
  58. package/dist/commands/git-hooks.d.ts.map +1 -1
  59. package/dist/commands/grep/grep-command.d.ts +210 -0
  60. package/dist/commands/grep/grep-command.d.ts.map +1 -0
  61. package/dist/commands/grep/grep-engine.d.ts +218 -0
  62. package/dist/commands/grep/grep-engine.d.ts.map +1 -0
  63. package/dist/commands/grep/index.d.ts +3 -0
  64. package/dist/commands/grep/index.d.ts.map +1 -0
  65. package/dist/commands/index-adder.d.ts +13 -2
  66. package/dist/commands/index-adder.d.ts.map +1 -1
  67. package/dist/commands/index.d.ts +26 -0
  68. package/dist/commands/index.d.ts.map +1 -1
  69. package/dist/commands/index.js +3 -3
  70. package/dist/commands/interpret-trailers-command.d.ts +90 -0
  71. package/dist/commands/interpret-trailers-command.d.ts.map +1 -0
  72. package/dist/commands/local-transport.d.ts +36 -5
  73. package/dist/commands/local-transport.d.ts.map +1 -1
  74. package/dist/commands/log-command.d.ts +296 -11
  75. package/dist/commands/log-command.d.ts.map +1 -1
  76. package/dist/commands/log-graph.d.ts +26 -1
  77. package/dist/commands/log-graph.d.ts.map +1 -1
  78. package/dist/commands/log-output.d.ts +133 -5
  79. package/dist/commands/log-output.d.ts.map +1 -1
  80. package/dist/commands/ls-remote-command.d.ts +2 -0
  81. package/dist/commands/ls-remote-command.d.ts.map +1 -1
  82. package/dist/commands/mailmap.d.ts +30 -0
  83. package/dist/commands/mailmap.d.ts.map +1 -1
  84. package/dist/commands/merge-base-command.d.ts +60 -0
  85. package/dist/commands/merge-base-command.d.ts.map +1 -0
  86. package/dist/commands/merge-bases.d.ts +23 -0
  87. package/dist/commands/merge-bases.d.ts.map +1 -1
  88. package/dist/commands/merge-command.d.ts +96 -9
  89. package/dist/commands/merge-command.d.ts.map +1 -1
  90. package/dist/commands/merge-support.d.ts.map +1 -1
  91. package/dist/commands/mv-command.d.ts +4 -0
  92. package/dist/commands/mv-command.d.ts.map +1 -1
  93. package/dist/commands/name-rev.d.ts +48 -0
  94. package/dist/commands/name-rev.d.ts.map +1 -0
  95. package/dist/commands/notes-command.d.ts.map +1 -1
  96. package/dist/commands/pathspec-file.d.ts +39 -0
  97. package/dist/commands/pathspec-file.d.ts.map +1 -0
  98. package/dist/commands/pathspec.d.ts +3 -0
  99. package/dist/commands/pathspec.d.ts.map +1 -1
  100. package/dist/commands/pretty-format.d.ts +43 -3
  101. package/dist/commands/pretty-format.d.ts.map +1 -1
  102. package/dist/commands/promisor-remote.d.ts.map +1 -1
  103. package/dist/commands/pull-command.d.ts +10 -0
  104. package/dist/commands/pull-command.d.ts.map +1 -1
  105. package/dist/commands/push-command.d.ts +160 -9
  106. package/dist/commands/push-command.d.ts.map +1 -1
  107. package/dist/commands/read-tree-command.d.ts +6 -0
  108. package/dist/commands/read-tree-command.d.ts.map +1 -1
  109. package/dist/commands/rebase-command.d.ts +168 -6
  110. package/dist/commands/rebase-command.d.ts.map +1 -1
  111. package/dist/commands/ref-filter/for-each-ref-command.d.ts +121 -0
  112. package/dist/commands/ref-filter/for-each-ref-command.d.ts.map +1 -0
  113. package/dist/commands/ref-filter/index.d.ts +8 -0
  114. package/dist/commands/ref-filter/index.d.ts.map +1 -0
  115. package/dist/commands/ref-filter/ref-atoms.d.ts +88 -0
  116. package/dist/commands/ref-filter/ref-atoms.d.ts.map +1 -0
  117. package/dist/commands/ref-filter/ref-filter.d.ts +178 -0
  118. package/dist/commands/ref-filter/ref-filter.d.ts.map +1 -0
  119. package/dist/commands/ref-filter/ref-format.d.ts +222 -0
  120. package/dist/commands/ref-filter/ref-format.d.ts.map +1 -0
  121. package/dist/commands/ref-filter/ref-listing-command.d.ts +56 -0
  122. package/dist/commands/ref-filter/ref-listing-command.d.ts.map +1 -0
  123. package/dist/commands/ref-filter/ref-quote.d.ts +20 -0
  124. package/dist/commands/ref-filter/ref-quote.d.ts.map +1 -0
  125. package/dist/commands/ref-filter/version-compare.d.ts +20 -0
  126. package/dist/commands/ref-filter/version-compare.d.ts.map +1 -0
  127. package/dist/commands/reflog-command.d.ts +120 -0
  128. package/dist/commands/reflog-command.d.ts.map +1 -1
  129. package/dist/commands/reflog-walk.d.ts +72 -0
  130. package/dist/commands/reflog-walk.d.ts.map +1 -0
  131. package/dist/commands/remote-command.d.ts +138 -29
  132. package/dist/commands/remote-command.d.ts.map +1 -1
  133. package/dist/commands/remote-transport.d.ts +7 -1
  134. package/dist/commands/remote-transport.d.ts.map +1 -1
  135. package/dist/commands/reset-command.d.ts +2 -3
  136. package/dist/commands/reset-command.d.ts.map +1 -1
  137. package/dist/commands/restore-command.d.ts +2 -3
  138. package/dist/commands/restore-command.d.ts.map +1 -1
  139. package/dist/commands/rev-filter/commit-filter.d.ts +95 -0
  140. package/dist/commands/rev-filter/commit-filter.d.ts.map +1 -0
  141. package/dist/commands/rev-filter/commit-grep.d.ts +91 -0
  142. package/dist/commands/rev-filter/commit-grep.d.ts.map +1 -0
  143. package/dist/commands/rev-filter/index.d.ts +3 -0
  144. package/dist/commands/rev-filter/index.d.ts.map +1 -0
  145. package/dist/commands/rev-list-command.d.ts +154 -2
  146. package/dist/commands/rev-list-command.d.ts.map +1 -1
  147. package/dist/commands/revert-command.d.ts +32 -0
  148. package/dist/commands/revert-command.d.ts.map +1 -1
  149. package/dist/commands/revision-range.d.ts +32 -1
  150. package/dist/commands/revision-range.d.ts.map +1 -1
  151. package/dist/commands/revision-resolver.d.ts +15 -0
  152. package/dist/commands/revision-resolver.d.ts.map +1 -1
  153. package/dist/commands/rm-command.d.ts +70 -2
  154. package/dist/commands/rm-command.d.ts.map +1 -1
  155. package/dist/commands/sequencer-pick.d.ts +84 -4
  156. package/dist/commands/sequencer-pick.d.ts.map +1 -1
  157. package/dist/commands/sequencer-support.d.ts +2 -0
  158. package/dist/commands/sequencer-support.d.ts.map +1 -1
  159. package/dist/commands/serve-repository.d.ts +7 -0
  160. package/dist/commands/serve-repository.d.ts.map +1 -1
  161. package/dist/commands/show-command.d.ts +130 -0
  162. package/dist/commands/show-command.d.ts.map +1 -0
  163. package/dist/commands/show-commit.d.ts +11 -0
  164. package/dist/commands/show-commit.d.ts.map +1 -0
  165. package/dist/commands/signature-check.d.ts +164 -0
  166. package/dist/commands/signature-check.d.ts.map +1 -0
  167. package/dist/commands/signing.d.ts +160 -0
  168. package/dist/commands/signing.d.ts.map +1 -0
  169. package/dist/commands/sparse-checkout-command.d.ts.map +1 -1
  170. package/dist/commands/sparse-index-view.d.ts +45 -0
  171. package/dist/commands/sparse-index-view.d.ts.map +1 -0
  172. package/dist/commands/ssh-signer.d.ts +29 -0
  173. package/dist/commands/ssh-signer.d.ts.map +1 -0
  174. package/dist/commands/ssh-verifier.d.ts +42 -0
  175. package/dist/commands/ssh-verifier.d.ts.map +1 -0
  176. package/dist/commands/stash-apply-command.d.ts +5 -0
  177. package/dist/commands/stash-apply-command.d.ts.map +1 -1
  178. package/dist/commands/stash-branch-command.d.ts +34 -0
  179. package/dist/commands/stash-branch-command.d.ts.map +1 -0
  180. package/dist/commands/stash-create-command.d.ts +17 -0
  181. package/dist/commands/stash-create-command.d.ts.map +1 -1
  182. package/dist/commands/stash-info.d.ts +93 -0
  183. package/dist/commands/stash-info.d.ts.map +1 -0
  184. package/dist/commands/stash-list-command.d.ts +16 -0
  185. package/dist/commands/stash-list-command.d.ts.map +1 -1
  186. package/dist/commands/stash-pop-command.d.ts +39 -0
  187. package/dist/commands/stash-pop-command.d.ts.map +1 -0
  188. package/dist/commands/stash-show-command.d.ts +48 -0
  189. package/dist/commands/stash-show-command.d.ts.map +1 -0
  190. package/dist/commands/stash-store-command.d.ts +29 -0
  191. package/dist/commands/stash-store-command.d.ts.map +1 -0
  192. package/dist/commands/stash-working-tree.d.ts.map +1 -1
  193. package/dist/commands/status-command.d.ts.map +1 -1
  194. package/dist/commands/status-header.d.ts +5 -0
  195. package/dist/commands/status-header.d.ts.map +1 -1
  196. package/dist/commands/submodule-add-command.d.ts +89 -0
  197. package/dist/commands/submodule-add-command.d.ts.map +1 -0
  198. package/dist/commands/submodule-auth.d.ts +90 -0
  199. package/dist/commands/submodule-auth.d.ts.map +1 -0
  200. package/dist/commands/submodule-commands.d.ts +375 -0
  201. package/dist/commands/submodule-commands.d.ts.map +1 -0
  202. package/dist/commands/submodule-model.d.ts +288 -0
  203. package/dist/commands/submodule-model.d.ts.map +1 -0
  204. package/dist/commands/submodule-update-command.d.ts +198 -0
  205. package/dist/commands/submodule-update-command.d.ts.map +1 -0
  206. package/dist/commands/switch-command.d.ts.map +1 -1
  207. package/dist/commands/tag-command.d.ts +259 -10
  208. package/dist/commands/tag-command.d.ts.map +1 -1
  209. package/dist/commands/trailers.d.ts +218 -17
  210. package/dist/commands/trailers.d.ts.map +1 -1
  211. package/dist/commands/tree-restore.d.ts +7 -0
  212. package/dist/commands/tree-restore.d.ts.map +1 -1
  213. package/dist/commands/verify-command.d.ts +92 -0
  214. package/dist/commands/verify-command.d.ts.map +1 -0
  215. package/dist/commands/worktree-add-command.d.ts +79 -7
  216. package/dist/commands/worktree-add-command.d.ts.map +1 -1
  217. package/dist/commands/worktree-path-rules.d.ts +66 -0
  218. package/dist/commands/worktree-path-rules.d.ts.map +1 -0
  219. package/dist/commands/worktree-remove-command.d.ts +10 -3
  220. package/dist/commands/worktree-remove-command.d.ts.map +1 -1
  221. package/dist/commands/worktree-repair-command.d.ts +15 -2
  222. package/dist/commands/worktree-repair-command.d.ts.map +1 -1
  223. package/dist/commands/worktree-support.d.ts +5 -0
  224. package/dist/commands/worktree-support.d.ts.map +1 -1
  225. package/dist/{commands-DIJ91NnD.js → commands-ISM52N0n.js} +70736 -54492
  226. package/dist/errors/checkout-errors.d.ts +19 -0
  227. package/dist/errors/checkout-errors.d.ts.map +1 -1
  228. package/dist/errors/command-errors.d.ts.map +1 -1
  229. package/dist/errors/index.js +57 -3
  230. package/dist/errors/ref-errors.d.ts +19 -0
  231. package/dist/errors/ref-errors.d.ts.map +1 -1
  232. package/dist/errors/worktree-errors.d.ts +6 -1
  233. package/dist/errors/worktree-errors.d.ts.map +1 -1
  234. package/dist/{git-command-BGiOJ8Zk.js → fsck-DLRpbwTj.js} +6230 -71
  235. package/dist/git-command.d.ts +27 -1
  236. package/dist/git-command.d.ts.map +1 -1
  237. package/dist/git.d.ts +267 -1
  238. package/dist/git.d.ts.map +1 -1
  239. package/dist/index.js +5 -5
  240. package/dist/remote-config/index.d.ts +1 -1
  241. package/dist/remote-config/index.d.ts.map +1 -1
  242. package/dist/remote-config/remote-config-store.d.ts +55 -0
  243. package/dist/remote-config/remote-config-store.d.ts.map +1 -1
  244. package/dist/results/combined-diff.d.ts +3 -0
  245. package/dist/results/combined-diff.d.ts.map +1 -1
  246. package/dist/results/diff-check.d.ts +38 -0
  247. package/dist/results/diff-check.d.ts.map +1 -0
  248. package/dist/results/diff-color.d.ts +135 -0
  249. package/dist/results/diff-color.d.ts.map +1 -0
  250. package/dist/results/diff-output.d.ts +85 -1
  251. package/dist/results/diff-output.d.ts.map +1 -1
  252. package/dist/results/diff-pickaxe.d.ts +67 -0
  253. package/dist/results/diff-pickaxe.d.ts.map +1 -0
  254. package/dist/results/diff-words.d.ts +55 -0
  255. package/dist/results/diff-words.d.ts.map +1 -0
  256. package/dist/results/index.d.ts +4 -0
  257. package/dist/results/index.d.ts.map +1 -1
  258. package/dist/results/index.js +2 -2
  259. package/dist/results/push-result.d.ts +7 -0
  260. package/dist/results/push-result.d.ts.map +1 -1
  261. package/dist/results/rebase-result.d.ts +2 -0
  262. package/dist/results/rebase-result.d.ts.map +1 -1
  263. package/dist/results/stash-result.d.ts +6 -0
  264. package/dist/results/stash-result.d.ts.map +1 -1
  265. package/dist/{results-WVlBhVb1.js → results-TB2IJ64h.js} +2168 -403
  266. package/dist/whitespace/index.d.ts +2 -0
  267. package/dist/whitespace/index.d.ts.map +1 -0
  268. package/dist/whitespace/whitespace-rule.d.ts +94 -0
  269. package/dist/whitespace/whitespace-rule.d.ts.map +1 -0
  270. package/package.json +12 -12
  271. package/src/commands/add-command.ts +178 -17
  272. package/src/commands/am/am-command.ts +262 -42
  273. package/src/commands/am/index.ts +1 -0
  274. package/src/commands/am/mailsplit.ts +326 -0
  275. package/src/commands/apply/apply-command.ts +6 -6
  276. package/src/commands/apply/apply-engine.ts +1 -1
  277. package/src/commands/apply/apply-parse.ts +7 -8
  278. package/src/commands/bisect/bisect-command.ts +18 -5
  279. package/src/commands/branch-command.ts +528 -53
  280. package/src/commands/branch-info-command.ts +150 -0
  281. package/src/commands/branch-tracking.ts +335 -60
  282. package/src/commands/branch-upstream-command.ts +218 -0
  283. package/src/commands/checkout-command.ts +69 -43
  284. package/src/commands/cherry-pick-command.ts +143 -0
  285. package/src/commands/clean-command.ts +34 -3
  286. package/src/commands/clone-command.ts +2 -1
  287. package/src/commands/commit-command.ts +782 -64
  288. package/src/commands/commit-reuse.ts +94 -0
  289. package/src/commands/config-command.ts +1256 -0
  290. package/src/commands/config-value-types.ts +358 -0
  291. package/src/commands/core-config.ts +40 -0
  292. package/src/commands/diff-color-config.ts +274 -0
  293. package/src/commands/diff-command.ts +1009 -49
  294. package/src/commands/fetch-command.ts +142 -8
  295. package/src/commands/fmt-merge-msg-command.ts +715 -0
  296. package/src/commands/fork-point.ts +63 -0
  297. package/src/commands/format-patch-command.ts +314 -46
  298. package/src/commands/fsck/fetch-fsck.ts +172 -18
  299. package/src/commands/gc-command.ts +31 -1
  300. package/src/commands/git-describe.ts +31 -11
  301. package/src/commands/git-hooks.ts +81 -0
  302. package/src/commands/grep/grep-command.ts +1077 -0
  303. package/src/commands/grep/grep-engine.ts +1024 -0
  304. package/src/commands/grep/index.ts +2 -0
  305. package/src/commands/index-adder.ts +46 -7
  306. package/src/commands/index.ts +26 -0
  307. package/src/commands/interpret-trailers-command.ts +256 -0
  308. package/src/commands/local-transport.ts +109 -10
  309. package/src/commands/log-command.ts +1246 -210
  310. package/src/commands/log-graph.ts +123 -26
  311. package/src/commands/log-output.ts +280 -21
  312. package/src/commands/ls-remote-command.ts +5 -0
  313. package/src/commands/mailmap.ts +119 -0
  314. package/src/commands/merge-base-command.ts +170 -0
  315. package/src/commands/merge-bases.ts +63 -8
  316. package/src/commands/merge-command.ts +330 -82
  317. package/src/commands/merge-support.ts +14 -1
  318. package/src/commands/mv-command.ts +6 -3
  319. package/src/commands/name-rev.ts +171 -0
  320. package/src/commands/notes-command.ts +11 -1
  321. package/src/commands/pathspec-file.ts +72 -0
  322. package/src/commands/pathspec.ts +14 -2
  323. package/src/commands/pretty-format.ts +103 -19
  324. package/src/commands/promisor-remote.ts +10 -1
  325. package/src/commands/pull-command.ts +26 -7
  326. package/src/commands/push-command.ts +682 -65
  327. package/src/commands/read-tree-command.ts +28 -1
  328. package/src/commands/rebase-command.ts +933 -129
  329. package/src/commands/ref-filter/for-each-ref-command.ts +298 -0
  330. package/src/commands/ref-filter/index.ts +7 -0
  331. package/src/commands/ref-filter/ref-atoms.ts +581 -0
  332. package/src/commands/ref-filter/ref-filter.ts +651 -0
  333. package/src/commands/ref-filter/ref-format.ts +1070 -0
  334. package/src/commands/ref-filter/ref-listing-command.ts +421 -0
  335. package/src/commands/ref-filter/ref-quote.ts +69 -0
  336. package/src/commands/ref-filter/version-compare.ts +177 -0
  337. package/src/commands/reflog-command.ts +492 -2
  338. package/src/commands/reflog-walk.ts +234 -0
  339. package/src/commands/remote-command.ts +449 -69
  340. package/src/commands/remote-transport.ts +9 -1
  341. package/src/commands/reset-command.ts +36 -31
  342. package/src/commands/restore-command.ts +12 -41
  343. package/src/commands/rev-filter/commit-filter.ts +159 -0
  344. package/src/commands/rev-filter/commit-grep.ts +444 -0
  345. package/src/commands/rev-filter/index.ts +2 -0
  346. package/src/commands/rev-list-command.ts +402 -15
  347. package/src/commands/revert-command.ts +82 -0
  348. package/src/commands/revision-range.ts +204 -4
  349. package/src/commands/revision-resolver.ts +23 -8
  350. package/src/commands/rm-command.ts +282 -21
  351. package/src/commands/sequencer-pick.ts +498 -85
  352. package/src/commands/sequencer-support.ts +20 -2
  353. package/src/commands/serve-repository.ts +18 -3
  354. package/src/commands/show-command.ts +490 -0
  355. package/src/commands/show-commit.ts +24 -0
  356. package/src/commands/signature-check.ts +657 -0
  357. package/src/commands/signing.ts +385 -0
  358. package/src/commands/sparse-checkout-command.ts +2 -9
  359. package/src/commands/sparse-checkout-support.ts +2 -2
  360. package/src/commands/sparse-index-view.ts +135 -0
  361. package/src/commands/ssh-signer.ts +199 -0
  362. package/src/commands/ssh-verifier.ts +523 -0
  363. package/src/commands/stash-apply-command.ts +16 -4
  364. package/src/commands/stash-branch-command.ts +88 -0
  365. package/src/commands/stash-create-command.ts +28 -0
  366. package/src/commands/stash-info.ts +243 -0
  367. package/src/commands/stash-list-command.ts +33 -0
  368. package/src/commands/stash-pop-command.ts +83 -0
  369. package/src/commands/stash-show-command.ts +141 -0
  370. package/src/commands/stash-store-command.ts +82 -0
  371. package/src/commands/stash-working-tree.ts +2 -2
  372. package/src/commands/status-command.ts +5 -2
  373. package/src/commands/status-header.ts +41 -7
  374. package/src/commands/submodule-add-command.ts +509 -0
  375. package/src/commands/submodule-auth.ts +276 -0
  376. package/src/commands/submodule-commands.ts +1517 -0
  377. package/src/commands/submodule-model.ts +930 -0
  378. package/src/commands/submodule-update-command.ts +1092 -0
  379. package/src/commands/switch-command.ts +3 -1
  380. package/src/commands/tag-command.ts +876 -64
  381. package/src/commands/trailers.ts +837 -100
  382. package/src/commands/tree-restore.ts +38 -10
  383. package/src/commands/verify-command.ts +235 -0
  384. package/src/commands/worktree-add-command.ts +268 -24
  385. package/src/commands/worktree-path-rules.ts +183 -0
  386. package/src/commands/worktree-remove-command.ts +39 -5
  387. package/src/commands/worktree-repair-command.ts +52 -5
  388. package/src/commands/worktree-support.ts +22 -1
  389. package/src/errors/checkout-errors.ts +29 -0
  390. package/src/errors/command-errors.ts +2 -1
  391. package/src/errors/ref-errors.ts +23 -0
  392. package/src/errors/worktree-errors.ts +8 -1
  393. package/src/git-command.ts +66 -1
  394. package/src/git.ts +404 -1
  395. package/src/remote-config/index.ts +2 -0
  396. package/src/remote-config/remote-config-store.ts +101 -0
  397. package/src/results/combined-diff.ts +38 -18
  398. package/src/results/diff-check.ts +185 -0
  399. package/src/results/diff-color.ts +868 -0
  400. package/src/results/diff-output.ts +195 -30
  401. package/src/results/diff-pickaxe.ts +304 -0
  402. package/src/results/diff-words.ts +395 -0
  403. package/src/results/index.ts +4 -0
  404. package/src/results/push-result.ts +7 -0
  405. package/src/results/rebase-result.ts +3 -0
  406. package/src/results/stash-result.ts +7 -0
  407. package/src/whitespace/index.ts +1 -0
  408. package/src/{commands/apply/whitespace.ts → whitespace/whitespace-rule.ts} +173 -23
  409. package/dist/commands/apply/whitespace.d.ts +0 -58
  410. 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 @@
1
+ {"version":3,"file":"grep-engine.d.ts","sourceRoot":"","sources":["../../../src/commands/grep/grep-engine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEhF,8EAA8E;AAC9E,MAAM,MAAM,SAAS,GACjB;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,0BAA0B;IAC1B,OAAO,EAAE,UAAU,CAAC;IACpB,6EAA6E;IAC7E,MAAM,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,EAAE,EAAE,MAAM,CAAC;CACZ,GACD;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,GACf;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,GACf;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAItB,6EAA6E;AAC7E,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,MAAM,SAAc,EAAE,EAAE,SAAI,GAAG,SAAS,CAOjG;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,CAevF;AAED,iFAAiF;AACjF,qBAAa,SAAU,SAAQ,WAAW;IACxC,kBAAkB;IAClB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IAEzB,YAAY,IAAI,EAAE,MAAM,EAIvB;CACF;AAED,qFAAqF;AACrF,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IACh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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
@@ -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,EAAE,YAAY,CAAC;CACxB;AAED,kGAAkG;AAClG,qBAAa,eAAgB,SAAQ,KAAK;IAEtC,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE;IAF1B,YACW,IAAI,EAAE,MAAM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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,7 +6,9 @@ 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";
@@ -14,27 +16,33 @@ export * from "./clean-command.js";
14
16
  export * from "./clone-command.js";
15
17
  export * from "./comment-char-config.js";
16
18
  export * from "./commit-command.js";
19
+ export * from "./config-command.js";
17
20
  export * from "./date-format.js";
18
21
  export * from "./default-branch.js";
19
22
  export * from "./describe-command.js";
23
+ export * from "./diff-color-config.js";
20
24
  export * from "./diff-command.js";
21
25
  export * from "./diff-textconv.js";
22
26
  export * from "./fetch-command.js";
27
+ export * from "./fmt-merge-msg-command.js";
23
28
  export * from "./format-patch-command.js";
24
29
  export * from "./fsck/index.js";
25
30
  export * from "./gc-command.js";
26
31
  export * from "./git-describe.js";
27
32
  export * from "./git-hooks.js";
28
33
  export * from "./git-ident.js";
34
+ export * from "./grep/index.js";
29
35
  export * from "./hook-command.js";
30
36
  export { IndexVersionConfigError, indexFormatDefault, indexVersionConfigError, takeIndexWarnings, } from "./index-host.js";
31
37
  export * from "./init-command.js";
38
+ export * from "./interpret-trailers-command.js";
32
39
  export { httpBackendEnv, quarantineEnv, remoteHookSession } from "./local-transport.js";
33
40
  export * from "./log-command.js";
34
41
  export * from "./log-graph.js";
35
42
  export * from "./log-output.js";
36
43
  export * from "./ls-remote-command.js";
37
44
  export * from "./mailmap.js";
45
+ export * from "./merge-base-command.js";
38
46
  export * from "./merge-command.js";
39
47
  export { createMergeDriver, installMergeDrivers, type MergeAttributeValue, type MergeDriver, type MergeDriverInput, type MergeDriverRegistry, type MergeDriverResult, mergeDriversOf, } from "./merge-drivers.js";
40
48
  export { CleanupMode, stripspace } from "./message-cleanup.js";
@@ -52,11 +60,13 @@ export * from "./push-command.js";
52
60
  export * from "./read-tree-command.js";
53
61
  export * from "./rebase-command.js";
54
62
  export * from "./ref-decoration-filter.js";
63
+ export * from "./ref-filter/index.js";
55
64
  export * from "./reflog-command.js";
56
65
  export { committerIdent, reflogMessages, reflogSubject, } from "./reflog-messages.js";
57
66
  export * from "./remote-command.js";
58
67
  export * from "./reset-command.js";
59
68
  export * from "./restore-command.js";
69
+ export * from "./rev-filter/index.js";
60
70
  export * from "./rev-list-command.js";
61
71
  export * from "./rev-parse-command.js";
62
72
  export * from "./revert-command.js";
@@ -66,19 +76,35 @@ export * from "./revision-resolver.js";
66
76
  export * from "./rm-command.js";
67
77
  export { SequencerOperation } from "./sequencer-pick.js";
68
78
  export * from "./serve-repository.js";
79
+ export * from "./show-command.js";
80
+ export * from "./signature-check.js";
81
+ export * from "./signing.js";
69
82
  export * from "./sparse-checkout-command.js";
83
+ export * from "./ssh-signer.js";
84
+ export * from "./ssh-verifier.js";
70
85
  export * from "./stash-apply-command.js";
86
+ export * from "./stash-branch-command.js";
71
87
  export * from "./stash-create-command.js";
72
88
  export * from "./stash-drop-command.js";
89
+ export * from "./stash-info.js";
73
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";
74
94
  export * from "./stash-working-tree.js";
75
95
  export * from "./status-command.js";
76
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";
77
101
  export * from "./submodule-summary.js";
78
102
  export * from "./submodule-summary-command.js";
103
+ export * from "./submodule-update-command.js";
79
104
  export * from "./switch-command.js";
80
105
  export * from "./tag-command.js";
81
106
  export * from "./trailers.js";
107
+ export * from "./verify-command.js";
82
108
  export * from "./worktree-add-command.js";
83
109
  export * from "./worktree-list-command.js";
84
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,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,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,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC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AAmB,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 RemoteListCommand, $n as mergesMode, $r as formatCommitPretty, $t as MergeOperation, A as NotesListCommand, Ai as parseWhitespaceAction, An as BisectGraph, Ar as createPatchBackend, At as hexIdAt, Bi as statusCommitInfo, Bn as skipAway, Br as shortenUnambiguousRef, Bt as FsckMessageTypes, C as NotesCommands, Ci as StashApplyCommand, Cn as isBisectSuccess, Cr as pathPatchMode, Ct as canonMode, D as NotesCopyCommand, Di as installMergeDrivers, Dn as strbufRtrim, Dr as patchModeFor, Dt as fsckCommit, E as NotesAppendCommand, Ei as createMergeDriver, En as sqQuoteArgv, Er as PATCH_MODES, Et as fsckBlob, F as MvCommand, Fi as pathToLatin1, Fn as TREESAME, Fr as parseIgnoredMode, Ft as rawIdAt, G as WorktreePruneCommand, Gn as NotesTree, Gr as SubmoduleWalkError, Gt as httpBackendEnv, H as HookRunCommand, Hi as stripspace, Hn as LogCommand, Hr as SubmoduleSummaryCommand, Ht as parseFsckMsgId, I as LsRemoteCommand, Ii as createRefDecorationFilter, In as UNINTERESTING, Ir as parseUntrackedFilesMode, It as scanTree, J as DescribeCommand, Jn as combineNotesIgnore, Jr as readDiffSubmoduleConfig, Jt as ReadTreeCommand, K as FormatPatchCommand, Kn as combineNotesCatSortUniq, Kr as openSubmoduleRepository, Kt as quarantineEnv, L as InitCommand, Li as decorateFullRefs, Ln as estimateBisectSteps, Lr as readShowUntrackedFiles, Lt as treeEntryId, M as NotesRemoveCommand, Mi as bytesToLatin1, Mn as FIND_BISECTION_ALL, Mr as formatDiffEntry, Mt as parseCommitLinks, N as NotesShowCommand, Ni as latin1ToBytes, Nn as FIND_BISECTION_FIRST_PARENT_ONLY, Nr as StatusCommand, Nt as parseGitmodulesConfig, O as NotesEditCommand, Oi as mergeDriversOf, On as strbufTrim, Or as promptIndex, Ot as fsckTag, P as NotesSubcommand, Pi as latin1ToPath, Pn as PRN_MODULO, Pr as cutLine, Pt as parseTagBuffer, Q as RemoteGetUrlCommand, Qn as mailFromHeader, Qr as PrettyFormatError, Qt as MergeCommand, R as ReinitializeHashError, Ri as StatusPrinter, Rn as findBisection, Rr as readSubmoduleDirt, Rt as walkTree, S as PackRefsCommand, Sn as BisectEngine, Sr as patchRevisionOf, St as SHA1_ID_SHAPE, T as NotesAddCommand, Ti as StashListCommand, Tn as sqQuote, Tr as runAddPatch, Tt as checkSubmoduleUrl, U as createDescriber, Ui as installTextconvRunner, Un as RevFilter, Ur as NULL_OBJECT_ID, V as HookListCommand, Vi as CleanupMode, Vn as skipAwayIndex, Vr as parseExpiry, Vt as UnknownFsckMsgIdError, W as GarbageCollectCommand, Wi as textconvRunnerOf, Wn as NotesError, Wr as SubmoduleRepository, X as SparseCheckoutCommand, Xn as Mailmap, Xr as showSubmoduleDiffSummary, Xt as CherryPickCommand, Y as CloneCommand, Yn as combineNotesOverwrite, Yr as readGitmodulesEntries, Yt as CleanCommand, Z as RemoteAddCommand, Zn as LogPrinter, Zr as submoduleHeader, Zt as SequencerOperation, _ as ReflogCommand, _i as ResetCommand, _n as BisectStartCommand, _r as ensureUtf8, _t as FSCK_ERROR_REACHABLE, a as WorktreeUnlockCommand, ai as sanitizedSubject, an as CreateBranchCommand, ar as showDate, at as FetchCommand, b as RebaseCommand, bi as restoreWorktreeHard, bn as BISECT_USAGE, br as AddCommand, bt as FsckConfigError, c as ListTagCommand, ci as appendTrailers, cn as RenameBranchCommand, cr as CheckoutStatus, ct as toTrackingRefUpdate, d as StashDropCommand, di as NoChangesSelectedError, dn as BisectLogCommand, dr as checkoutPaths, dt as FSCK_ERROR_BITMAP_243, ei as formatRefDecorations, en as UNMERGED_FILES_MESSAGE, er as LogGraph, et as RemoteRemoveCommand, f as servedRepositoryOf, fi as NoStagedChangesError, fn as BisectNextCommand, fr as runPathCheckout, ft as FSCK_ERROR_COMMIT_GRAPH, g as RestoreCommand, gi as WorkingCopyStashProvider, gn as BisectSkipCommand, gr as AmCommand, gt as FSCK_ERROR_PACK_REV_INDEX_243, h as RevListCommand, hi as StashWorktreeRemovalError, hn as BisectRunCommand, hr as revisionMergeBases, ht as FSCK_ERROR_PACK, i as WorktreeLockCommand, ii as relativeDate, in as CopyBranchCommand, ir as parseDateMode, it as isValidRemoteName, j as NotesPruneCommand, ji as ApplyEngine, jn as BisectNode, jr as DiffCommand, jt as parseCommitBuffer, k as NotesGetRefCommand, ki as ApplyCommand, kn as BisectDie, kr as IndexRefresh, kt as fsckTree, l as TagCommand, li as formatTrailersOf, ln as BlameCommand, lr as nonCommitSwitchError, m as RevertCommand, mi as StashPathspecResetError, mn as BisectResetCommand, mr as RevParseCommand, mt as FSCK_ERROR_OBJECT, n as WorktreeMoveCommand, ni as loadRefDecorations, nn as favorOf, nr as DateModeError, nt as RemoteSetHeadCommand, o as WorktreeAddCommand, oi as wrapText, on as DeleteBranchCommand, or as CheckoutCommand, ot as TagOption, p as RmCommand, pi as StashCreateCommand, pn as BisectReplayCommand, pr as BackfillCommand, pt as FSCK_ERROR_MULTI_PACK_INDEX_243, q as FormatPatchError, qn as combineNotesConcatenate, qr as parseSubmoduleDiffFormat, qt as remoteHookSession, r as WorktreeRemoveCommand, ri as parseColorSpec, rn as CommitCommand, rr as hostZoneName, rt as RemoteSetUrlCommand, s as DeleteTagCommand, si as appendSignoff, sn as ListBranchCommand, sr as CheckoutStage, st as toTagMode, t as WorktreeRepairCommand, ti as humanDate, tn as UNRELATED_HISTORIES_MESSAGE, tr as DEFAULT_DATE_MODE, tt as RemoteRenameCommand, u as SwitchCommand, ui as trailerConfigOf, un as BisectCommand, ur as pathCheckoutResult, ut as VerifyPackCommand, v as PushCommand, vi as checkFlaggedEntries, vn as BisectStateCommand, vr as mailinfo, vt as FSCK_ERROR_REFS, w as NotesMergeCommand, wi as STASH_REF, wn as sqDequoteToArgv, wr as runPatchSelection, wt as checkSubmoduleName, x as RebaseOperation, xn as BisectCode, xr as runAddInteractive, xt as fetchFsckOf, y as PullCommand, yi as recordWrittenStat, yn as BisectTermsCommand, yr as mailsplit, yt as FsckCommand, z as UnknownHashAlgorithmError, zi as formatStatusText, zn as managedSkipped, zr as WorktreeListCommand, zt as FSCK_MSG_IDS } from "../commands-DIJ91NnD.js";
2
- import { $t as InvalidIdentError, A as registerPartialClone, At as hookRunnerOf, B as IndexVersionConfigError, Ct as LOCAL_REPO_ENV, D as installPromisorFetcher, Dt as gitCommitAfterHooks, E as hasPromisorRemote, Et as configuredHooks, F as UnknownRefFormatError, Ft as refTransactionHookOf, Gt as checkAutoCommentChar, H as indexVersionConfigError, I as defaultBranchHint, It as runPostCheckoutHook, L as defaultInitialBranch, Lt as sequencerPostCommit, M as InvalidDefaultBranchError, Mt as hookSettingsFromEntries, N as InvalidInitialBranchError, Nt as isKnownHook, O as promisorOf, Ot as gitCommitMessageHooks, P as MissingDefaultBranchValueError, Pt as nullIdLike, Qt as InvalidDateError, R as defaultRefFormat, Rt as sequencerPrepareMessage, St as HookSession, T as createPromisorFetcher, Tt as configuredHookEntries, Ut as AutoCommentCharRemovedError, V as indexFormatDefault, W as takeIndexWarnings, Wt as autoCommentCharLines, Xt as DEFAULT_IDENT, Zt as IdentityUnknownError, _ as unknownRevisionMessage, an as resolveAuthorIdent, b as reflogMessages, cn as withoutCrud, d as lstatExists, dn as parseGitDate, en as authorIdentOf, f as parseRevisionAndPathArgs, g as parseRevisionArgs, h as handleRevisionArg, in as identConfigOf, jt as hookSettingsCheck, k as promisorRemotes, kt as hookHostOf, l as checkFilename, m as verifyNonFilename, n as RevisionResolver, nn as findIdent, on as resolveCommitterIdent, p as verifyFilename, r as TrackMode, rn as hostEnvironmentOf, sn as resolveIdentDate, tn as committerIdentOf, u as looksLikePathspec, un as localTimezoneOffset, v as committerIdent, w as LAZY_FETCH_DISABLED_WARNING, wt as commonGitFileOf, x as reflogSubject, z as isValidBranchName } from "../git-command-BGiOJ8Zk.js";
3
- export { 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, 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_PACK_REV_INDEX_243, FSCK_ERROR_REACHABLE, FSCK_ERROR_REFS, FSCK_MSG_IDS, FetchCommand, FormatPatchCommand, FormatPatchError, FsckCommand, FsckConfigError, FsckMessageTypes, GarbageCollectCommand, HookListCommand, HookRunCommand, HookSession, IdentityUnknownError, IndexRefresh, IndexVersionConfigError, InitCommand, InvalidDateError, InvalidDefaultBranchError, InvalidIdentError, InvalidInitialBranchError, LAZY_FETCH_DISABLED_WARNING, LOCAL_REPO_ENV, ListBranchCommand, ListTagCommand, LogCommand, LogGraph, LogPrinter, LsRemoteCommand, Mailmap, 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, ReflogCommand, ReinitializeHashError, RemoteAddCommand, RemoteGetUrlCommand, RemoteListCommand, RemoteRemoveCommand, RemoteRenameCommand, RemoteSetHeadCommand, RemoteSetUrlCommand, RenameBranchCommand, ResetCommand, RestoreCommand, RevFilter, RevListCommand, RevParseCommand, RevertCommand, RevisionResolver, RmCommand, SHA1_ID_SHAPE, 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, UnknownHashAlgorithmError, UnknownRefFormatError, VerifyPackCommand, WorkingCopyStashProvider, WorktreeAddCommand, WorktreeListCommand, WorktreeLockCommand, WorktreeMoveCommand, WorktreePruneCommand, WorktreeRemoveCommand, WorktreeRepairCommand, WorktreeUnlockCommand, appendSignoff, appendTrailers, authorIdentOf, autoCommentCharLines, bytesToLatin1, canonMode, checkAutoCommentChar, checkFilename, checkFlaggedEntries, checkSubmoduleName, checkSubmoduleUrl, checkoutPaths, combineNotesCatSortUniq, combineNotesConcatenate, combineNotesIgnore, combineNotesOverwrite, committerIdent, committerIdentOf, commonGitFileOf, configuredHookEntries, configuredHooks, createDescriber, createMergeDriver, createPatchBackend, createPromisorFetcher, createRefDecorationFilter, cutLine, decorateFullRefs, defaultBranchHint, defaultInitialBranch, defaultRefFormat, 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, isValidBranchName, 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 };
@@ -0,0 +1,90 @@
1
+ /**
2
+ * `git interpret-trailers` (builtin/interpret-trailers.c) as a library command.
3
+ *
4
+ * ```typescript
5
+ * const { stdout } = await git
6
+ * .interpretTrailers()
7
+ * .setInput("Fix the parser\n")
8
+ * .addTrailer("Reviewed-by: R <r@example.com>")
9
+ * .setWhere("start")
10
+ * .addTrailer("Bug: 42")
11
+ * .call();
12
+ * // "Fix the parser\n\nBug: 42\nReviewed-by: R <r@example.com>\n"
13
+ *
14
+ * const parsed = await git.interpretTrailers().setInput(message).setParse(true).call();
15
+ * parsed.stdout; // the trailers alone, unfolded
16
+ * ```
17
+ */
18
+ import { GitCommand } from "../git-command.js";
19
+ import { type TrailerIfExists, type TrailerIfMissing, type TrailerWhere } from "./trailers.js";
20
+ /** What {@link InterpretTrailersCommand} gave. */
21
+ export interface InterpretTrailersCommandResult {
22
+ /** git's stdout: each input with its trailers (nothing for files edited in place) */
23
+ stdout: string;
24
+ /**
25
+ * git's stderr: the configuration's warnings, `error:` lines (an empty trailer token, a
26
+ * failed trailer command) and what the trailer commands wrote there
27
+ */
28
+ stderr: string;
29
+ }
30
+ /**
31
+ * Add or parse the trailers of messages, as `git interpret-trailers [--in-place]
32
+ * [--trim-empty] [(--trailer <key>[(=|:)<value>])...] [--parse] [<file>...]`.
33
+ *
34
+ * The input is {@link setInput} (git's stdin) or the files added with {@link addFile} (paths
35
+ * from the worktree top, through the repository's FilesApi), each completed with a line end.
36
+ * The `trailer.*` configuration applies (`trailer.<key>.key`, `.where`, `.ifexists`,
37
+ * `.ifmissing`, `.cmd`, `.command`, `trailer.separators`, the defaults); `--where`,
38
+ * `--if-exists` and `--if-missing` apply to the trailers added after them, as on git's
39
+ * command line ({@link setWhere} with undefined is `--no-where`). Trailer commands run through
40
+ * the host environment's hook runner (`sh -c`, in the worktree top, without the variables
41
+ * naming the repository); without a runner none runs: a trailer keeps the value given and
42
+ * `trailer.<key>.command` adds no trailer of its own.
43
+ */
44
+ export declare class InterpretTrailersCommand extends GitCommand<InterpretTrailersCommandResult> {
45
+ private input;
46
+ private files;
47
+ private inPlace;
48
+ private trimEmpty;
49
+ private onlyTrailers;
50
+ private onlyInput;
51
+ private unfold;
52
+ private noDivider;
53
+ private where?;
54
+ private ifExists?;
55
+ private ifMissing?;
56
+ private trailers;
57
+ private compatibility?;
58
+ /** The message to read when no file is given (git's stdin). */
59
+ setInput(input: string | Uint8Array): this;
60
+ /** A file to read (`<file>`), from the worktree top; several are output one after another. */
61
+ addFile(path: string): this;
62
+ /** `--in-place`: write each file back instead of the output. */
63
+ setInPlace(inPlace: boolean): this;
64
+ /** `--trim-empty`: leave out trailers whose value is empty. */
65
+ setTrimEmpty(trim: boolean): this;
66
+ /** `--only-trailers`: output only the trailers. */
67
+ setOnlyTrailers(only: boolean): this;
68
+ /** `--only-input`: apply no `trailer.<key>.command` trailers. */
69
+ setOnlyInput(only: boolean): this;
70
+ /** `--unfold`: join continuation lines into one. */
71
+ setUnfold(unfold: boolean): this;
72
+ /** `--parse`: `--only-trailers --only-input --unfold` (true sets the three). */
73
+ setParse(parse: boolean): this;
74
+ /** `--no-divider`: a `---` line does not end the message. */
75
+ setNoDivider(noDivider: boolean): this;
76
+ /** `--where <placement>` for the trailers added next; undefined is `--no-where`. */
77
+ setWhere(where: TrailerWhere | undefined): this;
78
+ /** `--if-exists <action>` for the trailers added next; undefined is `--no-if-exists`. */
79
+ setIfExists(action: TrailerIfExists | undefined): this;
80
+ /** `--if-missing <action>` for the trailers added next; undefined is `--no-if-missing`. */
81
+ setIfMissing(action: TrailerIfMissing | undefined): this;
82
+ /** `--trailer <key>[(=|:)<value>]`, with the placement and actions set so far. */
83
+ addTrailer(text: string): this;
84
+ /** `--no-trailer`: forget the trailers added so far. */
85
+ clearTrailers(): this;
86
+ /** The git version to follow where versions differ (default: the hook runner's, else 2.56). */
87
+ setCompatibility(version: "2.43" | "2.56"): this;
88
+ call(): Promise<InterpretTrailersCommandResult>;
89
+ }
90
+ //# sourceMappingURL=interpret-trailers-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interpret-trailers-command.d.ts","sourceRoot":"","sources":["../../src/commands/interpret-trailers-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAE,UAAU,EAAE,MAA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