-rw-r--r-- | cgit.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -17,4 +17,5 @@ #include <archive.h> #include <xdiff/xdiff.h> +#include <utf8.h> @@ -30,4 +31,5 @@ #define CMD_TAG 7 #define CMD_REFS 8 +#define CMD_PATCH 9 /* @@ -49,4 +51,9 @@ +/* + * Default encoding + */ +#define PAGE_ENCODING "UTF-8" + typedef void (*configfn)(const char *name, const char *value); typedef void (*filepair_fn)(struct diff_filepair *pair); @@ -70,4 +77,5 @@ struct repoinfo { char *module_link; char *readme; + char *clone_url; int snapshots; int enable_log_filecount; @@ -91,4 +99,5 @@ struct commitinfo { char *subject; char *msg; + char *msg_encoding; }; @@ -133,4 +142,6 @@ extern char *cgit_script_name; extern char *cgit_cache_root; extern char *cgit_repo_group; +extern char *cgit_robots; +extern char *cgit_clone_prefix; extern int cgit_nocache; @@ -274,4 +285,5 @@ extern void cgit_print_refs(); extern void cgit_print_tag(char *revname); extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); +extern void cgit_print_patch(char *hex, struct cacheitem *item); extern void cgit_print_snapshot(struct cacheitem *item, const char *head, const char *hex, const char *prefix, |