OSDN Git Service

checkpatch: improve handling of multiple patches or files
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Nov 2018 08:35:47 +0000 (09:35 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jan 2019 12:57:23 +0000 (13:57 +0100)
commitc182b61996af33c008b277ea3e25fb1046807752
tree83222d026ed1de5cf79346d0fa52c203a25881e1
parentfd9c0cfeb73bd72ca2bd3b6e8db7528bc22a43da
checkpatch: improve handling of multiple patches or files

Similar to how patchew output looks like for multiple patches,
say what file or patch is being tested _before_ emitting errors.
This is clearer to a human that scans the output from top to
bottom.

In addition, provide a truncated commit hash and subject instead of
the full hash, and process the commits first-to-last rather than
last-to-first.

Inspired by Linux commit 0dea9f1eef86bedacad91b6f652ca1ab0d08854c
("checkpatch: reduce number of `git log` calls with --git", 2016-03-20).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/checkpatch.pl