|
diff --git a/cgit.h b/cgit.h index b01fa31..a1fa841 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -3,48 +3,49 @@ |
3 | |
3 | |
4 | |
4 | |
5 | #include <git-compat-util.h> |
5 | #include <git-compat-util.h> |
6 | #include <cache.h> |
6 | #include <cache.h> |
7 | #include <grep.h> |
7 | #include <grep.h> |
8 | #include <object.h> |
8 | #include <object.h> |
9 | #include <tree.h> |
9 | #include <tree.h> |
10 | #include <commit.h> |
10 | #include <commit.h> |
11 | #include <tag.h> |
11 | #include <tag.h> |
12 | #include <diff.h> |
12 | #include <diff.h> |
13 | #include <diffcore.h> |
13 | #include <diffcore.h> |
14 | #include <refs.h> |
14 | #include <refs.h> |
15 | #include <revision.h> |
15 | #include <revision.h> |
16 | #include <log-tree.h> |
16 | #include <log-tree.h> |
17 | #include <archive.h> |
17 | #include <archive.h> |
18 | #include <xdiff/xdiff.h> |
18 | #include <xdiff/xdiff.h> |
19 | #include <utf8.h> |
19 | #include <utf8.h> |
20 | |
20 | |
21 | |
21 | |
22 | /* |
22 | /* |
23 | * Dateformats used on misc. pages |
23 | * Dateformats used on misc. pages |
24 | */ |
24 | */ |
25 | #define FMT_LONGDATE "%Y-%m-%d %H:%M:%S (%Z)" |
25 | #define FMT_LONGDATE "%Y-%m-%d %H:%M:%S (%Z)" |
26 | #define FMT_SHORTDATE "%Y-%m-%d" |
26 | #define FMT_SHORTDATE "%Y-%m-%d" |
| |
27 | #define FMT_ATOMDATE "%Y-%m-%dT%H:%M:%SZ" |
27 | |
28 | |
28 | |
29 | |
29 | /* |
30 | /* |
30 | * Limits used for relative dates |
31 | * Limits used for relative dates |
31 | */ |
32 | */ |
32 | #define TM_MIN 60 |
33 | #define TM_MIN 60 |
33 | #define TM_HOUR (TM_MIN * 60) |
34 | #define TM_HOUR (TM_MIN * 60) |
34 | #define TM_DAY (TM_HOUR * 24) |
35 | #define TM_DAY (TM_HOUR * 24) |
35 | #define TM_WEEK (TM_DAY * 7) |
36 | #define TM_WEEK (TM_DAY * 7) |
36 | #define TM_YEAR (TM_DAY * 365) |
37 | #define TM_YEAR (TM_DAY * 365) |
37 | #define TM_MONTH (TM_YEAR / 12.0) |
38 | #define TM_MONTH (TM_YEAR / 12.0) |
38 | |
39 | |
39 | |
40 | |
40 | /* |
41 | /* |
41 | * Default encoding |
42 | * Default encoding |
42 | */ |
43 | */ |
43 | #define PAGE_ENCODING "UTF-8" |
44 | #define PAGE_ENCODING "UTF-8" |
44 | |
45 | |
45 | typedef void (*configfn)(const char *name, const char *value); |
46 | typedef void (*configfn)(const char *name, const char *value); |
46 | typedef void (*filepair_fn)(struct diff_filepair *pair); |
47 | typedef void (*filepair_fn)(struct diff_filepair *pair); |
47 | typedef void (*linediff_fn)(char *line, int len); |
48 | typedef void (*linediff_fn)(char *line, int len); |
48 | |
49 | |
49 | struct cgit_repo { |
50 | struct cgit_repo { |
50 | char *url; |
51 | char *url; |
|