Git Activity Visualization
June 1, 2025 ยท View on GitHub

This program visualizes Git activity over the past year as a colorful grid.
Get the code
git clone https://github.com/dakennedyd/activity
Compilation
g++ -o activity main.cpp
Usage
./activity [optional: repository path]
If no repository path is specified, it will use the current directory.
How It Works
- The program runs a Git command to fetch commit logs for the last year.
- It parses the output to count commits per day.
- A 7xN grid is created, with each cell representing a day.
- Cells are colored based on the number of commits:
- Level 1: 1-1 commit
- Level 2: 2-4 commits
- Level 3: 5-9 commits
- Level 4: 10-14 commits
- Level 5: 15+ commits
Requirements
- Requires Git to be installed on the system
Contributing
Feel free to fork and contribute! This project is open-source.