Self-Hosted Git

This commit is contained in:
Simon Martens
2025-09-30 17:04:30 +02:00
parent 2a2a292cc9
commit 8c9dc19d5b
12 changed files with 573 additions and 110 deletions

View File

@@ -0,0 +1,19 @@
namespace HaWeb.FileHelpers;
public interface IGitService {
/// <summary>
/// Gets the current Git state (commit SHA, branch, timestamp)
/// </summary>
GitState? GetGitState();
/// <summary>
/// Pulls latest changes from the remote repository
/// </summary>
/// <returns>True if pull was successful and changes were detected, false otherwise</returns>
bool Pull();
/// <summary>
/// Checks if the repository has a different commit than the provided SHA
/// </summary>
bool HasChanged(string? previousCommitSha);
}