]> git.ipfire.org Git - thirdparty/git.git/blame - bundle.h
merge-recursive: convert merge_recursive_generic() to object_id
[thirdparty/git.git] / bundle.h
CommitLineData
30415d50
JS
1#ifndef BUNDLE_H
2#define BUNDLE_H
3
4struct ref_list {
5 unsigned int nr, alloc;
6 struct ref_list_entry {
7 unsigned char sha1[20];
8 char *name;
9 } *list;
10};
11
12struct bundle_header {
13 struct ref_list prerequisites;
14 struct ref_list references;
15};
16
2727b71f 17int is_bundle(const char *path, int quiet);
30415d50
JS
18int read_bundle_header(const char *path, struct bundle_header *header);
19int create_bundle(struct bundle_header *header, const char *path,
20 int argc, const char **argv);
21int verify_bundle(struct bundle_header *header, int verbose);
be042aff
JH
22#define BUNDLE_VERBOSE 1
23int unbundle(struct bundle_header *header, int bundle_fd, int flags);
30415d50
JS
24int list_bundle_refs(struct bundle_header *header,
25 int argc, const char **argv);
26
27#endif