mirror of
https://git.zx2c4.com/cgit
synced 2025-07-21 19:34:22 +02:00
Add submodule links in tree listing
When a submodule occurs in a tree, generate a link to show the module/commit. The link is specified as a sprintf string in /etc/cgitrc, using parameters 'module-link' and 'repo.module-link'. This should probably be extended with repo.module-link.$path. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
cc1dbd1b5d
commit
ded9393b17
6 changed files with 27 additions and 12 deletions
2
cgit.h
2
cgit.h
|
@ -33,6 +33,7 @@ struct repoinfo {
|
|||
char *path;
|
||||
char *desc;
|
||||
char *owner;
|
||||
char *module_link;
|
||||
int snapshots;
|
||||
};
|
||||
|
||||
|
@ -70,6 +71,7 @@ extern char *cgit_root_title;
|
|||
extern char *cgit_css;
|
||||
extern char *cgit_logo;
|
||||
extern char *cgit_logo_link;
|
||||
extern char *cgit_module_link;
|
||||
extern char *cgit_virtual_root;
|
||||
extern char *cgit_cache_root;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue