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

Function construct_sparse_dir_entry

sparse-index.c:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42};
43
44static struct cache_entry *construct_sparse_dir_entry(
45 struct index_state *istate,
46 const char *sparse_dir,
47 struct cache_tree *tree)
48{
49 struct cache_entry *de;
50
51 de = make_cache_entry(istate, S_IFDIR, &tree->oid, sparse_dir, 0, 0);
52
53 de->ce_flags |= CE_SKIP_WORKTREE;
54 return de;
55}
56
57/*
58 * Returns the number of entries "inserted" into the index.

Callers 1

convert_to_sparse_recFunction · 0.85

Calls 1

make_cache_entryFunction · 0.85

Tested by

no test coverage detected