code: def get_last_commit_modifying_files(repo: Repo, *files) -> str:
      
      return repo.git.log(*files, n=1, format="%H")
docs: Returns the hash of the last commit which modified some of the files (or files in those folders).
  
      :param repo: The repo to check in.
      :param files: List of files to check
      :return: Commit hash.