diff options
author | Johan Herland <johan@herland.net> | 2010-06-10 01:09:35 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-06-19 10:40:24 +0200 |
commit | 685872b770be2af643d00365d5358e46687f7385 (patch) | |
tree | 279a8399c3e9b189a7171df6ca009a58bf1bb8c7 /ui-refs.c | |
parent | ui-commit: Preserve path limit in links to tree and diff pages (diff) | |
download | cgit-pink-685872b770be2af643d00365d5358e46687f7385.tar.gz cgit-pink-685872b770be2af643d00365d5358e46687f7385.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | ui-refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-refs.c b/ui-refs.c index 98738db..94ff6be 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -74,7 +74,7 @@ static int print_branch(struct refinfo *ref) html("</td><td>"); if (ref->object->type == OBJ_COMMIT) { - cgit_commit_link(info->subject, NULL, NULL, name, NULL, 0); + cgit_commit_link(info->subject, NULL, NULL, name, NULL, NULL, 0); html("</td><td>"); html_txt(info->author); html("</td><td colspan='2'>"); |