Add commit:split action and rebase progress indicator#176
Draft
lambdalisue wants to merge 9 commits intomainfrom
Draft
Add commit:split action and rebase progress indicator#176lambdalisue wants to merge 9 commits intomainfrom
lambdalisue wants to merge 9 commits intomainfrom
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #176 +/- ##
=======================================
Coverage 62.96% 62.96%
=======================================
Files 24 24
Lines 1199 1199
Branches 172 172
=======================================
Hits 755 755
Misses 443 443
Partials 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ea800a1 to
cb11647
Compare
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.
Summary
commit:splitaction to interactively split commits via rebase in GinLog, GinReflog, and GinStatus buffersWhy
Git's commit splitting workflow requires manually running several commands: starting an interactive rebase, marking a commit for editing, resetting it, staging changes incrementally, and continuing the rebase. This is tedious and error-prone for users who want to decompose a large commit into smaller, focused commits.
This PR streamlines the workflow with a single
commit:splitaction that:The rebase progress indicator addresses the lack of visual feedback during rebase operations. Users can now see at a glance where they are in a rebase sequence both in the statusline (via component) and in the GinStatus buffer header.
The buffer reload fix ensures that when users run bare git commands via
:Ginthat modify files, those changes are immediately reflected in open buffers instead of requiring manual:checktime.Test plan
commit:splitaction in GinLog buffer on a commit with multiple changescommit:splitaction in GinReflog buffercommit:splitaction in GinStatus buffer (when available)git rebase --continueto verify workflowgit config commit.templatebefore/after)gin#component#rebase#ascii()rebase -i) and non-interactive rebasecommit:split:split,commit:split:vsplit,commit:split:tabeditopeners:Gin commit --amendand verify buffer reloads automatically show the change