commit | 3083b2304942fb4dbcb7a8a6aea0f8cde43ba2f6 | [log] [tgz] |
---|---|---|
author | Joerg Zieren <zieren@google.com> | Tue Nov 23 15:52:45 2021 +0000 |
committer | Joerg Zieren <zieren@google.com> | Tue Nov 23 15:53:17 2021 +0000 |
tree | a71842a7e14ed032cef842e6ab70b0b4266f014f | |
parent | 2e1d86e78aeaf594a7f45df53cfe937b0be28eaf [diff] |
Add comment to explain semantics of file content validation Change-Id: Ib24d74ac949d456d5bde86aad2ca76d635ed2e77
diff --git a/src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/CommitUtils.java b/src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/CommitUtils.java index 5505343..c589586 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/CommitUtils.java +++ b/src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/CommitUtils.java
@@ -90,6 +90,10 @@ * If a TreeWalk entry is found this method calls the onVisit() method of the class * TreeWalkVisitor. * + * <p>We assume that all parents have been validated successfully. If the commit is identical to + * one of them, we consider it valid, too, even if e.g. validation rules have since changed or + * differ from the ones applicable to the target branch. + * * @param repo The repository * @param c The commit * @param visitor A TreeWalkVisitor with the desired action