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.

38 lines
1.1KB

  1. #ifndef WALKER_H
  2. #define WALKER_H
  3. #include "remote.h"
  4. struct walker {
  5. void *data;
  6. int (*fetch_ref)(struct walker *, struct ref *ref);
  7. void (*prefetch)(struct walker *, unsigned char *sha1);
  8. int (*fetch)(struct walker *, unsigned char *sha1);
  9. void (*cleanup)(struct walker *);
  10. int get_verbosely;
  11. int get_recover;
  12. int corrupt_object_found;
  13. };
  14. /* Report what we got under get_verbosely */
  15. __attribute__((format (printf, 2, 3)))
  16. void walker_say(struct walker *walker, const char *fmt, ...);
  17. /* Load pull targets from stdin */
  18. int walker_targets_stdin(char ***target, const char ***write_ref);
  19. /* Free up loaded targets */
  20. void walker_targets_free(int targets, char **target, const char **write_ref);
  21. /* If write_ref is set, the ref filename to write the target value to. */
  22. /* If write_ref_log_details is set, additional text will appear in the ref log. */
  23. int walker_fetch(struct walker *impl, int targets, char **target,
  24. const char **write_ref, const char *write_ref_log_details);
  25. void walker_free(struct walker *walker);
  26. struct walker *get_http_walker(const char *url);
  27. #endif /* WALKER_H */