Top Description Methods
org.eclipse.jgit.notes

public Interface NoteMerger

Known Direct Implementers
org.eclipse.jgit.notes.DefaultNoteMerger
Imports
java.io.IOException, org.eclipse.jgit.lib.ObjectInserter, .ObjectReader

Three-way note merge operation.

This operation takes three versions of a note: base, ours and theirs, performs the three-way merge and returns the merge result.

Method Summary

Modifier and TypeMethod and Description
public Note

Returns:

the merge result
merge
(Note
version of the Note
base
,
Note
version of the Note
ours
,
Note
version of the Note
their
,
ObjectReader
the object reader that must be used to read Git objects
reader
,
ObjectInserter
the object inserter that must be used to insert Git objects
inserter
)

Merges the conflicting note changes.

Method Detail

mergeback to summary
public Note merge(Note base, Note ours, Note their, ObjectReader reader, ObjectInserter inserter) throws NotesMergeConflictException, IOException

Merges the conflicting note changes.

base, ours and their are all notes on the same object.

Parameters
base:Note

version of the Note

ours:Note

version of the Note

their:Note

version of the Note

reader:ObjectReader

the object reader that must be used to read Git objects

inserter:ObjectInserter

the object inserter that must be used to insert Git objects

Returns:Note

the merge result

Exceptions
NotesMergeConflictException:
in case there was a merge conflict which this note merger couldn't resolve
IOException:
in case the reader or the inserter would throw an java.io.IOException the implementor will most likely want to propagate it as it can't do much to recover from it