We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c87776 commit ed05470Copy full SHA for ed05470
pkg/commands/git_commands/config.go
@@ -1,9 +1,7 @@
1
package git_commands
2
3
import (
4
- "os"
5
"strconv"
6
- "strings"
7
8
gogit "github.com/jesseduffield/go-git/v5"
9
"github.com/jesseduffield/go-git/v5/config"
@@ -31,17 +29,6 @@ func NewConfigCommands(
31
29
}
32
30
33
34
-func (self *ConfigCommands) ConfiguredPager() string {
35
- if os.Getenv("GIT_PAGER") != "" {
36
- return os.Getenv("GIT_PAGER")
37
- }
38
- if os.Getenv("PAGER") != "" {
39
- return os.Getenv("PAGER")
40
41
- output := self.gitConfig.Get("core.pager")
42
- return strings.Split(output, "\n")[0]
43
-}
44
-
45
func (self *ConfigCommands) GetPager(width int) string {
46
templateValues := map[string]string{
47
"columnWidth": strconv.Itoa(width/2 - 6),
0 commit comments