1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +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

@ -23,7 +23,7 @@ func NewGpgHelper(c *HelperCommon) *GpgHelper {
// fix this bug, or just stop running subprocesses from within there, given that
// we don't need to see a loading status if we're in a subprocess.
func (self *GpgHelper) WithGpgHandling(cmdObj oscommands.ICmdObj, waitingStatus string, onSuccess func() error) error {
useSubprocess := self.c.Git().Config.UsingGpg()
useSubprocess := self.c.Git().Config.NeedsGpgSubprocessForCommit()
if useSubprocess {
success, err := self.c.RunSubprocess(cmdObj)
if success && onSuccess != nil {