ZeroHour
Simon Willisonpublished ()ingested

commit-rewriter 0.1

infoToolsimportance 12
AI summary · glm-5.3

Simon Willison released commit-rewriter 0.1, a tool that rewrites git commit messages from the first edited commit, with a timestamped revert branch.

Simon Willison built commit-rewriter 0.1, a small web app for editing git commit messages, motivated by cleaning up Datasette security release commits that contained coding agent cruft and private issue IDs. It runs via 'uvx commit-rewriter path/to/repo' and creates a timestamped branch of the repo state before rewriting every commit from the first edited one to the most recent, allowing easy reversion.

  • Runs via 'uvx commit-rewriter path/to/repo'
  • Creates timestamped branch to enable reverting changes
  • Rewrites all commits from first edited to most recent
  • Built to sanitize Datasette security release commit messages
Full article

Release: commit-rewriter 0.1 I built this little web app the other day to help edit the commit messages for the Datasette security releases . The initial commits were full of coding agent cruft and references to issue IDs from our private repository, so they weren't fit for publication. If you want to edit the commit messages for a repository you can run it like this: uvx commit-rewriter path/to/repo Omit the path if you are already in the directory for that repo. When you submit your edits the tool creates a timestamped branch of your current repo state - to allow you to revert if you need to - and then rewrites every commit from the first one you edited to the most recent. Tags: git ,…

This source does not provide full text. Read it at simonwillison.net.