IGitRepository.cs 489 B

12345678910111213141516171819
  1. namespace RackPeek.Domain.Git;
  2. public interface IGitRepository {
  3. bool IsAvailable { get; }
  4. void Init();
  5. GitRepoStatus GetStatus();
  6. void StageAll();
  7. void Commit(string message);
  8. string GetDiff();
  9. string[] GetChangedFiles();
  10. void RestoreAll();
  11. string GetCurrentBranch();
  12. GitLogEntry[] GetLog(int count);
  13. bool HasRemote();
  14. GitSyncStatus FetchAndGetSyncStatus();
  15. void Push();
  16. void Pull();
  17. void AddRemote(string name, string url);
  18. }