-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
git rebase --edit-todo should not empty the file #739
Comments
TIL! I didn't know about the I've confirmed what you experienced, and although the tool is "working as expected", I can see how the wording around "abort" is confusing when using it to edit the rebase file after the start of the rebase. Git uses an empty rebase file to signal that the rebase should "abort", which does not make sense in the context of editing the todo file for an in progress rebase. I fully agree that this behaviour is confusing and unexpected when using the I want to check to see if there is a way to detect the For now, if you use |
I did some digging this evening, and sadly, there isn't any way to determine if Ideally, this would use the |
Sounds good! Thank you so much for looking into it. IIRC, I used the q keybinding, and it was my first time using Actually, I did a bit of digging, and while the editor isnt passed any special environment variables or arguments, I did find a difference between the initial Check the contents of
but in
Overall, I think using the existing keybindings are good, but when those interactive rebase state files are present, just show some warnings. |
(Honestly, at this point, I'm open to creating a PR myself this weekend for good ol' hacktoberfest, and to finally get my hands dirty with rust) |
Thanks for digging in! Absolutely support any effort to dig into this for hacktoberfest. I will also be happy to provide assistance. :)
I think I would avoid writing the file when using abort (q) in that case, since it's unexpected and leaves git in a odd state. |
finally starting work on it. baby's first rust code forivall/git-interactive-rebase-tool@forivall/vscode-settings...forivall:git-interactive-rebase-tool:forivall/edit-and-revise |
I used
git rebase --edit-todo
to look at how many commits were left in my rebase, but when i didnt change the file,interactive-rebase-tool
cleared the file to abort, and then the rebasing ended, and I had to continue therebase
with acherry-pick
of the remaining commits.The text was updated successfully, but these errors were encountered: