-rw-r--r-- | cgit.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -18,2 +18,3 @@ #include <xdiff/xdiff.h> +#include <utf8.h> @@ -31,2 +32,3 @@ #define CMD_REFS 8 +#define CMD_PATCH 9 @@ -50,2 +52,7 @@ +/* + * Default encoding + */ +#define PAGE_ENCODING "UTF-8" + typedef void (*configfn)(const char *name, const char *value); @@ -71,2 +78,3 @@ struct repoinfo { char *readme; + char *clone_url; int snapshots; @@ -92,2 +100,3 @@ struct commitinfo { char *msg; + char *msg_encoding; }; @@ -134,2 +143,4 @@ extern char *cgit_cache_root; extern char *cgit_repo_group; +extern char *cgit_robots; +extern char *cgit_clone_prefix; @@ -275,2 +286,3 @@ 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, |