in owners-common/src/main/java/com/googlesource/gerrit/owners/common/PathOwners.java [254:270]
private Set<String> getModifiedPaths() {
Set<String> paths = Sets.newHashSet();
for (PatchListEntry patch : patchList.getPatches()) {
// Ignore commit message and Merge List
String newName = patch.getNewName();
if (!COMMIT_MSG.equals(newName) && !MERGE_LIST.equals(newName)) {
paths.add(newName);
// If a file was moved then we need approvals for old and new
// path
if (patch.getChangeType() == Patch.ChangeType.RENAMED) {
paths.add(patch.getOldName());
}
}
}
return paths;
}