]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve --git <commit-count> shortcut
authorJoe Perches <joe@perches.com>
Sat, 21 May 2016 00:04:22 +0000 (17:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commit0bbd253a50ed7f4f43f77ce8f2844170515ed102
tree35ed8dddbd115756d52bbe59fa44e4f5ab4764ec
parent56693df99da602c705255d49f3af39b9d50d84c8
checkpatch: improve --git <commit-count> shortcut

The --git <commit-count> shortcut can be confused by a tag with a dash
like v4.4-rc1.

Improve the test to verify the <commit-count> expression ends with a
dash followed by a numeric value.

Improve the git log result to verify the "<sha1> <subject>" output
as well.

Link: http://lkml.kernel.org/r/c4a3f759291d967641860c3a54bb81177f34325f.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