Skip to content

Release v0.11.1

Hook & Stats - Git Hook Management and Commit Heatmap

Adds gcop-rs hook command for managing Git prepare-commit-msg hooks, and enhances stats with commit heatmap and streak tracking. Includes internal refactoring for git root discovery and provider utilities.

Added

Git Hook Management

  • New gcop-rs hook install to install a prepare-commit-msg hook that auto-generates commit messages from staged changes
  • New gcop-rs hook uninstall to remove the installed hook
  • Hook intelligently skips merge, squash, and pre-existing message scenarios
  • Hook errors are printed to stderr without failing the git commit process

Commit Heatmap & Streaks

  • gcop-rs stats now displays a 30-day commit activity heatmap with intensity indicators
  • New current streak and longest streak statistics
  • Improved colored output with section headers

Changed

Git Repository Discovery

  • Changed from Repository::open(".") to Repository::discover("."), allowing gcop-rs to work correctly from any subdirectory
  • Centralized find_git_root utility in src/git/mod.rs, replacing duplicate implementations in init and config loader

Provider Utilities

  • Extracted API key masking logic to src/llm/provider/utils.rs
  • New complete_endpoint function for intelligent API endpoint URL handling

Dependencies Updated

  • Updated core dependency versions

Upgrade

bash
# Homebrew
brew upgrade gcop-rs

# Cargo
cargo install gcop-rs

# pip
pip install --upgrade gcop-rs