From 13b4e16e6a492388abd924be3a60d9814b1e3c3a Mon Sep 17 00:00:00 2001 From: riyueguang Date: Sat, 6 Dec 2025 18:28:58 +0800 Subject: [PATCH] chore: fix function name in comment Signed-off-by: riyueguang --- pkg/commands/git_commands/commit_loader.go | 2 +- pkg/gui/controllers/helpers/app_status_helper.go | 2 +- pkg/gui/controllers/helpers/credentials_helper.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/commands/git_commands/commit_loader.go b/pkg/commands/git_commands/commit_loader.go index dcf66ddee..da4bcb7ff 100644 --- a/pkg/commands/git_commands/commit_loader.go +++ b/pkg/commands/git_commands/commit_loader.go @@ -575,7 +575,7 @@ func (self *CommitLoader) getReachableHashes(refName string, notRefNames []strin return set.NewFromSlice(utils.SplitLines(output)) } -// getLog gets the git log. +// getLogCmd gets the git log. func (self *CommitLoader) getLogCmd(opts GetCommitsOptions) *oscommands.CmdObj { gitLogOrder := self.UserConfig().Git.Log.Order diff --git a/pkg/gui/controllers/helpers/app_status_helper.go b/pkg/gui/controllers/helpers/app_status_helper.go index 937518632..587d219d3 100644 --- a/pkg/gui/controllers/helpers/app_status_helper.go +++ b/pkg/gui/controllers/helpers/app_status_helper.go @@ -57,7 +57,7 @@ func (self appStatusHelperTask) Continue() { self.waitingStatusHandle.Show() } -// withWaitingStatus wraps a function and shows a waiting status while the function is still executing +// WithWaitingStatus wraps a function and shows a waiting status while the function is still executing func (self *AppStatusHelper) WithWaitingStatus(message string, f func(gocui.Task) error) { self.c.OnWorker(func(task gocui.Task) error { return self.WithWaitingStatusImpl(message, f, task) diff --git a/pkg/gui/controllers/helpers/credentials_helper.go b/pkg/gui/controllers/helpers/credentials_helper.go index 2d3654887..9b2198ccb 100644 --- a/pkg/gui/controllers/helpers/credentials_helper.go +++ b/pkg/gui/controllers/helpers/credentials_helper.go @@ -17,7 +17,7 @@ func NewCredentialsHelper( } } -// promptUserForCredential wait for a username, password or passphrase input from the credentials popup +// PromptUserForCredential wait for a username, password or passphrase input from the credentials popup // We return a channel rather than returning the string directly so that the calling function knows // when the prompt has been created (before the user has entered anything) so that it can // note that we're now waiting on user input and lazygit isn't processing anything.