githook: Allow a configurable limit on the search