]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: reduce number of `git log` calls with --git
authorJoe Perches <joe@perches.com>
Sat, 21 May 2016 00:04:19 +0000 (17:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commit56693df99da602c705255d49f3af39b9d50d84c8
tree7ba86ac1944e34baa4647f5b44cae3aab87e0d8a
parent84bd107429ab17d6c4ccfc79d6e63f0a4476882d
checkpatch: reduce number of `git log` calls with --git

checkpatch currently calls git log multiple times to first get the
<revision range> sha1 values and again to get the subject for each
individual sha1 commit.

Always get the sha1 and subject at the same time instead.  Store the
subject in a sha1 hash to avoid the second git log exec.

Link: http://lkml.kernel.org/r/274efab2332ad2308ab5de85a95d255f6e2de5f3.1462711962.git.joe@perches.com
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