diff --git a/src/Commands/QueryLocalChanges.cs b/src/Commands/QueryLocalChanges.cs index d58f42f4..bdef9bf8 100644 --- a/src/Commands/QueryLocalChanges.cs +++ b/src/Commands/QueryLocalChanges.cs @@ -28,8 +28,6 @@ namespace SourceGit.Commands var match = REG_FORMAT().Match(line); if (!match.Success) return; - if (line.EndsWith("/", StringComparison.Ordinal)) - return; // Ignore changes with git-worktree var change = new Models.Change() { Path = match.Groups[2].Value }; var status = match.Groups[1].Value; diff --git a/src/ViewModels/DiffContext.cs b/src/ViewModels/DiffContext.cs index db5382d4..d15b21a8 100644 --- a/src/ViewModels/DiffContext.cs +++ b/src/ViewModels/DiffContext.cs @@ -87,6 +87,14 @@ namespace SourceGit.ViewModels private void LoadDiffContent() { + if (_option.Path.EndsWith('/')) + { + Content = null; + IsTextDiff = false; + IsLoading = false; + return; + } + var unified = Preference.Instance.DiffViewVisualLineNumbers; Task.Run(() => {