MCPcopy Create free account
hub / github.com/git/git / ls_refs_config

Function ls_refs_config

ls-refs.c:148–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static int ls_refs_config(const char *var, const char *value,
149 const struct config_context *ctx UNUSED,
150 void *cb_data)
151{
152 struct ls_refs_data *data = cb_data;
153 /*
154 * We only serve fetches over v2 for now, so respect only "uploadpack"
155 * config. This may need to eventually be expanded to "receive", but we
156 * don't yet know how that information will be passed to ls-refs.
157 */
158 return parse_hide_refs_config(var, value, "uploadpack", &data->hidden_refs);
159}
160
161int ls_refs(struct repository *r, struct packet_reader *request)
162{

Callers

nothing calls this directly

Calls 1

parse_hide_refs_configFunction · 0.85

Tested by

no test coverage detected