diff options
-rw-r--r-- | pkg/config/user_config.go | 10 | ||||
-rw-r--r-- | pkg/gui/context/local_commits_context.go | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index 1e42b0e15..0b3a91bf6 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -104,9 +104,9 @@ type MergingConfig struct { } type LogConfig struct { - Order string `yaml:"order"` // one of date-order, author-date-order, topo-order - ShowGraph string `yaml:"showGraph"` // one of always, never, when-maximised - ShowWholeGraph bool `yaml:"showWholeGraph"` + Order string `yaml:"order"` // one of date-order, author-date-order, topo-order + ShowGraph string `yaml:"showGraph"` // one of always, never, when-maximised + ShowWholeGraph bool `yaml:"showWholeGraph"` } type CommitPrefixConfig struct { @@ -384,8 +384,8 @@ func GetDefaultConfig() *UserConfig { Args: "", }, Log: LogConfig{ - Order: "topo-order", - ShowGraph: "when-maximised", + Order: "topo-order", + ShowGraph: "when-maximised", ShowWholeGraph: false, }, SkipHookPrefix: "WIP", diff --git a/pkg/gui/context/local_commits_context.go b/pkg/gui/context/local_commits_context.go index 6653087c1..9550bcfdb 100644 --- a/pkg/gui/context/local_commits_context.go +++ b/pkg/gui/context/local_commits_context.go @@ -72,8 +72,8 @@ type LocalCommitsViewModel struct { func NewLocalCommitsViewModel(getModel func() []*models.Commit, c *types.HelperCommon) *LocalCommitsViewModel { self := &LocalCommitsViewModel{ - BasicViewModel: NewBasicViewModel(getModel), - limitCommits: true, + BasicViewModel: NewBasicViewModel(getModel), + limitCommits: true, showWholeGitGraph: c.UserConfig.Git.Log.ShowWholeGraph, } |