Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/fetch-negotiator.c # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / fetch-negotiator.c` 30 lines ยท 712 bytes Raw Blame History 1 #include "git-compat-util.h" 2 #include "fetch-negotiator.h" 3 #include "negotiator/default.h" 4 #include "negotiator/skipping.h" 5 #include "negotiator/noop.h" 6 #include "repository.h" 7 8 void fetch_negotiator_init(struct repository *r, 9 struct fetch_negotiator *negotiator) 10 { 11 prepare_repo_settings(r); 12 switch(r->settings.fetch_negotiation_algorithm) { 13 case FETCH_NEGOTIATION_SKIPPING: 14 skipping_negotiator_init(negotiator); 15 return; 16 17 case FETCH_NEGOTIATION_NOOP: 18 noop_negotiator_init(negotiator); 19 return; 20 21 case FETCH_NEGOTIATION_CONSECUTIVE: 22 default_negotiator_init(negotiator); 23 return; 24 } 25 } 26 27 void fetch_negotiator_init_noop(struct fetch_negotiator *negotiator) 28 { 29 noop_negotiator_init(negotiator); 30 }