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

Function close_and_clear

parallel-checkout.c:323–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323static int close_and_clear(int *fd)
324{
325 int ret = 0;
326
327 if (*fd >= 0) {
328 ret = close(*fd);
329 *fd = -1;
330 }
331
332 return ret;
333}
334
335void write_pc_item(struct parallel_checkout_item *pc_item,
336 struct checkout *state)

Callers 1

write_pc_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected