]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: cache last camelcase hash as .checkpatch-camelcase.<commit>
authorJoe Perches <joe@perches.com>
Wed, 3 Jul 2013 22:05:36 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:45 +0000 (16:07 -0700)
commit276e048dc58187162c28a6032dc3145183be62e0
tree94566bc117b757bfab5c282d56c251121a7f33f9
parente271a555e6f10c5643868e4b776dee9520139680
checkpatch: cache last camelcase hash as .checkpatch-camelcase.<commit>

Add a file to cache the CamelCase variables found by <commit> to reduce
the time it takes to scan the include/ directory.

Filename is '.checkpatch-camelcase.<commit>' and it is created only only
if a .git directory exists.

<commit> is determined by the last non-merge commit id in the
include/ path.

Reduces checkpatch run time by ~12 cpu seconds on my little netbook.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl