author | Lars Hjemli <hjemli@gmail.com> | 2007-05-08 21:52:56 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-08 21:52:56 (UTC) |
commit | 7250a154678477a1e8260efbc9810ec389754ef9 (patch) (unidiff) | |
tree | 519559a2f9238fc386b7715c55bc3e2326be8d54 /cgit.c | |
parent | 61c3ca978c586c673aec618cb94210657278dda8 (diff) | |
download | cgit-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>
-rw-r--r-- | cgit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -96,33 +96,33 @@ static void cgit_print_repo_page(struct cacheitem *item) | |||
96 | cgit_print_pageheader("summary", show_search); | 96 | cgit_print_pageheader("summary", show_search); |
97 | cgit_print_summary(); | 97 | cgit_print_summary(); |
98 | cgit_print_docend(); | 98 | cgit_print_docend(); |
99 | return; | 99 | return; |
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 | ||
121 | static void cgit_fill_cache(struct cacheitem *item, int use_cache) | 121 | static 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; |
125 | 125 | ||
126 | getcwd(buf, sizeof(buf)); | 126 | getcwd(buf, sizeof(buf)); |
127 | item->st.st_mtime = time(NULL); | 127 | item->st.st_mtime = time(NULL); |
128 | 128 | ||