diff --git a/src/Commands/QueryCommitChangedLines.cs b/src/Commands/QueryCommitChangedLines.cs index 75a75c24..81786a66 100644 --- a/src/Commands/QueryCommitChangedLines.cs +++ b/src/Commands/QueryCommitChangedLines.cs @@ -8,7 +8,6 @@ namespace SourceGit.Commands { WorkingDirectory = repo; Context = repo; - // Use shortstat for faster results, which is enough for our needs Args = $"show --shortstat --oneline {sha}"; _pattern = new Regex(@"(\d+) files? changed(?:, (\d+) insertions?\(\+\))?(?:, (\d+) deletions?\(-\))?"); } diff --git a/src/Views/CommitBaseInfo.axaml.cs b/src/Views/CommitBaseInfo.axaml.cs index 58e10cbb..5e20e04c 100644 --- a/src/Views/CommitBaseInfo.axaml.cs +++ b/src/Views/CommitBaseInfo.axaml.cs @@ -66,15 +66,12 @@ namespace SourceGit.Views { base.OnDataContextChanged(e); - // When the DataContext changes, we need to re-evaluate any bindings - // This ensures that when the Commit property changes, the UI is updated if (DataContext is ViewModels.CommitDetail detail) { detail.PropertyChanged += (s, e) => { if (e.PropertyName == nameof(detail.Commit)) { - // Force UI update for the commit lines InvalidateVisual(); } };