-
Notifications
You must be signed in to change notification settings - Fork 31
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
Feature request: Support multiple cuts #80
Comments
This is a point for using a Git client like Magit or Tig that allows to visually select a commit. When I saw this, I thought of a different interface: for each hunk, instead of only deciding between two destination commits with y/n, the user could have the option to put it into a new commit. Restarting the cutting on part 2 seems reasonable because one can just use |
Yes, or tmux-thumbs etc. It's just an annoying extra step.
That's sometimes doable, but when revising several commits it's not always easy to remember the precise commit message phrasing, especially if there are multiple similar commits like "Add X to A", "Use X in B", and that is especially the case while performing multiple cuts of similar changes in preparation for later movement.
That's what I originally envisioned, too, and I think it would be a better interface. However, I realized it may become difficult to handle things like multiple cuts of the same original hunk. I'm also not sure how much of the built-in patch selection mechanism
That's true, and also giving the user a way to abort is important. So perhaps instead of just assuming an empty cut is a successful end, prompt for "continue or quit"? |
Frequently when splitting a commit, I want to split it into more than two pieces. For example, there may be several kinds of independent kinds of changes that need to be split out; or a commit with several instances of the same kind of change, that might need to split per each file or module.
git-revise
is very useful for quickly cutting up those commits, and faster than rebasing, but it currently only supports "part [1]"/"part [2]". In order to make multiple cuts, currently it requires repeated invocations, manually copying the commit hashes (since the target hash for a new cut will always be different each time).It would be extremely useful to support repeated cuts. This also may not be very difficult to do: for example just restart cutting on the "part [2]" until the user specifies an empty cut.
The text was updated successfully, but these errors were encountered: