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.

22 lines
503B

  1. #include "git-compat-util.h"
  2. #include "fetch-negotiator.h"
  3. #include "negotiator/default.h"
  4. #include "negotiator/skipping.h"
  5. #include "repository.h"
  6. void fetch_negotiator_init(struct repository *r,
  7. struct fetch_negotiator *negotiator)
  8. {
  9. prepare_repo_settings(r);
  10. switch(r->settings.fetch_negotiation_algorithm) {
  11. case FETCH_NEGOTIATION_SKIPPING:
  12. skipping_negotiator_init(negotiator);
  13. return;
  14. case FETCH_NEGOTIATION_DEFAULT:
  15. default:
  16. default_negotiator_init(negotiator);
  17. return;
  18. }
  19. }