IGitRepository.cs 489 B

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