summaryrefslogtreecommitdiffstats
path: root/src/main/java/WEB-INF
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-08-14 08:56:27 -0400
committerJames Moger <james.moger@gitblit.com>2013-09-17 17:34:00 -0400
commitf084f468756bde745d8e8e27c729f6e57bea5749 (patch)
tree5000ff4a8de48ed3259e2ad5b295e03bd829e859 /src/main/java/WEB-INF
parent578319a659fba918ba720d12ca4d4fc105918595 (diff)
downloadgitblit-f084f468756bde745d8e8e27c729f6e57bea5749.tar.gz
gitblit-f084f468756bde745d8e8e27c729f6e57bea5749.zip
Implemented a graph servlet based on EGit/JGit's PlotWalk (issue-194)
The graph is generated server-side and therefore requires that the commit table row height be fixed and match the row height of the servlet. There will be layout misalignment if remotes refs are displayed. Perhaps this can be improved in the future. Change-Id: I39d0ffc7b1c3679976ce8c198c772ff86238f1a5
Diffstat (limited to 'src/main/java/WEB-INF')
-rw-r--r--src/main/java/WEB-INF/web.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/WEB-INF/web.xml b/src/main/java/WEB-INF/web.xml
index cf714651..d4acb049 100644
--- a/src/main/java/WEB-INF/web.xml
+++ b/src/main/java/WEB-INF/web.xml
@@ -154,6 +154,17 @@
<url-pattern>/logo.png</url-pattern>
</servlet-mapping>
+ <!-- Branch Graph Servlet
+ <url-pattern> MUST match:
+ * Wicket Filter ignorePaths parameter -->
+ <servlet>
+ <servlet-name>BranchGraphServlet</servlet-name>
+ <servlet-class>com.gitblit.BranchGraphServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>BranchGraphServlet</servlet-name>
+ <url-pattern>/graph/*</url-pattern>
+ </servlet-mapping>
<!-- Robots.txt Servlet
<url-pattern> MUST match:
@@ -282,7 +293,7 @@
* PagesFilter <url-pattern>
* PagesServlet <url-pattern>
* com.gitblit.Constants.PAGES_PATH -->
- <param-value>git/,feed/,zip/,federation/,rpc/,pages/,robots.txt,logo.png,sparkleshare/</param-value>
+ <param-value>git/,feed/,zip/,federation/,rpc/,pages/,robots.txt,logo.png,graph/,sparkleshare/</param-value>
</init-param>
</filter>
<filter-mapping>