-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(branch): add gs branch squash
#564
Conversation
@@ -22,7 +22,7 @@ type branchCheckoutCmd struct { | |||
checkoutOptions | |||
|
|||
Untracked bool `short:"u" config:"branchCheckout.showUntracked" help:"Show untracked branches if one isn't supplied"` | |||
Branch string `arg:"" optional:"" help:"Name of the branch to delete" predictor:"branches"` | |||
Branch string `arg:"" optional:"" help:"Name of the branch to checkout" predictor:"branches"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅 thanks!
This will allow customizing the initial commit message a user sees when a commit operation is run.
Combine the commit messages of the original N commits in-order to form the initial commit message for the squashed commit.
This way, if the user aborts the operation, we don't leave them in a detached state.
This will prevent loss of changes if the branch was updated while the user was editing the commit message.
All commands that call Git.Commit should have a --no-verify flag.
Thanks, @jonboiser. This should be good to merge as soon as the build passes. |
Resolves #558, using the procedure discussed, namely
using either the original first commit msgan editable placeholder message consisting of all the squashed commit messages, or a provided message