• Eric Paris's avatar
    Speed up pre-commit boilerplate by only checking changed files · 8a91d867
    Eric Paris authored
    Although the boilerplate checker was very fast it can be faster. With
    this change we can hand the boilerplate a list of files which need to be
    checked or give it no files. If given no files it will run all files in
    the repo. Before you had to explicitly tell the boiler checker the
    'extention' of the the files.  In this case we let the checker figure it
    out and load the headers as needed.
    
    Doing the whole repo takes about 0.4 seconds. Doing a single go file
    takes < .04 seconds.
    8a91d867
Name
Last commit
Last update
..
boilerplate.go.txt Loading commit data...
boilerplate.py Loading commit data...
boilerplate.py.txt Loading commit data...
boilerplate.sh.txt Loading commit data...