move commit/diff limit checks into commit package
Created by: camdencheek
This moves the error types and the limit checking function into the internal/search/commit
package from internal/search/run
. Additionally, it simplifies the function a bit to remove the dependency on TextParameters
. Can view by commit to see the steps here.
Contributes towards converting commit search to a job.