diff --git a/scripts/blame.py b/scripts/blame.py index 2a89b241f..b40b21f3f 100755 --- a/scripts/blame.py +++ b/scripts/blame.py @@ -7,7 +7,20 @@ from pathlib import Path from aider.dump import dump def get_all_commit_hashes_since_tag(tag): - pass + try: + # Get all commit hashes since the specified tag + result = subprocess.run( + ["git", "rev-list", f"{tag}..HEAD"], + capture_output=True, + text=True, + check=True + ) + # Split the output into individual commit hashes + commit_hashes = result.stdout.strip().split('\n') + return commit_hashes + except subprocess.CalledProcessError as e: + print(f"Error: {e}", file=sys.stderr) + return [] def main(): pass