summaryrefslogtreecommitdiffstats
path: root/pkg/i18n
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-04-13 13:56:31 +1000
committerJesse Duffield <jessedduffield@gmail.com>2019-04-13 14:38:17 +1000
commit0d3a193ab5ed54f411b217ea26ba53d6bcd6fc57 (patch)
treecd928846c4a9dbb6ff1fbd02af81ac7aadcec30b /pkg/i18n
parentab9fa291a8be2426463a25a545f08816dbc838b0 (diff)
Add 'w' keybinding in files panel to commit as a WIP
If your git.skipHookPrefix is set to, say, WIP, in your config, then hitting 'w' in the files panel will bring up the commit message panel with 'WIP' pre-filled, so you just need to hit enter to confirm (or add some more to the message) in order to commit your changes with the --no-verify flag, meaning the pre-commit hook will be skipped
Diffstat (limited to 'pkg/i18n')
-rw-r--r--pkg/i18n/english.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go
index 3b61ac3a7..733325540 100644
--- a/pkg/i18n/english.go
+++ b/pkg/i18n/english.go
@@ -750,6 +750,12 @@ func addEnglish(i18nObject *i18n.Bundle) error {
}, &i18n.Message{
ID: "CustomCommand",
Other: "Custom Command:",
+ }, &i18n.Message{
+ ID: "commitChangesWithoutHook",
+ Other: "commit changes without pre-commit hook",
+ }, &i18n.Message{
+ ID: "SkipHookPrefixNotConfigured",
+ Other: "You have not configured a commit message prefix for skipping hooks. Set `git.skipHookPrefix = 'WIP'` in your config",
},
)
}