Implemented the get_all_commit_hashes_since_tag function in the scripts/blame.py file.

This commit is contained in:
Paul Gauthier (aider) 2024-07-07 13:05:01 -03:00
parent abe779daa9
commit f39fc5faa3

View file

@ -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