[ovs-git] [openvswitch/ovs] 057653: checkpatch: Fix skipping of the most recent commit...
noreply at github.com
Fri Jun 16 04:46:50 UTC 2017
Author: Ilya Maximets <i.maximets at samsung.com>
Date: 2017-06-15 (Thu, 15 Jun 2017)
checkpatch: Fix skipping of the most recent commit.
'range(n_patches, 0, -1)' generates list starting from 'n_patches'
and not including zero. This leads to checking of N most recent
commits starting from the second one.
New version will generate right list starting from 'n_patches - 1'
and including zero. So, the most recent commit (HEAD~0) will be
checked and desired behavior will be achieved.
Also, 'reversed' looks better than 'range(n_patches - 1, -1, -1)'
Fixes: a1fccabce2cb ("checkpatch: Support checking recent commits in the current repo.")
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
More information about the git