ui-commit: Preserve path limit in links to commit page
This includes adding a path argument to cgit_commit_link() and updating all its callers. The callers from within the commit page (i.e. the "commit", "unidiff"/"side-by-side diff" and "parent" links) all preserve the path limit of the current commit page. All other callers pass NULL (i.e. no path limit). Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
此提交包含在:
@ -29,7 +29,8 @@ extern void cgit_log_link(const char *name, const char *title,
|
||||
const char *pattern, int showmsg);
|
||||
extern void cgit_commit_link(char *name, const char *title,
|
||||
const char *class, const char *head,
|
||||
const char *rev, int toggle_ssdiff);
|
||||
const char *rev, const char *path,
|
||||
int toggle_ssdiff);
|
||||
extern void cgit_patch_link(const char *name, const char *title,
|
||||
const char *class, const char *head,
|
||||
const char *rev, const char *path);
|
||||
|
新增問題並參考
封鎖使用者