Abort commit/add if file does not match rule in gitattributes

100 views Asked by At

Basically the title says it all.

If for some reason a file in my current repository does not match any pattern in the gitattributes file it should abort adding/commiting the file.

I want to use this to make sure we don't rely at all on core.eol, core.autocrlf and core.safecrlf.

The manpage on gitattributes does not say anything at all about this. Nor any other topic on gitattributes i have found so far.

0

There are 0 answers