From ffc69736a606fd8f9a10468cce48b9a37b428944 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sat, 16 Jun 2007 20:20:42 +0200 Subject: 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. --- cgit.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 2f3fca1..b93e2e8 100644 --- a/cgit.h +++ b/cgit.h @@ -25,9 +25,8 @@ #define CMD_COMMIT 2 #define CMD_DIFF 3 #define CMD_TREE 4 -#define CMD_VIEW 5 -#define CMD_BLOB 6 -#define CMD_SNAPSHOT 7 +#define CMD_BLOB 5 +#define CMD_SNAPSHOT 6 /* @@ -215,9 +214,8 @@ extern void cgit_print_snapshot_start(const char *mimetype, extern void cgit_print_repolist(struct cacheitem *item); extern void cgit_print_summary(); extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager); -extern void cgit_print_view(const char *hex, char *path); extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); -extern void cgit_print_tree(const char *rev, const char *hex, char *path); +extern void cgit_print_tree(const char *rev, char *path); extern void cgit_print_commit(const char *hex); extern void cgit_print_diff(const char *head, const char *old_hex, const char *new_hex, char *path); -- cgit v1.2.3-59-g8ed1b