Skip to content

Commit 5d2b2e3

Browse files
committed
TST: modify churn script
1 parent c7ee203 commit 5d2b2e3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/git_code_churn.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,12 @@ def get_code_churn(commits):
9191
# 'deletions' : deletions}, index=shas)
9292

9393
if __name__ == '__main__':
94-
commits, hists = get_commit_history()
95-
churn = get_code_churn(commits)
94+
# commits, hists = get_commit_history()
95+
# churn = get_code_churn(commits)
96+
97+
from vbench.git import GitRepo
98+
repo = GitRepo('/home/wesm/code/pandas')
99+
churn = repo.get_churn_by_file()
96100

97101
file_include = []
98102
for path in churn.major_axis:

0 commit comments

Comments
 (0)