summaryrefslogtreecommitdiff
path: root/bundle.h
diff options
context:
space:
mode:
Diffstat (limited to 'bundle.h')
-rw-r--r--bundle.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/bundle.h b/bundle.h
index e9a4cb6a74..f9e2d1c8ef 100644
--- a/bundle.h
+++ b/bundle.h
@@ -1,6 +1,7 @@
#ifndef BUNDLE_H
#define BUNDLE_H
+#include "strvec.h"
#include "cache.h"
struct ref_list {
@@ -12,17 +13,21 @@ struct ref_list {
};
struct bundle_header {
+ unsigned version;
struct ref_list prerequisites;
struct ref_list references;
+ const struct git_hash_algo *hash_algo;
};
int is_bundle(const char *path, int quiet);
int read_bundle_header(const char *path, struct bundle_header *header);
-int create_bundle(struct bundle_header *header, const char *path,
- int argc, const char **argv);
-int verify_bundle(struct bundle_header *header, int verbose);
+int create_bundle(struct repository *r, const char *path,
+ int argc, const char **argv, struct strvec *pack_options,
+ int version);
+int verify_bundle(struct repository *r, struct bundle_header *header, int verbose);
#define BUNDLE_VERBOSE 1
-int unbundle(struct bundle_header *header, int bundle_fd, int flags);
+int unbundle(struct repository *r, struct bundle_header *header,
+ int bundle_fd, int flags);
int list_bundle_refs(struct bundle_header *header,
int argc, const char **argv);