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

Function simple_length

dir.c:680–690  ·  view source on GitHub ↗

* Return the length of the "simple" part of a path match limiter. */

Source from the content-addressed store, hash-verified

678 * Return the length of the "simple" part of a path match limiter.
679 */
680int simple_length(const char *match)
681{
682 int len = -1;
683
684 for (;;) {
685 unsigned char c = *match++;
686 len++;
687 if (c == '\0' || is_glob_special(c))
688 return len;
689 }
690}
691
692int no_wildcard(const char *string)
693{

Callers 3

init_pathspec_itemFunction · 0.85
no_wildcardFunction · 0.85
parse_path_patternFunction · 0.85

Calls

no outgoing calls

Tested by 1

init_pathspec_itemFunction · 0.68