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

Function pre_push_hook_data_alloc

transport.c:1373–1380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1371}
1372
1373static void *pre_push_hook_data_alloc(void *feed_pipe_ctx)
1374{
1375 struct feed_pre_push_hook_data *data;
1376 CALLOC_ARRAY(data, 1);
1377 strbuf_init(&data->buf, 0);
1378 data->refs = (struct ref *)feed_pipe_ctx;
1379 return data;
1380}
1381
1382static void pre_push_hook_data_free(void *data)
1383{

Callers

nothing calls this directly

Calls 1

strbuf_initFunction · 0.85

Tested by

no test coverage detected