From f08c1ca55e1ffaef81f3d6514aa4bffa5d716c5b Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Sun, 05 Jun 2011 15:21:12 -0400
Subject: [PATCH] Added git-notes to docs. Fixed parent path mode.

---
 src/com/gitblit/wicket/pages/TreePage.java |    3 ++-
 docs/00_index.mkd                          |    9 +++------
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/docs/00_index.mkd b/docs/00_index.mkd
index 0211be6..0902733 100644
--- a/docs/00_index.mkd
+++ b/docs/00_index.mkd
@@ -30,6 +30,7 @@
 - Administrators may create, edit, rename, or delete users through the web UI
 - Repository Owners may edit repositories through the web UI
 - Automatically generates a self-signed certificate for https communications
+- Git-notes support
 - Dates can optionally be displayed using the browser's reported timezone
 - Author and Committer email address display can be controlled
 - Dynamic zip downloads feature
@@ -52,13 +53,10 @@
 - Gitblit is an integrated, full-stack solution.  There is no WAR build at this time.
 
 ### Todo List
-- Review spots where Gitblit can cache data instead of abusing the disk
-    - stats
-    - users.properties access
-    - available repositories
-    - etc
 - Code documentation
 - Unit testing
+- Branch selector on Metrics
+- Blame
 
 ### Idea List
 - Ticgit activity/timeline
@@ -67,7 +65,6 @@
 - View images on Blob page
 - View other binary files on Blob page
 - Markdown editing feature
-- Blame (waiting for the [JGit][jgit] team to do the hard part)
 
 ### License
 Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
diff --git a/src/com/gitblit/wicket/pages/TreePage.java b/src/com/gitblit/wicket/pages/TreePage.java
index ac84e73..f796266 100644
--- a/src/com/gitblit/wicket/pages/TreePage.java
+++ b/src/com/gitblit/wicket/pages/TreePage.java
@@ -26,6 +26,7 @@
 import org.apache.wicket.markup.repeater.data.DataView;
 import org.apache.wicket.markup.repeater.data.ListDataProvider;
 import org.eclipse.jgit.lib.Constants;
+import org.eclipse.jgit.lib.FileMode;
 import org.eclipse.jgit.lib.Repository;
 import org.eclipse.jgit.revwalk.RevCommit;
 
@@ -70,7 +71,7 @@
 			if (path.lastIndexOf('/') > -1) {
 				parentPath = path.substring(0, path.lastIndexOf('/'));
 			}
-			PathModel model = new PathModel("..", parentPath, 0, 40000, objectId);
+			PathModel model = new PathModel("..", parentPath, 0, FileMode.TREE.getBits(), objectId);
 			model.isParentPath = true;
 			paths.add(0, model);
 		}

--
Gitblit v1.9.1