diff --git a/src/main/java/ru/ulstu/extractor/model/Commit.java b/src/main/java/ru/ulstu/extractor/model/Commit.java index 1bbe22f..31c6eac 100644 --- a/src/main/java/ru/ulstu/extractor/model/Commit.java +++ b/src/main/java/ru/ulstu/extractor/model/Commit.java @@ -1,3 +1,8 @@ +/* + * Copyright (C) 2021 Anton Romanov - All Rights Reserved + * You may use, distribute and modify this code, please write to: romanov73@gmail.com. + */ + package ru.ulstu.extractor.model; import org.hibernate.annotations.Fetch; @@ -84,4 +89,8 @@ public class Commit extends BaseEntity { public void setBranch(Branch branch) { this.branch = branch; } + + public boolean containsEntity() { + return fileChanges.stream().anyMatch(FileChange::isContainsEntity); + } } diff --git a/src/main/resources/templates/filterCommits.html b/src/main/resources/templates/filterCommits.html index 2836270..0a44875 100644 --- a/src/main/resources/templates/filterCommits.html +++ b/src/main/resources/templates/filterCommits.html @@ -86,6 +86,7 @@ Автор Дата Сообщение + Содержит сущность @@ -93,6 +94,12 @@ + +
+ +
+