MCPcopy
hub / github.com/jesseduffield/lazygit / GetColorArg

Method GetColorArg

pkg/config/pager_config.go:47–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func (self *PagerConfig) GetColorArg() string {
48 currentPagerConfig := self.currentPagerConfig()
49 if currentPagerConfig == nil {
50 return "always"
51 }
52
53 colorArg := currentPagerConfig.ColorArg
54 if colorArg == "" {
55 return "always"
56 }
57 return colorArg
58}
59
60func (self *PagerConfig) GetExternalDiffCommand() string {
61 currentPagerConfig := self.currentPagerConfig()

Callers 5

DiffCmdObjMethod · 0.80
ShowStashEntryCmdObjMethod · 0.80
ShowFileDiffCmdObjMethod · 0.80
ShowCmdObjMethod · 0.80

Calls 1

currentPagerConfigMethod · 0.95

Tested by

no test coverage detected