feat(git): disable status by default

resolves #723
This commit is contained in:
Jan De Dobbeleer 2021-05-20 18:42:58 +02:00 committed by Jan De Dobbeleer
parent 4a16c3fc6c
commit 9999260e9e
2 changed files with 3 additions and 2 deletions

View file

@ -24,6 +24,7 @@ Local changes can also shown by default using the following syntax for both the
"foreground": "#193549", "foreground": "#193549",
"background": "#ffeb3b", "background": "#ffeb3b",
"properties": { "properties": {
"display_status": true,
"display_stash_count": true, "display_stash_count": true,
"display_upstream_icon": true "display_upstream_icon": true
} }
@ -43,7 +44,7 @@ Local changes can also shown by default using the following syntax for both the
### Status ### Status
- display_status: `boolean` - display the local changes or not - defaults to `true` - display_status: `boolean` - display the local changes or not - defaults to `false`
- display_status_detail: `boolean` - display the local changes in detail or not - defaults to `true` - display_status_detail: `boolean` - display the local changes in detail or not - defaults to `true`
- display_stash_count: `boolean` show stash count or not - defaults to `false` - display_stash_count: `boolean` show stash count or not - defaults to `false`
- status_separator_icon: `string` icon/text to display between staging and working area changes - defaults to ` |` - status_separator_icon: `string` icon/text to display between staging and working area changes - defaults to ` |`

View file

@ -140,7 +140,7 @@ func (g *git) enabled() bool {
func (g *git) string() string { func (g *git) string() string {
statusColorsEnabled := g.props.getBool(StatusColorsEnabled, false) statusColorsEnabled := g.props.getBool(StatusColorsEnabled, false)
displayStatus := g.props.getBool(DisplayStatus, true) displayStatus := g.props.getBool(DisplayStatus, false)
if displayStatus || statusColorsEnabled { if displayStatus || statusColorsEnabled {
g.setGitStatus() g.setGitStatus()