about summary refs log tree commit diff stats
path: root/cgit.c
diff options
context:
space:
mode:
authorLars Hjemli2007-06-16 20:20:42 +0200
committerLars Hjemli2007-06-16 20:20:42 +0200
commitffc69736a606fd8f9a10468cce48b9a37b428944 (patch)
treeb080c702391244a525fa0e7c97758f7f7fa0c383 /cgit.c
parentcgit.css: make it validate (diff)
downloadcgit-ffc69736a606fd8f9a10468cce48b9a37b428944.tar.gz
cgit-ffc69736a606fd8f9a10468cce48b9a37b428944.zip
ui-tree: unify with ui-view, use path to select tree/blob
This teaches ui-tree to show both trees and blobs, thereby making ui-view
superfluous. At the same time, ui-tree is extended to honour the specified
path instead of requiering a tree/blob sha1.
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cgit.c b/cgit.c index 34e590e..1c213c7 100644 --- a/cgit.c +++ b/cgit.c
@@ -97,14 +97,11 @@ static void cgit_print_repo_page(struct cacheitem *item)
97 cgit_query_path, 1); 97 cgit_query_path, 1);
98 break; 98 break;
99 case CMD_TREE: 99 case CMD_TREE:
100 cgit_print_tree(cgit_query_head, cgit_query_sha1, cgit_query_path); 100 cgit_print_tree(cgit_query_sha1, cgit_query_path);
101 break; 101 break;
102 case CMD_COMMIT: 102 case CMD_COMMIT:
103 cgit_print_commit(cgit_query_head); 103 cgit_print_commit(cgit_query_head);
104 break; 104 break;
105 case CMD_VIEW:
106 cgit_print_view(cgit_query_sha1, cgit_query_path);
107 break;
108 case CMD_DIFF: 105 case CMD_DIFF:
109 cgit_print_diff(cgit_query_head, cgit_query_sha1, cgit_query_sha2, 106 cgit_print_diff(cgit_query_head, cgit_query_sha1, cgit_query_sha2,
110 cgit_query_path); 107 cgit_query_path);