code: def get_commits_and_names_iter(self, path):
          '''
          Get all commits including a given path following renames
          '''
          log_result = self.git.log(
              '--pretty=%H',
              '--follow',
              '--name-only',
              '--',
              path).splitlines()
  
          for commit_sha, _, filename in grouper(log_result, 3):
              yield self.repo.commit(commit_sha), filenamf get_commits_and_names_iter(self, path):
          '''
          Get all commits including a given path following renames
          '''
          log_result = self.git.log(
              '--pretty=%H',
              '--follow',
              '--name-only',
              '--',
              path).splitlines()
  
          for commit_sha, _, filename in grouper(log_result, 3):
              yield self.repo.commit(commit_sha), filename
docs: Get all commits including a given path following renames