mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
code_style: rename TryAutoUpdateSubmodules to AutoUpdateSubmodulesAsync
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace SourceGit.ViewModels
|
||||
_repo.SetCommitMessage(msg);
|
||||
}
|
||||
|
||||
await _repo.TryAutoUpdateSubmodules(log);
|
||||
await _repo.AutoUpdateSubmodulesAsync(log);
|
||||
}
|
||||
|
||||
log.Complete();
|
||||
|
||||
@@ -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}");
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace SourceGit.ViewModels
|
||||
.Use(log)
|
||||
.ExecAsync();
|
||||
|
||||
await _repo.TryAutoUpdateSubmodules(log);
|
||||
await _repo.AutoUpdateSubmodulesAsync(log);
|
||||
|
||||
log.Complete();
|
||||
return succ;
|
||||
|
||||
Reference in New Issue
Block a user