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.

34 lines
871B

  1. #ifndef PROMISOR_REMOTE_H
  2. #define PROMISOR_REMOTE_H
  3. #include "repository.h"
  4. struct object_id;
  5. /*
  6. * Promisor remote linked list
  7. *
  8. * Information in its fields come from remote.XXX config entries or
  9. * from extensions.partialclone or core.partialclonefilter.
  10. */
  11. struct promisor_remote {
  12. struct promisor_remote *next;
  13. const char *partial_clone_filter;
  14. const char name[FLEX_ARRAY];
  15. };
  16. void promisor_remote_reinit(void);
  17. struct promisor_remote *promisor_remote_find(const char *remote_name);
  18. int has_promisor_remote(void);
  19. int promisor_remote_get_direct(struct repository *repo,
  20. const struct object_id *oids,
  21. int oid_nr);
  22. /*
  23. * This should be used only once from setup.c to set the value we got
  24. * from the extensions.partialclone config option.
  25. */
  26. void set_repository_format_partial_clone(char *partial_clone);
  27. #endif /* PROMISOR_REMOTE_H */