Skip to main content

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/yourusername/branchlog.git
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)

🦪 Pro Tip

Run branchlog from a scheduled cron job or GitHub Action to keep a daily/weekly activity log!


💡 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

branchlog-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

branchlog-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file branchlog-0.1.0.tar.gz.

File metadata

  • Download URL: branchlog-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for branchlog-0.1.0.tar.gz
Algorithm Hash digest
SHA256 036f987a7f128ba75c39c7953180f04979e64386409559ae12ec5ade638d1eac
MD5 760ee2c68a2d5e8ed46785823e1788b7
BLAKE2b-256 9933854092b0b8326c85fdf36c99a8e6fd8f005fdac028c7041852ae1163ee02

See more details on using hashes here.

File details

Details for the file branchlog-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: branchlog-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for branchlog-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d57af823b7b6dde00564d8fecf9757c1698b4b55f47e0c6b848e1b0e9b627d8a
MD5 9d505e76e94b064616d726760040cbb1
BLAKE2b-256 79dd545c1ea712e69a88f78e9bcf63b0983e4cb000451a9adcc1cc0205f48a33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page