mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-04 23:37:41 +02:00
Add the DiffContextSize
setting to GitConfig
It defaults to 3 lines, which is the default value for git.
This commit is contained in:
parent
3e3151f86a
commit
9feaf5d70f
@ -76,6 +76,7 @@ git:
|
|||||||
overrideGpg: false # prevents lazygit from spawning a separate process when using GPG
|
overrideGpg: false # prevents lazygit from spawning a separate process when using GPG
|
||||||
disableForcePushing: false
|
disableForcePushing: false
|
||||||
parseEmoji: false
|
parseEmoji: false
|
||||||
|
diffContextSize: 3 # how many lines of context are shown around a change in diffs
|
||||||
os:
|
os:
|
||||||
editCommand: '' # see 'Configuring File Editing' section
|
editCommand: '' # see 'Configuring File Editing' section
|
||||||
editCommandTemplate: '{{editor}} {{filename}}'
|
editCommandTemplate: '{{editor}} {{filename}}'
|
||||||
|
@ -72,6 +72,7 @@ type GitConfig struct {
|
|||||||
// this shoudl really be under 'gui', not 'git'
|
// this shoudl really be under 'gui', not 'git'
|
||||||
ParseEmoji bool `yaml:"parseEmoji"`
|
ParseEmoji bool `yaml:"parseEmoji"`
|
||||||
Log LogConfig `yaml:"log"`
|
Log LogConfig `yaml:"log"`
|
||||||
|
DiffContextSize int `yaml:"diffContextSize"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PagingConfig struct {
|
type PagingConfig struct {
|
||||||
@ -359,6 +360,7 @@ func GetDefaultConfig() *UserConfig {
|
|||||||
DisableForcePushing: false,
|
DisableForcePushing: false,
|
||||||
CommitPrefixes: map[string]CommitPrefixConfig(nil),
|
CommitPrefixes: map[string]CommitPrefixConfig(nil),
|
||||||
ParseEmoji: false,
|
ParseEmoji: false,
|
||||||
|
DiffContextSize: 3,
|
||||||
},
|
},
|
||||||
Refresher: RefresherConfig{
|
Refresher: RefresherConfig{
|
||||||
RefreshInterval: 10,
|
RefreshInterval: 10,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user