summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-11 22:03:55 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-11 23:36:34 +1000
commit06a8eb115c100816e3ceccff875010a84416beee (patch)
tree89eeaf7844d71f312252ff89e538302e9d649084 /pkg/config
parente4f0a470e93e6522757cb8fc215a245de92a8e75 (diff)
make command log size configurable
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/user_config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go
index c2790ce6d..7fd26a708 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -37,6 +37,7 @@ type GuiConfig struct {
SkipNoStagedFilesWarning bool `yaml:"skipNoStagedFilesWarning"`
ShowFileTree bool `yaml:"showFileTree"`
ShowCommandLog bool `yaml:"showCommandLog"`
+ CommandLogSize int `yaml:"commandLogSize"`
}
type ThemeConfig struct {
@@ -297,6 +298,9 @@ func GetDefaultConfig() *UserConfig {
},
CommitLength: CommitLengthConfig{Show: true},
SkipNoStagedFilesWarning: false,
+ ShowCommandLog: true,
+ ShowFileTree: false,
+ CommandLogSize: 8,
},
Git: GitConfig{
Paging: PagingConfig{