-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add functionlity to move commit(s) up/down the commit history #186
Comments
Hi @luzpaz I'll start working on this soon-ish. The functionality, although hidden behind a UI as you describe will perform the exact Git operations you are describing, so it could be a very highly demanding thing to do and not as UI-responsive as one might think. |
@francescmm sweet! |
Alternatively, this could be using |
Hi @hartwork, the interactive mode requires to send the different parameters needed back to git. I'm not sure is supported right now even via the standard input channel. |
@francescmm I would adjust |
I might not be following you, so correct me if I'm wrong:
How GitQlient works is by running a background process to execute So in the case of GitQlient, when the command I know that |
@francescmm sorry, I meant EDITOR='sed -i "2,$ s|^pick |fixup |"' git rebase -i 86e0984f2b73509bb48608f4c4f65cfc12facff0 # needs GNU sed That's what I was referring to, the example is from libexpat/libexpat#439 (review) . |
Oh, I'm gonna check that! :D If I manage to do everything "internally" in GitQlient it would be a win-win! Thanks, @hartwork ! |
Any progress here ? |
No progress so far on this, sorry. One of the things that makes it more difficult to implement is the case where a merge is among the commits to rewrite. I'm thinking on not allowing that since this is not a native move as it would happen when doing an interactive rebase. |
Describe the solution you'd like
The ability, through the interface (RMB dialog), to highlight (a) commit(s) and move it/them up or down the commit history of a branch.
Describe alternatives you've considered
Very tediously: creating a tempbranch, cherrypicking specific commits (from the target branch) that are 'in the way' in to temp branch, dropping the commits in question from target branch, then recommitting them from temp branch in the wanted.order back to the target branch.
Additional context
This feature can exist under/next to the squash functionality (#14) once it's implemented. Also it could be smart enough to move single or groups of commits (when highlighted) up or down the commit history. It could be context sensitive so that if the commit in question is the last commit, clicking on the RMB will only offer Move commit down and not display both option including Move commit up.
The text was updated successfully, but these errors were encountered: