ChangedFiles: Correct comment about initial commits
DiffOperations#listModifiedFilesAgainstParent with parentNum = 0 is used
for initial commits (this is covered by tests), but the comment wrongly
suggested that initial commits are not supported.
Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Id1a0a44283b6d4c54176280704a032cd2fe060ef
diff --git a/java/com/google/gerrit/plugins/codeowners/backend/ChangedFiles.java b/java/com/google/gerrit/plugins/codeowners/backend/ChangedFiles.java
index 27412f2..1d98268 100644
--- a/java/com/google/gerrit/plugins/codeowners/backend/ChangedFiles.java
+++ b/java/com/google/gerrit/plugins/codeowners/backend/ChangedFiles.java
@@ -93,8 +93,8 @@
if (mergeCommitStrategy.equals(MergeCommitStrategy.FILES_WITH_CONFLICT_RESOLUTION)
|| isInitialCommit(project, revision)) {
// Use parentNum=0 to do the comparison against the default base.
- // For non-merge commits the default base is the only parent (aka parent 1, initial commits
- // are not supported).
+ // For non-merge commits the default base is the only parent (aka parent 1).
+ // Initial commits are supported when using parentNum=0.
// For merge commits the default base is the auto-merge commit which should be used as base
// if the merge commit strategy is FILES_WITH_CONFLICT_RESOLUTION.
fileDiffOutputs =