1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-11 12:48:10 +03:00

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
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 ""
}
}