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

Re: [PATCH v8 0/7] Introduce git-history(1) command for easy history editing

From
D. Ben Knoble <ben.knoble@gmail.com>
Date
Jan 9, 2026, 23:27 UTC
Message-ID
<CALnO6CB_XBXKAcCwEJZHotioxcAKNrNO2bZZ0nwoZ0KufVs+mA@mail.gmail.com>
In-Reply-To
<aWCvdHGDzZC5OLFU@pks.im>
On Fri, Jan 9, 2026 at 2:34 AM Patrick Steinhardt <ps@pks.im> wrote:
Show 6 quoted lines
>
> We only have "reword" for now. In any case, I'll definitely upstream
> more subcommands once the initial version has landed. Probably the
> complete set of commands I was proposing initially: "drop", "split" and
> "reorder". Afterwards I'd also like to have a look at "absorb", but I'll
> also gladly accept any help.

I figured as much. I stumbled onto a version of git-absorb [1] today, and I have some notes on how I might script such a thing myself using my "git-touching" [2] script. But my script has a slight bug [3] when handling staged changes that might make it not quite ready for the attempt yet. Anyway, some food for thought.

[1]: https://github.com/tummychow/git-absorb [2]: https://github.com/benknoble/Dotfiles/blob/master/links/bin/git-touching [3]: From my todo list: git: `touching -c` only considers staged files, not staged lines. So mixed files give the wrong outputs.

-- 
D. Ben Knoble
Previous: Patrick Steinhardt
Message 18 of 18 in “Introduce git-history(1) command for easy history editing”
  1. 0/7 Introduce git-history(1) command for easy history editingPatrick Steinhardt, Jan 7, 2026
  2. 1/7 builtin/replay: extract core logic to replay revisionsPatrick Steinhardt, Jan 7, 2026
  3. D. Ben KnobleJan 7, 2026
  4. Patrick SteinhardtJan 9, 2026
  5. 2/7 builtin/replay: move core logic into "libgit.a"Patrick Steinhardt, Jan 7, 2026
  6. 3/7 replay: small set of cleanupsPatrick Steinhardt, Jan 7, 2026
  7. 4/7 replay: yield the object ID of the final rewritten commitPatrick Steinhardt, Jan 7, 2026
  8. 5/7 wt-status: provide function to expose status for treesPatrick Steinhardt, Jan 7, 2026
  9. 6/7 builtin: add new "history" commandPatrick Steinhardt, Jan 7, 2026
  10. 7/7 builtin/history: implement "reword" subcommandPatrick Steinhardt, Jan 7, 2026
  11. D. Ben KnobleJan 7, 2026
  12. Patrick SteinhardtJan 9, 2026
  13. D. Ben KnobleJan 9, 2026
  14. Elijah NewrenJan 10, 2026
  15. Patrick SteinhardtJan 12, 2026
  16. D. Ben KnobleJan 7, 2026
  17. Patrick SteinhardtJan 9, 2026
  18. D. Ben KnobleJan 9, 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.