mirror of
https://git.zx2c4.com/cgit
synced 2025-08-01 16:44:44 +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
3
shared.c
3
shared.c
|
@ -59,7 +59,8 @@ int htmlfd = 0;
|
|||
|
||||
int cgit_get_cmd_index(const char *cmd)
|
||||
{
|
||||
static char *cmds[] = {"log", "commit", "diff", "tree", "view", "blob", "snapshot", NULL};
|
||||
static char *cmds[] = {"log", "commit", "diff", "tree", "blob",
|
||||
"snapshot", NULL};
|
||||
int i;
|
||||
|
||||
for(i = 0; cmds[i]; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue