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/walker.h # 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 / walker.h` 38 lines ยท 1147 bytes Raw Blame History 1 #ifndef WALKER_H 2 #define WALKER_H 3 4 #include "remote.h" 5 6 struct walker { 7 void *data; 8 int (*fetch_ref)(struct walker *, struct ref *ref); 9 void (*prefetch)(struct walker *, const struct object_id *oid); 10 int (*fetch)(struct walker *, const struct object_id *oid); 11 void (*cleanup)(struct walker *); 12 int get_verbosely; 13 int get_progress; 14 int get_recover; 15 16 int corrupt_object_found; 17 }; 18 19 /* Report what we got under get_verbosely */ 20 __attribute__((format (printf, 2, 3))) 21 void walker_say(struct walker *walker, const char *fmt, ...); 22 23 /* Load pull targets from stdin */ 24 int walker_targets_stdin(char ***target, const char ***write_ref); 25 26 /* Free up loaded targets */ 27 void walker_targets_free(int targets, char **target, const char **write_ref); 28 29 /* If write_ref is set, the ref filename to write the target value to. */ 30 /* If write_ref_log_details is set, additional text will appear in the ref log. */ 31 int walker_fetch(struct walker *impl, int targets, char **target, 32 const char **write_ref, const char *write_ref_log_details); 33 34 void walker_free(struct walker *walker); 35 36 struct walker *get_http_walker(const char *url); 37 38 #endif /* WALKER_H */