ci: separate whitespace check script
commit66820fb7bfc47e0356dd8c27af3abd2a27daafcd
authorJustin Tobler <jltobler@gmail.com>
Fri, 3 May 2024 17:21:05 +0000 (3 12:21 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 May 2024 19:11:49 +0000 (3 12:11 -0700)
tree13b948f4fbb973bb419230f46df983c41651c35d
parentecaacbc7a278549f31d6f77d729c49fa60eec734
ci: separate whitespace check script

The `check-whitespace` CI job is only available as a GitHub action. To
help enable this job with other CI providers, first separate the logic
performing the whitespace check into its own script. In subsequent
commits, this script is further generalized allowing its reuse.

Helped-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.github/workflows/check-whitespace.yml
ci/check-whitespace.sh [new file with mode: 0755]