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

Function upload_pack_protected_config

upload-pack.c:1381–1390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1379}
1380
1381static int upload_pack_protected_config(const char *var, const char *value,
1382 const struct config_context *ctx UNUSED,
1383 void *cb_data)
1384{
1385 struct upload_pack_data *data = cb_data;
1386
1387 if (!strcmp("uploadpack.packobjectshook", var))
1388 return git_config_string(&data->pack_objects_hook, var, value);
1389 return 0;
1390}
1391
1392static void get_upload_pack_config(struct repository *r,
1393 struct upload_pack_data *data)

Callers

nothing calls this directly

Calls 1

git_config_stringFunction · 0.85

Tested by

no test coverage detected