๐Ÿ“ฆ AbianS / git_code_stats

Git Code Stats is a command-line application written in Rust that collects code statistics from Git repositories and creates a pie chart that displays the distribution of lines inserted by author.

โ˜… 1 stars โ‘‚ 1 forks ๐Ÿ‘ 1 watching
cligitrustrust-lang
๐Ÿ“ฅ Clone https://github.com/AbianS/git_code_stats.git
HTTPS git clone https://github.com/AbianS/git_code_stats.git
SSH git clone git@github.com:AbianS/git_code_stats.git
CLI gh repo clone AbianS/git_code_stats
AbianS AbianS docs: :memo: fix releases path e7fe1ea 2 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ assets
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ README.MD
๐Ÿ“„ README.md

Git Code Stats

PowerShell Rust Project

Git Code Stats is a command-line application written in Rust that collects code statistics from Git repositories and creates a pie chart that displays the distribution of lines inserted by author.

Usage

  • Download the executable from the releases page
  • Add the executable to your PATH
  • with the terminal, navigate to the folder where the repository is located
  • Run the command git-stats

Use of Multi-Threading for Better Performance

Git Code Stats utilizes multiple threads (multi-threading) to enhance performance when collecting code statistics from Git repositories. This technique allows processing multiple authors simultaneously, significantly speeding up the retrieval of statistics in repositories with a large number of authors or changes.

Advantages of Multi-Threading

  • Greater Efficiency: The use of multiple threads enables the full utilization of CPU processing capacity, resulting in faster and more efficient statistics retrieval.
  • Parallelization: Each author is processed in a separate thread, enabling task parallelization and resource optimization.
  • Reduced Execution Time: With multi-threading, the application can process multiple authors simultaneously, significantly reducing the total execution time, especially in large repositories.