Community
Participate
Working Groups
We should add the "Add Change-Id" and "Add Signed-off-by" buttons available in the Staging View and Commit Dialog also in the reword, squash and fixup dialogs used during interactive rebase. At the moment users have to use "edit" instead of "reword", "squash" or "fixup" if they want to add a Gerrit change-Id or sign off a change (or type these footers manually) which is cumbersome.
[Batch change] Remove pre-3.7 Target Milestones If anyone on CC list is going to fix/implement this, please assign a new 3.7+ target milestone.
*** Bug 475078 has been marked as a duplicate of this bug. ***
The new commit message preview should also be available in the CommitMessageEditorDialog, and the dialog should obey the hard-wrap preference (not sure it whether it does already).
For the Change-Id, there is the problem that this is done during commit (and cannot be done before if it is to be done properly; it's a SHA1 including the tree and parent commit ID). So even if the "reword" dialog has this button and inserts the "Change-Id: I0000000000000000000000000000000000000000" footer, there is nothing to tell the CommitCommand later on that is should replace that. (No way to customize the commit command with CommitCommand.setInsertChangeId(true).) I see two ways to resolve this: 1. Let CommitCommand examine the commit message, and do it automatically if there is a "Change-Id: I0000000000000000000000000000000000000000" footer. 2. Augment the InteractiveHandler2.ModifyResult in JGit with a boolean setChangeId() method, and query it everywhere in JGit such a handler is called, and then set CommitCommand.setInsertChangeId() there. (1) would have the advantage that there would never be any commit with a Change-Id footer with all zeroes, it doesn't require any interface changes in JGit, and it is a single modification in CommitCommand. (2) is somewhat less opinionated. But changes have to be made in several places in EGit and JGit. @Matthias, any preference?
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/190444
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/190446
(In reply to Eclipse Genie from comment #5) > New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/190444 I've decided on (2) from comment 4. Turns out that it isn't that much work in JGit, and EGit's in-memory rebase for the reword operation doesn't use CommitCommand anyway.
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/190444 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=7e752364a6000259b2ec3fc66e0314ba12e6c0d4
Gerrit change https://git.eclipse.org/r/c/egit/egit/+/190446 was merged to [master]. Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=6f16996f3d6352c64f945a3c5759c2901271c1c0