diff options
author | James Moger <james.moger@gitblit.com> | 2011-04-20 07:53:15 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-04-20 07:53:15 -0400 |
commit | 45c0d6ed8c9c3afc4d09200358ee2d53f06023e2 (patch) | |
tree | e5d8665c0510ba4016e8f5ebe3e35a48f58e3f08 /src/com/gitblit/tests/JGitUtilsTest.java | |
parent | 6de3671263c307ab66ab63551064c9224c9c2665 (diff) | |
download | gitblit-45c0d6ed8c9c3afc4d09200358ee2d53f06023e2.tar.gz gitblit-45c0d6ed8c9c3afc4d09200358ee2d53f06023e2.zip |
Tag diamonds and sliding date scale on activity graph.
Diffstat (limited to 'src/com/gitblit/tests/JGitUtilsTest.java')
-rw-r--r-- | src/com/gitblit/tests/JGitUtilsTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/gitblit/tests/JGitUtilsTest.java b/src/com/gitblit/tests/JGitUtilsTest.java index 0ebcd71e..f3c798f1 100644 --- a/src/com/gitblit/tests/JGitUtilsTest.java +++ b/src/com/gitblit/tests/JGitUtilsTest.java @@ -50,6 +50,14 @@ public class JGitUtilsTest extends TestCase { r.close();
assertTrue("Could not get last repository change date!", date != null);
}
+
+ public void testFirstCommit() throws Exception {
+ Repository r = getRepository();
+ RevCommit commit = JGitUtils.getFirstCommit(r, null);
+ r.close();
+ assertTrue("Could not get first commit!", commit != null);
+ System.out.println(commit.getName() + " " + commit.getShortMessage());
+ }
public void testRetrieveRevObject() throws Exception {
Repository r = getRepository();
|