From 86e4e2e2809412ed6221e297bf0df063ad3698bf Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 1 Aug 2026 22:15:27 -1000 Subject: Add `enable-relative-dates` and `date-format` --- source/cgit.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/cgit.h') diff --git a/source/cgit.h b/source/cgit.h index 78129b5..c41854e 100644 --- a/source/cgit.h +++ b/source/cgit.h @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -217,6 +218,7 @@ struct cgit_config { char *repository_sort; char *virtual_root; /* Always ends with '/'. */ char *strict_export; + struct date_mode date_mode; int cache_size; int cache_dynamic_ttl; int cache_repo_ttl; @@ -237,6 +239,7 @@ struct cgit_config { int enable_commit_graph; int enable_log_filecount; int enable_log_linecount; + int enable_relative_dates; int enable_remote_branches; int enable_subject_links; int enable_html_serving; @@ -382,6 +385,7 @@ extern void cgit_parse_url(const char *url); extern const char *cgit_repobasename(const char *reponame); extern int cgit_parse_snapshots_mask(const char *str); +extern void cgit_parse_date_format(const char *format, struct date_mode *mode); extern const struct object_id *cgit_snapshot_get_sig(const char *ref, const struct cgit_snapshot_format *f); extern const unsigned cgit_snapshot_format_bit(const struct cgit_snapshot_format *f); -- cgit v2.8.0