feat: Add stats command to allow user to compare aider usage across different revision#2883
Open
josix wants to merge 4 commits intoAider-AI:mainfrom
Open
feat: Add stats command to allow user to compare aider usage across different revision#2883josix wants to merge 4 commits intoAider-AI:mainfrom
josix wants to merge 4 commits intoAider-AI:mainfrom
Conversation
|
Related discussion on Discord: https://discord.com/channels/1131200896827654144/1263352706836332554/1263580285933715488 |
|
I gave this branch a few shots and it is working as expected, calculating the Aider % between two commits. 👍🏻 👍🏻 👍🏻 It would be nice if running |
8f0d071 to
984461c
Compare
Author
|
Thanks @MrOrz for pointing it out, I've added the compared revision ( |
89c616b to
717b95f
Compare
|
Not sure if |
717b95f to
98d114e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TODO:
This pull request introduces a new feature to show code change statistics between revisions and refactors existing code to support this functionality. The most important changes include adding a new command, updating argument parsing, and refactoring common functions into a new module.
New Feature: Code Change Statistics
--statsargument to show code change statistics between revisions inaider/args.py.cmd_statsmethod to calculate and display code change statistics inaider/commands.py.--statsargument inaider/main.py.Refactoring for Code Reuse
hash_len,get_all_commit_hashes_between_tags,get_commit_authors, andget_counts_for_fileto a new moduleaider/stats.pyfor reuse.Codebase Simplification
aider/commands.pyandscripts/blame.pyto use refactored functions fromaider/stats.py. [1] [2]scripts/blame.pyafter refactoring. [1] [2]Example