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

Function verify_one_sparse

cache-tree.c:900–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900static int verify_one_sparse(struct index_state *istate,
901 struct strbuf *path,
902 int pos)
903{
904 struct cache_entry *ce = istate->cache[pos];
905 if (!S_ISSPARSEDIR(ce->ce_mode))
906 return error(_("directory '%s' is present in index, but not sparse"),
907 path->buf);
908 return 0;
909}
910
911/*
912 * Returns:

Callers 1

verify_oneFunction · 0.85

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected