Utility functions for Git operations — command execution, shell quoting, CLI availability checks, and credential setup.
Summary
Functions
Builds git options for a repository path and optional timeout.
Checks if gh is available.
Checks if glab is available.
Checks if a repository has uncommitted changes.
Runs a git command with options.
Runs a system command with telemetry instrumentation.
Sets up a credential helper for git.
Configures Git credentials (SSH key path or credential helper).
Sets up an SSH key for git.
Quotes a binary string for safe shell use.
Functions
Builds git options for a repository path and optional timeout.
@spec gh_available?() :: boolean()
Checks if gh is available.
@spec glab_available?() :: boolean()
Checks if glab is available.
Checks if a repository has uncommitted changes.
Runs a git command with options.
Builds a shell-quoted command line from git_args and dispatches it via
run_system_cmd/3.
Runs a system command with telemetry instrumentation.
Emits [:apero, :git, :command, :start|:stop|:error] telemetry events.
Sets up a credential helper for git.
Configures Git credentials (SSH key path or credential helper).
Sets up an SSH key for git.
Quotes a binary string for safe shell use.