Skip to content

Commit 12597fd

Browse files
committed
code_style: run dotnet format
Signed-off-by: leo <[email protected]>
1 parent 9a36e65 commit 12597fd

File tree

7 files changed

+22
-19
lines changed

7 files changed

+22
-19
lines changed

src/Native/OS.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public interface IBackend
2525
void OpenWithDefaultEditor(string file);
2626
}
2727

28-
public static string DataDir {
28+
public static string DataDir
29+
{
2930
get;
3031
private set;
3132
} = string.Empty;
@@ -61,12 +62,14 @@ public static Version GitVersion
6162
private set;
6263
} = new Version(0, 0, 0);
6364

64-
public static string ShellOrTerminal {
65+
public static string ShellOrTerminal
66+
{
6567
get;
6668
set;
6769
} = string.Empty;
6870

69-
public static List<Models.ExternalTool> ExternalTools {
71+
public static List<Models.ExternalTool> ExternalTools
72+
{
7073
get;
7174
set;
7275
} = [];

src/ViewModels/FileHistories.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public FileHistories(Repository repo, string file, string commit = null)
295295
public void NavigateToCommit(Models.Commit commit)
296296
{
297297
_repo.NavigateToCommit(commit.SHA);
298-
}
298+
}
299299

300300
private readonly Repository _repo = null;
301301
private readonly string _file = null;

src/ViewModels/Histories.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public ContextMenu MakeContextMenu(ListBox list)
285285

286286
if (canCherryPick || canMerge)
287287
multipleMenu.Items.Add(new MenuItem() { Header = "-" });
288-
}
288+
}
289289

290290
var saveToPatchMultiple = new MenuItem();
291291
saveToPatchMultiple.Icon = App.CreateMenuIcon("Icons.Diff");
@@ -589,7 +589,7 @@ public ContextMenu MakeContextMenu(ListBox list)
589589
menu.Items.Add(interactiveRebase);
590590
menu.Items.Add(new MenuItem() { Header = "-" });
591591
}
592-
}
592+
}
593593

594594
if (current.Head != commit.SHA)
595595
{
@@ -937,7 +937,7 @@ private void FillCurrentBranchMenu(ContextMenu menu, Models.Branch current)
937937
submenu.Items.Add(finish);
938938
submenu.Items.Add(new MenuItem() { Header = "-" });
939939
}
940-
}
940+
}
941941

942942
var copy = new MenuItem();
943943
copy.Header = App.Text("BranchCM.CopyName");
@@ -983,7 +983,7 @@ private void FillOtherLocalBranchMenu(ContextMenu menu, Models.Branch branch, Mo
983983
e.Handled = true;
984984
};
985985
submenu.Items.Add(merge);
986-
}
986+
}
987987

988988
var rename = new MenuItem();
989989
rename.Header = new Views.NameHighlightedTextBlock("BranchCM.Rename", branch.Name);
@@ -1025,7 +1025,7 @@ private void FillOtherLocalBranchMenu(ContextMenu menu, Models.Branch branch, Mo
10251025
submenu.Items.Add(finish);
10261026
submenu.Items.Add(new MenuItem() { Header = "-" });
10271027
}
1028-
}
1028+
}
10291029

10301030
var copy = new MenuItem();
10311031
copy.Header = App.Text("BranchCM.CopyName");
@@ -1131,7 +1131,7 @@ private void FillTagMenu(ContextMenu menu, Models.Tag tag, Models.Branch current
11311131
e.Handled = true;
11321132
};
11331133
submenu.Items.Add(merge);
1134-
}
1134+
}
11351135

11361136
var delete = new MenuItem();
11371137
delete.Header = new Views.NameHighlightedTextBlock("TagCM.Delete", tag.Name);

src/ViewModels/Repository.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ public ContextMenu CreateContextMenuForLocalBranch(Models.Branch branch)
15001500
menu.Items.Add(fastForward);
15011501
menu.Items.Add(pull);
15021502
}
1503-
}
1503+
}
15041504

15051505
menu.Items.Add(push);
15061506
}
@@ -1518,7 +1518,7 @@ public ContextMenu CreateContextMenuForLocalBranch(Models.Branch branch)
15181518
};
15191519
menu.Items.Add(checkout);
15201520
menu.Items.Add(new MenuItem() { Header = "-" });
1521-
}
1521+
}
15221522

15231523
var worktree = _worktrees.Find(x => x.Branch == branch.FullName);
15241524
var upstream = _branches.Find(x => x.FullName == branch.Upstream);
@@ -1577,7 +1577,7 @@ public ContextMenu CreateContextMenuForLocalBranch(Models.Branch branch)
15771577

15781578
menu.Items.Add(merge);
15791579
menu.Items.Add(rebase);
1580-
}
1580+
}
15811581

15821582
var compareWithHead = new MenuItem();
15831583
compareWithHead.Header = App.Text("BranchCM.CompareWithHead");
@@ -1629,7 +1629,7 @@ public ContextMenu CreateContextMenuForLocalBranch(Models.Branch branch)
16291629
menu.Items.Add(new MenuItem() { Header = "-" });
16301630
menu.Items.Add(finish);
16311631
}
1632-
}
1632+
}
16331633

16341634
var rename = new MenuItem();
16351635
rename.Header = new Views.NameHighlightedTextBlock("BranchCM.Rename", branch.Name);
@@ -1702,7 +1702,7 @@ public ContextMenu CreateContextMenuForLocalBranch(Models.Branch branch)
17021702
};
17031703
menu.Items.Add(tracking);
17041704
}
1705-
}
1705+
}
17061706

17071707
var archive = new MenuItem();
17081708
archive.Icon = App.CreateMenuIcon("Icons.Archive");

src/Views/FileHistories.axaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Collections.Generic;
21
using Avalonia.Controls;
32
using Avalonia.Input;
43
using Avalonia.Interactivity;
@@ -56,7 +55,7 @@ private async void OnSaveAsPatch(object sender, RoutedEventArgs e)
5655

5756
NotifyDonePanel.IsVisible = true;
5857
e.Handled = true;
59-
}
58+
}
6059
}
6160
}
6261
}

src/Views/Launcher.axaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ protected override void OnKeyDown(KeyEventArgs e)
146146
return;
147147
}
148148

149-
if (e.Key == Key.Q) {
149+
if (e.Key == Key.Q)
150+
{
150151
App.Quit(0);
151152
e.Handled = true;
152153
return;

src/Views/TextDiffView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ private void CopyWithoutIndicators()
10001000
builder.AppendLine(line.Content.Substring(selection.StartPosition.Column - 1));
10011001
continue;
10021002
}
1003-
1003+
10041004
if (i == endIdx && selection.EndPosition.Column < line.Content.Length)
10051005
{
10061006
builder.AppendLine(line.Content.Substring(0, selection.EndPosition.Column));

0 commit comments

Comments
 (0)