Skip to content

Commit

Permalink
switch to enabling mode
Browse files Browse the repository at this point in the history
  • Loading branch information
seanenck committed Nov 30, 2024
1 parent a0f9b2c commit 5130101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/git-motd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ func run() error {
err error
res []byte
}
disabled := strings.Split(cli.GitConfigValue("motd.disable"), " ")
enabled := strings.Split(cli.GitConfigValue("motd.enable"), " ")
var all []chan result
for _, c := range []*cmd{
{name: "dotfiles", fxn: dotfileDiff},
{name: "uncommitted", fxn: uncommit},
} {
if slices.Contains(disabled, c.name) {
if !slices.Contains(enabled, c.name) {
continue
}
r := make(chan result)
Expand Down

0 comments on commit 5130101

Please sign in to comment.