Skip to content

Commit ea1159c

Browse files
committed
code_style: rename TryAutoUpdateSubmodules to AutoUpdateSubmodulesAsync
Signed-off-by: leo <[email protected]>
1 parent 5b333bc commit ea1159c

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/ViewModels/Checkout.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public override async Task<bool> Sure()
6969

7070
if (succ)
7171
{
72-
await _repo.TryAutoUpdateSubmodules(log);
72+
await _repo.AutoUpdateSubmodulesAsync(log);
7373

7474
if (needPopStash)
7575
await new Commands.Stash(_repo.FullPath)

src/ViewModels/CheckoutAndFastForward.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public override async Task<bool> Sure()
7474

7575
if (succ)
7676
{
77-
await _repo.TryAutoUpdateSubmodules(log);
77+
await _repo.AutoUpdateSubmodulesAsync(log);
7878

7979
if (needPopStash)
8080
await new Commands.Stash(_repo.FullPath)

src/ViewModels/CheckoutCommit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public override async Task<bool> Sure()
6969

7070
if (succ)
7171
{
72-
await _repo.TryAutoUpdateSubmodules(log);
72+
await _repo.AutoUpdateSubmodulesAsync(log);
7373

7474
if (needPop)
7575
await new Commands.Stash(_repo.FullPath)

src/ViewModels/CreateBranch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public override async Task<bool> Sure()
153153

154154
if (succ)
155155
{
156-
await _repo.TryAutoUpdateSubmodules(log);
156+
await _repo.AutoUpdateSubmodulesAsync(log);
157157

158158
if (needPopStash)
159159
await new Commands.Stash(_repo.FullPath)

src/ViewModels/Merge.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public override async Task<bool> Sure()
9191
_repo.SetCommitMessage(msg);
9292
}
9393

94-
await _repo.TryAutoUpdateSubmodules(log);
94+
await _repo.AutoUpdateSubmodulesAsync(log);
9595
}
9696

9797
log.Complete();

src/ViewModels/Pull.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public override async Task<bool> Sure()
135135
UseRebase).Use(log).RunAsync();
136136
if (rs)
137137
{
138-
await _repo.TryAutoUpdateSubmodules(log);
138+
await _repo.AutoUpdateSubmodulesAsync(log);
139139

140140
if (needPopStash)
141141
await new Commands.Stash(_repo.FullPath).Use(log).PopAsync("stash@{0}");

src/ViewModels/Repository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ public void UpdateSubmodules()
14911491
ShowPopup(new UpdateSubmodules(this, null));
14921492
}
14931493

1494-
public async Task TryAutoUpdateSubmodules(Models.ICommandLog log)
1494+
public async Task AutoUpdateSubmodulesAsync(Models.ICommandLog log)
14951495
{
14961496
var submodules = await new Commands.QueryUpdatableSubmodules(FullPath, false).GetResultAsync();
14971497
if (submodules.Count == 0)

src/ViewModels/Reset.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public override async Task<bool> Sure()
4040
.Use(log)
4141
.ExecAsync();
4242

43-
await _repo.TryAutoUpdateSubmodules(log);
43+
await _repo.AutoUpdateSubmodulesAsync(log);
4444

4545
log.Complete();
4646
return succ;

0 commit comments

Comments
 (0)