Skip to content

scripts: support sparse checkouts in checkpatch tools

CaoRuichuang lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

- add a regression test for sparse checkout handling in checkpatch.pl and get_maintainer.pl

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scripts: allow checkpatch and get_maintainer in sparse checkoutsscripts/checkpatch.pl scripts/get_maintainer.pl+3 -102 replies
2/2scripts: add sparse checkout regression test for checkpatch toolsscripts/checkpatch-sparse-checkout-test.sh+48 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] scripts: support sparse checkouts in checkpatch tools

checkpatch.pl and get_maintainer.pl currently reject sparse checkouts because their top_of_kernel_tree() checks require top-level directories that may not be present in a sparse working tree.

This series relaxes that check to match the files the scripts actually need and adds a regression test to keep that behavior from regressing.

Changes in v2:
- add a regression test for sparse checkout handling in checkpatch.pl and get_maintainer.pl

CaoRuichuang (2):
scripts: allow checkpatch and get_maintainer in sparse checkouts
scripts: add sparse checkout regression test for checkpatch tools

 scripts/checkpatch-sparse-checkout-test.sh | 48 ++++++++++++++++++++++
 scripts/checkpatch.pl                      |  4 +-
 scripts/get_maintainer.pl                  |  9 +---
 3 files changed, 51 insertions(+), 10 deletions(-)
 create mode 100755 scripts/checkpatch-sparse-checkout-test.sh
Signature · 1 line
2.39.5 (Apple Git-154)