mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 18:35:00 +00:00
feature: Add support for WSL git on windows
This commit is contained in:
parent
e28b75b860
commit
98f18aa2a8
3 changed files with 67 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue