From 53e431cd88e91ec1e3631480d12d9fd806d688cc Mon Sep 17 00:00:00 2001 From: James Yuzawa Date: Wed, 5 Nov 2025 15:07:23 -0500 Subject: [PATCH] add support for .git-blame-ignore-revs --- git_of_theseus/analyze.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git_of_theseus/analyze.py b/git_of_theseus/analyze.py index 303cbb0..55fd6f3 100644 --- a/git_of_theseus/analyze.py +++ b/git_of_theseus/analyze.py @@ -254,6 +254,8 @@ def analyze( blame_kwargs = {} if ignore_whitespace: blame_kwargs["w"] = True + if (Path(repo_dir) / ".git-blame-ignore-revs").exists(): + blame_kwargs["ignore-revs-file"] = ".git-blame-ignore-revs" master_commits = [] # only stores a subset commit2cohort = {} curve_key_tuples = set() # Keys of each curve that will be tracked