code_style: async method names

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-08-14 16:18:38 +08:00
parent 1522da89a2
commit c4ae21ea71
3 changed files with 5 additions and 5 deletions

View File

@@ -677,7 +677,7 @@ namespace SourceGit.ViewModels
return content.Contains("git lfs pre-push");
}
public async Task InstallLFS()
public async Task InstallLFSAsync()
{
var log = CreateLog("Install LFS");
var succ = await new Commands.LFS(_fullpath).Use(log).InstallAsync();
@@ -1498,7 +1498,7 @@ namespace SourceGit.ViewModels
await _histories?.CheckoutBranchByCommitAsync(c);
}
public async Task CompareBranchWithWorktree(Models.Branch branch)
public async Task CompareBranchWithWorktreeAsync(Models.Branch branch)
{
if (_histories != null)
{

View File

@@ -741,7 +741,7 @@ namespace SourceGit.Views
compareWithWorktree.Icon = App.CreateMenuIcon("Icons.Compare");
compareWithWorktree.Click += async (_, e) =>
{
await repo.CompareBranchWithWorktree(branch);
await repo.CompareBranchWithWorktreeAsync(branch);
e.Handled = true;
};
menu.Items.Add(compareWithWorktree);
@@ -1014,7 +1014,7 @@ namespace SourceGit.Views
compareWithWorktree.Icon = App.CreateMenuIcon("Icons.Compare");
compareWithWorktree.Click += async (_, e) =>
{
await repo.CompareBranchWithWorktree(branch);
await repo.CompareBranchWithWorktreeAsync(branch);
e.Handled = true;
};
menu.Items.Add(compareWithWorktree);

View File

@@ -378,7 +378,7 @@ namespace SourceGit.Views
install.Icon = App.CreateMenuIcon("Icons.Init");
install.Click += async (_, e) =>
{
await repo.InstallLFS();
await repo.InstallLFSAsync();
e.Handled = true;
};
menu.Items.Add(install);