Skip to content

Commit 3efcec2

Browse files
Update api/git_utils/git_utils.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 2733cbd commit 3efcec2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/git_utils/git_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ def classify_changes(diff, ignore_list: List[str]) -> tuple[list[Path], list[Pat
6464
def build_commit_graph(
6565
path: str,
6666
repo_name: str,
67-
ignore_list: Optional[List[str]] = []
67+
def build_commit_graph(path: str, repo_name: str, ignore_list: Optional[List[str]] = None) -> GitGraph:
68+
if ignore_list is None:
69+
ignore_list = []
70+
# ... rest of the function implementation ...
6871
) -> GitGraph:
6972
"""
7073
Builds a graph representation of the git commit history.

0 commit comments

Comments
 (0)