summaryrefslogtreecommitdiffabout
path: root/cgit.c
authorLars Hjemli <hjemli@gmail.com>2007-05-08 21:52:56 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-08 21:52:56 (UTC)
commit7250a154678477a1e8260efbc9810ec389754ef9 (patch) (unidiff)
tree519559a2f9238fc386b7715c55bc3e2326be8d54 /cgit.c
parent61c3ca978c586c673aec618cb94210657278dda8 (diff)
downloadcgit-7250a154678477a1e8260efbc9810ec389754ef9.zip
cgit-7250a154678477a1e8260efbc9810ec389754ef9.tar.gz
cgit-7250a154678477a1e8260efbc9810ec389754ef9.tar.bz2
ui-view: show pathname if specified in querystring
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c') (more/less context) (show whitespace changes)
-rw-r--r--cgit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c
index fedf355..6dddcbb 100644
--- a/cgit.c
+++ b/cgit.c
@@ -100,25 +100,25 @@ static void cgit_print_repo_page(struct cacheitem *item)
100 } 100 }
101 101
102 cgit_print_pageheader(cgit_query_page, show_search); 102 cgit_print_pageheader(cgit_query_page, show_search);
103 103
104 if (!strcmp(cgit_query_page, "log")) { 104 if (!strcmp(cgit_query_page, "log")) {
105 cgit_print_log(cgit_query_head, cgit_query_ofs, 100, 105 cgit_print_log(cgit_query_head, cgit_query_ofs, 100,
106 cgit_query_search); 106 cgit_query_search);
107 } else if (!strcmp(cgit_query_page, "tree")) { 107 } else if (!strcmp(cgit_query_page, "tree")) {
108 cgit_print_tree(cgit_query_sha1, cgit_query_path); 108 cgit_print_tree(cgit_query_sha1, cgit_query_path);
109 } else if (!strcmp(cgit_query_page, "commit")) { 109 } else if (!strcmp(cgit_query_page, "commit")) {
110 cgit_print_commit(cgit_query_sha1); 110 cgit_print_commit(cgit_query_sha1);
111 } else if (!strcmp(cgit_query_page, "view")) { 111 } else if (!strcmp(cgit_query_page, "view")) {
112 cgit_print_view(cgit_query_sha1); 112 cgit_print_view(cgit_query_sha1, cgit_query_path);
113 } else if (!strcmp(cgit_query_page, "diff")) { 113 } else if (!strcmp(cgit_query_page, "diff")) {
114 cgit_print_diff(cgit_query_sha1, cgit_query_sha2); 114 cgit_print_diff(cgit_query_sha1, cgit_query_sha2);
115 } else { 115 } else {
116 cgit_print_error("Invalid request"); 116 cgit_print_error("Invalid request");
117 } 117 }
118 cgit_print_docend(); 118 cgit_print_docend();
119} 119}
120 120
121static void cgit_fill_cache(struct cacheitem *item, int use_cache) 121static void cgit_fill_cache(struct cacheitem *item, int use_cache)
122{ 122{
123 static char buf[PATH_MAX]; 123 static char buf[PATH_MAX];
124 int stdout2; 124 int stdout2;