-rw-r--r-- | cgit.h | 36 |
1 files changed, 33 insertions, 3 deletions
@@ -21,2 +21,4 @@ #include <utf8.h> +#include <notes.h> +#include <graph.h> @@ -71,5 +73,10 @@ struct cgit_repo { char *clone_url; + char *logo; + char *logo_link; int snapshots; + int enable_commit_graph; int enable_log_filecount; int enable_log_linecount; + int enable_remote_branches; + int enable_subject_links; int max_stats; @@ -145,2 +152,7 @@ struct cgit_query { int showmsg; + int ssdiff; + int show_all; + int context; + int ignorews; + char *vpath; }; @@ -161,2 +173,4 @@ struct cgit_config { char *module_link; + char *project_list; + char *readme; char *robots; @@ -168,2 +182,3 @@ struct cgit_config { char *virtual_root; + char *strict_export; int cache_size; @@ -177,7 +192,12 @@ struct cgit_config { int enable_filter_overrides; + int enable_gitweb_owner; int enable_index_links; + int enable_commit_graph; int enable_log_filecount; int enable_log_linecount; + int enable_remote_branches; + int enable_subject_links; int enable_tree_linenumbers; int local_time; + int max_atom_items; int max_repo_count; @@ -187,2 +207,3 @@ struct cgit_config { int max_repodesc_len; + int max_blob_size; int max_stats; @@ -192,2 +213,5 @@ struct cgit_config { int renamelimit; + int remove_suffix; + int scan_hidden_path; + int section_from_path; int snapshots; @@ -196,2 +220,3 @@ struct cgit_config { int summary_tags; + int ssdiff; struct string_list mimetypes; @@ -270,3 +295,4 @@ extern int cgit_diff_files(const unsigned char *old_sha1, unsigned long *old_size, unsigned long *new_size, - int *binary, linediff_fn fn); + int *binary, int context, int ignorews, + linediff_fn fn); @@ -274,6 +300,8 @@ extern void cgit_diff_tree(const unsigned char *old_sha1, const unsigned char *new_sha1, - filepair_fn fn, const char *prefix); + filepair_fn fn, const char *prefix, int ignorews); -extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); +extern void cgit_diff_commit(struct commit *commit, filepair_fn fn, + const char *prefix); +__attribute__((format (printf,1,2))) extern char *fmt(const char *format,...); @@ -293,2 +321,4 @@ extern int readfile(const char *path, char **buf, size_t *size); +extern char *expand_macros(const char *txt); + #endif /* CGIT_H */ |