Added command-line argument support to get commit hashes since a specified tag.

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

View file

@ -3,6 +3,7 @@
import subprocess
import sys
import tempfile
import argparse
from pathlib import Path
from aider.dump import dump
@ -23,7 +24,17 @@ def get_all_commit_hashes_since_tag(tag):
return []
def main():
pass
parser = argparse.ArgumentParser(description="Get commit hashes since a specified tag.")
parser.add_argument("tag", help="The tag to start from")
args = parser.parse_args()
commit_hashes = get_all_commit_hashes_since_tag(args.tag)
if commit_hashes:
print("Commit hashes since tag", args.tag)
for hash in commit_hashes:
print(hash)
else:
print("No commit hashes found or an error occurred.")
if __name__ == "__main__":
main()