Important Changes
GitRewrite now creates a new repository with rewritten history instead of modifying the existing repository. The new repository will be created as a sibling directory to your original repository with the same files, branches, and remotes, but with improved commit messages.
New Workflow:
- GitRewrite analyzes commits in your original repository
- Creates a new repository named
<original-repo-name>-rewritten - Rebuilds the entire commit history with improved messages
- Preserves all branches and remotes
Main Branch Requirement: GitRewrite must now be run while on your repository's default branch (typically main or master).
Key Features
- Repository Preservation: Original repository remains untouched during the process
- Path Exclusion: Skip files matching regex patterns with
-excludeflag - Large Commit Handling: Options for repositories with many files per commit
- Debug Logging: Detailed logging to troubleshoot issues
- Performance Improvements: Better handling of large diffs
- Periodic Saving: Dry-run results are now saved periodically
What's Changed
- docs: update README with advanced usage examples and additional flags (11a0ba7)
- fix: change behaviour to make new repo in same parent directory and only work on main branch (a379f0f)
- feat: rewrite functionality to recreate commits onto new repository instead of rebasing on current one (f567df3)
- feat: add debug logging to file (dafac8c)
- fix: remove find commit by message due to duplicate issue (b5ca703)
- fix: remove any rebase in progress before commit change (4baf744)
- feat: add option to skip commits with too many files or have summary instead (f4c9aeb)
- feat: add option to exclude files via regex (531b611)
- feat: add saving of dry run results periodicaly (5fd9287)
- feat: try and avoid sending commits to ollama that are bigger than model context size (6be85f9)
- Merge branch 'feat/enhance-status-updates' (9615b61)
- fix: update some log messages (87beb3d)
- feat: add commit processing time tracking and ETA calculation (6b0216d)
- fix: enhance error logging for Ollama API response unmarshalling (6f10b15)
- docs: add alpha software disclaimer with improved README structure (d9d4a00)
Full Changelog: v0.1.1...v0.2.0