6 #include "string-list.h"
10 struct string_list prerequisites
;
11 struct string_list references
;
12 const struct git_hash_algo
*hash_algo
;
15 #define BUNDLE_HEADER_INIT \
17 .prerequisites = STRING_LIST_INIT_DUP, \
18 .references = STRING_LIST_INIT_DUP, \
20 void bundle_header_init(struct bundle_header
*header
);
21 void bundle_header_release(struct bundle_header
*header
);
23 int is_bundle(const char *path
, int quiet
);
24 int read_bundle_header(const char *path
, struct bundle_header
*header
);
25 int create_bundle(struct repository
*r
, const char *path
,
26 int argc
, const char **argv
, struct strvec
*pack_options
,
28 int verify_bundle(struct repository
*r
, struct bundle_header
*header
, int verbose
);
29 #define BUNDLE_VERBOSE 1
30 int unbundle(struct repository
*r
, struct bundle_header
*header
,
31 int bundle_fd
, int flags
);
32 int list_bundle_refs(struct bundle_header
*header
,
33 int argc
, const char **argv
);