THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
git
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
769B

  1. #ifndef BUNDLE_H
  2. #define BUNDLE_H
  3. #include "cache.h"
  4. struct ref_list {
  5. unsigned int nr, alloc;
  6. struct ref_list_entry {
  7. struct object_id oid;
  8. char *name;
  9. } *list;
  10. };
  11. struct bundle_header {
  12. struct ref_list prerequisites;
  13. struct ref_list references;
  14. };
  15. int is_bundle(const char *path, int quiet);
  16. int read_bundle_header(const char *path, struct bundle_header *header);
  17. int create_bundle(struct repository *r, const char *path,
  18. int argc, const char **argv);
  19. int verify_bundle(struct repository *r, struct bundle_header *header, int verbose);
  20. #define BUNDLE_VERBOSE 1
  21. int unbundle(struct repository *r, struct bundle_header *header,
  22. int bundle_fd, int flags);
  23. int list_bundle_refs(struct bundle_header *header,
  24. int argc, const char **argv);
  25. #endif