Package com.google.gerrit.entities
Class PatchSet.Conflicts
java.lang.Object
com.google.gerrit.entities.PatchSet.Conflicts
- Enclosing class:
PatchSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
static PatchSet.Conflicts
create
(Optional<org.eclipse.jgit.lib.ObjectId> ours, Optional<org.eclipse.jgit.lib.ObjectId> theirs, boolean containsConflicts) abstract Optional
<org.eclipse.jgit.lib.ObjectId> ours()
The SHA1 of the commit that was used asours
for the Git merge that created the revision.abstract Optional
<org.eclipse.jgit.lib.ObjectId> theirs()
The SHA1 of the commit that was used astheirs
for the Git merge that created the revision.
-
Constructor Details
-
Conflicts
public Conflicts()
-
-
Method Details
-
ours
The SHA1 of the commit that was used asours
for the Git merge that created the revision.Guaranteed to be set if
containsConflicts()
istrue
. IfcontainsConflicts()
isfalse
, only set if the revision was created by Gerrit as a result of performing a Git merge. -
theirs
The SHA1 of the commit that was used astheirs
for the Git merge that created the revision.Guaranteed to be set if
containsConflicts()
istrue
. IfcontainsConflicts()
isfalse
, only set if the revision was created by Gerrit as a result of performing a Git merge. -
containsConflicts
public abstract boolean containsConflicts()Whether any of the files in the revision has a conflict due to mergingours()
andtheirs()
.If
true
at least one of the files in the revision has a conflict and contains Git conflict markers.If
false
mergingours()
andtheirs()
didn't have any conflict. In this case the files in the revision may only contain Git conflict marker if they were already present inours()
ortheirs()
. -
create
public static PatchSet.Conflicts create(Optional<org.eclipse.jgit.lib.ObjectId> ours, Optional<org.eclipse.jgit.lib.ObjectId> theirs, boolean containsConflicts)
-