MCPcopy Index your code
hub / github.com/python/mypy / get_commits

Function get_commits

misc/incremental_checker.py:100–108  ·  view source on GitHub ↗
(repo_folder_path: str, commit_range: str)

Source from the content-addressed store, hash-verified

98
99
100def 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
111def get_commits_starting_at(repo_folder_path: str, start_commit: str) -> list[tuple[str, str]]:

Callers 2

get_commits_starting_atFunction · 0.85
get_nth_commitFunction · 0.85

Calls 5

splitMethod · 0.80
stripMethod · 0.80
partitionMethod · 0.80
appendMethod · 0.80
executeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…