[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] checkpatch.pl: don't complain about old lines w
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] Re: [PATCH] checkpatch.pl: don't complain about old lines with tabs |
Date: |
Thu, 03 Feb 2011 22:50:08 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
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 <address@hidden>
> ---
> 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
signature.asc
Description: OpenPGP digital signature