From 7937d06090dd5e19145ec6fa8befc5770954b30c Mon Sep 17 00:00:00 2001
From: Lars Hjemli
Date: Sat, 27 Oct 2007 10:36:53 +0200
Subject: Add support for refs view

This enables the new urls $repo/refs, $repo/refs/heads and $repo/refs/tags,
which can be used to print _all_ branches and/or tags.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
---
 cgit.c | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'cgit.c')

diff --git a/cgit.c b/cgit.c
index 1b85b15..cc18ed4 100644
--- a/cgit.c
+++ b/cgit.c
@@ -103,6 +103,9 @@ static void cgit_print_repo_page(struct cacheitem *item)
 	case CMD_COMMIT:
 		cgit_print_commit(cgit_query_sha1);
 		break;
+	case CMD_REFS:
+		cgit_print_refs();
+		break;
 	case CMD_TAG:
 		cgit_print_tag(cgit_query_sha1);
 		break;
-- 
cgit v1.2.3-54-g00ecf