Merge branch 'develop'

This commit is contained in:
leo 2025-03-10 12:33:20 +08:00
commit e3cc987682
No known key found for this signature in database
6 changed files with 16 additions and 2 deletions

View file

@ -12,7 +12,7 @@ namespace SourceGit.Commands
Args = $"rev-list -{max} --parents --branches --remotes ^{commit}";
}
public IEnumerable<string> Result()
public List<string> Result()
{
Exec();
return _lines;

View file

@ -615,7 +615,7 @@ namespace SourceGit.ViewModels
var cmdChildren = new Commands.QueryCommitChildren(_repo.FullPath, _commit.SHA, max) { Cancel = _cancelToken };
var children = cmdChildren.Result();
if (!cmdChildren.Cancel.Requested)
Dispatcher.UIThread.Post(() => Children.AddRange(children));
Dispatcher.UIThread.Post(() => Children = children);
});
}

View file

@ -49,6 +49,11 @@
Theirs = merge.Source;
Mine = repo.CurrentBranch;
}
else
{
Theirs = "Stash or Patch";
Mine = repo.CurrentBranch;
}
}
public void UseTheirs()

View file

@ -525,6 +525,7 @@ namespace SourceGit.ViewModels
}
_ignoreIndexChange = false;
Preferences.Instance.Save();
GC.Collect();
}

View file

@ -189,6 +189,7 @@ namespace SourceGit.Views
new Commands.Config(null).Set($"gpg.{GPGFormat.Value}.program", GPGExecutableFile);
}
ViewModels.Preferences.Instance.Save();
base.OnClosing(e);
}

View file

@ -239,6 +239,13 @@
<TextBlock Margin="4,0,0,0" Text="{Binding Subject}"/>
</StackPanel>
</DataTemplate>
<DataTemplate DataType="x:String">
<StackPanel Orientation="Horizontal">
<Path Width="12" Height="12" Data="{StaticResource Icons.Changes}"/>
<TextBlock Margin="4,0,0,0" Text="{Binding}"/>
</StackPanel>
</DataTemplate>
</StackPanel.DataTemplates>
<Path Width="64" Height="64" Data="{StaticResource Icons.Conflict}" Fill="{DynamicResource Brush.FG2}" HorizontalAlignment="Center"/>