(repo_folder_path: str, commit_range: str)
| 98 | |
| 99 | |
| 100 | def get_commits(repo_folder_path: str, commit_range: str) -> list[tuple[str, str]]: |
| 101 | raw_data, _stderr, _errcode = execute( |
| 102 | ["git", "-C", repo_folder_path, "log", "--reverse", "--oneline", commit_range] |
| 103 | ) |
| 104 | output = [] |
| 105 | for line in raw_data.strip().split("\n"): |
| 106 | commit_id, _, message = line.partition(" ") |
| 107 | output.append((commit_id, message)) |
| 108 | return output |
| 109 | |
| 110 | |
| 111 | def get_commits_starting_at(repo_folder_path: str, start_commit: str) -> list[tuple[str, str]]: |