diff options
author | Mark Sagi-Kazar <mark.sagikazar@gmail.com> | 2021-11-14 14:31:15 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-25 12:01:55 +1100 |
commit | b4ea565c99a91f701db24ca5a886da40de84dc0b (patch) | |
tree | 0d42856ce620641ee5b324fb7d5ae51d5f059282 | |
parent | 76e67455264fae2e6392a69a59245ec7f44850fd (diff) |
add signoff config
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
-rw-r--r-- | docs/Config.md | 2 | ||||
-rw-r--r-- | pkg/config/user_config.go | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/Config.md b/docs/Config.md index caad7b9be..6dea632fc 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -54,6 +54,8 @@ git: paging: colorArg: always useConfig: false + commit: + signOff: false merging: # only applicable to unix users manualCommit: false diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index a8a54126a..bcf0374cd 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -61,6 +61,7 @@ type CommitLengthConfig struct { type GitConfig struct { Paging PagingConfig `yaml:"paging"` + Commit CommitConfig `yaml:"commit"` Merging MergingConfig `yaml:"merging"` SkipHookPrefix string `yaml:"skipHookPrefix"` AutoFetch bool `yaml:"autoFetch"` @@ -81,6 +82,10 @@ type PagingConfig struct { UseConfig bool `yaml:"useConfig"` } +type CommitConfig struct { + SignOff bool `yaml:"signOff"` +} + type MergingConfig struct { ManualCommit bool `yaml:"manualCommit"` Args string `yaml:"args"` @@ -347,6 +352,9 @@ func GetDefaultConfig() *UserConfig { ColorArg: "always", Pager: "", UseConfig: false}, + Commit: CommitConfig{ + SignOff: false, + }, Merging: MergingConfig{ ManualCommit: false, Args: "", |