]> granicus.if.org Git - cgit/commit
ui-commit: Preserve path limit in links to commit page
authorJohan Herland <johan@herland.net>
Wed, 9 Jun 2010 23:09:35 +0000 (01:09 +0200)
committerLars Hjemli <hjemli@gmail.com>
Sat, 19 Jun 2010 08:40:24 +0000 (10:40 +0200)
commit685872b770be2af643d00365d5358e46687f7385
tree279a8399c3e9b189a7171df6ca009a58bf1bb8c7
parent34c2331d2c33ea28743a2ee3e62f7337ae9887f6
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>
ui-commit.c
ui-log.c
ui-refs.c
ui-shared.c
ui-shared.h