From 66201414207d83e4d3cdf36e0b20d8fe99597004 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 May 2025 08:21:52 -0700 Subject: [PATCH] chore: Remove plain git log from update-history script --- scripts/update-history.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/scripts/update-history.py b/scripts/update-history.py index b0f873d25..d584228b9 100755 --- a/scripts/update-history.py +++ b/scripts/update-history.py @@ -53,28 +53,11 @@ def run_git_diff(): return result.stdout -def run_plain_git_log(): - latest_ver = get_latest_version_from_history() - cmd = [ - "git", - "log", - f"v{latest_ver}..HEAD", - "--", - "aider/", - ":!aider/website/", - ":!scripts/", - ":!HISTORY.md", - ] - result = subprocess.run(cmd, capture_output=True, text=True) - return result.stdout - - def main(): aider_args = sys.argv[1:] # Get the git log and diff output log_content = run_git_log() - plain_log_content = run_plain_git_log() diff_content = run_git_diff() # Extract relevant portion of HISTORY.md @@ -111,10 +94,6 @@ def main(): tmp_diff.write(diff_content) diff_path = tmp_diff.name - with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".plain_log") as tmp_plain_log: - tmp_plain_log.write(plain_log_content) - plain_log_path = tmp_plain_log.name - with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".md") as tmp_hist: tmp_hist.write(relevant_history) hist_path = tmp_hist.name @@ -122,7 +101,6 @@ def main(): # Display line counts print(f"Lines in {hist_path}: {len(relevant_history.splitlines())}") print(f"Lines in {log_path}: {len(log_content.splitlines())}") - print(f"Lines in {plain_log_path}: {len(plain_log_content.splitlines())}") print(f"Lines in {diff_path}: {len(diff_content.splitlines())}") # Run blame to get aider percentage @@ -138,8 +116,6 @@ def main(): "--read", log_path, "--read", - plain_log_path, - "--read", diff_path, "--msg", message, @@ -173,7 +149,6 @@ def main(): # Cleanup os.unlink(log_path) - os.unlink(plain_log_path) os.unlink(diff_path) os.unlink(hist_path)