mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-25 22:32:13 +02:00
Add enum validation for Git.Log.Order and Git.Log.ShowGraph
This commit is contained in:
@@ -31,6 +31,14 @@ func (config *UserConfig) Validate() error {
|
||||
[]string{"date", "alphabetical"}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := validateEnum("git.log.order", config.Git.Log.Order,
|
||||
[]string{"date-order", "author-date-order", "topo-order", "default"}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := validateEnum("git.log.showGraph", config.Git.Log.ShowGraph,
|
||||
[]string{"always", "never", "when-maximised"}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := validateKeybindings(config.Keybinding); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user