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

Function clear_cas_option

remote.c:2610–2618  ·  view source on GitHub ↗

* Compare-and-swap */

Source from the content-addressed store, hash-verified

2608 * Compare-and-swap
2609 */
2610void clear_cas_option(struct push_cas_option *cas)
2611{
2612 int i;
2613
2614 for (i = 0; i < cas->nr; i++)
2615 free(cas->entry[i].refname);
2616 free(cas->entry);
2617 memset(cas, 0, sizeof(*cas));
2618}
2619
2620static struct push_cas *add_cas_entry(struct push_cas_option *cas,
2621 const char *refname,

Callers 3

parse_push_cas_optionFunction · 0.85
cmd_pushFunction · 0.85
cmd_send_packFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected