summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/models/RepositoryCommit.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-09-30 09:30:04 -0400
committerJames Moger <james.moger@gitblit.com>2013-09-30 10:11:28 -0400
commit699e71e76b15081baf746c6ce9c9144f7e5f1ff9 (patch)
tree4a9ea25c258caeae3dea4bc1de809f47bc615d81 /src/main/java/com/gitblit/models/RepositoryCommit.java
parent235ad956fa84cad4fac1b2e69a0c9e4f50376ea3 (diff)
downloadgitblit-699e71e76b15081baf746c6ce9c9144f7e5f1ff9.tar.gz
gitblit-699e71e76b15081baf746c6ce9c9144f7e5f1ff9.zip
Trim trailing whitespace and organize imports
Change-Id: I9f91138b20219be6e3c4b28251487df262bff6cc
Diffstat (limited to 'src/main/java/com/gitblit/models/RepositoryCommit.java')
-rw-r--r--src/main/java/com/gitblit/models/RepositoryCommit.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/com/gitblit/models/RepositoryCommit.java b/src/main/java/com/gitblit/models/RepositoryCommit.java
index dd58b42b..765b4898 100644
--- a/src/main/java/com/gitblit/models/RepositoryCommit.java
+++ b/src/main/java/com/gitblit/models/RepositoryCommit.java
@@ -27,7 +27,7 @@ import org.eclipse.jgit.revwalk.RevCommit;
/**
* Model class to represent a RevCommit, it's source repository, and the branch.
* This class is used by the activity page.
- *
+ *
* @author James Moger
*/
public class RepositoryCommit implements Serializable, Comparable<RepositoryCommit> {
@@ -71,7 +71,7 @@ public class RepositoryCommit implements Serializable, Comparable<RepositoryComm
public String getShortMessage() {
return commit.getShortMessage();
}
-
+
public Date getCommitDate() {
return new Date(commit.getCommitTime() * 1000L);
}
@@ -79,7 +79,7 @@ public class RepositoryCommit implements Serializable, Comparable<RepositoryComm
public int getParentCount() {
return commit.getParentCount();
}
-
+
public RevCommit [] getParents() {
return commit.getParents();
}
@@ -91,7 +91,7 @@ public class RepositoryCommit implements Serializable, Comparable<RepositoryComm
public PersonIdent getCommitterIdent() {
return commit.getCommitterIdent();
}
-
+
@Override
public boolean equals(Object o) {
if (o instanceof RepositoryCommit) {
@@ -116,14 +116,14 @@ public class RepositoryCommit implements Serializable, Comparable<RepositoryComm
}
return 0;
}
-
+
public RepositoryCommit clone(String withRef) {
return new RepositoryCommit(repository, withRef, commit);
}
-
+
@Override
public String toString() {
- return MessageFormat.format("{0} {1} {2,date,yyyy-MM-dd HH:mm} {3} {4}",
+ return MessageFormat.format("{0} {1} {2,date,yyyy-MM-dd HH:mm} {3} {4}",
getShortName(), branch, getCommitterIdent().getWhen(), getAuthorIdent().getName(),
getShortMessage());
}