1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef CGIT_UI_SNAPSHOT_H
#define CGIT_UI_SNAPSHOT_H
#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;
};
extern const struct cgit_snapshot_format cgit_snapshot_formats[];
extern unsigned cgit_snapshot_format_bit(const struct cgit_snapshot_format *f);
extern int cgit_parse_snapshots_mask(const char *str);
extern const struct object_id *cgit_snapshot_get_sig(
const char *ref, const struct cgit_snapshot_format *f);
extern void cgit_print_snapshot(const char *head, const char *hex, const char *filename, int dwim);
#endif
|