]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.h
ui-diff: don't link to single file diff stat
[cgit.git] / cgit.h
diff --git a/cgit.h b/cgit.h
index 0badc642ec65c9b4166afe8952cd04b4322fa3c3..42140ac4acdb8d59942a5e0abcfb9f7bbbb3bf4b 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -53,7 +53,11 @@ typedef void (*filepair_fn)(struct diff_filepair *pair);
 typedef void (*linediff_fn)(char *line, int len);
 
 typedef enum {
-       ABOUT, COMMIT, SOURCE, EMAIL, AUTH
+       DIFF_UNIFIED, DIFF_SSDIFF, DIFF_STATONLY
+} diff_type;
+
+typedef enum {
+       ABOUT, COMMIT, SOURCE, EMAIL, AUTH, OWNER
 } filter_type;
 
 struct cgit_filter {
@@ -100,6 +104,7 @@ struct cgit_repo {
        struct cgit_filter *commit_filter;
        struct cgit_filter *source_filter;
        struct cgit_filter *email_filter;
+       struct cgit_filter *owner_filter;
        struct string_list submodules;
 };
 
@@ -150,7 +155,7 @@ struct reflist {
 struct cgit_query {
        int has_symref;
        int has_sha1;
-       int has_ssdiff;
+       int has_difftype;
        char *raw;
        char *repo;
        char *page;
@@ -168,7 +173,7 @@ struct cgit_query {
        int nohead;
        char *sort;
        int showmsg;
-       int ssdiff;
+       diff_type difftype;
        int show_all;
        int context;
        int ignorews;
@@ -245,7 +250,7 @@ struct cgit_config {
        int summary_branches;
        int summary_log;
        int summary_tags;
-       int ssdiff;
+       diff_type difftype;
        int branch_sort;
        int commit_sort;
        struct string_list mimetypes;
@@ -253,6 +258,7 @@ struct cgit_config {
        struct cgit_filter *commit_filter;
        struct cgit_filter *source_filter;
        struct cgit_filter *email_filter;
+       struct cgit_filter *owner_filter;
        struct cgit_filter *auth_filter;
 };