Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow amended commits to be empty #119

Merged
merged 2 commits into from
Jun 30, 2023
Merged

Allow amended commits to be empty #119

merged 2 commits into from
Jun 30, 2023

Conversation

blakedunson
Copy link

When the only change made in a commit is to make the file "unpretty", running prettier on top will cause the amended commit to be empty. This throws an exception unless the --allow-empty flag is set on the git command

@blakedunson blakedunson changed the title Allow amending commits to be empty Allow amended commits to be empty Apr 10, 2023
@creyD
Copy link
Owner

creyD commented Apr 11, 2023

I suppose you could use commit_options for this?

@creyD
Copy link
Owner

creyD commented Apr 19, 2023

@blakedunson can you please check my comment?

@creyD creyD changed the base branch from master to dev June 30, 2023 15:40
@creyD creyD merged commit 9aba96f into creyD:dev Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants