Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114771
b: refs/heads/master
c: 3067085
h: refs/heads/master
i:
  114769: a704e96
  114767: a8c81e7
v: v3
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Oct 16, 2008
1 parent 45ca2d5 commit 6114881
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f779c18ca74358b6ac8eb8f5d502843fa92be4e
refs/heads/master: 306708547b566ef6a0ccd470c84568807571885c
5 changes: 3 additions & 2 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,7 @@ sub process {
$linenr++;

my $rawline = $rawlines[$linenr - 1];
my $hunk_line = ($realcnt != 0);

#extract the line range in the file after the patch is applied
if ($line=~/^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@/) {
Expand Down Expand Up @@ -1238,8 +1239,8 @@ sub process {
ERROR("Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr);
}

#ignore lines being removed
if ($line=~/^-/) {next;}
# ignore non-hunk lines and lines being removed
next if (!$hunk_line || $line =~ /^-/);

#trailing whitespace
if ($line =~ /^\+.*\015/) {
Expand Down

0 comments on commit 6114881

Please sign in to comment.