]> git.ipfire.org Git - thirdparty/git.git/blame - bundle.h
config.mak.uname: remove unused the NO_R_TO_GCC_LINKER flag
[thirdparty/git.git] / bundle.h
CommitLineData
30415d50
JS
1#ifndef BUNDLE_H
2#define BUNDLE_H
3
dbbcd44f 4#include "strvec.h"
b8607f35 5#include "cache.h"
6
30415d50
JS
7struct ref_list {
8 unsigned int nr, alloc;
9 struct ref_list_entry {
b8607f35 10 struct object_id oid;
30415d50
JS
11 char *name;
12 } *list;
13};
14
15struct bundle_header {
c5aecfc8 16 unsigned version;
30415d50
JS
17 struct ref_list prerequisites;
18 struct ref_list references;
6161ce7b 19 const struct git_hash_algo *hash_algo;
30415d50
JS
20};
21
2727b71f 22int is_bundle(const char *path, int quiet);
30415d50 23int read_bundle_header(const char *path, struct bundle_header *header);
fcb133e9 24int create_bundle(struct repository *r, const char *path,
e0ad9574 25 int argc, const char **argv, struct strvec *pack_options,
c5aecfc8 26 int version);
74ae4b63 27int verify_bundle(struct repository *r, struct bundle_header *header, int verbose);
be042aff 28#define BUNDLE_VERBOSE 1
74ae4b63
NTND
29int unbundle(struct repository *r, struct bundle_header *header,
30 int bundle_fd, int flags);
30415d50
JS
31int list_bundle_refs(struct bundle_header *header,
32 int argc, const char **argv);
33
34#endif