Expand description
Git utilities: repo detection, status, diff, and history.
Used by the system prompt builder to inject git context.
Functionsยง
- build_
git_ context - Build a git context string for the system prompt.
- current_
branch - Get current branch name.
- get_
repo_ root - Get the root of the git repository.
- git_
diff - Get git diff (staged + unstaged).
- git_
status - Get git status (short format).
- is_
git_ repo - Check if a path is inside a git repository.
- list_
modified_ files - List modified files (both staged and unstaged).
- recent_
commits - Get recent commit history (one-line format).