Merge pull request #4849 from libgit2/cmn/expose-gitfile-check path: export the dotgit-checking functions