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

Function init_split_index

split-index.c:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "ewah/ewok.h"
12
13struct split_index *init_split_index(struct index_state *istate)
14{
15 if (!istate->split_index) {
16 if (istate->sparse_index)
17 die(_("cannot use split index with a sparse index"));
18
19 CALLOC_ARRAY(istate->split_index, 1);
20 istate->split_index->refcount = 1;
21 }
22 return istate->split_index;
23}
24
25int read_link_extension(struct index_state *istate,
26 const void *data_, unsigned long sz)

Callers 6

read_link_extensionFunction · 0.85
add_split_indexFunction · 0.85
unpack_treesFunction · 0.85
write_locked_indexFunction · 0.85

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected