From 42adaa11aa0a66645d4cf94488c88660cea00c41 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 21 Sep 2026 21:34:12 -1000 Subject: Harden the page renderers --- source/ui-snapshot.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/ui-snapshot.h') diff --git a/source/ui-snapshot.h b/source/ui-snapshot.h index c594168..412807e 100644 --- a/source/ui-snapshot.h +++ b/source/ui-snapshot.h @@ -17,6 +17,8 @@ struct cgit_snapshot_format { const char *suffix; const char *mimetype; write_archive_fn_t write_func; + // The compressor the writer runs, or NULL when it needs none. + const char *program; }; // Terminated by an entry with a NULL suffix. @@ -32,7 +34,9 @@ extern unsigned cgit_snapshot_format_bit(const struct cgit_snapshot_format *f); */ extern int cgit_parse_snapshots_mask(const char *str); -// The detached signature stored for this format under refs/notes, if any. +/* + * The detached signature stored for this format under refs/notes, if any. + */ extern const struct object_id *cgit_snapshot_get_sig( const char *ref, const struct cgit_snapshot_format *f); -- cgit v2.8.0