From f8faf1ba2617486b7558e7685c505fdd1935e04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernat=20Borr=C3=A0s=20Civil?= <70479573+BernatBC@users.noreply.github.com> Date: Fri, 11 Apr 2025 16:52:01 +0200 Subject: [PATCH] Clean --- src/Commands/QueryCommitChangedLines.cs | 1 - src/Views/CommitBaseInfo.axaml.cs | 3 --- 2 files changed, 4 deletions(-) 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(); } };