]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.c
ui-log: honor id=sha1 on querystring
[cgit.git] / cgit.c
diff --git a/cgit.c b/cgit.c
index e5d8fbd3f7cddc594a6eb594fc1d127b1ef41670..b936a700c53957ae529485775808a6460125aa98 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -92,18 +92,15 @@ static void cgit_print_repo_page(struct cacheitem *item)
 
        switch(cgit_cmd) {
        case CMD_LOG:
-               cgit_print_log(cgit_query_head, cgit_query_ofs,
+               cgit_print_log(cgit_query_sha1, cgit_query_ofs,
                               cgit_max_commit_count, cgit_query_search,
-                              cgit_query_path);
+                              cgit_query_path, 1);
                break;
        case CMD_TREE:
-               cgit_print_tree(cgit_query_head, cgit_query_sha1, cgit_query_path);
+               cgit_print_tree(cgit_query_sha1, cgit_query_path);
                break;
        case CMD_COMMIT:
-               cgit_print_commit(cgit_query_head);
-               break;
-       case CMD_VIEW:
-               cgit_print_view(cgit_query_sha1, cgit_query_path);
+               cgit_print_commit(cgit_query_sha1);
                break;
        case CMD_DIFF:
                cgit_print_diff(cgit_query_head, cgit_query_sha1, cgit_query_sha2,