feat(config): change git.commit.verbose to accept "default"

This commit is contained in:
Ryooooooga 2023-01-02 00:49:59 +09:00
parent 1cf24a02d3
commit 965f7bfcb2
No known key found for this signature in database
GPG key ID: 07CF200DFCC20C25
4 changed files with 66 additions and 22 deletions

View file

@ -74,9 +74,12 @@ func (self *CommitCommands) signoffFlag() string {
}
func (self *CommitCommands) verboseFlag() string {
if self.UserConfig.Git.Commit.Verbose {
switch self.config.UserConfig.Git.Commit.Verbose {
case "always":
return " --verbose"
} else {
case "never":
return " --no-verbose"
default:
return ""
}
}