Class: RubyCoded::Tools::GitDiffTool
- Inherits:
-
GitBaseTool
- Object
- RubyLLM::Tool
- BaseTool
- GitBaseTool
- RubyCoded::Tools::GitDiffTool
- Defined in:
- lib/ruby_coded/tools/git_diff_tool.rb
Overview
Show git diff output for the project repository.
Constant Summary
Constants inherited from GitBaseTool
RubyCoded::Tools::GitBaseTool::GIT_ENV, RubyCoded::Tools::GitBaseTool::MAX_OUTPUT_CHARS
Constants inherited from BaseTool
BaseTool::CONFIRM_RISK, BaseTool::DANGEROUS_RISK, BaseTool::SAFE_RISK
Instance Method Summary collapse
Methods inherited from GitBaseTool
#ensure_git_repo!, #format_git_result, #git_repo?, #run_git_command, #shell_join, #truncate_output
Methods inherited from BaseTool
Constructor Details
This class inherits a constructor from RubyCoded::Tools::BaseTool
Instance Method Details
#execute(staged: false) ⇒ Object
16 17 18 19 20 |
# File 'lib/ruby_coded/tools/git_diff_tool.rb', line 16 def execute(staged: false) args = ["diff"] args << "--cached" if staged run_git_command(*args) end |