Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def read_proximities_from(revision_range):
start_rev, end_rev = revision_range
revs = git_interactions.read_revs(start_rev, end_rev)
proximities = []
for i in range(len(revs) - 1):
first_revision = revs[i]
revision_to_compare = revs[i+1]
git_diff = git_interactions.read_diff_for(first_revision, revision_to_compare)
changes = parse_changes_per_file_in(git_diff)
proximities.append(proximity.calc_proximity(changes))
return proximities