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

Function refspec_clear

refspec.c:235–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void refspec_clear(struct refspec *rs)
236{
237 int i;
238
239 for (i = 0; i < rs->nr; i++)
240 refspec_item_clear(&rs->items[i]);
241
242 FREE_AND_NULL(rs->items);
243 rs->alloc = 0;
244 rs->nr = 0;
245
246 rs->fetch = 0;
247}
248
249int valid_fetch_refspec(const char *fetch_refspec_str)
250{

Callers 8

cmd_mainFunction · 0.85
remote_clearFunction · 0.85
release_helperFunction · 0.85
cmd_fast_exportFunction · 0.85
cmd_pushFunction · 0.85
fetch_oneFunction · 0.85
cmd_send_packFunction · 0.85
push_checkFunction · 0.85

Calls 1

refspec_item_clearFunction · 0.85

Tested by

no test coverage detected