+50
−6
Loading
This is meant to improve performance of the heaviest checks, like the shellcheck one, where instead of running against the contents of the entire repo simply go through files that are meant to be committed. This mode has to be requested through the environment via the CHECK_FORMAT_ONLY_DIFF. For now, get_diffed_dups() is hooked into least performant checks (permissions, shfmt, shellcheck). Also, the git grep command in the main check_permissions() is dropped as the idea of piping its output to git ls-files was faulty - the git ls-files does not read its arguments from the stdin. Signed-off-by:Michal Berger <michal.berger@intel.com> Change-Id: I098dcbbe18c08c08a8216857c7cf2c80c4021d31 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16049 Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>