mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +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 subprocess
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
import argparse
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from aider.dump import dump
|
from aider.dump import dump
|
||||||
|
|
||||||
|
@ -23,7 +24,17 @@ def get_all_commit_hashes_since_tag(tag):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
def main():
|
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__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue