Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add an interactive rebase GUI with drag + drop editing #1
A gui for 'git rebase -i' would royally rock.
We'd need to check on the status on git-sequencer. Ideally we'd just be providing an interactive front end to the 'rebase -i' text file, though integrating more tightly might mean implementing parts of rebase in python.
git 1.7.8 (not yet released) would allow us to do, for example:
...and use a custom GUI as the rebase editor. We could do all the drag/drop editing in there.
Older versions of git could accomplish the same thing by doing:
So that could be one way to do it.
Newer git versions understand "fixup" and "exec" so we'll need to do some version checks so that we can suppress that option for older versions.
I'm not really sure how to best handle "reword", "edit", and "squash".
Hijacking "GIT_EDITOR" means git would execute
Do we need to make sure that
It wouldn't be a bad idea to have a simple skeletor version for drag and drop re-ordering. That subset of features is safe and won't bring in the GIT_EDITOR dragons.
We could guard the advanced features behind a git-1.7.8 version check and a runtime check to ensure that GIT_EDITOR is not defined to the rebase script. We'll need to read older versions of
In any case, I think writing a custom editor over the rebase instruction sheet is probably the way to go. What do you think @ugtar?
added a commit
Oct 6, 2013
On Sun, Oct 6, 2013 at 2:33 PM, David Aguilar email@example.com:
Please consider the environment before printing this message.