Skip to content

Commit

Permalink
Reword config description and change maximum in json schema
Browse files Browse the repository at this point in the history
Change the maximum int to 40 (the length of a full commit hash), and
change the description so it makes more sense.
  • Loading branch information
oliviaBahr committed Apr 21, 2024
1 parent 389a8c9 commit 3816cb9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/Config.md
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/user_config.go
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions schema/config.json
Expand Up @@ -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": {
Expand Down

0 comments on commit 3816cb9

Please sign in to comment.