summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index b01fa31..a1fa841 100644
--- a/cgit.h
+++ b/cgit.h
@@ -1,74 +1,75 @@
1#ifndef CGIT_H 1#ifndef CGIT_H
2#define CGIT_H 2#define CGIT_H
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
45typedef void (*configfn)(const char *name, const char *value); 46typedef void (*configfn)(const char *name, const char *value);
46typedef void (*filepair_fn)(struct diff_filepair *pair); 47typedef void (*filepair_fn)(struct diff_filepair *pair);
47typedef void (*linediff_fn)(char *line, int len); 48typedef void (*linediff_fn)(char *line, int len);
48 49
49struct cgit_repo { 50struct cgit_repo {
50 char *url; 51 char *url;
51 char *name; 52 char *name;
52 char *path; 53 char *path;
53 char *desc; 54 char *desc;
54 char *owner; 55 char *owner;
55 char *defbranch; 56 char *defbranch;
56 char *group; 57 char *group;
57 char *module_link; 58 char *module_link;
58 char *readme; 59 char *readme;
59 char *clone_url; 60 char *clone_url;
60 int snapshots; 61 int snapshots;
61 int enable_log_filecount; 62 int enable_log_filecount;
62 int enable_log_linecount; 63 int enable_log_linecount;
63}; 64};
64 65
65struct cgit_repolist { 66struct cgit_repolist {
66 int length; 67 int length;
67 int count; 68 int count;
68 struct cgit_repo *repos; 69 struct cgit_repo *repos;
69}; 70};
70 71
71struct commitinfo { 72struct commitinfo {
72 struct commit *commit; 73 struct commit *commit;
73 char *author; 74 char *author;
74 char *author_email; 75 char *author_email;