Expand description
Git repository utilities for branch tracking
This module provides helper functions for interacting with git repositories to track branch state, detect uncommitted changes, and capture git metadata for branch-aware indexing.
Structs§
- GitState
- Git repository state
Functions§
- get_
current_ branch - Get the current git branch name
- get_
current_ commit - Get the current commit SHA
- get_
git_ state - Get complete git state for the current repository
- get_
git_ state_ optional - Get git state, or return None if not in a git repository
- has_
uncommitted_ changes - Check if there are uncommitted changes in the working tree
- is_
git_ repo - Check if the current directory is inside a git repository