diff --git a/pkg/commands/git_commands/config.go b/pkg/commands/git_commands/config.go index 1bed98985..40cf041b3 100644 --- a/pkg/commands/git_commands/config.go +++ b/pkg/commands/git_commands/config.go @@ -1,9 +1,7 @@ package git_commands import ( - "os" "strconv" - "strings" gogit "github.com/jesseduffield/go-git/v5" "github.com/jesseduffield/go-git/v5/config" @@ -31,17 +29,6 @@ func NewConfigCommands( } } -func (self *ConfigCommands) ConfiguredPager() string { - if os.Getenv("GIT_PAGER") != "" { - return os.Getenv("GIT_PAGER") - } - if os.Getenv("PAGER") != "" { - return os.Getenv("PAGER") - } - output := self.gitConfig.Get("core.pager") - return strings.Split(output, "\n")[0] -} - func (self *ConfigCommands) GetPager(width int) string { templateValues := map[string]string{ "columnWidth": strconv.Itoa(width/2 - 6),