diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-06-16 20:20:42 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-06-16 20:20:42 +0200 |
commit | ffc69736a606fd8f9a10468cce48b9a37b428944 (patch) | |
tree | b080c702391244a525fa0e7c97758f7f7fa0c383 /cgit.h | |
parent | 849f0f0f02f858e21fbe59295846e51628f82915 (diff) |
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 '')
-rw-r--r-- | cgit.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); |