Diff options
Diffstat (limited to '')
| -rw-r--r-- | source/ui-snapshot.h | 14 |
1 file changed, 8 insertions, 6 deletions
diff --git a/source/ui-snapshot.h b/source/ui-snapshot.h index 412807e..12241a9 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. @@ -28,12 +27,15 @@ extern unsigned cgit_snapshot_format_bit(const struct cgit_snapshot_format *f); /* * Turn a cgitrc snapshots value into a mask over cgit_snapshot_formats. A - * plain nonzero number is the legacy boolean form and enables plain tar + * plain non-zero number is the legacy boolean form and enables plain tar * alone, the word all enables every format, and otherwise the value is a * space separated list of suffixes. */ extern int cgit_parse_snapshots_mask(const char *str); +// The suffix that names a signature after the archive it signs. +#define SIG_SUFFIX ".asc" + /* * The detached signature stored for this format under refs/notes, if any. */ |
