- Use release name as root directory in Gitblit GO artifacts (ticket-109)
- Split gitblit.properties into gitblit.properties & defaults.properties (ticket-110)
- Show team type in teams page (pr-217, ticket-168)
+ - Use author date to be consistent with other tools (pr-919)
additions:
- Add GitHub Octicons (ticket-106)
- Support for chain-loading properties files (ticket-110)
}\r
} else if (referencedObject instanceof RevCommit) {\r
RevCommit commit = (RevCommit) referencedObject;\r
- PersonIdent committer = commit.getCommitterIdent();\r
- if (committer != null) {\r
- date = committer.getWhen();\r
+ PersonIdent author = commit.getAuthorIdent();\r
+ if (author != null) {\r
+ date = author.getWhen();\r
} else {\r
date = JGitUtils.getCommitDate(commit);\r
}\r
import java.util.Map.Entry;\r
import java.util.regex.Pattern;\r
\r
-import com.google.common.base.Strings;\r
import org.apache.commons.io.filefilter.TrueFileFilter;\r
import org.eclipse.jgit.api.CloneCommand;\r
import org.eclipse.jgit.api.FetchCommand;\r
import com.gitblit.models.PathModel.PathChangeModel;\r
import com.gitblit.models.RefModel;\r
import com.gitblit.models.SubmoduleModel;\r
+import com.google.common.base.Strings;\r
\r
/**\r
* Collection of static methods for retrieving information from a repository.\r
if (commit == null) {\r
return new Date(0);\r
}\r
- return commit.getAuthorIdent().getWhen();\r
+ if (commit.getAuthorIdent() != null) {\r
+ return commit.getAuthorIdent().getWhen();\r
+ }\r
+ return getCommitDate(commit);\r
}\r
\r
/**\r
\r
Iterable<RevCommit> revlog = revWalk;\r
for (RevCommit rev : revlog) {\r
- Date d = JGitUtils.getCommitDate(rev);\r
+ Date d = JGitUtils.getAuthorDate(rev);\r
String p = df.format(d);\r
if (!metricMap.containsKey(p)) {\r
metricMap.put(p, new Metric(p));\r
import com.gitblit.wicket.GitBlitWebSession;\r
import com.gitblit.wicket.TicketsUI;\r
import com.gitblit.wicket.WicketUtils;\r
+import com.gitblit.wicket.panels.AvatarImage;\r
import com.gitblit.wicket.panels.BasePanel.JavascriptTextPrompt;\r
import com.gitblit.wicket.panels.CommentPanel;\r
import com.gitblit.wicket.panels.DiffStatPanel;\r
-import com.gitblit.wicket.panels.AvatarImage;\r
import com.gitblit.wicket.panels.IconAjaxLink;\r
import com.gitblit.wicket.panels.LinkPanel;\r
import com.gitblit.wicket.panels.ShockWaveComponent;\r
item.add(new LinkPanel("diff", "link", getString("gb.diff"), CommitDiffPage.class,\r
WicketUtils.newObjectParameter(repositoryName, commit.getName()), true));\r
item.add(new Label("title", StringUtils.trimString(commit.getShortMessage(), Constants.LEN_SHORTLOG_REFS)));\r
- item.add(WicketUtils.createDateLabel("commitDate", JGitUtils.getCommitDate(commit), GitBlitWebSession\r
+ item.add(WicketUtils.createDateLabel("commitDate", JGitUtils.getAuthorDate(commit), GitBlitWebSession\r
.get().getTimezone(), getTimeUtils(), false));\r
item.add(new DiffStatPanel("commitDiffStat", 0, 0, true));\r
}\r
@Override\r
public void populateItem(final Item<RevCommit> item) {\r
final RevCommit entry = item.getModelObject();\r
- final Date date = JGitUtils.getCommitDate(entry);\r
+ final Date date = JGitUtils.getAuthorDate(entry);\r
\r
item.add(WicketUtils.createDateLabel("commitDate", date, getTimeZone(), getTimeUtils()));\r
\r
@Override\r
public void populateItem(final Item<RevCommit> item) {\r
final RevCommit entry = item.getModelObject();\r
- final Date date = JGitUtils.getCommitDate(entry);\r
+ final Date date = JGitUtils.getAuthorDate(entry);\r
final boolean isMerge = entry.getParentCount() > 1;\r
\r
item.add(WicketUtils.createDateLabel("commitDate", date, getTimeZone(), getTimeUtils()));\r
@Override\r
public void populateItem(final Item<RevCommit> item) {\r
final RevCommit entry = item.getModelObject();\r
- final Date date = JGitUtils.getCommitDate(entry);\r
+ final Date date = JGitUtils.getAuthorDate(entry);\r
\r
item.add(WicketUtils.createDateLabel("commitDate", date, getTimeZone(), getTimeUtils()));\r
\r