Closed lwille closed 4 years ago
One of my projects has some executables which lack the .rb extension. These files are not matched by pre-commit.
.rb
pre-commit
In my old "manual" hook setup I was using file -I which reliably detects the exact mime type of executable files if they have a proper shebang:
file -I
➜ file -I bin/pre-commit bin/pre-commit: text/x-ruby; charset=us-ascii
What do people think about this?
Hi @lwille,
The only thing I would be worried about here is degrading performance. So if the matching is opt-in by default, then I believe it should be safe to include without affecting out-of-the-box performance.
One of my projects has some executables which lack the
.rb
extension. These files are not matched bypre-commit
.In my old "manual" hook setup I was using
file -I
which reliably detects the exact mime type of executable files if they have a proper shebang:What do people think about this?