| | |
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import org.eclipse.jgit.lib.Constants;
|
| | | import org.eclipse.jgit.lib.ObjectId;
|
| | | import org.eclipse.jgit.lib.Repository;
|
| | | import org.eclipse.jgit.revwalk.RevCommit;
|
| | |
| | | DateFormat df;
|
| | | if (StringUtils.isEmpty(dateFormat)) {
|
| | | // dynamically determine date format
|
| | | RevCommit firstCommit = JGitUtils.getFirstCommit(repository, branchObject.getName());
|
| | | RevCommit firstCommit = JGitUtils.getFirstCommit(repository,
|
| | | branchObject.getName());
|
| | | int diffDays = (lastCommit.getCommitTime() - firstCommit.getCommitTime())
|
| | | / (60 * 60 * 24);
|
| | | total.duration = diffDays;
|