public interface ChangeMessageModifier
Invoked by Gerrit when all information about new commit is already known such as parent(s), tree hash, etc, but commit's message can still be modified.
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
onSubmit(java.lang.String newCommitMessage,
        org.eclipse.jgit.revwalk.RevCommit original,
        org.eclipse.jgit.revwalk.RevCommit mergeTip,
        Branch.NameKey destination)
Implementation must return non-Null commit message. 
 | 
java.lang.String onSubmit(java.lang.String newCommitMessage,
                          org.eclipse.jgit.revwalk.RevCommit original,
                          org.eclipse.jgit.revwalk.RevCommit mergeTip,
                          Branch.NameKey destination)
mergeTip and original commit are guaranteed to have their body parsed, meaning that their commit messages and footers can be accessed.
newCommitMessage - the new commit message that was result of either
     MergeUtil.createDetailedCommitMessage(org.eclipse.jgit.revwalk.RevCommit, com.google.gerrit.server.notedb.ChangeNotes, com.google.gerrit.reviewdb.client.PatchSet.Id) called before
       original - the commit of the change being submitted. Note that its commit message may
     be different than newCommitMessage argument.mergeTip - the current HEAD of the destination branch, which will be a parent of a new
     commit being generateddestination - the branch onto which the change is being submitted