-
git_status
- Shows the working tree status
- Input:
repo_path
(string): Path to Git repository
- Returns: Current status of working directory as text output
-
git_diff_unstaged
- Shows changes in working directory not yet staged
- Inputs:
repo_path
(string): Path to Git repositorycontext_lines
(number, optional): Number of context lines to show (default: 3)
- Returns: Diff output of unstaged changes
-
git_diff_staged
- Shows changes that are staged for commit
- Inputs:
repo_path
(string): Path to Git repositorycontext_lines
(number, optional): Number of context lines to show (default: 3)
- Returns: Diff output of staged changes
-
git_diff
- Shows differences between branches or commits
- Inputs:
repo_path
(string): Path to Git repositorytarget
(string): Target branch or commit to compare withcontext_lines
(number, optional): Number of context lines to show (default: 3)
- Returns: Diff output comparing current state with target
-
git_commit
- Records changes to the repository
- Inputs:
repo_path
(string): Path to Git repositorymessage
(string): Commit message
- Returns: Confirmation with new commit hash
-
git_add
- Adds file contents to the staging area
- Inputs:
repo_path
(string): Path to Git repositoryfiles
(string[]): Array of file paths to stage
- Returns: Confirmation of staged files
-
git_reset
- Unstages all staged changes
- Input:
repo_path
(string): Path to Git repository
- Returns: Confirmation of reset operation
-
git_log
- Shows the commit logs
- Inputs:
repo_path
(string): Path to Git repositorymax_count
(number, optional): Maximum number of commits to show (default: 10)
- Returns: Array of commit entries with hash, author, date, and message
-
git_create_branch
- Creates a new branch
- Inputs:
repo_path
(string): Path to Git repositorybranch_name
(string): Name of the new branchstart_point
(string, optional): Starting point for the new branch
- Returns: Confirmation of branch creation
-
git_checkout
- Switches branches
- Inputs:
repo_path
(string): Path to Git repositorybranch_name
(string): Name of branch to checkout
- Returns: Confirmation of branch switch
git_show
- Shows the contents of a commit
- Inputs:
repo_path
(string): Path to Git repositoryrevision
(string): The revision (commit hash, branch name, tag) to show
- Returns: Contents of the specified commit
git_init
- Initializes a Git repository
- Inputs:
repo_path
(string): Path to directory to initialize git repo
- Returns: Confirmation of repository initialization
git_branch
- List Git branches
- Inputs:
repo_path
(string): Path to the Git repository.branch_type
(string): Whether to list local branches ('local'), remote branches ('remote') or all branches('all').contains
(string, optional): The commit sha that branch should contain. Do not pass anything to this param if no commit sha is specifiednot_contains
(string, optional): The commit sha that branch should NOT contain. Do not pass anything to this param if no commit sha is specified
- Returns: List of branches