2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

checkpatch: filename from hunks fix

Filenames that come from the hunks match include the git-ified 'b/'
prefix, which makes jumping to the error file that much harder.  This
patch corrects that by simply skipping those bytes.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Aaron Conole
2017-05-01 16:14:08 -04:00
committed by Ben Pfaff
parent ebba2af618
commit bbbe2fa2e6

View File

@@ -300,7 +300,7 @@ def ovs_checkpatch_parse(text):
elif parse == 2:
newfile = hunks.match(line)
if newfile:
current_file = newfile.group(2)
current_file = newfile.group(2)[2:]
print_file_name = current_file
continue
reset_line_number = hunk_differences.match(line)