author | Johan Herland <johan@herland.net> | 2010-06-09 23:09:35 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-06-19 08:40:24 (UTC) |
commit | 685872b770be2af643d00365d5358e46687f7385 (patch) (unidiff) | |
tree | 279a8399c3e9b189a7171df6ca009a58bf1bb8c7 /ui-shared.h | |
parent | 34c2331d2c33ea28743a2ee3e62f7337ae9887f6 (diff) | |
download | cgit-685872b770be2af643d00365d5358e46687f7385.zip cgit-685872b770be2af643d00365d5358e46687f7385.tar.gz cgit-685872b770be2af643d00365d5358e46687f7385.tar.bz2 |
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>
-rw-r--r-- | ui-shared.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui-shared.h b/ui-shared.h index c0e5c55..3cc1258 100644 --- a/ui-shared.h +++ b/ui-shared.h | |||
@@ -20,25 +20,26 @@ extern void cgit_tag_link(const char *name, const char *title, | |||
20 | extern void cgit_tree_link(const char *name, const char *title, | 20 | extern void cgit_tree_link(const char *name, const char *title, |
21 | const char *class, const char *head, | 21 | const char *class, const char *head, |
22 | const char *rev, const char *path); | 22 | const char *rev, const char *path); |
23 | extern void cgit_plain_link(const char *name, const char *title, | 23 | extern void cgit_plain_link(const char *name, const char *title, |
24 | const char *class, const char *head, | 24 | const char *class, const char *head, |
25 | const char *rev, const char *path); | 25 | const char *rev, const char *path); |
26 | extern void cgit_log_link(const char *name, const char *title, | 26 | extern void cgit_log_link(const char *name, const char *title, |
27 | const char *class, const char *head, const char *rev, | 27 | const char *class, const char *head, const char *rev, |
28 | const char *path, int ofs, const char *grep, | 28 | const char *path, int ofs, const char *grep, |
29 | const char *pattern, int showmsg); | 29 | const char *pattern, int showmsg); |
30 | extern void cgit_commit_link(char *name, const char *title, | 30 | extern void cgit_commit_link(char *name, const char *title, |
31 | const char *class, const char *head, | 31 | const char *class, const char *head, |
32 | const char *rev, int toggle_ssdiff); | 32 | const char *rev, const char *path, |
33 | int toggle_ssdiff); | ||
33 | extern void cgit_patch_link(const char *name, const char *title, | 34 | extern void cgit_patch_link(const char *name, const char *title, |
34 | const char *class, const char *head, | 35 | const char *class, const char *head, |
35 | const char *rev, const char *path); | 36 | const char *rev, const char *path); |
36 | extern void cgit_refs_link(const char *name, const char *title, | 37 | extern void cgit_refs_link(const char *name, const char *title, |
37 | const char *class, const char *head, | 38 | const char *class, const char *head, |
38 | const char *rev, const char *path); | 39 | const char *rev, const char *path); |
39 | extern void cgit_snapshot_link(const char *name, const char *title, | 40 | extern void cgit_snapshot_link(const char *name, const char *title, |
40 | const char *class, const char *head, | 41 | const char *class, const char *head, |
41 | const char *rev, const char *archivename); | 42 | const char *rev, const char *archivename); |
42 | extern void cgit_diff_link(const char *name, const char *title, | 43 | extern void cgit_diff_link(const char *name, const char *title, |
43 | const char *class, const char *head, | 44 | const char *class, const char *head, |
44 | const char *new_rev, const char *old_rev, | 45 | const char *new_rev, const char *old_rev, |