diff --git a/docs/Config.md b/docs/Config.md index 2997c1ccecb..45fb21a3ece 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -80,7 +80,7 @@ gui: showIcons: false # deprecated: use nerdFontsVersion instead nerdFontsVersion: "" # nerd fonts version to use ("2" or "3"); empty means don't show nerd font icons showFileIcons: true # for hiding file icons in the file views - commitHashLength: 8 # length of commit ID/ref (hash) in commits view + commitHashLength: 8 # length of commit hash in commits view commandLogSize: 8 splitDiff: 'auto' # one of 'auto' | 'always' skipRewordInEditorWarning: false # for skipping the confirmation before launching the reword editor diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index 3c28d83fe1f..ca8b700bc0a 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -123,8 +123,8 @@ type GuiConfig struct { NerdFontsVersion string `yaml:"nerdFontsVersion" jsonschema:"enum=2,enum=3,enum="` // If true (default), file icons are shown in the file views. Only relevant if NerdFontsVersion is not empty. ShowFileIcons bool `yaml:"showFileIcons"` - // Length of commit ID/ref (hash) in commits view. - CommitHashLength int `yaml:"commitHashLength" jsonschema:"minimum=1,maximum=12"` + // Length of commit hash in commits view. + CommitHashLength int `yaml:"commitHashLength" jsonschema:"minimum=1,maximum=40"` // If true, show commit hashes alongside branch names in the branches view. ShowBranchCommitHash bool `yaml:"showBranchCommitHash"` // Height of the command log view diff --git a/schema/config.json b/schema/config.json index 5c352ccb30b..60dd56a7a2f 100644 --- a/schema/config.json +++ b/schema/config.json @@ -311,9 +311,9 @@ }, "commitHashLength": { "type": "integer", - "maximum": 12, + "maximum": 40, "minimum": 1, - "description": "Length of commit ID/ref (hash) in commits view.", + "description": "Length of commit hash in commits view.", "default": 8 }, "showBranchCommitHash": {