-
Notifications
You must be signed in to change notification settings - Fork 406
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
FR: support for bulk-editing of commit descriptions #3120
Comments
@claytonrcarter implemented this for git-branchless. You can find the current implementation here: https://github.com/arxanas/git-branchless/wiki/Command:-git-reword#usage. For reference, here's the format of the git-branchless multi-message as it appears in the editor:
and so forth. After confirming your edit, When the Some users have complained that the |
Tangential, but both Vim and Neovim have support for jj syntax now: vim/vim#14733 How would this work with the An alternative would be to start the editor once for each revision, or create separate temp files/buffers for each revision and pass all of them to the editor at once (this way, in an editor like Vim each revision is still in its own buffer, but can be moved between with commands like |
This was my initial idea, but I think this complicates matters if a user changes their mind mid-change. How can a user give up if they're constantly bombed with $EDITOR opening? |
|
#3828 implements an initial version which currently opens a separate instance of the editor for each commit. I think having both options (opening multiple editor instances for each commit description and editing multiple commit description within a single editor) definitely have their use cases. I have a couple of questions to clarify:
|
Is your feature request related to a problem? Please describe.
Sometimes you want to edit the descriptions of a whole set of commits.
Describe the solution you'd like
Teach
jj describe
to accept a revset with multiple commits. If more than one commits is given, open the editor with all descriptions separated by some separator lines. When the user closes the editor, split the descriptions at those separator lines to produce the new descriptions for each commit.Additional context
I think git-branchless does this.
The text was updated successfully, but these errors were encountered: