diff --git a/src/Commands/Add.cs b/src/Commands/Add.cs index 7134ec4a..c3d1d3e6 100644 --- a/src/Commands/Add.cs +++ b/src/Commands/Add.cs @@ -11,7 +11,7 @@ namespace SourceGit.Commands Context = repo; Args = includeUntracked ? "add ." : "add -u ."; } - + public Add(string repo, List changes) { WorkingDirectory = repo; diff --git a/src/Commands/Commit.cs b/src/Commands/Commit.cs index 6406ee90..cb086793 100644 --- a/src/Commands/Commit.cs +++ b/src/Commands/Commit.cs @@ -22,7 +22,7 @@ namespace SourceGit.Commands public bool Run() { var succ = Exec(); - + try { File.Delete(_tmpFile); diff --git a/src/ViewModels/Preference.cs b/src/ViewModels/Preference.cs index 5cb0ee4b..045a6461 100644 --- a/src/ViewModels/Preference.cs +++ b/src/ViewModels/Preference.cs @@ -577,7 +577,7 @@ namespace SourceGit.ViewModels private bool RemoveInvalidRepositoriesRecursive(List collection) { bool changed = false; - + for (int i = collection.Count - 1; i >= 0; i--) { var node = collection[i]; diff --git a/src/Views/Avatar.cs b/src/Views/Avatar.cs index c959fa43..d395b005 100644 --- a/src/Views/Avatar.cs +++ b/src/Views/Avatar.cs @@ -130,7 +130,7 @@ namespace SourceGit.Views if (chars.Count >= 2 && char.IsAsciiLetterOrDigit(chars[0]) && char.IsAsciiLetterOrDigit(chars[^1])) return string.Format("{0}{1}", chars[0], chars[^1]); - + return name.Substring(0, 1); } diff --git a/src/Views/StashesPage.axaml.cs b/src/Views/StashesPage.axaml.cs index c499f76a..60e8f0c1 100644 --- a/src/Views/StashesPage.axaml.cs +++ b/src/Views/StashesPage.axaml.cs @@ -19,7 +19,7 @@ namespace SourceGit.Views e.Handled = true; } - private void OnChangeContextRequested(object sender, ContextRequestedEventArgs e) + private void OnChangeContextRequested(object sender, ContextRequestedEventArgs e) { if (DataContext is ViewModels.StashesPage vm && sender is Grid grid) { diff --git a/src/Views/TextDiffView.axaml.cs b/src/Views/TextDiffView.axaml.cs index 7a2725d2..63833fc1 100644 --- a/src/Views/TextDiffView.axaml.cs +++ b/src/Views/TextDiffView.axaml.cs @@ -6,7 +6,6 @@ using System.Text; using Avalonia; using Avalonia.Controls; -using Avalonia.Controls.Primitives; using Avalonia.Data; using Avalonia.Input; using Avalonia.Interactivity; diff --git a/src/Views/WorkingCopy.axaml.cs b/src/Views/WorkingCopy.axaml.cs index 418ee24e..2b01b861 100644 --- a/src/Views/WorkingCopy.axaml.cs +++ b/src/Views/WorkingCopy.axaml.cs @@ -124,9 +124,9 @@ namespace SourceGit.Views { if (DataContext is ViewModels.WorkingCopy vm) { - var dialog = new ConventionalCommitMessageBuilder() - { - DataContext = new ViewModels.ConventionalCommitMessageBuilder(vm) + var dialog = new ConventionalCommitMessageBuilder() + { + DataContext = new ViewModels.ConventionalCommitMessageBuilder(vm) }; App.OpenDialog(dialog);