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

Function pack_basename

packfile.c:599–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599const char *pack_basename(struct packed_git *p)
600{
601 const char *ret = strrchr(p->pack_name, '/');
602 if (ret)
603 ret = ret + 1; /* skip past slash */
604 else
605 ret = p->pack_name; /* we only have a base */
606 return ret;
607}
608
609/*
610 * Do not call this directly as this leaks p->pack_fd on error return;

Callers 15

pack_geometry_initFunction · 0.85
remove_redundant_packsFunction · 0.85
midx_needs_updateFunction · 0.85
existing_packs_collectFunction · 0.85
find_pack_by_nameFunction · 0.85
write_pack_info_fileFunction · 0.85
midx_has_unknown_packsFunction · 0.85

Calls

no outgoing calls

Tested by 2

bitmap_writeFunction · 0.68