Skip to content

Commit a64c32d

Browse files
karimkhaleelstefanhaller
authored andcommitted
Add in missing "deprecated" yaml tags
1 parent b5d4bdb commit a64c32d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/config/user_config.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type GuiConfig struct {
5454
AuthorColors map[string]string `yaml:"authorColors"`
5555
// See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-branch-color
5656
// Deprecated: use branchColorPatterns instead
57-
BranchColors map[string]string `yaml:"branchColors"`
57+
BranchColors map[string]string `yaml:"branchColors" jsonschema:"deprecated"`
5858
// See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-branch-color
5959
BranchColorPatterns map[string]string `yaml:"branchColorPatterns"`
6060
// The number of lines you scroll by when scrolling the main window
@@ -131,7 +131,7 @@ type GuiConfig struct {
131131
// If true, show jump-to-window keybindings in window titles.
132132
ShowPanelJumps bool `yaml:"showPanelJumps"`
133133
// Deprecated: use nerdFontsVersion instead
134-
ShowIcons bool `yaml:"showIcons"`
134+
ShowIcons bool `yaml:"showIcons" jsonschema:"deprecated"`
135135
// Nerd fonts version to use.
136136
// One of: '2' | '3' | empty string (default)
137137
// If empty, do not show icons.
@@ -252,7 +252,7 @@ type GitConfig struct {
252252
BranchLogCmd string `yaml:"branchLogCmd"`
253253
// Command used to display git log of all branches in the main window.
254254
// Deprecated: Use `allBranchesLogCmds` instead.
255-
AllBranchesLogCmd string `yaml:"allBranchesLogCmd"`
255+
AllBranchesLogCmd string `yaml:"allBranchesLogCmd" jsonschema:"deprecated"`
256256
// Commands used to display git log of all branches in the main window, they will be cycled in order of appearance (array of strings)
257257
AllBranchesLogCmds []string `yaml:"allBranchesLogCmds"`
258258
// If true, do not spawn a separate process when using GPG
@@ -587,19 +587,19 @@ type OSConfig struct {
587587
// Deprecated: use Edit instead. Note that semantics are different:
588588
// EditCommand is just the command itself, whereas Edit contains a
589589
// "{{filename}}" variable.
590-
EditCommand string `yaml:"editCommand,omitempty"`
590+
EditCommand string `yaml:"editCommand,omitempty" jsonschema:"deprecated"`
591591

592592
// EditCommandTemplate is the command template for editing a file
593593
// Deprecated: use EditAtLine instead.
594-
EditCommandTemplate string `yaml:"editCommandTemplate,omitempty"`
594+
EditCommandTemplate string `yaml:"editCommandTemplate,omitempty" jsonschema:"deprecated"`
595595

596596
// OpenCommand is the command for opening a file
597597
// Deprecated: use Open instead.
598-
OpenCommand string `yaml:"openCommand,omitempty"`
598+
OpenCommand string `yaml:"openCommand,omitempty" jsonschema:"deprecated"`
599599

600600
// OpenLinkCommand is the command for opening a link
601601
// Deprecated: use OpenLink instead.
602-
OpenLinkCommand string `yaml:"openLinkCommand,omitempty"`
602+
OpenLinkCommand string `yaml:"openLinkCommand,omitempty" jsonschema:"deprecated"`
603603

604604
// CopyToClipboardCmd is the command for copying to clipboard.
605605
// See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-command-for-copying-to-and-pasting-from-clipboard

0 commit comments

Comments
 (0)