← Back to Files
IGitService.cs
namespace KaiChat.Services;
public interface IGitService
{
Task<GitResult> StageAllAsync();
Task<GitResult> StagePathAsync(string repoRelativePath);
Task<GitResult> CommitAsync(string message, string? body = null);
Task<GitResult> StatusAsync();
Task<GitResult> AutoCommitAsync(string summary, string? filePath = null);
string RepoPath { get; }
}
public class GitResult
{
public bool Success { get; set; }
public string Output { get; set; } = "";
public string Error { get; set; } = "";
}