summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorDerTeta <derteta@gmx.de>2021-08-11 00:08:53 +0200
committerJesse Duffield <jessedduffield@gmail.com>2021-12-06 22:37:28 +1100
commit9feaf5d70f7075199c4b517f7fe171318d951d5d (patch)
tree9029aeb72bd024449933a21aae137af21706f786 /pkg/config
parent3e3151f86ace9dec0af9f554cb0efaa6f43e1831 (diff)
Add the `DiffContextSize` setting to `GitConfig`
It defaults to 3 lines, which is the default value for git.
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/user_config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go
index f9a2e8656..09895f66d 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -72,6 +72,7 @@ type GitConfig struct {
// this shoudl really be under 'gui', not 'git'
ParseEmoji bool `yaml:"parseEmoji"`
Log LogConfig `yaml:"log"`
+ DiffContextSize int `yaml:"diffContextSize"`
}
type PagingConfig struct {
@@ -359,6 +360,7 @@ func GetDefaultConfig() *UserConfig {
DisableForcePushing: false,
CommitPrefixes: map[string]CommitPrefixConfig(nil),
ParseEmoji: false,
+ DiffContextSize: 3,
},
Refresher: RefresherConfig{
RefreshInterval: 10,