Package com.google.gerrit.server.patch
Class SubmitWithStickyApprovalDiff
- java.lang.Object
-
- com.google.gerrit.server.patch.SubmitWithStickyApprovalDiff
-
public class SubmitWithStickyApprovalDiff extends Object
This class is used on submit to compute the diff between the latest approved patch-set, and the current submitted patch-set.Latest approved patch-set is defined by the latest patch-set which has Code-Review label voted with the maximum possible value.
If the latest approved patch-set is the same as the submitted patch-set, the diff will be empty.
We exclude the magic files from the returned diff to make it shorter and more concise.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(ChangeNotes notes, CurrentUser currentUser)
String
getDiffForFile(PatchScript patchScript, List<String> formatterResult)
Show patch set as unified difference for a specific file.
-
-
-
Method Detail
-
apply
public String apply(ChangeNotes notes, CurrentUser currentUser) throws AuthException, IOException, PermissionBackendException, InvalidChangeOperationException
-
getDiffForFile
public String getDiffForFile(PatchScript patchScript, List<String> formatterResult)
Show patch set as unified difference for a specific file. We on purpose are not usingDiffInfoCreator
since we'd like to get the original git/JGit style diff.
-
-