Skip to content

Commit 46231a7

Browse files
committed
code_style: run dotnet format
Signed-off-by: leo <[email protected]>
1 parent fbc8edc commit 46231a7

File tree

9 files changed

+9
-10
lines changed

9 files changed

+9
-10
lines changed

src/Commands/QueryBranches.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public QueryBranches(string repo)
5858

5959
if (b.TrackStatus == null)
6060
b.TrackStatus = new Models.BranchTrackStatus();
61-
}
61+
}
6262
}
6363
}
6464

src/Commands/QueryStagedChangesWithAmend.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public QueryStagedChangesWithAmend(string repo, string parent)
2424
var rs = ReadToEnd();
2525
if (!rs.IsSuccess)
2626
return [];
27-
27+
2828
var changes = new List<Models.Change>();
2929
var lines = rs.StdOut.Split(['\r', '\n'], StringSplitOptions.RemoveEmptyEntries);
3030
foreach (var line in lines)

src/Models/Change.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public class Change
4949
public string OriginalPath { get; set; } = "";
5050
public ChangeDataForAmend DataForAmend { get; set; } = null;
5151
public ConflictReason ConflictReason { get; set; } = ConflictReason.None;
52-
public bool IsSubmodule { get; set; } = false;
5352
public bool IsConflicted => WorkTree == ChangeState.Conflicted;
5453

5554
public void Set(ChangeState index, ChangeState workTree = ChangeState.None)
@@ -78,7 +77,7 @@ public void Set(ChangeState index, ChangeState workTree = ChangeState.None)
7877

7978
if (Path[0] == '"')
8079
Path = Path.Substring(1, Path.Length - 2);
81-
80+
8281
if (!string.IsNullOrEmpty(OriginalPath) && OriginalPath[0] == '"')
8382
OriginalPath = OriginalPath.Substring(1, OriginalPath.Length - 2);
8483
}

src/ViewModels/Conflict.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public string Description
3636
get;
3737
private set;
3838
}
39-
39+
4040
public object Theirs
4141
{
4242
get;

src/ViewModels/InteractiveRebase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void ChangeAction(InteractiveRebaseItem item, Models.InteractiveRebaseAct
178178
if (action == Models.InteractiveRebaseAction.Squash || action == Models.InteractiveRebaseAction.Fixup)
179179
return;
180180
}
181-
181+
182182
item.Action = action;
183183
UpdateItems();
184184
}

src/ViewModels/Repository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ public void RefreshAll()
639639
Task.Run(RefreshWorktrees);
640640
Task.Run(RefreshWorkingCopyChanges);
641641
Task.Run(RefreshStashes);
642-
642+
643643
Task.Run(() =>
644644
{
645645
var config = new Commands.Config(_fullpath).ListAll();

src/ViewModels/StashesPage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public Models.Stash SelectedStash
6161
{
6262
var changes = new Commands.CompareRevisions(_repo.FullPath, $"{value.SHA}^", value.SHA).Result();
6363
var untracked = new List<Models.Change>();
64-
64+
6565
if (value.Parents.Count == 3)
6666
{
6767
untracked = new Commands.CompareRevisions(_repo.FullPath, Models.Commit.EmptyTreeSHA1, value.Parents[2]).Result();

src/ViewModels/WorkingCopy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ private bool IsChanged(List<Models.Change> old, List<Models.Change> cur)
17701770
{
17711771
if (old.Count != cur.Count)
17721772
return true;
1773-
1773+
17741774
var oldMap = new Dictionary<string, Models.Change>();
17751775
foreach (var c in old)
17761776
oldMap.Add(c.Path, c);

src/Views/InteractiveRebase.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private void OnMoveItemDown(object sender, RoutedEventArgs e)
153153
e.Handled = true;
154154
}
155155
}
156-
156+
157157
private void OnChangeRebaseAction(object sender, RoutedEventArgs e)
158158
{
159159
if (DataContext is ViewModels.InteractiveRebase vm &&

0 commit comments

Comments
 (0)