On 2011-02-03 18:55, Blue Swirl wrote:
> Don't complain when the patch includes lines with tabs
> only in the hunk's untouched context.
> 
> Signed-off-by: Blue Swirl <blauwir...@gmail.com>
> ---
>  scripts/checkpatch.pl |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 4fa06c0..075b614 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1495,7 +1495,7 @@ sub process {
>               next if ($realfile !~ /\.(h|c|pl)$/);
> 
>  # in QEMU, no tabs are allowed
> -             if ($rawline =~ /\t/) {
> +             if ($rawline =~ /^\+.*\t/) {
>                       my $herevet = "$here\n" . cat_vet($rawline) . "\n";
>                       ERROR("code indent should never use tabs\n" . $herevet);
>                       $rpt_cleaners = 1;
> -- 1.6.2.4

Works perfectly now.

Thanks,
Jan

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to