From 2e410064069298230f23758b92aafafc95cba357 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 30 Oct 2026 10:55:28 -0700 Subject: Describe each snapshot format as data in the table --- source/ui-snapshot.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'source/ui-snapshot.h') diff --git a/source/ui-snapshot.h b/source/ui-snapshot.h index 412807e..2278f4c 100644 --- a/source/ui-snapshot.h +++ b/source/ui-snapshot.h @@ -11,14 +11,13 @@ #include "cgit.h" -typedef int (*write_archive_fn_t)(const char *hex, const char *prefix); - 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; + const char *format_arg; + // The command line git's output is piped through, or NULL when the + // archive goes out as git writes it. + const char **compressor; }; // Terminated by an entry with a NULL suffix. -- cgit 2.12.1