code: def index_is_empty(self) -> bool:
          
          index_empty: bool = len(self.repo.index.diff(self.repo.head.commit)) == 0
          LOGGER.debug('index is empty: %s', index_empty)
          return index_empty
docs: :return: True if index is empty (no staged changes)
          :rtype: bool