code: def is_file_managed_by_git(self, path):
          '''
          :param path: Path to check
          :returns: True if path is managed by git
          '''
          status, _stdout, _stderr = self.git.execute(
              ['git', 'ls-files', path, '--error-unmatch'],
              with_extended_output=True,
              with_exceptions=False)
          return status == f is_file_managed_by_git(self, path):
          '''
          :param path: Path to check
          :returns: True if path is managed by git
          '''
          status, _stdout, _stderr = self.git.execute(
              ['git', 'ls-files', path, '--error-unmatch'],
              with_extended_output=True,
              with_exceptions=False)
          return status == 0
docs: :param path: Path to check
          :returns: True if path is managed by git