From 9f1ef3f49f6b14542c2a7fa954877a48c0a1813e Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 May 2025 08:14:02 -0700 Subject: [PATCH] chore: Display line counts before calling aider --- scripts/update-history.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/update-history.py b/scripts/update-history.py index 55e3ccaa0..80262bfc4 100755 --- a/scripts/update-history.py +++ b/scripts/update-history.py @@ -123,6 +123,12 @@ def main(): blame_result = subprocess.run(["python3", "scripts/blame.py"], capture_output=True, text=True) aider_line = blame_result.stdout.strip().split("\n")[-1] # Get last line with percentage + # 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())}") + # Construct and run the aider command message = history_prompt.format(aider_line=aider_line)