Skip to content

Commit 9d3f186

Browse files
committed
code_style: run dotnet format
1 parent 1dffb2e commit 9d3f186

File tree

10 files changed

+17
-16
lines changed

10 files changed

+17
-16
lines changed

src/Commands/QueryCommitFullMessage.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ public QueryCommitFullMessage(string repo, string sha)
1212
public string Result()
1313
{
1414
var rs = ReadToEnd();
15-
if (rs.IsSuccess) return rs.StdOut.TrimEnd();
15+
if (rs.IsSuccess)
16+
return rs.StdOut.TrimEnd();
1617
return string.Empty;
1718
}
1819
}

src/Commands/QueryCommits.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public QueryCommits(string repo, string limits, bool needFindHead = true)
5858
}
5959

6060
nextPartIdx++;
61-
61+
6262
start = end + 1;
6363
end = rs.StdOut.IndexOf('\n', start);
6464
}

src/ViewModels/LayoutInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
2-
using System.Text.Json.Serialization;
32
using System.Text.Json;
3+
using System.Text.Json.Serialization;
44

55
using Avalonia.Controls;
66

src/ViewModels/Repository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ public void StartSearchCommits()
442442
else
443443
{
444444
visible = new Commands.QueryCommits(FullPath, $"-1000 -- \"{_searchCommitFilter}\"", false).Result();
445-
}
445+
}
446446

447447
SearchedCommits = visible;
448448
}
@@ -1002,7 +1002,7 @@ public ContextMenu CreateContextMenuForLocalBranch(Models.Branch branch)
10021002
menu.Items.Add(new MenuItem() { Header = "-" });
10031003

10041004
menu.Items.Add(compareWithBranch);
1005-
}
1005+
}
10061006
}
10071007

10081008
var type = GitFlow.GetBranchType(branch.Name);

src/ViewModels/Reword.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public Reword(Repository repo, Models.Commit head)
2424
_repo = repo;
2525
_oldMessage = new Commands.QueryCommitFullMessage(_repo.FullPath, head.SHA).Result();
2626
_message = _oldMessage;
27-
27+
2828
Head = head;
2929
View = new Views.Reword() { DataContext = this };
3030
}

src/ViewModels/Squash.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public Squash(Repository repo, Models.Commit head, Models.Commit parent)
2828
{
2929
_repo = repo;
3030
_message = new Commands.QueryCommitFullMessage(_repo.FullPath, parent.SHA).Result();
31-
31+
3232
Head = head;
3333
Parent = parent;
3434
View = new Views.Squash() { DataContext = this };

src/Views/CommitBaseInfo.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public bool CanNavigate
1414
get => GetValue(CanNavigateProperty);
1515
set => SetValue(CanNavigateProperty, value);
1616
}
17-
17+
1818
public static readonly StyledProperty<string> MessageProperty =
1919
AvaloniaProperty.Register<CommitBaseInfo, string>(nameof(Message), string.Empty);
2020

src/Views/Launcher.axaml.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ private void MoveWindow(object sender, PointerEventArgs e)
184184

185185
var visual = (Visual)e.Source;
186186
BeginMoveDrag(new PointerPressedEventArgs(
187-
e.Source,
187+
e.Source,
188188
e.Pointer,
189-
visual,
190-
e.GetPosition(visual),
191-
e.Timestamp,
192-
new PointerPointProperties(RawInputModifiers.None, PointerUpdateKind.LeftButtonPressed),
189+
visual,
190+
e.GetPosition(visual),
191+
e.Timestamp,
192+
new PointerPointProperties(RawInputModifiers.None, PointerUpdateKind.LeftButtonPressed),
193193
e.KeyModifiers));
194194
}
195195

src/Views/RevisionFiles.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
116116
{
117117
SelectedObject = null;
118118
detail.ViewRevisionFile(null);
119-
}
119+
}
120120
}
121121
};
122122

src/Views/TextDiffView.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public bool UseSyntaxHighlighting
107107

108108
protected override Type StyleKeyOverride => typeof(TextEditor);
109109

110-
public IThemedTextDiffPresenter(TextArea area, TextDocument doc): base(area, doc)
110+
public IThemedTextDiffPresenter(TextArea area, TextDocument doc) : base(area, doc)
111111
{
112112
IsReadOnly = true;
113113
ShowLineNumbers = false;
@@ -156,7 +156,7 @@ protected void UpdateTextMate()
156156
TextArea.TextView.LineTransformers.Remove(_lineStyleTransformer);
157157
_textMate = Models.TextMateHelper.CreateForEditor(this);
158158
TextArea.TextView.LineTransformers.Add(_lineStyleTransformer);
159-
Models.TextMateHelper.SetGrammarByFileName(_textMate, FileName);
159+
Models.TextMateHelper.SetGrammarByFileName(_textMate, FileName);
160160
}
161161
}
162162
else

0 commit comments

Comments
 (0)