@property
    def is_dirty(self):
        if self.bare:
            # Bare repositories with no associated working directory are
            # always consired to be clean.
            return False

        return len(self.git.diff('HEAD', '--').strip()) > 0
Return the status of the index.
dataset/ETHPy150Open kergoth/git-origin/git-python/lib/git/repo.py/Repo.is_dirty