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

Function add_object_entry_from_bitmap

builtin/pack-objects.c:1896–1912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1894}
1895
1896static int add_object_entry_from_bitmap(const struct object_id *oid,
1897 enum object_type type,
1898 int flags UNUSED, uint32_t name_hash,
1899 struct packed_git *pack, off_t offset,
1900 void *payload UNUSED)
1901{
1902 display_progress(progress_state, ++nr_seen);
1903
1904 if (have_duplicate_entry(oid, 0))
1905 return 0;
1906
1907 if (!want_object_in_pack(oid, 0, &pack, &offset))
1908 return 0;
1909
1910 create_object_entry(oid, type, name_hash, 0, 0, pack, offset);
1911 return 1;
1912}
1913
1914struct pbase_tree_cache {
1915 struct object_id oid;

Callers

nothing calls this directly

Calls 4

display_progressFunction · 0.85
have_duplicate_entryFunction · 0.85
want_object_in_packFunction · 0.85
create_object_entryFunction · 0.85

Tested by

no test coverage detected