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

Function unpack_failed

unpack-trees.c:1260–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1258}
1259
1260static int unpack_failed(struct unpack_trees_options *o, const char *message)
1261{
1262 discard_index(&o->internal.result);
1263 if (!o->quiet && !o->exiting_early) {
1264 if (message)
1265 return error("%s", message);
1266 return -1;
1267 }
1268 return -1;
1269}
1270
1271/*
1272 * The tree traversal is looking at name p. If we have a matching entry,

Callers 2

unpack_callbackFunction · 0.85
unpack_treesFunction · 0.85

Calls 2

discard_indexFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected