mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
Implemented the get_all_commit_hashes_since_tag
function in the scripts/blame.py
file.
This commit is contained in:
parent
abe779daa9
commit
f39fc5faa3
1 changed files with 14 additions and 1 deletions
|
@ -7,7 +7,20 @@ from pathlib import Path
|
||||||
from aider.dump import dump
|
from aider.dump import dump
|
||||||
|
|
||||||
def get_all_commit_hashes_since_tag(tag):
|
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():
|
def main():
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue