@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
@@ -1 +1 @@
1
- {"version":3,"file":"checkout-command.d.ts","sourceRoot":"","sources":["../../src/commands/checkout-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAKL,KAAK,GAAG,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,wBAAwB,CAAC;AAU1E,OAAO,EAML,eAAe,EAGf,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAInB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAKL,SAAS,EAEV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,qBAAqB,CAAC;AA6CjF;;GAEG;AACH,oBAAY,aAAa;IACvB,4BAA4B;IAC5B,IAAI,IAAI;IACR,kCAAkC;IAClC,IAAI,IAAI;IACR,mCAAmC;IACnC,MAAM,IAAI;CACX;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,sCAAsC;IACtC,EAAE,OAAO;IACT,6BAA6B;IAC7B,SAAS,cAAc;IACvB,qCAAqC;IACrC,UAAU,eAAe;IACzB,6BAA6B;IAC7B,SAAS,cAAc;IACvB,iCAAiC;IACjC,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,8BAA8B;IAC9B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAEhC,8BAA8B;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAE3B,8BAA8B;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAE3B,qDAAqD;IACrD,QAAQ,CAAC,SAAS,EAA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;;;;OAIG;YACW,eAAe;IAiD7B;;;;OAIG;YACW,kBAAkB;IAMhC,sFAAsF;IACtF,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,mBAAmB;IAK3B,mEAAmE;IACnE,OAAO,CAAC,IAAI;IAqBZ;;;;;OAKG;YACW,aAAa;IAiC3B,6CAA6C;IAC7C,OAAO,CAAC,mBAAmB;IAY3B,yFAAyF;IACzF,OAAO,CAAC,mBAAmB;IAQ3B;;;OAGG;YACW,qBAAqB;IAMnC,oEAAoE;YACtD,eAAe;IAK7B;;OAEG;YACW,cAAc;IAoa5B;;;OAGG;YACW,mBAAmB;IAuEjC;;OAEG;YACW,kBAAkB;IAgBhC;;;;;;OAMG;YACW,iBAAiB;IAO/B;;;;OAIG;YACW,eAAe;IAa7B;;;;;OAKG;YACW,UAAU;IAqGxB;;;;OAIG;YACW,kBAAkB;IAkBhC;;OAEG;YACW,oBAAoB;CAenC;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,cAAc,CAWhF;AAKD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,GAAG,kBAAkB,CAM9F"}
@@ -39,7 +39,16 @@ export declare class CherryPickCommand extends GitCommand<CherryPickResult> {
39
39
  private operation;
40
40
  private committer?;
41
41
  private edit?;
42
+ /** `-S[<keyid>]` / `--no-gpg-sign` (undefined: `commit.gpgSign`) */
43
+ private sign?;
42
44
  private editor?;
45
+ private signoff;
46
+ private recordOrigin;
47
+ private allowEmpty;
48
+ private allowEmptyMessage;
49
+ private keepRedundant;
50
+ private empty?;
51
+ private allowFf;
43
52
  /**
44
53
  * Add a commit to cherry-pick.
45
54
  *
@@ -117,6 +126,54 @@ export declare class CherryPickCommand extends GitCommand<CherryPickResult> {
117
126
  * plain `git commit` (its editor, every hook), and edits the picks after it.
118
127
  */
119
128
  setEdit(edit: boolean): this;
129
+ /**
130
+ * `-S` (true) / `--no-gpg-sign` (false): whether to sign the commits made; undefined (the
131
+ * default) leaves it to `commit.gpgSign`. Each commit is signed through the host's signer
132
+ * (`GitHostEnvironment.signer`) as git's sequencer signs it (try_to_commit's commit_tree, or
133
+ * the `git commit -S<key>` it runs after an edit or a resolved conflict). When it cannot be
134
+ * signed the pick fails as git's does (`error: gpg failed to sign the data:`, `error: failed
135
+ * to write commit object`; 2.43 adds `fatal: cherry-pick failed`, exit 128, 2.5x exits 1:
136
+ * {@link SigningFailedError}), left in progress and nothing committed.
137
+ */
138
+ setSign(sign: boolean | undefined): this;
139
+ /** `-S<keyid>`: sign with this key (see {@link setSign}). */
140
+ setSigningKey(keyId: string): this;
141
+ /**
142
+ * `-s` / `--signoff`: the committer's `Signed-off-by:` added to each message as git's
143
+ * append_signoff adds it (after a blank line unless the message ends with a trailer block,
144
+ * nothing when that block's last line is it already; `trailer.*` configuration applies).
145
+ * The message is then cleaned up as `whitespace` unless `commit.cleanup` says otherwise.
146
+ */
147
+ setSignoff(signoff: boolean): this;
148
+ /**
149
+ * `-x`: `(cherry picked from commit <id>)` added to each message, after a blank line unless
150
+ * the message ends with a trailer block; the message is then cleaned up as `whitespace`
151
+ * unless `commit.cleanup` says otherwise.
152
+ */
153
+ setRecordOrigin(recordOrigin: boolean): this;
154
+ /** `--allow-empty`: a commit that is empty in itself is committed (default: the pick stops). */
155
+ setAllowEmpty(allowEmpty: boolean): this;
156
+ /** `--allow-empty-message` (kept in `sequencer/opts`; a message is never refused here). */
157
+ setAllowEmptyMessage(allowEmptyMessage: boolean): this;
158
+ /**
159
+ * `--keep-redundant-commits` (git's deprecated `--empty=keep`): a commit whose change is in
160
+ * HEAD already is committed empty; implies {@link setAllowEmpty}.
161
+ */
162
+ setKeepRedundantCommits(keep: boolean): this;
163
+ /**
164
+ * `--empty=<mode>` (git 2.45+): what to do with a commit whose change is in HEAD already:
165
+ * `stop` (the default: the pick stops for `git commit --allow-empty` or `--skip`), `drop`
166
+ * (skipped, with git's `dropping <id> <subject> -- patch contents already upstream` line in
167
+ * the result's output) or `keep` (committed empty, as {@link setKeepRedundantCommits}).
168
+ * A commit empty in itself is still left to {@link setAllowEmpty}.
169
+ */
170
+ setEmpty(mode: "stop" | "drop" | "keep"): this;
171
+ /**
172
+ * `--ff`: a commit whose parent (the `-m` one of a merge) is HEAD, or a root commit on an
173
+ * unborn branch, is fast-forwarded to (reflog `cherry-pick: fast-forward`) instead of
174
+ * picked. Refused with `-s`, `-x`, `--no-commit` and `--edit`, as git refuses them.
175
+ */
176
+ setFastForward(fastForward: boolean): this;
120
177
  /**
121
178
  * The editor of {@link setEdit} (git's `core.editor` / `GIT_EDITOR`): see
122
179
  * `CommitCommand.setEditor`. Without one the template is kept as it is (comments stripped).
@@ -129,6 +186,8 @@ export declare class CherryPickCommand extends GitCommand<CherryPickResult> {
129
186
  */
130
187
  private gitCommit;
131
188
  call(): Promise<CherryPickResult>;
189
+ /** parse_options and verify_opt_compatible: git's refusals before anything is read. */
190
+ private checkOptions;
132
191
  /** What the sparse checkout printed while the result was written. */
133
192
  private readonly sparseWarnings;
134
193
  private run;
@@ -1 +1 @@
1
- {"version":3,"file":"cherry-pick-command.d.ts","sourceRoot":"","sources":["../../src/commands/cherry-pick-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,KAAK,oBAAoB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIvE,OAAO,EAIL,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,iBAAkB,SAAQ,UAAU,CAAC,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CAIvC;IAED,6DAA6D;IAC7D,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIjC;IAED;;;;;OAKG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIjC;IAED;;;;OAIG;IACH,eAAe,CAAC,YAAY,EAAE,OAAO,GAAG,IAAI,CAI3C;IAED,gGAAgG;IAChG,aAAa,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAIvC;IAED,2FAA2F;IAC3F,oBAAoB,CAAC,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAIrD;IAED;;;OAGG;IACH,uBAAuB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAI3C;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAI7C;IAED;;;;OAIG;IACH,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAIzC;IAED;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAIpC;IAED;;;;OAIG;YACW,SAAS;IAwBjB,IAAI,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAYtC;IAED,uFAAuF;IACvF,OAAO,CAAC,YAAY;IAyBpB,qEAAqE;IACrE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;YAEjC,GAAG;CAgDlB"}
@@ -61,6 +61,7 @@ export declare class CleanCommand extends GitCommand<CleanResult> {
61
61
  private ignore;
62
62
  private ignoredOnly;
63
63
  private forceNested;
64
+ private excludePatterns;
64
65
  /**
65
66
  * Limit clean to specific paths.
66
67
  *
@@ -108,6 +109,17 @@ export declare class CleanCommand extends GitCommand<CleanResult> {
108
109
  * @param force Whether to remove nested repositories
109
110
  */
110
111
  setForceNestedRepositories(force: boolean): this;
112
+ /**
113
+ * `-e <pattern>` / `--exclude=<pattern>`, once per pattern: ignore rules added on top of the
114
+ * standard ones (git's `add_pattern` into an `EXC_CMDL` list, asked before `.gitignore`,
115
+ * `info/exclude` and `core.excludesFile`), so a path they exclude is kept as an ignored one
116
+ * (`!<pattern>` re-includes what the standard rules ignore). They apply with
117
+ * {@link setIgnore}(false) (`-x`) too, where they are the only rules, and with
118
+ * {@link setIgnoredOnly} (`-X`) what they exclude is removed.
119
+ *
120
+ * @param patterns The patterns, in command-line order (later ones win)
121
+ */
122
+ setExcludePatterns(patterns: readonly string[]): this;
111
123
  /**
112
124
  * Execute the clean command, as `git clean -f` (`-d` with `setCleanDirectories(true)`,
113
125
  * `-x` with `setIgnore(false)`, `-X` with `setIgnoredOnly(true)`, `-ff` with
@@ -1 +1 @@
1
- {"version":3,"file":"clean-command.d.ts","sourceRoot":"","sources":["../../src/commands/clean-command.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAgB/C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,4CAA4C;IAC5C,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB;;;OAGG;IACH,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,6DAA6D;IAC7D,MAAM,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,YAAa,SAAQ,UAAU,CAAC,WAAW,CAAC;IACvD,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAS;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAIjC;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,I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OAMG;YACW,yBAAyB;IA2CvC;;;;;;OAMG;YACW,WAAW;IA6DzB,4FAA4F;YAC9E,eAAe;IAO7B;;;;;;;;;;;;;;;OAeG;YACW,YAAY;IAyC1B,2FAA2F;IAC3F,OAAO,CAAC,eAAe;CAGxB"}
@@ -71,9 +71,13 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
71
71
  private amend;
72
72
  private noPostRewrite;
73
73
  private noVerify;
74
+ /** `-S[<keyid>]` / `--no-gpg-sign` (undefined: `commit.gpgSign`) */
75
+ private sign?;
74
76
  private allowEmpty;
75
77
  private parents;
76
78
  private onlyPaths;
79
+ /** `--pathspec-from-file` */
80
+ private readonly pathspecFile;
77
81
  private all;
78
82
  private include;
79
83
  private includePaths;
@@ -90,6 +94,24 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
90
94
  private nullTermination;
91
95
  private aheadBehind?;
92
96
  private templateFile?;
97
+ /** `--author=<string>` as given: `Name <email>`, or a pattern of an existing author */
98
+ private authorString?;
99
+ /** `--date=<date>`, and the clock its relative forms count from */
100
+ private forceDate?;
101
+ private signoff;
102
+ private trailerArgs;
103
+ /** `-C <commit>`: the commit whose message (and author) are reused */
104
+ private reuseMessage?;
105
+ /** The commit `-C` (or `-c`) names, read once the options are checked */
106
+ private reused?;
107
+ /** `-c <commit>` */
108
+ private reeditMessageFrom?;
109
+ /** `--fixup=[(amend|reword):]<commit>` as given */
110
+ private fixupSpec?;
111
+ /** `--squash=<commit>` */
112
+ private squashFrom?;
113
+ /** --fixup, parsed when the commit runs */
114
+ private fixup?;
93
115
  /**
94
116
  * Set the commit message, as git's `commit -m` takes it: its last line is ended and it is
95
117
  * cleaned up (`whitespace` by default, see {@link setCleanupMode}), so `"Fix"` is stored
@@ -124,12 +146,49 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
124
146
  */
125
147
  setAllowEmptyMessage(allow: boolean): this;
126
148
  /**
127
- * Set the author identity.
149
+ * Set the author identity (git's `--author`): a name and an email, or one string as git's
150
+ * `--author=<author>` takes it. A string with a `>` is `Name <email>` (refused as
151
+ * `fatal: malformed --author parameter` without a `<`); any other is a pattern looked up as
152
+ * git's `find_author_by_nickname` does: the newest commit of `--all` whose (mailmapped)
153
+ * author matches it as a basic regular expression, ignoring case, gives its `Name <email>`,
154
+ * else `fatal: --author '<x>' is not 'Name <email>' and matches no existing author`.
128
155
  *
129
- * @param name Author name
156
+ * @example
157
+ * ```typescript
158
+ * await git.commit().setAuthor("Ada <ada@example.com>").setMessage("m").call();
159
+ * await git.commit().setAuthor("ada").setMessage("m").call(); // an existing author
160
+ * ```
161
+ *
162
+ * @param name Author name, or the whole `--author` string when `email` is not given
130
163
  * @param email Author email
131
164
  */
132
- setAuthor(name: string, email: string): this;
165
+ setAuthor(name: string, email?: string): this;
166
+ /**
167
+ * `--date=<date>`: the author's date, in any form git's `parse_date` reads (`@<seconds>
168
+ * <offset>`, RFC 2822, ISO 8601, ...) or else as `approxidate` reads it (`yesterday`,
169
+ * `2.weeks.ago`, `noon`), counting from `now` (seconds; default the command's clock, git's
170
+ * `GIT_TEST_DATE_NOW`). A date git cannot read fails as `fatal: invalid date format: <date>`.
171
+ */
172
+ setDate(date: string, options?: {
173
+ now?: number;
174
+ }): this;
175
+ /**
176
+ * `-s` / `--signoff`: a `Signed-off-by: <committer>` trailer added to the message as git's
177
+ * `append_signoff` adds it (after a blank line unless the message ends with trailers; none
178
+ * when the last trailer is that line already).
179
+ */
180
+ setSignoff(signoff: boolean): this;
181
+ /**
182
+ * `--trailer <token>[(=|:)<value>]`: a trailer added to the message as `git
183
+ * interpret-trailers --no-divider --trailer` adds it (`trailer.*` configuration applies).
184
+ * Each call adds one, in order.
185
+ */
186
+ addTrailer(trailer: string): this;
187
+ /**
188
+ * `-C <commit>`: the commit's message taken as it is, and its author (name, email and
189
+ * date) unless {@link setResetAuthor}. With {@link setEdit}(true) it is `-c`.
190
+ */
191
+ setReuseMessage(commit: string): this;
133
192
  /**
134
193
  * Set the author identity from a PersonIdent.
135
194
  *
@@ -150,8 +209,8 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
150
209
  */
151
210
  setCommitterIdent(committer: PersonIdent): this;
152
211
  /**
153
- * `--reset-author`: an amended commit, or the commit that concludes a cherry-pick, is
154
- * authored as a new one (the author resolved as git resolves it, dated now) instead of
212
+ * `--reset-author`: an amended commit, a `-C` commit, or the commit that concludes a
213
+ * cherry-pick, is authored as a new one (the author resolved as git resolves it, dated now) instead of
155
214
  * keeping the earlier commit's author.
156
215
  *
157
216
  * @param reset Whether to reset the author
@@ -167,6 +226,19 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
167
226
  * (`prepare-commit-msg` and `post-commit` still do, as in git).
168
227
  */
169
228
  setNoVerify(noVerify: boolean): this;
229
+ /**
230
+ * `-S` (true) / `--no-gpg-sign` (false): whether to sign the commit; undefined (the
231
+ * default) leaves it to `commit.gpgSign`. The commit is signed with the default key
232
+ * (`user.signingKey`, else as `gpg.format` says) through the host's signer
233
+ * (`GitHostEnvironment.signer`) and carries the signature in its `gpgsig` header
234
+ * ({@link signCommit}). Without a signer, or when it fails, the commit fails as git fails
235
+ * when gpg cannot sign (`error: gpg failed to sign the data:`, `fatal: failed to write
236
+ * commit object`, exit 128: {@link SigningFailedError}) once everything before the signing
237
+ * is done, and nothing is committed.
238
+ */
239
+ setSign(sign: boolean | undefined): this;
240
+ /** `-S<keyid>`: sign with this key (see {@link setSign}). */
241
+ setSigningKey(keyId: string): this;
170
242
  /**
171
243
  * Set whether to amend the previous commit.
172
244
  *
@@ -215,6 +287,24 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
215
287
  * @throws Error if combined with --all mode
216
288
  */
217
289
  setOnly(...paths: string[]): this;
290
+ /**
291
+ * `--pathspec-from-file` (and `--pathspec-file-nul` with `nul`): the pathspec elements of
292
+ * `content`, one per line (a line starting with `"` unquoted as a C string), or separated
293
+ * by NUL with `nul`, committed as {@link setOnly} paths (or {@link setInclude}'s with
294
+ * `setInclude()`). As git's prepare_index: refused with {@link setAll} ("options
295
+ * '--pathspec-from-file' and '-a' cannot be used together") and beside paths given to
296
+ * `setOnly`/`setInclude` ("'--pathspec-from-file' and pathspec arguments cannot be used
297
+ * together"); an empty file commits the index as it is (with `setInclude()`: "No paths
298
+ * with --include/--only does not make sense.").
299
+ *
300
+ * @example
301
+ * ```typescript
302
+ * await git.commit().setPathspecFromFile("src/a.ts\n").setMessage("Fix a").call();
303
+ * ```
304
+ *
305
+ * @throws InvalidArgumentError "fatal: line is badly quoted: <line>"
306
+ */
307
+ setPathspecFromFile(content: string | Uint8Array, nul?: boolean): this;
218
308
  /**
219
309
  * Set whether to auto-stage modified tracked files before committing.
220
310
  *
@@ -294,6 +384,35 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
294
384
  * ```
295
385
  */
296
386
  setTemplate(path: string): this;
387
+ /**
388
+ * `-c <commit>` / `--reedit-message=<commit>`: as {@link setReuseMessage} (or `-C` with {@link setEdit}(true)), with the message
389
+ * then given to the editor ({@link setEditor}; without one it is taken as it is).
390
+ */
391
+ setReeditMessage(commit: string): this;
392
+ /**
393
+ * `--fixup=[(amend|reword):]<commit>`: a commit `rebase --autosquash` folds into `commit`.
394
+ * Plain, its message is `fixup! <subject>` (then the {@link setMessage} text, if any) and
395
+ * no editor runs. `amend:<commit>` makes `amend! <subject>` followed by the commit's whole
396
+ * message (its body alone when it is an `amend!` commit itself) for the editor to change,
397
+ * empty commits allowed and a message given with {@link setMessage} refused; `reword:` is
398
+ * `amend:` committing HEAD's tree (only the message changes), refused with paths, `-a`,
399
+ * `-i`, and during a merge or cherry-pick. An `amend!` message without a body is refused
400
+ * (`Aborting commit due to empty commit message body.`).
401
+ *
402
+ * @example
403
+ * ```typescript
404
+ * await git.commit().setFixup("HEAD~1").call();
405
+ * await git.commit().setFixup("reword:HEAD~1").setEditor(edit).call();
406
+ * ```
407
+ */
408
+ setFixup(commit: string): this;
409
+ /**
410
+ * `--squash=<commit>`: the message starts with `squash! <subject>` and a blank line, then
411
+ * the message given ({@link setMessage}, {@link setReuseMessage}: only `squash! ` when it
412
+ * names the same commit as given here), else what the editor makes of it. Refused with
413
+ * {@link setFixup}.
414
+ */
415
+ setSquash(commit: string): this;
297
416
  /** `-e` / `--no-edit`: edit a given message too, or never edit (default: edit when none is given). */
298
417
  setEdit(edit: boolean): this;
299
418
  /** `--status` / `--no-status`: the status in the editor's template (default `commit.status`, true). */
@@ -329,12 +448,30 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
329
448
  callDryRun(): Promise<CommitDryRunResult>;
330
449
  /** git's use_editor: an editor is set, and no message is given or `-e` asks for it. */
331
450
  private usesEditor;
451
+ /**
452
+ * git's use_editor before `-e`/`--no-edit`: no message given (`-m`, `-C`) and no plain
453
+ * `--fixup`, whose messages are taken as they are.
454
+ */
455
+ private editsByDefault;
456
+ /** The revision `-c` or `-C` names (git's use_message), as given. */
457
+ private reusedName;
332
458
  /**
333
459
  * prepare_to_commit with an editor: COMMIT_EDITMSG written with the message so far and
334
460
  * (`commit.status`) the commented help, identities and status of the template, the
335
461
  * editor run over it, and what it left cleaned up as the commit message.
336
462
  */
337
463
  private editMessage;
464
+ /**
465
+ * `-s`: the message so far with the committer's sign-off (append_signoff with
466
+ * ignored_log_message_bytes: before trailing comments and the scissors line).
467
+ */
468
+ private signedOff;
469
+ /**
470
+ * `--trailer`: COMMIT_EDITMSG (written as `message`) with the trailers added, as git's
471
+ * amend_file_with_trailers (2.43: a child `interpret-trailers --in-place --no-divider`,
472
+ * which takes an empty argument for nothing and refuses none); the new text, written back.
473
+ */
474
+ private withTrailers;
338
475
  /**
339
476
  * The commit template (`-t`, else `commit.template`, `~/` expanded) read through the host,
340
477
  * undefined when none is set; one that cannot be read fails as git's `die_errno`.
@@ -377,6 +514,53 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
377
514
  * tracked paths are staged until HEAD has moved.
378
515
  */
379
516
  private commitIncluded;
517
+ /**
518
+ * parse_and_validate_options' handling of `--author`, `-m` with `-C`, `--reset-author`,
519
+ * and `-C`'s commit (read_commit_message), in git's order.
520
+ */
521
+ private parseAuthorOptions;
522
+ /** A blob's bytes, undefined when it cannot be read. */
523
+ private readBlobBytes;
524
+ /**
525
+ * `--date` (parse_force_date): the date as `parse_date` reads it, else as `approxidate`
526
+ * does, refused as git refuses it.
527
+ */
528
+ private forcedDate;
529
+ /**
530
+ * builtin/commit.c's find_author_by_nickname: the first commit of `rev-list --all -i
531
+ * --author=<name>` (newest first, the mailmap applied before matching) gives `%aN <%aE>`.
532
+ */
533
+ private findAuthorByNickname;
534
+ /**
535
+ * parse_and_validate_options for `-C`, `-c`, `--fixup` and `--squash`, in git's order: the
536
+ * incompatible options, the commit `-C`/`-c` names read (`could not lookup commit`), then
537
+ * `--fixup`'s suboption (`amend:`/`reword:` allow empty commits; `reword:` refuses paths,
538
+ * `-a`, `-i` and a merge or cherry-pick in progress).
539
+ */
540
+ private checkReuseOptions;
541
+ /** git's lookup_commit_reference_by_name, dying as `could not lookup commit '<name>'`. */
542
+ private lookupCommit;
543
+ /**
544
+ * A commit's message and author as `git commit` reads another commit's (read_commit_message,
545
+ * format_commit_message): converted from its `encoding` header into the commit output
546
+ * encoding (`i18n.commitEncoding`, else UTF-8). Ours writes UTF-8 messages only, so a
547
+ * commit is converted only when that encoding is UTF-8.
548
+ */
549
+ private inCommitOutputEncoding;
550
+ /** The stored bytes of an object (undefined where the store cannot give them). */
551
+ private readRawObject;
552
+ /**
553
+ * The start of prepare_to_commit's message from `-C`/`-c`/`--fixup`/`--squash`: the
554
+ * `squash! ` subject (`prefix`, put before whatever message follows) and, for `-C`/`-c`
555
+ * and `--fixup`, the text that replaces the other sources (undefined: they apply).
556
+ */
557
+ private reusedMessage;
558
+ /**
559
+ * prepare_index's `--pathspec-from-file`: refused with `-a` and beside pathspec arguments
560
+ * ({@link setOnly}, {@link setInclude}); its elements are then the paths of `-i`, else of
561
+ * `--only`.
562
+ */
563
+ private applyPathspecFile;
380
564
  /** `-i <paths>`: parse_and_validate_options' and prepare_index's refusals. */
381
565
  private checkIncludeOptions;
382
566
  /**
@@ -401,6 +585,8 @@ export declare class CommitCommand extends GitCommand<CommitResult> {
401
585
  private refuseNothingToCommit;
402
586
  /** The commit of `treeId` made, HEAD moved to it, and what was in progress ended. */
403
587
  private finishCommit;
588
+ /** The host directory the signing program runs in, if the repository has one. */
589
+ private signingCwd;
404
590
  /**
405
591
  * The variables of the commit hooks (git's `run_commit_hook`): `GIT_INDEX_FILE` names the
406
592
  * index the commit records (the lock `-a` and a partial commit write; git's false index of
@@ -1 +1 @@
1
- {"version":3,"file":"commit-command.d.ts","sourceRoot":"","sources":["../../src/commands/commit-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAEX,KAAK,QAAQ,EACb,KAAK,WAAW,EAEjB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAKL,KAAK,QAAQ,EAEd,MAAM,+BAA+B,CAAC;AAevC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAa/C,OAAO,EACL,WAAW,EAOZ,MAAM,sBAAsB,CAAC;AAc9B,OAAO,EAIL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAC;AAI7B;;;;;GAKG;AACH,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,yCAAyC;IACzC,EAAE,EAAE,QAAQ,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,aAAc,SAAQ,UAAU,CAAC,YAAY,CAAC;IACzD,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,MAAM,CAAC,CAAc;IAC7B,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,+DAA+D;IAC/D,OAAO,CAAC,UAAU,CAAC,CAAkC;IACrD,sEAAsE;IACtE,OAAO,CAAC,aAAa,CAAC,CAAkC;IACxD,OAAO,CAAC,WAAW,CAAS;IAC5B,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B;IA+DlC,4FAA4F;YAC9E,eAAe;IAI7B,2EAA2E;YAC7D,eAAe;IAoB7B;;;OAGG;YACW,QAAQ;IAiCtB;;;;;OAKG;YACW,mBAAmB;IAyBjC;;OAEG;IACH,OAAO,CAAC,mBAAmB;CAQ5B;AAyHD;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAE5E,kFAAkF;AAClF,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,33 @@
1
+ /** The forms of `--fixup`: `fixup! ` commits, or `amend! ` ones (`amend:` and `reword:`). */
2
+ export type FixupKind = "fixup" | "amend" | "reword";
3
+ /**
4
+ * `--fixup=<spec>` as parse_and_validate_options reads it: a run of ASCII letters followed by
5
+ * a colon is a suboption (`amend:`/`reword:`; any other name is git's `unknown option`),
6
+ * otherwise the whole spec names the commit.
7
+ */
8
+ export declare function parseFixupSpec(spec: string): {
9
+ kind: FixupKind;
10
+ target: string;
11
+ } | {
12
+ unknown: string;
13
+ target: string;
14
+ };
15
+ /**
16
+ * git's die_for_incompatible_opt4: the options given (`[name, given]`, in git's order),
17
+ * refused when more than one is.
18
+ */
19
+ export declare function refuseIncompatible(options: Array<[string, boolean]>): void;
20
+ /** git's skip_blank_lines: the text after its leading blank lines. */
21
+ export declare function skipBlankLines(text: string): string;
22
+ /** git's commit_subject_length: the length of the first paragraph's lines (with their newlines). */
23
+ export declare function commitSubjectLength(text: string): number;
24
+ /** pretty.c's `%b`: the message after its subject paragraph and the blank lines around it. */
25
+ export declare function bodyOf(message: string): string;
26
+ /**
27
+ * prepare_amend_commit: the amended commit's whole message (`%B`), or only its body (`%b`)
28
+ * when its subject already starts with `amend!` (an `amend!` commit amended again).
29
+ */
30
+ export declare function amendCommitText(message: string): string;
31
+ /** The first line of an autosquash commit (`fixup! %s`, `amend! %s`, `squash! %s`) and a blank line. */
32
+ export declare function autosquashSubject(prefix: "fixup" | "amend" | "squash", message: string): string;
33
+ //# sourceMappingURL=commit-reuse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commit-reuse.d.ts","sourceRoot":"","sources":["../../src/commands/commit-reuse.ts"],"names":[],"mappings":"AAOA,6FAA6F;AAC7F,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAO3E;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,CAS1E;AAOD,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASnD;AAED,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQxD;AAED,8FAA8F;AAC9F,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAU9C;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wGAAwG;AACxG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE/F"}