mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 18:35:00 +00:00
Clean
This commit is contained in:
parent
75b15c455e
commit
f8faf1ba26
2 changed files with 0 additions and 4 deletions
|
@ -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?\(-\))?");
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue