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

Function directory_size

object-file.c:598–604  ·  view source on GitHub ↗

Size of directory component, including the ending '/' */

Source from the content-addressed store, hash-verified

596
597/* Size of directory component, including the ending '/' */
598static inline int directory_size(const char *filename)
599{
600 const char *s = strrchr(filename, '/');
601 if (!s)
602 return 0;
603 return s - filename + 1;
604}
605
606/*
607 * This creates a temporary file in the same directory as the final

Callers 2

create_tmpfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected