-
Notifications
You must be signed in to change notification settings - Fork 12
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
Change how check-file-format.sh checks changed files #130
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion to do a bit of refactoring as we go.
Think that's done now. We've got the modes as described here, and I've added a |
Prior to this patch, the `git diff` command used to identify which files to check for editorconfig compliance caught too many files, and did the expensive part of the check inside the per-file loop. By lucky chance, the editorconfig-checker container image has a `git` binary installed, so we can move the entire loop inside a single container invocation. Fixes #129.
4123bf8
to
18af9e0
Compare
Do we know how the 18af9e0 force-push happened? |
Yes, I brought this branch in sync with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thanks! merging...
Description
Prior to this patch, the
git diff
command used to identify which files to check for editorconfig compliance caught too many files, and did the expensive part of the check inside the per-file loop.By lucky chance, the editorconfig-checker container image has a
git
binary installed, so we can move the entire loop inside a single container invocation.Fixes #129.
Context
It makes the editorconfig check, which is called in a pre-commit hook, fast.
Type of changes