public class NotesBranchUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
NotesBranchUtil.Factory |
| Constructor and Description |
|---|
NotesBranchUtil(org.eclipse.jgit.lib.PersonIdent gerritIdent,
GitReferenceUpdated gitRefUpdated,
com.google.gerrit.reviewdb.client.Project.NameKey project,
org.eclipse.jgit.lib.Repository db,
org.eclipse.jgit.lib.ObjectInserter inserter) |
| Modifier and Type | Method and Description |
|---|---|
void |
commitAllNotes(org.eclipse.jgit.notes.NoteMap notes,
java.lang.String notesBranch,
org.eclipse.jgit.lib.PersonIdent commitAuthor,
java.lang.String commitMessage)
Create a new commit in the
notesBranch by updating existing
or creating new notes from the notes map. |
org.eclipse.jgit.notes.NoteMap |
commitNewNotes(org.eclipse.jgit.notes.NoteMap notes,
java.lang.String notesBranch,
org.eclipse.jgit.lib.PersonIdent commitAuthor,
java.lang.String commitMessage)
Create a new commit in the
notesBranch by creating not yet
existing notes from the notes map. |
@Inject
public NotesBranchUtil(org.eclipse.jgit.lib.PersonIdent gerritIdent,
GitReferenceUpdated gitRefUpdated,
com.google.gerrit.reviewdb.client.Project.NameKey project,
org.eclipse.jgit.lib.Repository db,
org.eclipse.jgit.lib.ObjectInserter inserter)
public final void commitAllNotes(org.eclipse.jgit.notes.NoteMap notes,
java.lang.String notesBranch,
org.eclipse.jgit.lib.PersonIdent commitAuthor,
java.lang.String commitMessage)
throws java.io.IOException,
org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
notesBranch by updating existing
or creating new notes from the notes map.notes - map of notesnotesBranch - notes branch to updatecommitAuthor - author of the commit in the notes branchcommitMessage - for the commit in the notes branchjava.io.IOExceptionorg.eclipse.jgit.api.errors.ConcurrentRefUpdateExceptionpublic final org.eclipse.jgit.notes.NoteMap commitNewNotes(org.eclipse.jgit.notes.NoteMap notes,
java.lang.String notesBranch,
org.eclipse.jgit.lib.PersonIdent commitAuthor,
java.lang.String commitMessage)
throws java.io.IOException,
org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
notesBranch by creating not yet
existing notes from the notes map. The notes from the
notes map which already exist in the note-tree of the
tip of the notesBranch will not be updated.notes - map of notesnotesBranch - notes branch to updatecommitAuthor - author of the commit in the notes branchcommitMessage - for the commit in the notes branchnotes that were newly
createdjava.io.IOExceptionorg.eclipse.jgit.api.errors.ConcurrentRefUpdateException