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

Function refspec_item_init

refspec.c:156–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static int refspec_item_init(struct refspec_item *item, const char *refspec,
157 int fetch)
158{
159 memset(item, 0, sizeof(*item));
160 item->raw = xstrdup(refspec);
161 return parse_refspec(item, refspec, fetch);
162}
163
164int refspec_item_init_fetch(struct refspec_item *item, const char *refspec)
165{

Callers 2

refspec_item_init_fetchFunction · 0.85
refspec_item_init_pushFunction · 0.85

Calls 2

xstrdupFunction · 0.85
parse_refspecFunction · 0.85

Tested by

no test coverage detected