1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

refactor: Rename UsingGpg to make room for Gpg Tag logic

This commit is contained in:
Chris McDonnell
2025-03-13 23:59:19 -04:00
committed by Stefan Haller
parent 67b0db0bd8
commit 52da806c57
4 changed files with 8 additions and 7 deletions

View File

@ -57,9 +57,10 @@ func (self *ConfigCommands) GetPager(width int) string {
return utils.ResolvePlaceholderString(pagerTemplate, templateValues)
}
// UsingGpg tells us whether the user has gpg enabled so that we can know
// whether we need to run a subprocess to allow them to enter their password
func (self *ConfigCommands) UsingGpg() bool {
// NeedsGpgSubprocessForCommit tells us whether the user has gpg enabled for commit actions
// and needs a subprocess because they have a process where they manually
// enter their password every time a GPG action is taken
func (self *ConfigCommands) NeedsGpgSubprocessForCommit() bool {
overrideGpg := self.UserConfig().Git.OverrideGpg
if overrideGpg {
return false