Skip to main content

commit-rewriter

PyPI Changelog Tests License

Local web app for editing local commit messages to a Git repository.

Usage

uvx commit-rewriter /path/to/repository

Or omit the path if the repository is your current working directory.

Defaults to running on http://127.0.0.1:8000 - use -p/--port 8002 to run on a different port.

Edit multiple commit messages using the web UI. When you apply them the tool will first create a branch to back up the repository prior to making the changes.

Installation

pip install commit-rewriter
# or
uv tool install commit-rewriter

Screenshot

Screenshot of the commit-rewriter web interface. A heading reads commit-rewriter above the repository path and current branch and commit hash, with a short description of the tool. A toolbar shows a pending edits count with Discard drafts and Rewrite commit messages buttons, followed by a search box for message, author, or hash and an Edited only checkbox. A left sidebar titled Navigate commits lists recent commit messages with their short hashes. The main panel shows a card for each commit with its hash, author and timestamp, an editable text area containing the commit message, and a View full formatted diff toggle.

Contributing

To run the tests:

uv run pytest

To re-take the screenshot using shot-scraper:

shot-scraper multi shots.yml

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

commit_rewriter-0.1.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

commit_rewriter-0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file commit_rewriter-0.1.tar.gz.

File metadata

  • Download URL: commit_rewriter-0.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for commit_rewriter-0.1.tar.gz
Algorithm Hash digest
SHA256 63096e46ee1131bde74eecc183e9c1ad64e9e3db0d32b237fc7fe0950d119c0c
MD5 dfe7147ec7dca07d3693a90fb02151f2
BLAKE2b-256 8962247ccf62b2e492433cc8e6a0e598289de047cee7ba498f207033cb33fddd

See more details on using hashes here.

Provenance

The following attestation bundles were made for commit_rewriter-0.1.tar.gz:

Publisher: publish.yml on simonw/commit-rewriter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file commit_rewriter-0.1-py3-none-any.whl.

File metadata

  • Download URL: commit_rewriter-0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for commit_rewriter-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41f36e79cae9836e980d992645c52ca3910572b51e0eba5a3f59a7377d9763e9
MD5 8be59dd29f64ac7ad0fc5567e149abe1
BLAKE2b-256 06a3d32249a008e7200f43bb6142289790c22db16a4c04cdb5e0f689613af7a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for commit_rewriter-0.1-py3-none-any.whl:

Publisher: publish.yml on simonw/commit-rewriter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page