MCPcopy Index your code
hub / github.com/git/git / for_each_remote

Function for_each_remote

remote.c:865–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865int for_each_remote(each_remote_fn fn, void *priv)
866{
867 int i, result = 0;
868 read_config(the_repository, 0);
869 for (i = 0; i < the_repository->remote_state->remotes_nr && !result;
870 i++) {
871 struct remote *remote =
872 the_repository->remote_state->remotes[i];
873 if (!remote)
874 continue;
875 result = fn(remote, priv);
876 }
877 return result;
878}
879
880static void handle_duplicate(struct ref *ref1, struct ref *ref2)
881{

Callers 9

unique_tracking_nameFunction · 0.85
setup_trackingFunction · 0.85
cmd_fetchFunction · 0.85
addFunction · 0.85
rmFunction · 0.85
show_allFunction · 0.85
die_no_merge_candidatesFunction · 0.85

Calls 1

read_configFunction · 0.85

Tested by

no test coverage detected