]>
Commit | Line | Data |
---|---|---|
30415d50 JS |
1 | #ifndef BUNDLE_H |
2 | #define BUNDLE_H | |
3 | ||
b8607f35 | 4 | #include "cache.h" |
5 | ||
30415d50 JS |
6 | struct ref_list { |
7 | unsigned int nr, alloc; | |
8 | struct ref_list_entry { | |
b8607f35 | 9 | struct object_id oid; |
30415d50 JS |
10 | char *name; |
11 | } *list; | |
12 | }; | |
13 | ||
14 | struct bundle_header { | |
15 | struct ref_list prerequisites; | |
16 | struct ref_list references; | |
17 | }; | |
18 | ||
2727b71f | 19 | int is_bundle(const char *path, int quiet); |
30415d50 | 20 | int read_bundle_header(const char *path, struct bundle_header *header); |
fcb133e9 JK |
21 | int create_bundle(struct repository *r, const char *path, |
22 | int argc, const char **argv); | |
74ae4b63 | 23 | int verify_bundle(struct repository *r, struct bundle_header *header, int verbose); |
be042aff | 24 | #define BUNDLE_VERBOSE 1 |
74ae4b63 NTND |
25 | int unbundle(struct repository *r, struct bundle_header *header, |
26 | int bundle_fd, int flags); | |
30415d50 JS |
27 | int list_bundle_refs(struct bundle_header *header, |
28 | int argc, const char **argv); | |
29 | ||
30 | #endif |