feature: Add support for WSL git on windows

This commit is contained in:
Alec Cowan 2025-05-23 14:58:19 +01:00
parent e28b75b860
commit 98f18aa2a8
3 changed files with 67 additions and 1 deletions

View file

@ -869,7 +869,15 @@ namespace SourceGit.ViewModels
public void SetWatcherEnabled(bool enabled)
{
_watcher?.SetEnabled(enabled);
var wsl = new Models.WSL() { Path = FullPath };
if (wsl.IsWSLPath())
{
_watcher?.MarkBranchDirtyManually();
}
else
{
_watcher?.SetEnabled(enabled);
}
}
public void MarkBranchesDirtyManually()