| | |
| | | import org.eclipse.jgit.lib.PersonIdent;
|
| | | import org.eclipse.jgit.revwalk.RevCommit;
|
| | |
|
| | | import com.gitblit.utils.StringUtils;
|
| | | import com.gitblit.utils.TimeUtils;
|
| | |
|
| | | /**
|
| | |
| | | }
|
| | | repositoryMetrics.get(repository).count++;
|
| | |
|
| | | String author = commit.getAuthorIdent().getEmailAddress()
|
| | | .toLowerCase();
|
| | | String author = StringUtils.removeNewlines(commit.getAuthorIdent().getEmailAddress()).toLowerCase(); |
| | | if (!authorMetrics.containsKey(author)) {
|
| | | authorMetrics.put(author, new Metric(author));
|
| | | }
|
| | |
| | | public PersonIdent getAuthorIdent() {
|
| | | return commit.getAuthorIdent();
|
| | | }
|
| | | |
| | |
|
| | | public PersonIdent getCommitterIdent() {
|
| | | return commit.getCommitterIdent();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public boolean equals(Object o) {
|
| | | if (o instanceof RepositoryCommit) {
|