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

Function prune_refs

refs/files-backend.c:1354–1362  ·  view source on GitHub ↗

* Prune the loose versions of the references in the linked list * `*refs_to_prune`, freeing the entries in the list as we go. */

Source from the content-addressed store, hash-verified

1352 * `*refs_to_prune`, freeing the entries in the list as we go.
1353 */
1354static void prune_refs(struct files_ref_store *refs, struct ref_to_prune **refs_to_prune)
1355{
1356 while (*refs_to_prune) {
1357 struct ref_to_prune *r = *refs_to_prune;
1358 *refs_to_prune = r->next;
1359 prune_ref(refs, r);
1360 free(r);
1361 }
1362}
1363
1364/*
1365 * Return true if the specified reference should be packed.

Callers 1

files_optimizeFunction · 0.70

Calls 1

prune_refFunction · 0.85

Tested by

no test coverage detected