Track which git branches you've worked on recently.
Project description
BranchLog
🔍 Track which Git branches you've worked on recently.
BranchLog is a simple CLI tool that shows Git branches where you've made commits recently — perfect for developers who juggle multiple branches and want a quick summary of their weekly activity.
✨ Features
- ✅ List all local branches you’ve committed to in the last N days
- ✅ Filter by author (default: your Git username)
- ✅ Group branches by type (e.g.
feature/*,fix/*,hotfix/*) - ✅ Show commit counts and latest commit messages
- ✅ Analyze any Git repository with
--path
🛠 Installation
pip install branchlog
Or install from source:
git clone https://github.com/tanmay031/branchlog
cd branchlog
pip install -e .
🚀 Usage
branchlog --days 7
Options
| Option | Description |
|---|---|
--days |
Number of past days to check for commits (default: 7) |
--author |
Git author name (default: current git user) |
--path |
Path to the Git project (default: current directory .) |
Example
branchlog --days 14 --author rahman --path ~/projects/myapp
📊 Output Example
Branches with commits by 'rahman' in the last 7 days:
🔹 Group: feature/*
- feature/api-integration (3 commits, latest: fix: handle null response)
- feature/login-refactor (2 commits, latest: refactor: improved error handling)
🔹 Group: fix/*
- fix/user-crash (1 commit, latest: fix: crash on empty user list)
📊 Summary:
- Total branches: 3
- Total commits: 6
- Most active branch: feature/api-integration (3 commits)
💡 Roadmap Ideas
- GitHub API integration
- Detect merged/unmerged branches
- Visualize commit trends
- Export as markdown or JSON
📄 License
MIT License © Rahman
🙌 Contributions Welcome
If you have ideas, feedback, or bug reports, feel free to open an issue or pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file branchlog-0.1.1.tar.gz.
File metadata
- Download URL: branchlog-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d2d33196c7431451fe913618637623205401e1be4cff2fd61e8490df34d9b64
|
|
| MD5 |
ecfb1d4a5c0d89f9fd23b2267d749318
|
|
| BLAKE2b-256 |
8ea3c9ea2b98bb00143b41d2a0493193e591cc493d1974dcc039368f27bd05de
|
File details
Details for the file branchlog-0.1.1-py3-none-any.whl.
File metadata
- Download URL: branchlog-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0717c35adebeb61aec0a2ad661f20ea93aaa7133c751d5e08c981ccd4e66d6f6
|
|
| MD5 |
c85b87e3653dc4cd0045313c765dfeef
|
|
| BLAKE2b-256 |
a3ac292d72f461f9661d95648ee0427e024bb3effd17f7b00682b608ea790c8f
|