git_operations library

Classes

BaseGitOperationService
BaseRepositoryStateService
CommandExecutor
Runs subprocesses with a ShellEnvironment-resolved environment.
CommandExecutorGitRunner
Adapts CommandExecutor to GitCommandRunner.
GitCommandResult
Result of a git command or git workflow step.
GitCommandRunner
Runs git commands and exposes the logging callbacks wired into CommandExecutor.
GitOperationDependencies
Dependencies for GitOperationService.
GitOperationService
Performs Git operations on repositories with user interaction for common edge cases.
GitRepository
Minimal repository contract required by GitOperationService.

Enums

ProcessMessageSeverity
Severity hint for user-visible messages emitted during command execution.
UserDirtyWorkdirAction
UserUntrackedFileAction

Functions

isIgnorableGitError(String command, List<String> arguments, String stderr) bool

Typedefs

LogFunction = void Function(String message, {String? context})
ResolveDirtyWorkdirFunction = Future<UserDirtyWorkdirAction?> Function(String repoName, String branchName, String changes)
ResolveUntrackedFilesFunction = Future<UserUntrackedFileAction?> Function(String repoName, String branchName, List<String> untrackedFiles)
ShowMessageFunction = void Function(String message, ProcessMessageSeverity severity)