Expand description
Git repository operations and utilities.
This module provides functions for interacting with Git repositories, including staging files, getting diffs, and querying repository status.
Functionsยง
- assert_
git_ repo - Ensures the current directory is within a Git repository.
- get_
changed_ files - Returns a list of all changed files (staged, modified, and untracked).
- get_
commits_ between - Returns a list of commit hashes and messages between two branches.
- get_
current_ branch - Returns the current branch name.
- get_
diff_ between - Returns the diff between two branches or commits.
- get_
recent_ commit_ messages - Returns recent commit messages for style analysis.
- get_
remote_ url - Returns the remote URL for the origin remote.
- get_
repo_ root - Returns the absolute path to the repository root.
- get_
staged_ diff - Returns the diff of all staged changes.
- get_
staged_ files - Returns a list of files that are currently staged for commit.
- stage_
files - Stages the specified files for commit.