-
-
Notifications
You must be signed in to change notification settings - Fork 332
Closed
Labels
Description
Description
In order to allow for a streamlined commit-fix-commit cycle when using git hooks or pre-commit, an option to automatically reuse the last commit message if the commit failed should be added.
Possible Solution
- There's a new
retry_after_failureconfig option - By default, it is set to false
- If it is set to true,
cz commitreuses the commit message from the backup file if it is present - If the backup file is not present, the usual behavior is carried out
- There's a new
--no-retryoption to overwrite the config (e.g. runningcz commit --no-retrybehaves as ifretry_after_failurewere set to false) - The current retry implementation is improved so that the backup file is written to a path that depends on the current user and git working tree directory. This allows for the usage of
--retrywhen working in multiple repositories simultaneously
Additional context
No response
Additional context
No response
Reactions are currently unavailable