diff options
author | Lars Hjemli | 2007-06-16 20:20:42 +0200 |
---|---|---|
committer | Lars Hjemli | 2007-06-16 20:20:42 +0200 |
commit | ffc69736a606fd8f9a10468cce48b9a37b428944 (patch) | |
tree | b080c702391244a525fa0e7c97758f7f7fa0c383 /shared.c | |
parent | 849f0f0f02f858e21fbe59295846e51628f82915 (diff) | |
download | cgit-ffc69736a606fd8f9a10468cce48b9a37b428944.tar.gz cgit-ffc69736a606fd8f9a10468cce48b9a37b428944.tar.bz2 cgit-ffc69736a606fd8f9a10468cce48b9a37b428944.zip |
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 'shared.c')
-rw-r--r-- | shared.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -59,7 +59,8 @@ int htmlfd = 0; | |||
59 | 59 | ||
60 | int cgit_get_cmd_index(const char *cmd) | 60 | int cgit_get_cmd_index(const char *cmd) |
61 | { | 61 | { |
62 | static char *cmds[] = {"log", "commit", "diff", "tree", "view", "blob", "snapshot", NULL}; | 62 | static char *cmds[] = {"log", "commit", "diff", "tree", "blob", |
63 | "snapshot", NULL}; | ||
63 | int i; | 64 | int i; |
64 | 65 | ||
65 | for(i = 0; cmds[i]; i++) | 66 | for(i = 0; cmds[i]; i++) |