From 0dbc7e1d7d618baffe36893a74e0ab3e09e20db0 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:26:56 -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