def _get_parent(self):
        _dir = os.path.dirname(self.path)
        if is_repo(_dir):
            return Local(_dir)
        else:
            return None
Get the index for **anchor**.
dataset/ETHPy150Open rsgalloway/grit/grit/repo/local.py/Local._get_parent--crossover with--dataset/ETHPy150Open typesupply/defcon/Lib/defcon/objects/glyph.py/Glyph.anchorIndex