mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[log] Don't display commit time if equal to author time
This commit is contained in:
@@ -165,8 +165,14 @@ class DetailsPanel extends JPanel implements ListSelectionListener {
|
||||
|
||||
String authorText = commit.getAuthorName() + " at " + DateFormatUtil.formatDateTime(commit.getAuthorTime());
|
||||
if (!commit.getAuthorName().equals(commit.getCommitterName()) || !commit.getAuthorEmail().equals(commit.getCommitterEmail())) {
|
||||
authorText += " (committed by " + commit.getCommitterName() +
|
||||
" at " + DateFormatUtil.formatDateTime(commit.getCommitTime()) + ")";
|
||||
String commitTime;
|
||||
if (commit.getCommitTime() != commit.getAuthorTime()) {
|
||||
commitTime = " at " + DateFormatUtil.formatDateTime(commit.getCommitTime());
|
||||
}
|
||||
else {
|
||||
commitTime = "";
|
||||
}
|
||||
authorText += " (committed by " + commit.getCommitterName() + commitTime + ")";
|
||||
}
|
||||
myAuthor.setText(authorText);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user