# Controls the length of shortened commit hash ids\r
#\r
# SINCE 1.2.0\r
-web.shortCommitIdLength = 8\r
+web.shortCommitIdLength = 6\r
\r
# Use Clippy (Flash solution) to provide a copy-to-clipboard button.\r
# If false, a button with a more primitive JavaScript-based prompt box will\r
}\r
\r
protected String getShortObjectId(String objectId) {\r
- return objectId.substring(0, GitBlit.getInteger(Keys.web.shortCommitIdLength, 8));\r
+ return objectId.substring(0, GitBlit.getInteger(Keys.web.shortCommitIdLength, 6));\r
}\r
\r
protected void addRefs(Repository r, RevCommit c) {\r
import org.apache.wicket.markup.repeater.data.ListDataProvider;\r
\r
import com.gitblit.Constants;\r
+import com.gitblit.GitBlit;\r
+import com.gitblit.Keys;\r
import com.gitblit.models.Activity;\r
import com.gitblit.models.Activity.RepositoryCommit;\r
import com.gitblit.utils.StringUtils;\r
\r
Collections.sort(recentActivity);\r
\r
+ final int shortHashLen = GitBlit.getInteger(Keys.web.shortCommitIdLength, 6);\r
DataView<Activity> activityView = new DataView<Activity>("activity",\r
new ListDataProvider<Activity>(recentActivity)) {\r
private static final long serialVersionUID = 1L;\r
commitItem.add(branchLink);\r
\r
LinkPanel commitid = new LinkPanel("commitid", "list subject",\r
- commit.getShortName(), CommitPage.class,\r
+ commit.getName().substring(0, shortHashLen), CommitPage.class,\r
WicketUtils.newObjectParameter(commit.repository, commit.getName()), true);\r
commitItem.add(commitid);\r
\r