Fail with empty index #1

Closed
opened 2022-05-25 19:18:29 +00:00 by Sven · 0 comments
Owner

If all staged changes are reverted by the formatting tool this can cause an empty commit without any changes to be created, if it is used as a pre-commit hook. We should fail with an appropriate diagnostic message.

If all staged changes are reverted by the formatting tool this can cause an empty commit without any changes to be created, if it is used as a pre-commit hook. We should fail with an appropriate diagnostic message.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Sven/format-staged#1
No description provided.