Module: Ace::Git::Atoms::GitStatusFetcher
- Defined in:
- lib/ace/git/atoms/git_status_fetcher.rb
Overview
Pure functions for fetching git status information Uses git status -sb for compact, familiar output
Class Method Summary collapse
-
.fetch_status_sb(executor: CommandExecutor) ⇒ Hash
Fetch git status in short branch format.
Class Method Details
.fetch_status_sb(executor: CommandExecutor) ⇒ Hash
Fetch git status in short branch format
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ace/git/atoms/git_status_fetcher.rb', line 13 def fetch_status_sb(executor: CommandExecutor) # Disable color to ensure clean output for LLM context result = executor.execute("git", "-c", "color.status=false", "status", "-sb") if result[:success] {success: true, output: result[:output].strip} else {success: false, output: "", error: result[:error]} end rescue => e {success: false, output: "", error: e.} end |