From 74457305f1a801239a0fcbaa2bd9fe6c2c8f2147 Mon Sep 17 00:00:00 2001 From: riyueguang Date: Sat, 12 Apr 2025 09:54:44 +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 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/commands/git_commands/commit_loader.go b/pkg/commands/git_commands/commit_loader.go index f9cfff1419e..b46af4885c4 100644 --- a/pkg/commands/git_commands/commit_loader.go +++ b/pkg/commands/git_commands/commit_loader.go @@ -496,7 +496,7 @@ func (self *CommitLoader) getFirstPushedCommit(refName string) (string, error) { return ignoringWarnings(output), nil } -// getLog gets the git log. +// getLogCmd gets the git log. func (self *CommitLoader) getLogCmd(opts GetCommitsOptions) oscommands.ICmdObj { gitLogOrder := self.AppState.GitLogOrder diff --git a/pkg/gui/controllers/helpers/app_status_helper.go b/pkg/gui/controllers/helpers/app_status_helper.go index 9375186326a..587d219d343 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)