mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
Added command-line argument support to get commit hashes since a specified tag.
This commit is contained in:
parent
f39fc5faa3
commit
d5de256796
1 changed files with 12 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue