enhance: Show the stderr content from QueryLocalChanges (#1327)

This commit is contained in:
Gadfly 2025-05-17 07:58:47 +08:00 committed by GitHub
parent 7f86ad9f22
commit 879b84ac20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Avalonia.Threading;
namespace SourceGit.Commands
{
@ -22,7 +23,10 @@ namespace SourceGit.Commands
var outs = new List<Models.Change>();
var rs = ReadToEnd();
if (!rs.IsSuccess)
{
Dispatcher.UIThread.Post(() => App.RaiseException(Context, rs.StdErr));
return outs;
}
var lines = rs.StdOut.Split(['\r', '\n'], StringSplitOptions.RemoveEmptyEntries);
foreach (var line in lines)