Skip to content
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

Support moving individual commits without their descendants #176

Closed
arxanas opened this issue Oct 29, 2021 · 3 comments
Closed

Support moving individual commits without their descendants #176

arxanas opened this issue Oct 29, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@arxanas
Copy link
Owner

arxanas commented Oct 29, 2021

This functionality could be exposed via something like git move --exact <commit> --dest <commit>. More important, this is necessary infrastructure to implement some form of interactive rebase.

@arxanas arxanas added the enhancement New feature or request label Oct 29, 2021
@arxanas arxanas self-assigned this Oct 29, 2021
@claytonrcarter
Copy link
Collaborator

Yes, please! I found myself craving this today. I had assembled 2 different branches which each had related commits in them, and I wanted to take those branches apart and reassemble them into ~3 different branches. This was totally possible, but involved a lot of switching back and for between branches, cherry picking, then interactive rebasing to drop the old commits, etc. A way to perform in-memory moves of specific commits from one branch to another would have been great!

@claytonrcarter
Copy link
Collaborator

FWIW I have some draft code locally that implements this. It's based on the code in #400, and would be happy to polish it off and submit it once that is merged.

@arxanas arxanas removed their assignment Jul 6, 2022
@arxanas
Copy link
Owner Author

arxanas commented Jul 6, 2022

@claytonrcarter That would be great! I haven't started work on this at all.

claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 6, 2022
@claytonrcarter claytonrcarter self-assigned this Jul 6, 2022
claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 6, 2022
claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 7, 2022
claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 8, 2022
claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 9, 2022
claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 12, 2022
claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 15, 2022
claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 15, 2022
claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 19, 2022
claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 19, 2022
claytonrcarter added a commit to claytonrcarter/git-branchless that referenced this issue Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants