Skip to content

Commit 3816cb9

Browse files
committed
Reword config description and change maximum in json schema
Change the maximum int to 40 (the length of a full commit hash), and change the description so it makes more sense.
1 parent 389a8c9 commit 3816cb9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/Config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ gui:
8080
showIcons: false # deprecated: use nerdFontsVersion instead
8181
nerdFontsVersion: "" # nerd fonts version to use ("2" or "3"); empty means don't show nerd font icons
8282
showFileIcons: true # for hiding file icons in the file views
83-
commitHashLength: 8 # length of commit ID/ref (hash) in commits view
83+
commitHashLength: 8 # length of commit hash in commits view
8484
commandLogSize: 8
8585
splitDiff: 'auto' # one of 'auto' | 'always'
8686
skipRewordInEditorWarning: false # for skipping the confirmation before launching the reword editor

pkg/config/user_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ type GuiConfig struct {
123123
NerdFontsVersion string `yaml:"nerdFontsVersion" jsonschema:"enum=2,enum=3,enum="`
124124
// If true (default), file icons are shown in the file views. Only relevant if NerdFontsVersion is not empty.
125125
ShowFileIcons bool `yaml:"showFileIcons"`
126-
// Length of commit ID/ref (hash) in commits view.
127-
CommitHashLength int `yaml:"commitHashLength" jsonschema:"minimum=1,maximum=12"`
126+
// Length of commit hash in commits view.
127+
CommitHashLength int `yaml:"commitHashLength" jsonschema:"minimum=1,maximum=40"`
128128
// If true, show commit hashes alongside branch names in the branches view.
129129
ShowBranchCommitHash bool `yaml:"showBranchCommitHash"`
130130
// Height of the command log view

schema/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@
311311
},
312312
"commitHashLength": {
313313
"type": "integer",
314-
"maximum": 12,
314+
"maximum": 40,
315315
"minimum": 1,
316-
"description": "Length of commit ID/ref (hash) in commits view.",
316+
"description": "Length of commit hash in commits view.",
317317
"default": 8
318318
},
319319
"showBranchCommitHash": {

0 commit comments

Comments
 (0)