]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bundle.h
t1503: mark symlink test as REFFILES
[thirdparty/git.git] / bundle.h
index f9e2d1c8ef544d39e440656aa59d21c62e919777..1927d8cd6a4a4764a0a84e4ed35a6c9eb7b15fd6 100644 (file)
--- a/bundle.h
+++ b/bundle.h
@@ -3,22 +3,23 @@
 
 #include "strvec.h"
 #include "cache.h"
-
-struct ref_list {
-       unsigned int nr, alloc;
-       struct ref_list_entry {
-               struct object_id oid;
-               char *name;
-       } *list;
-};
+#include "string-list.h"
 
 struct bundle_header {
        unsigned version;
-       struct ref_list prerequisites;
-       struct ref_list references;
+       struct string_list prerequisites;
+       struct string_list references;
        const struct git_hash_algo *hash_algo;
 };
 
+#define BUNDLE_HEADER_INIT \
+{ \
+       .prerequisites = STRING_LIST_INIT_DUP, \
+       .references = STRING_LIST_INIT_DUP, \
+}
+void bundle_header_init(struct bundle_header *header);
+void bundle_header_release(struct bundle_header *header);
+
 int is_bundle(const char *path, int quiet);
 int read_bundle_header(const char *path, struct bundle_header *header);
 int create_bundle(struct repository *r, const char *path,