belongsFileToRepository
checks whether file or containing folders should be omitted in git export