

def create_branch(self, name, ref, force=False):
    obj = name.repository.revparse_single(ref)
    if (obj.type == GIT_OBJ_COMMIT):
        self.repository.create_branch(name, obj, force)
        return True
    else:
        return False

dataset/ETHPy150Open douban/ellen/ellen/repo.py Jagare.create_branch/VarMisuse@20/22 `self`->`name`