docs: def git_get_title_and_message(begin, end):
      """Get title and message summary for patches between 2 commits.
  
      :param begin: first commit to look at
      :param end: last commit to look at
      :return: number of commits, title, message
      """
      titles = git_get_log_titles(begin, end)
      title = "Pull request for " + end
      if len(titles) == 1:
          title = titles[0]
      pr_template = find_pull_request_template()
      if pr_template:
          message = get_pr_template_message(pr_template)
      else:
          if len(titles) == 1:
              message = git_get_commit_body(end)
          else:
              message = "\n".join(titles)
  
      return (len(titles), title, message)