mirror of
https://git.zx2c4.com/cgit
synced 2025-08-29 22:19:27 +02:00
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.
This commit is contained in:
parent
849f0f0f02
commit
ffc69736a6
8 changed files with 180 additions and 118 deletions
8
cgit.h
8
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue