git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH RFC 11/11] builtin/history: implement "split" subcommand

From
Jean-Noël AVILA <jn.avila@free.fr>
Date
Aug 23, 2025, 16:37 UTC
Message-ID
<3298210.5fSG56mABF@cayenne>
In-Reply-To
<20250819-b4-pks-history-builtin-v1-11-9b77c32688fe@pks.im>
On Tuesday, 19 August 2025 12:56:07 CEST Patrick Steinhardt wrote:
Show 36 quoted lines
> It is quite a common use case that one wants to split up one commit into
> multiple commits by moving parts of the changes of the original commit
> out of it into a separate commit. This is quite an involved operation
> though:
> 
>   1. Identify the commit in question that is to be dropped.
> 
>   2. Perform an interactive rebase on top of that commit's parent.
> 
>   3. Modify the instruction sheet to "edit" the commit that is to be
>      split up.
> 
>   4. Drop the commit via "git reset HEAD~".
> 
>   5. Stage changes that should go into the first commit and commit it.
> 
>   6. Stage changes that should go into the second commit and commit it.
> 
>   7. Finalize the rebase.
> 
> This is quite complex, and overall I would claim that most people who
> are not experts in Git would struggle with this flow.
> 
> Introduce a new "split" subcommand for git-history(1) to make this way
> easier. All the user needs to do is to say `git history split $COMMIT`.
> From hereon, Git asks the user which parts of the commit shall be moved
> out into a separate commit and, once done, asks the user for the commit
> message. Git then creates that split-out commit and applies the original
> commit on top of it.
> 
> Signed-off-by: Patrick Steinhardt <ps@pks.im>
> ---
>  Documentation/git-history.adoc |  59 ++++++++
>  builtin/history.c              | 245 +++++++++++++++++++++++++++++++++
>  t/meson.build                  |   1 +
>  t/t3452-history-split.sh       | 304 ++++++++++++++++++++++++++++++++++++++
+++
Show 11 quoted lines
>  4 files changed, 609 insertions(+)
> 
> diff --git a/Documentation/git-history.adoc b/Documentation/git-history.adoc
> index 6e8b4e1326..f0f1f2a093 100644
> --- a/Documentation/git-history.adoc
> +++ b/Documentation/git-history.adoc
> @@ -10,6 +10,7 @@ SYNOPSIS
>  [synopsis]
>  git history drop [<options>] <revision>
>  git history reorder [<options>] <revision> --(before|after)=<revision>
> +git history split [<options>] <revision> [--] [<pathspec>...]

I just realized that there are no other <options> available for the first two commands! So maybe simplify the synopsis for the time being.

The --message is specific to split, so maybe also cite is specifically here. I

> 
>  DESCRIPTION
>  -----------
> @@ -47,6 +48,26 @@ reorder <revision> (--before=<revision>|--
after=<revision>)::
>  	commit. The commits must be related to one another and must be
>  	reachable from the current `HEAD` commit.
> 
> +split <revision> [--message=<message>] [--] [<pathspec>...]::

missing backticks. Also the order of options and <commit> are different from the general synopsis. Is this order allowed?

> +	Interactively split up the commit into two commits by choosing

You can use the placeholder in this sentence: "Interactively split up <commit>..."

Show 10 quoted lines
> +	hunks introduced by it that will be moved into the new split-out
> +	commit. These hunks will then be written into a new commit that
> +	becomes the parent of the previous commit. The original commit
> +	stays intact, except that its parent will be the newly split-out
> +	commit.
> ++
> +The commit message of the new commit will be asked for by launching the
> +configured editor. Authorship of the commit will be the same as for the
> +original commit.
> ++
I guess this only happens if --message is not passed?
> +If passed, _<pathspec>_ can be used to limit which changes shall be split 
out
> +of the original commit. Files not matching any of the pathspecs will remain
> +part of the original commit. For more details about the _<pathspec>_ 
syntax,
> +see the 'pathspec' entry.

You may have meant: + For more details, see the 'pathspec' entry in linkgit:gitglossary[7].

