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.
Tá an tiomantas seo le fáil i:
Lars Hjemli
2007-06-16 20:20:42 +02:00
tuismitheoir 849f0f0f02
tiomantas ffc69736a6
D'athraigh 8 comhad le 180 breiseanna agus 118 scriosta

8
cgit.h
Féach ar an gComhad

@ -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);