diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-04-13 13:34:12 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-04-13 14:38:17 +1000 |
commit | ab9fa291a8be2426463a25a545f08816dbc838b0 (patch) | |
tree | 80c30114cce8a876a9e00cd1a0e6943dd882bf30 /pkg/config | |
parent | cadc74eeec0840f8259e68364a08bdf6fad2479c (diff) |
Add skipHookPrefix to config
allows a user to specify a commit message prefix that will tell lazygit to skip
the pre-commit hook. This defaults to WIP. Setting it to the empty string will
disable the feature.
So if my message goes 'WIP: do the thing' then the pre-commit hook will not run
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/app_config.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index ac8e52c8c..b35294a11 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -248,6 +248,7 @@ func GetDefaultConfig() []byte { git: merging: manualCommit: false + skipHookPrefix: 'WIP' update: method: prompt # can be: prompt | background | never days: 14 # how often a update is checked for |