Repository navigation
Rewrite commit messages with libgit2 and fix review findings - #2
Merged
Merged
Conversation
- edit the full commit message, body and trailers are no longer dropped - rewrite only descendants of the target commit, preserving trees, authors and committers, with real progress - back up moved refs under refs/commit-rewriter/backup/: confirm deletes the backups, rollback restores refs and reports failures - refuse a new rewrite while a previous one is unconfirmed, and offer to confirm or roll it back when the repository is opened - update annotated and lightweight tags and detached HEAD, never touch remote-tracking refs - default to rewriting the current branch only - fix crash on Apply after the commit list was reloaded - fix "Load more" visibility and keep loaded pages on refresh - fix search highlighting panic on non-ASCII text and the Clear logs button - use log levels for background task messages, drop dead code - add integration tests on temporary repositories - upgrade eframe to 0.36, git2 to 0.21, rfd to 0.17 (no GTK on Linux) - set rust-version and commit Cargo.lock
- header with repository, branch and rewrite scope, commits list in the middle, message editor and activity log at the bottom - single-line commit rows with hash, summary, author and date, search matches highlighted and long text truncated - preview as a modal dialog with before/after messages and updated refs - shared theme with accent color for light and dark system themes - keyboard focus ring on commit rows, editor height capped - Reset button and Apply enabled only for a changed message - open the folder dialog asynchronously so the window keeps responding - show the home directory as ~ in paths
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces
git filter-branchwith a libgit2-based rewrite and fixes the issues found in the code review.Data safety
Signed-off-by:,Co-authored-by:) are no longer lost.refs/commit-rewriter/backup/. Confirm deletes the backups, Cancel restores the refs and reports every failure. A new rewrite is refused while one is unconfirmed, and an unconfirmed rewrite is offered for confirm/rollback when the repository is opened.Rewrite engine
echoescapes).gitCLI orshanymore.Other fixes
operations::rewrite_commit,GitRepositorytrait, unused message variants).Tests, CI, build
-D warningsin CI, builds use--locked,Cargo.lockis committed.rust-version = 1.95.