Show 51 quoted lines
> ++
> +It is invalid to select either all or no hunks, as that would lead to
> +one of the commits becoming empty.
> +
>  EXAMPLES
>  --------
> 
> @@ -88,6 +109,44 @@ f44a46e third
>  bf7438d first
>  ----------
> 
> +* Split a commit.
> ++
> +----------
> +$ git log --stat --oneline
> +3f81232 (HEAD -> main) original
> + bar | 1 +
> + foo | 1 +
> + 2 files changed, 2 insertions(+)
> +
> +$ git history split HEAD --message="split-out commit"
> +diff --git a/bar b/bar
> +new file mode 100644
> +index 0000000..5716ca5
> +--- /dev/null
> ++++ b/bar
> +@@ -0,0 +1 @@
> ++bar
> +(1/1) Stage addition [y,n,q,a,d,e,p,?]? y
> +
> +diff --git a/foo b/foo
> +new file mode 100644
> +index 0000000..257cc56
> +--- /dev/null
> ++++ b/foo
> +@@ -0,0 +1 @@
> ++foo
> +(1/1) Stage addition [y,n,q,a,d,e,p,?]? n
> +
> +$ git log --stat --oneline
> +7cebe64 (HEAD -> main) original
> + foo | 1 +
> + 1 file changed, 1 insertion(+)
> +d1582f3 split-out commit
> + bar | 1 +
> + 1 file changed, 1 insertion(+)
> +----------
> +
> +
>  CONFIGURATION
>  -------------
Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 26 of 325 in “Introduce git-history(1) command for easy history editing”
  1. 00/11 Introduce git-history(1) command for easy history editingPatrick Steinhardt, Aug 19, 2025
  2. 01/11 sequencer: optionally skip printing commit summaryPatrick Steinhardt, Aug 19, 2025
  3. 02/11 sequencer: add option to rewind HEAD after picking commitsPatrick Steinhardt, Aug 19, 2025
  4. 03/11 cache-tree: allow writing in-memory index as treePatrick Steinhardt, Aug 19, 2025
  5. 04/11 builtin: add new "history" commandPatrick Steinhardt, Aug 19, 2025
  6. 05/11 builtin/history: implement "drop" subcommandPatrick Steinhardt, Aug 19, 2025
  7. Ben KnobleAug 20, 2025
  8. Patrick SteinhardtAug 22, 2025
  9. Jean-Noël AVILAAug 23, 2025
  10. Patrick SteinhardtAug 24, 2025
  11. 06/11 builtin/history: implement "reorder" subcommandPatrick Steinhardt, Aug 19, 2025
  12. Jean-Noël AVILAAug 23, 2025
  13. Kristoffer HaugsbakkAug 24, 2025
  14. Patrick SteinhardtAug 24, 2025
  15. 07/11 add-patch: split out header from "add-interactive.h"Patrick Steinhardt, Aug 19, 2025
  16. 08/11 add-patch: split out `struct interactive_options`Patrick Steinhardt, Aug 19, 2025
  17. 09/11 add-patch: remove dependency on "add-interactive" subsystemPatrick Steinhardt, Aug 19, 2025
  18. 10/11 add-patch: add support for in-memory index patchingPatrick Steinhardt, Aug 19, 2025
  19. D. Ben KnobleAug 20, 2025
  20. Patrick SteinhardtAug 22, 2025
  21. 11/11 builtin/history: implement "split" subcommandPatrick Steinhardt, Aug 19, 2025
  22. D. Ben KnobleAug 20, 2025
  23. Patrick SteinhardtAug 22, 2025
  24. Junio C HamanoAug 22, 2025
  25. Patrick SteinhardtAug 24, 2025
  26. Jean-Noël AVILAAug 23, 2025
  27. Patrick SteinhardtAug 24, 2025
  28. D. Ben KnobleAug 19, 2025
  29. Patrick SteinhardtAug 20, 2025
  30. Ben KnobleAug 20, 2025
  31. Junio C HamanoAug 20, 2025
  32. Ben KnobleAug 20, 2025
  33. Patrick SteinhardtAug 22, 2025
  34. Junio C HamanoAug 22, 2025
  35. Sergey OrganovAug 21, 2025
  36. Ben KnobleAug 21, 2025
  37. Sergey OrganovAug 21, 2025
  38. Martin von ZweigbergkAug 24, 2025
  39. Patrick SteinhardtAug 24, 2025
  40. SZEDER GáborSep 17, 2025
  41. Matthias BeyerDec 3, 2025
  42. Phillip WoodDec 10, 2025
  43. Matthias BeyerDec 10, 2025
  44. Phillip WoodDec 10, 2025
  45. Junio C HamanoDec 10, 2025
  46. Patrick SteinhardtDec 19, 2025
  47. SZEDER GáborDec 19, 2025
  48. Patrick SteinhardtDec 19, 2025
  49. Elijah NewrenDec 19, 2025
  50. Elijah NewrenDec 20, 2025
  51. Patrick SteinhardtJan 6, 2026
  52. Phillip WoodDec 22, 2025
  53. Patrick SteinhardtJan 6, 2026
  54. D. Ben KnobleDec 22, 2025
  55. Martin von ZweigbergkDec 10, 2025
  56. Elijah NewrenDec 10, 2025
  57. Martin von ZweigbergkDec 10, 2025
  58. Elijah NewrenDec 10, 2025
  59. Kristoffer HaugsbakkDec 15, 2025
  60. Kristoffer HaugsbakkAug 24, 2025
  61. Patrick SteinhardtAug 24, 2025
  62. 00/16 Introduce git-history(1) command for easy history editingPatrick Steinhardt, Aug 24, 2025
  63. 01/16 sequencer: optionally skip printing commit summaryPatrick Steinhardt, Aug 24, 2025
  64. 02/16 sequencer: add option to rewind HEAD after picking commitsPatrick Steinhardt, Aug 24, 2025
  65. 03/16 sequencer: introduce new history editing modePatrick Steinhardt, Aug 24, 2025
  66. D. Ben KnobleAug 26, 2025
  67. Patrick SteinhardtSep 3, 2025
  68. 04/16 sequencer: stop using `the_repository` in `sequencer_remove_state()`Patrick Steinhardt, Aug 24, 2025
  69. 05/16 cache-tree: allow writing in-memory index as treePatrick Steinhardt, Aug 24, 2025
  70. Junio C HamanoAug 25, 2025
  71. Patrick SteinhardtSep 3, 2025
  72. 06/16 builtin: add new "history" commandPatrick Steinhardt, Aug 24, 2025
  73. 07/16 builtin/history: introduce subcommands to manage interrupted rewritesPatrick Steinhardt, Aug 24, 2025
  74. 08/16 builtin/history: implement "drop" subcommandPatrick Steinhardt, Aug 24, 2025
  75. 09/16 builtin/history: implement "reorder" subcommandPatrick Steinhardt, Aug 24, 2025
  76. D. Ben KnobleAug 26, 2025
  77. Patrick SteinhardtSep 3, 2025
  78. 10/16 add-patch: split out header from "add-interactive.h"Patrick Steinhardt, Aug 24, 2025
  79. Junio C HamanoAug 25, 2025
  80. 11/16 add-patch: split out `struct interactive_options`Patrick Steinhardt, Aug 24, 2025
  81. 12/16 add-patch: remove dependency on "add-interactive" subsystemPatrick Steinhardt, Aug 24, 2025
  82. Junio C HamanoAug 25, 2025
  83. 13/16 add-patch: add support for in-memory index patchingPatrick Steinhardt, Aug 24, 2025
  84. 14/16 wt-status: provide function to expose status for treesPatrick Steinhardt, Aug 24, 2025
  85. 15/16 builtin/history: implement "split" subcommandPatrick Steinhardt, Aug 24, 2025
  86. Kristoffer HaugsbakkAug 24, 2025
  87. Patrick SteinhardtSep 3, 2025
  88. D. Ben KnobleAug 26, 2025
  89. Patrick SteinhardtSep 3, 2025
  90. D. Ben KnobleSep 3, 2025
  91. Patrick SteinhardtSep 4, 2025
  92. D. Ben KnobleSep 12, 2025
  93. Patrick SteinhardtSep 15, 2025
  94. Ben KnobleSep 15, 2025
  95. 16/16 builtin/history: implement "reword" subcommandPatrick Steinhardt, Aug 24, 2025
  96. Kristoffer HaugsbakkAug 24, 2025
  97. Patrick SteinhardtSep 3, 2025
  98. D. Ben KnobleSep 3, 2025
  99. Patrick SteinhardtSep 4, 2025
  100. 00/18 Introduce git-history(1) command for easy history editingPatrick Steinhardt, Sep 4, 2025
  101. 01/18 sequencer: optionally skip printing commit summaryPatrick Steinhardt, Sep 4, 2025
  102. Phillip WoodSep 10, 2025
  103. Patrick SteinhardtSep 15, 2025
  104. 02/18 sequencer: add option to rewind HEAD after picking commitsPatrick Steinhardt, Sep 4, 2025
  105. Phillip WoodSep 10, 2025
  106. Patrick SteinhardtSep 15, 2025
  107. Phillip WoodSep 15, 2025
  108. 03/18 sequencer: introduce new history editing modePatrick Steinhardt, Sep 4, 2025
  109. 04/18 sequencer: stop using `the_repository` in `sequencer_remove_state()`Patrick Steinhardt, Sep 4, 2025
  110. 05/18 sequencer: wire up "rewritten-hook" for REPLAY_HISTORY_EDITPatrick Steinhardt, Sep 4, 2025
  111. 06/18 cache-tree: allow writing in-memory index as treePatrick Steinhardt, Sep 4, 2025
  112. 07/18 builtin: add new "history" commandPatrick Steinhardt, Sep 4, 2025
  113. 08/18 builtin/history: introduce subcommands to manage interrupted rewritesPatrick Steinhardt, Sep 4, 2025
  114. 09/18 builtin/history: implement "drop" subcommandPatrick Steinhardt, Sep 4, 2025
  115. 10/18 builtin/history: implement "reorder" subcommandPatrick Steinhardt, Sep 4, 2025
  116. 11/18 add-patch: split out header from "add-interactive.h"Patrick Steinhardt, Sep 4, 2025
  117. 12/18 add-patch: split out `struct interactive_options`Patrick Steinhardt, Sep 4, 2025
  118. 13/18 add-patch: remove dependency on "add-interactive" subsystemPatrick Steinhardt, Sep 4, 2025
  119. 14/18 add-patch: add support for in-memory index patchingPatrick Steinhardt, Sep 4, 2025
  120. 15/18 wt-status: provide function to expose status for treesPatrick Steinhardt, Sep 4, 2025
  121. 16/18 sequencer: allow callers to provide mappings for the old commitPatrick Steinhardt, Sep 4, 2025
  122. 17/18 builtin/history: implement "split" subcommandPatrick Steinhardt, Sep 4, 2025
  123. Phillip WoodSep 10, 2025
  124. Patrick SteinhardtSep 15, 2025
  125. 18/18 builtin/history: implement "reword" subcommandPatrick Steinhardt, Sep 4, 2025
  126. Phillip WoodSep 10, 2025
  127. Patrick SteinhardtSep 15, 2025
  128. Phillip WoodSep 15, 2025
  129. Patrick SteinhardtSep 16, 2025
  130. Phillip WoodSep 16, 2025
  131. Kristoffer HaugsbakkSep 5, 2025
  132. Patrick SteinhardtSep 5, 2025
  133. Elijah NewrenSep 7, 2025
  134. Phillip WoodSep 10, 2025
  135. Phillip WoodSep 10, 2025
  136. Patrick SteinhardtSep 15, 2025
  137. Oswald BuddenhagenSep 16, 2025
  138. Junio C HamanoSep 10, 2025
  139. Patrick SteinhardtSep 15, 2025
  140. 00/12 Introduce git-history(1) command for easy history editingPatrick Steinhardt, Oct 1, 2025
  141. 01/12 wt-status: provide function to expose status for treesPatrick Steinhardt, Oct 1, 2025
  142. Karthik NayakOct 14, 2025
  143. Patrick SteinhardtOct 21, 2025
  144. 02/12 replay: extract logic to pick commitsPatrick Steinhardt, Oct 1, 2025
  145. 03/12 replay: stop using `the_repository`Patrick Steinhardt, Oct 1, 2025
  146. Karthik NayakOct 14, 2025
  147. 04/12 replay: parse commits before dereferencing themPatrick Steinhardt, Oct 1, 2025
  148. Karthik NayakOct 14, 2025
  149. 05/12 builtin: add new "history" commandPatrick Steinhardt, Oct 1, 2025
  150. Kristoffer HaugsbakkOct 2, 2025
  151. Karthik NayakOct 14, 2025
  152. Patrick SteinhardtOct 21, 2025
  153. Junio C HamanoOct 22, 2025
  154. Karthik NayakOct 22, 2025
  155. 06/12 builtin/history: implement "reword" subcommandPatrick Steinhardt, Oct 1, 2025
  156. Karthik NayakOct 14, 2025
  157. Patrick SteinhardtOct 21, 2025
  158. 07/12 add-patch: split out header from "add-interactive.h"Patrick Steinhardt, Oct 1, 2025
  159. 08/12 add-patch: split out `struct interactive_options`Patrick Steinhardt, Oct 1, 2025
  160. Kristoffer HaugsbakkOct 2, 2025
  161. Karthik NayakOct 14, 2025
  162. Patrick SteinhardtOct 21, 2025
  163. 09/12 add-patch: remove dependency on "add-interactive" subsystemPatrick Steinhardt, Oct 1, 2025
  164. 10/12 add-patch: add support for in-memory index patchingPatrick Steinhardt, Oct 1, 2025
  165. Kristoffer HaugsbakkOct 2, 2025
  166. Patrick SteinhardtOct 2, 2025
  167. Karthik NayakOct 14, 2025
  168. 11/12 cache-tree: allow writing in-memory index as treePatrick Steinhardt, Oct 1, 2025
  169. 12/12 builtin/history: implement "split" subcommandPatrick Steinhardt, Oct 1, 2025
  170. Karthik NayakOct 14, 2025
  171. Patrick SteinhardtOct 21, 2025
  172. D. Ben KnobleOct 21, 2025
  173. Patrick SteinhardtOct 27, 2025
  174. Karthik NayakOct 14, 2025
  175. Junio C HamanoOct 14, 2025
  176. 00/12 Introduce git-history(1) command for easy history editingPatrick Steinhardt, Oct 21, 2025
  177. 01/12 wt-status: provide function to expose status for treesPatrick Steinhardt, Oct 21, 2025
  178. Junio C HamanoOct 21, 2025
  179. 02/12 replay: extract logic to pick commitsPatrick Steinhardt, Oct 21, 2025
  180. Junio C HamanoOct 21, 2025
  181. 03/12 replay: stop using `the_repository`Patrick Steinhardt, Oct 21, 2025
  182. Junio C HamanoOct 21, 2025
  183. Junio C HamanoOct 21, 2025
  184. 04/12 replay: parse commits before dereferencing themPatrick Steinhardt, Oct 21, 2025
  185. Junio C HamanoOct 21, 2025
  186. Patrick SteinhardtOct 27, 2025
  187. 05/12 builtin: add new "history" commandPatrick Steinhardt, Oct 21, 2025
  188. Junio C HamanoOct 21, 2025
  189. Patrick SteinhardtOct 27, 2025
  190. 06/12 builtin/history: implement "reword" subcommandPatrick Steinhardt, Oct 21, 2025
  191. Junio C HamanoOct 21, 2025
  192. D. Ben KnobleOct 21, 2025
  193. Patrick SteinhardtOct 27, 2025
  194. Patrick SteinhardtOct 27, 2025
  195. 07/12 add-patch: split out header from "add-interactive.h"Patrick Steinhardt, Oct 21, 2025
  196. 08/12 add-patch: split out `struct interactive_options`Patrick Steinhardt, Oct 21, 2025
  197. 09/12 add-patch: remove dependency on "add-interactive" subsystemPatrick Steinhardt, Oct 21, 2025
  198. 10/12 add-patch: add support for in-memory index patchingPatrick Steinhardt, Oct 21, 2025
  199. 11/12 cache-tree: allow writing in-memory index as treePatrick Steinhardt, Oct 21, 2025
  200. 12/12 builtin/history: implement "split" subcommandPatrick Steinhardt, Oct 21, 2025
  201. Junio C HamanoOct 21, 2025
  202. 00/11 Introduce git-history(1) command for easy history editingPatrick Steinhardt, Oct 27, 2025
  203. 01/11 wt-status: provide function to expose status for treesPatrick Steinhardt, Oct 27, 2025
  204. 02/11 replay: extract logic to pick commitsPatrick Steinhardt, Oct 27, 2025
  205. Phillip WoodNov 17, 2025
  206. Elijah NewrenNov 20, 2025
  207. 03/11 replay: stop using `the_repository`Patrick Steinhardt, Oct 27, 2025
  208. Elijah NewrenNov 20, 2025
  209. Patrick SteinhardtDec 2, 2025
  210. 04/11 builtin: add new "history" commandPatrick Steinhardt, Oct 27, 2025
  211. Phillip WoodNov 17, 2025
  212. Patrick SteinhardtDec 2, 2025
  213. Elijah NewrenNov 20, 2025
  214. Patrick SteinhardtDec 2, 2025
  215. D. Ben KnobleDec 2, 2025
  216. Patrick SteinhardtDec 3, 2025
  217. 05/11 builtin/history: implement "reword" subcommandPatrick Steinhardt, Oct 27, 2025
  218. Phillip WoodNov 17, 2025
  219. Patrick SteinhardtDec 2, 2025
  220. Phillip WoodDec 10, 2025
  221. Elijah NewrenNov 20, 2025
  222. Patrick SteinhardtDec 2, 2025
  223. SZEDER GáborNov 25, 2025
  224. Patrick SteinhardtDec 2, 2025
  225. 06/11 add-patch: split out header from "add-interactive.h"Patrick Steinhardt, Oct 27, 2025
  226. Elijah NewrenNov 20, 2025
  227. 07/11 add-patch: split out `struct interactive_options`Patrick Steinhardt, Oct 27, 2025
  228. Elijah NewrenNov 20, 2025
  229. Phillip WoodNov 20, 2025
  230. Patrick SteinhardtDec 2, 2025
  231. 08/11 add-patch: remove dependency on "add-interactive" subsystemPatrick Steinhardt, Oct 27, 2025
  232. Elijah NewrenNov 20, 2025
  233. Phillip WoodNov 20, 2025
  234. 09/11 add-patch: add support for in-memory index patchingPatrick Steinhardt, Oct 27, 2025
  235. Elijah NewrenNov 20, 2025
  236. Phillip WoodNov 20, 2025
  237. Patrick SteinhardtDec 2, 2025
  238. 10/11 cache-tree: allow writing in-memory index as treePatrick Steinhardt, Oct 27, 2025
  239. Elijah NewrenNov 20, 2025
  240. 11/11 builtin/history: implement "split" subcommandPatrick Steinhardt, Oct 27, 2025
  241. Elijah NewrenNov 20, 2025
  242. Patrick SteinhardtDec 2, 2025
  243. Phillip WoodNov 21, 2025
  244. Patrick SteinhardtDec 2, 2025
  245. Phillip WoodDec 10, 2025
  246. Patrick SteinhardtDec 19, 2025
  247. Sergey OrganovNov 12, 2025
  248. Elijah NewrenNov 20, 2025
  249. Junio C HamanoNov 20, 2025
  250. Elijah NewrenNov 20, 2025
  251. Junio C HamanoNov 20, 2025
  252. Elijah NewrenNov 20, 2025
  253. Phillip WoodNov 21, 2025
  254. Junio C HamanoNov 21, 2025
  255. Elijah NewrenNov 23, 2025
  256. Patrick SteinhardtDec 2, 2025
  257. Elijah NewrenDec 5, 2025
  258. Patrick SteinhardtDec 9, 2025
  259. Martin von ZweigbergkDec 9, 2025
  260. Phillip WoodDec 10, 2025
  261. Elijah NewrenDec 10, 2025
  262. Kristoffer HaugsbakkDec 9, 2025
  263. Working on top of mega mergesD. Ben Knoble, Dec 12, 2025
  264. Elijah NewrenNov 23, 2025
  265. Phillip WoodNov 24, 2025
  266. Elijah NewrenNov 25, 2025
  267. 00/12 Introduce git-history(1) command for easy history editingPatrick Steinhardt, Dec 3, 2025
  268. 01/12 wt-status: provide function to expose status for treesPatrick Steinhardt, Dec 3, 2025
  269. 02/12 replay: extract logic to pick commitsPatrick Steinhardt, Dec 3, 2025
  270. 03/12 replay: stop using `the_repository`Patrick Steinhardt, Dec 3, 2025
  271. 04/12 builtin: add new "history" commandPatrick Steinhardt, Dec 3, 2025
  272. Kristoffer HaugsbakkDec 22, 2025
  273. Patrick SteinhardtJan 6, 2026
  274. 05/12 builtin/history: implement "reword" subcommandPatrick Steinhardt, Dec 3, 2025
  275. 06/12 add-patch: split out header from "add-interactive.h"Patrick Steinhardt, Dec 3, 2025
  276. 07/12 add-patch: split out `struct interactive_options`Patrick Steinhardt, Dec 3, 2025
  277. 08/12 add-patch: remove dependency on "add-interactive" subsystemPatrick Steinhardt, Dec 3, 2025
  278. 09/12 add-patch: add support for in-memory index patchingPatrick Steinhardt, Dec 3, 2025
  279. 10/12 add-patch: allow disabling editing of hunksPatrick Steinhardt, Dec 3, 2025
  280. 11/12 cache-tree: allow writing in-memory index as treePatrick Steinhardt, Dec 3, 2025
  281. 12/12 builtin/history: implement "split" subcommandPatrick Steinhardt, Dec 3, 2025
  282. 0/7 Introduce git-history(1) command for easy history editingPatrick Steinhardt, Jan 9, 2026
  283. 1/7 builtin/replay: extract core logic to replay revisionsPatrick Steinhardt, Jan 9, 2026
  284. Elijah NewrenJan 10, 2026
  285. Patrick SteinhardtJan 12, 2026
  286. 2/7 builtin/replay: move core logic into "libgit.a"Patrick Steinhardt, Jan 9, 2026
  287. Elijah NewrenJan 10, 2026
  288. Patrick SteinhardtJan 12, 2026
  289. Elijah NewrenJan 13, 2026
  290. Patrick SteinhardtJan 13, 2026
  291. 3/7 replay: small set of cleanupsPatrick Steinhardt, Jan 9, 2026
  292. 4/7 replay: yield the object ID of the final rewritten commitPatrick Steinhardt, Jan 9, 2026
  293. Elijah NewrenJan 10, 2026
  294. Patrick SteinhardtJan 12, 2026
  295. 5/7 wt-status: provide function to expose status for treesPatrick Steinhardt, Jan 9, 2026
  296. 6/7 builtin: add new "history" commandPatrick Steinhardt, Jan 9, 2026
  297. Elijah NewrenJan 10, 2026
  298. Patrick SteinhardtJan 12, 2026
  299. 7/7 builtin/history: implement "reword" subcommandPatrick Steinhardt, Jan 9, 2026
  300. Elijah NewrenJan 10, 2026
  301. SZEDER GáborJan 10, 2026
  302. Patrick SteinhardtJan 12, 2026
  303. 0/2 SomeElijah Newren, Jan 11, 2026
  304. 8/7 SQUASH ME: FixupsElijah Newren, Jan 11, 2026
  305. 9/7 history: fix detached HEAD handlingElijah Newren, Jan 11, 2026
  306. Elijah NewrenJan 11, 2026
  307. Patrick SteinhardtJan 12, 2026
  308. 0/8 Introduce git-history(1) command for easy history editingPatrick Steinhardt, Jan 13, 2026
  309. 1/8 builtin/replay: extract core logic to replay revisionsPatrick Steinhardt, Jan 13, 2026
  310. 2/8 builtin/replay: move core logic into "libgit.a"Patrick Steinhardt, Jan 13, 2026
  311. 3/8 replay: small set of cleanupsPatrick Steinhardt, Jan 13, 2026
  312. 4/8 replay: support empty commit rangesPatrick Steinhardt, Jan 13, 2026
  313. 5/8 replay: support updating detached HEADPatrick Steinhardt, Jan 13, 2026
  314. 6/8 wt-status: provide function to expose status for treesPatrick Steinhardt, Jan 13, 2026
  315. 7/8 builtin: add new "history" commandPatrick Steinhardt, Jan 13, 2026
  316. 8/8 builtin/history: implement "reword" subcommandPatrick Steinhardt, Jan 13, 2026
  317. SZEDER GáborJan 16, 2026
  318. Elijah NewrenJan 17, 2026
  319. Junio C HamanoJan 18, 2026
  320. Junio C HamanoFeb 3, 2026
  321. Patrick SteinhardtFeb 5, 2026
  322. Elijah NewrenJan 16, 2026
  323. Junio C HamanoJan 16, 2026
  324. SZEDER GáborJan 16, 2026
  325. Junio C HamanoJan 21, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.