summaryrefslogtreecommitdiff
path: root/bundle.h
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-05 06:33:55 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-05 06:33:55 -0800
commit189627cd588c2937de7b655595b8ed777f445c85 (patch)
treea705e86785a06f293aa255a0263ddc25ca1ba202 /bundle.h
downloadgit-189627cd588c2937de7b655595b8ed777f445c85.tar.gz
git-189627cd588c2937de7b655595b8ed777f445c85.tar.bz2
git-189627cd588c2937de7b655595b8ed777f445c85.zip
Imported Upstream version 1.7.10.4upstream/1.7.10.4
Diffstat (limited to 'bundle.h')
-rw-r--r--bundle.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/bundle.h b/bundle.h
new file mode 100644
index 00000000..1584e4d8
--- /dev/null
+++ b/bundle.h
@@ -0,0 +1,27 @@
+#ifndef BUNDLE_H
+#define BUNDLE_H
+
+struct ref_list {
+ unsigned int nr, alloc;
+ struct ref_list_entry {
+ unsigned char sha1[20];
+ char *name;
+ } *list;
+};
+
+struct bundle_header {
+ struct ref_list prerequisites;
+ struct ref_list references;
+};
+
+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);
+#define BUNDLE_VERBOSE 1
+int unbundle(struct bundle_header *header, int bundle_fd, int flags);
+int list_bundle_refs(struct bundle_header *header,
+ int argc, const char **argv);
+
+#endif