microsoft / sfs-client

Simple File Solution (SFS) Client
MIT License
15 stars 13 forks source link

Pre-commit hook: check staged files even if there are unstaged changes #180

Closed arthuraraujo-msft closed 8 months ago

arthuraraujo-msft commented 8 months ago

Related Issues

Why is this change being made?

Right now, if a file has both staged and unstaged changes, the pre-commit script will fail instead of checking if the staged changes need formatting. This PR is for the script to check the staged changes will need formatting before exiting due to this.

What is being changed?

How was the change tested?