code_style: rename TryAutoUpdateSubmodules to AutoUpdateSubmodulesAsync

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-01-14 16:16:40 +08:00
parent 5b333bc502
commit ea1159cf20
8 changed files with 8 additions and 8 deletions

View File

@@ -69,7 +69,7 @@ namespace SourceGit.ViewModels
if (succ)
{
await _repo.TryAutoUpdateSubmodules(log);
await _repo.AutoUpdateSubmodulesAsync(log);
if (needPopStash)
await new Commands.Stash(_repo.FullPath)

View File

@@ -74,7 +74,7 @@ namespace SourceGit.ViewModels
if (succ)
{
await _repo.TryAutoUpdateSubmodules(log);
await _repo.AutoUpdateSubmodulesAsync(log);
if (needPopStash)
await new Commands.Stash(_repo.FullPath)

View File

@@ -69,7 +69,7 @@ namespace SourceGit.ViewModels
if (succ)
{
await _repo.TryAutoUpdateSubmodules(log);
await _repo.AutoUpdateSubmodulesAsync(log);
if (needPop)
await new Commands.Stash(_repo.FullPath)

View File

@@ -153,7 +153,7 @@ namespace SourceGit.ViewModels
if (succ)
{
await _repo.TryAutoUpdateSubmodules(log);
await _repo.AutoUpdateSubmodulesAsync(log);
if (needPopStash)
await new Commands.Stash(_repo.FullPath)

View File

@@ -91,7 +91,7 @@ namespace SourceGit.ViewModels
_repo.SetCommitMessage(msg);
}
await _repo.TryAutoUpdateSubmodules(log);
await _repo.AutoUpdateSubmodulesAsync(log);
}
log.Complete();

View File

@@ -135,7 +135,7 @@ namespace SourceGit.ViewModels
UseRebase).Use(log).RunAsync();
if (rs)
{
await _repo.TryAutoUpdateSubmodules(log);
await _repo.AutoUpdateSubmodulesAsync(log);
if (needPopStash)
await new Commands.Stash(_repo.FullPath).Use(log).PopAsync("stash@{0}");

View File

@@ -1491,7 +1491,7 @@ namespace SourceGit.ViewModels
ShowPopup(new UpdateSubmodules(this, null));
}
public async Task TryAutoUpdateSubmodules(Models.ICommandLog log)
public async Task AutoUpdateSubmodulesAsync(Models.ICommandLog log)
{
var submodules = await new Commands.QueryUpdatableSubmodules(FullPath, false).GetResultAsync();
if (submodules.Count == 0)

View File

@@ -40,7 +40,7 @@ namespace SourceGit.ViewModels
.Use(log)
.ExecAsync();
await _repo.TryAutoUpdateSubmodules(log);
await _repo.AutoUpdateSubmodulesAsync(log);
log.Complete();
return succ;