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

Function dir_path_match

dir.h:585–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583 char *seen);
584
585static inline int dir_path_match(struct index_state *istate,
586 const struct dir_entry *ent,
587 const struct pathspec *pathspec,
588 int prefix, char *seen)
589{
590 int has_trailing_dir = ent->len && ent->name[ent->len - 1] == '/';
591 int len = has_trailing_dir ? ent->len - 1 : ent->len;
592 return match_pathspec(istate, pathspec, ent->name, len, prefix, seen,
593 has_trailing_dir);
594}
595
596int cmp_dir_entry(const void *p1, const void *p2);
597int check_dir_entry_contains(const struct dir_entry *out, const struct dir_entry *in);

Callers 2

show_dir_entryFunction · 0.85
prune_directoryFunction · 0.85

Calls 1

match_pathspecFunction · 0.85

Tested by

no test coverage detected