Module git

Module git 

Source
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