A Streamlit application to visualize and analyze git commit history and statistics for a local repository.
- Repository Selection: Point the app to any local git repository on your machine.
- Branch Analysis: Select a branch to analyze.
- Commit History: View detailed commit history including hash, date, message, insertions, and deletions.
- Visualizations:
- Lines added per commit over time.
- Cumulative growth of the codebase (lines added).
- Metrics:
- Total commits analyzed.
- Total lines added.
- Current total Lines of Code (LOC) estimation.
- Python 3.7+: Ensure Python is installed and added to your PATH.
- Git: The application requires
gitto be installed and available in your command line.
The application comes with helper scripts to automatically set up a virtual environment, install dependencies, and launch the app.
Double-click run.bat or run it from the command line:
run.batMake the script executable (first time only) and run it:
chmod +x run.sh
./run.shIf you prefer to run it manually:
- Create a virtual environment:
python -m venv .venv
- Activate the virtual environment:
- Windows:
.venv\Scripts\activate - Linux/macOS:
source .venv/bin/activate
- Windows:
- Install dependencies:
pip install -r requirements.txt
- Run the app:
streamlit run app.py
- Launch the application.
- Enter the absolute path to the local git repository you want to analyze in the "Git Repository Path" text box.
- If the path is valid, a success message will appear.
- Select a branch from the dropdown menu.
- Adjust the "Number of commits to analyze" slider if needed.
- Explore the charts and data tables.
This project is licensed under the MIT License - see the LICENSE file for details.