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

Function ambiguous_path

object-name.c:614–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614static int ambiguous_path(const char *path, int len)
615{
616 int slash = 1;
617 int cnt;
618
619 for (cnt = 0; cnt < len; cnt++) {
620 switch (*path++) {
621 case '\0':
622 break;
623 case '/':
624 if (slash)
625 break;
626 slash = 1;
627 continue;
628 case '.':
629 continue;
630 default:
631 slash = 0;
632 continue;
633 }
634 break;
635 }
636 return slash;
637}
638
639static inline int at_mark(const char *string, int len,
640 const char **suffix, int nr)

Callers 1

get_oid_basicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected