From 45c0d6ed8c9c3afc4d09200358ee2d53f06023e2 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Wed, 20 Apr 2011 07:53:15 -0400 Subject: [PATCH] Tag diamonds and sliding date scale on activity graph. --- 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 0ebcd71..f3c798f 100644 --- a/src/com/gitblit/tests/JGitUtilsTest.java +++ b/src/com/gitblit/tests/JGitUtilsTest.java @@ -50,6 +50,14 @@ 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(); -- Gitblit v1.9.1