diff options
author | Lars Hjemli <hjemli@gmail.com> | 2011-06-07 04:29:58 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2011-06-14 08:03:46 (JST) |
commit | 3ec6b309505dc5f7ba14abe8861b02da34a9df0b (patch) | |
tree | 4dda97c3b85d8103f05332677c6e0a15113f3cf3 /cgit.h | |
parent | b88cda6e5b4472fc1bb0ae00d9fb974ec4f61d7a (diff) | |
download | cgit-3ec6b309505dc5f7ba14abe8861b02da34a9df0b.zip cgit-3ec6b309505dc5f7ba14abe8861b02da34a9df0b.tar.gz |
cgit.c: always setup cgit repo environment variables
When cgit learned to setup environment variables for certain repo
settings before invoking a filter process, the setup occurred inside
cgit_open_filter().
This patch moves the setup out of cgit_open_filter() and into
prepare_repo_cmd() to prepare for additional uses of these variables.
Reviewed-by: Ferry Huberts <mailings@hupie.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -319,9 +319,11 @@ extern const char *cgit_repobasename(const char *reponame); | |||
319 | 319 | ||
320 | extern int cgit_parse_snapshots_mask(const char *str); | 320 | extern int cgit_parse_snapshots_mask(const char *str); |
321 | 321 | ||
322 | extern int cgit_open_filter(struct cgit_filter *filter, struct cgit_repo * repo); | 322 | extern int cgit_open_filter(struct cgit_filter *filter); |
323 | extern int cgit_close_filter(struct cgit_filter *filter); | 323 | extern int cgit_close_filter(struct cgit_filter *filter); |
324 | 324 | ||
325 | extern void cgit_prepare_repo_env(struct cgit_repo * repo); | ||
326 | |||
325 | extern int readfile(const char *path, char **buf, size_t *size); | 327 | extern int readfile(const char *path, char **buf, size_t *size); |
326 | 328 | ||
327 | extern char *expand_macros(const char *txt); | 329 | extern char *expand_macros(const char *txt); |