Git 1.7.7.7
[git/mingw.git] / bundle.h
blobc5a22c8d10c7bf5e27536a3b84033b77f3542445
1 #ifndef BUNDLE_H
2 #define BUNDLE_H
4 struct ref_list {
5 unsigned int nr, alloc;
6 struct ref_list_entry {
7 unsigned char sha1[20];
8 char *name;
9 } *list;
12 struct bundle_header {
13 struct ref_list prerequisites;
14 struct ref_list references;
17 int read_bundle_header(const char *path, struct bundle_header *header);
18 int create_bundle(struct bundle_header *header, const char *path,
19 int argc, const char **argv);
20 int verify_bundle(struct bundle_header *header, int verbose);
21 #define BUNDLE_VERBOSE 1
22 int unbundle(struct bundle_header *header, int bundle_fd, int flags);
23 int list_bundle_refs(struct bundle_header *header,
24 int argc, const char **argv);
26 #endif