Get the commits between start and end.
(
start: str | None = None,
end: str | None = None,
*,
args: Sequence[str] = (),
)
| 205 | |
| 206 | |
| 207 | def get_commits( |
| 208 | start: str | None = None, |
| 209 | end: str | None = None, |
| 210 | *, |
| 211 | args: Sequence[str] = (), |
| 212 | ) -> list[GitCommit]: |
| 213 | """Get the commits between start and end.""" |
| 214 | if end is None: |
| 215 | end = "HEAD" |
| 216 | git_log_entries = _get_log_as_str_list(start, end, args) |
| 217 | return [ |
| 218 | GitCommit.from_rev_and_commit(rev_and_commit) |
| 219 | for rev_and_commit in git_log_entries |
| 220 | if rev_and_commit |
| 221 | ] |
| 222 | |
| 223 | |
| 224 | def get_filenames_in_commit(git_reference: str = "") -> list[str]: |
nothing calls this directly
no test coverage detected