From 00372b1afea0b20cfb8ee3057030ecdb9e8ece55 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Tue, 15 Sep 2026 19:39:04 -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 2.12.1