[ovs-git] [openvswitch/ovs] 057653: checkpatch: Fix skipping of the most recent commit...
GitHub
noreply at github.com
Fri Jun 16 04:46:50 UTC 2017
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 057653abfba0b7dd0d86defc394ec0624414c780
https://github.com/openvswitch/ovs/commit/057653abfba0b7dd0d86defc394ec0624414c780
Author: Ilya Maximets <i.maximets at samsung.com>
Date: 2017-06-15 (Thu, 15 Jun 2017)
Changed paths:
M utilities/checkpatch.py
Log Message:
-----------
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
mailing list