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

Function traverse_path_len

tree-walk.h:215–219  ·  view source on GitHub ↗

* Calculate the length of a pathname returned by `make_traverse_path`. * This utilizes the memory structure of a tree entry to avoid the * overhead of using a generic strlen(). */

Source from the content-addressed store, hash-verified

213 * overhead of using a generic strlen().
214 */
215static inline size_t traverse_path_len(const struct traverse_info *info,
216 size_t namelen)
217{
218 return st_add(info->pathlen, namelen);
219}
220
221/* in general, positive means "kind of interesting" */
222enum interesting {

Callers 4

compare_entryFunction · 0.85
create_ce_entryFunction · 0.85

Calls 1

st_addFunction · 0.85

Tested by

no test coverage detected