mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
enhance: show untracked submodules in unstaged (#393)
This commit is contained in:
parent
d5e51d1f32
commit
8b469e7778
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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(() =>
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue