summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLay <lei4519@126.com>2022-05-30 23:19:48 +0800
committerLay <lei4519@126.com>2022-05-30 23:19:48 +0800
commit684ea284af3482bb0cf573329bec0f4c2707d3e8 (patch)
tree087357546b819d21fe21c8497f48123de786be95
parentb6b3be9ac73c2d352a9128ca9865b0cb1ae6602d (diff)
fix: lint error
-rw-r--r--pkg/config/user_config.go10
-rw-r--r--pkg/gui/context/local_commits_context.go4
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,
}