Bug 562602 - disable rebuild during rebase interactive/reword
Summary: disable rebuild during rebase interactive/reword
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 5.7   Edit
Hardware: PC Windows 10
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-29 06:20 EDT by Michael Keppler CLA
Modified: 2020-12-11 16:05 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Keppler CLA 2020-04-29 06:20:41 EDT
I just reworded HEAD~3. That lead to 10 minutes of rebuilding, since the commits in between contained JDT core preference changes and similar.

Can we disable rebuild during reword and interactive rebase (e.g. run those inside a WorkspaceModifyOperation)?
Comment 1 Thomas Wolf CLA 2020-04-29 06:44:14 EDT
Reword is particularly annoying since it seems to me it should be possible to do as a pure git repo operation without any re-build. It's just because it uses the interactive rebase framework that we get re-builds at all.

Basically one would need to:

1. Get the commit message to be reworded.
2. Let the user edit it
3. Then rewrite the git history, creating new commits **using the trees** of the existing commits.

No checkout of the base version is needed, and no rebasing. It is *known* that the rebase will apply cleanly, and the trees won't change. All that has changed is the message of one commit. Or is that too simplistic?
Comment 2 Eclipse Genie CLA 2020-12-06 17:05:35 EST
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/173475