Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp205306lqp; Tue, 11 Jun 2024 01:44:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXaQZmlxxM5ASD8xmgpPGYvAwmBqf2TsairMhrsFA+tFH0c4+oiOLQakfYs5HHs91rO9ptXcDE9FZDxBC5/XI588XJCXwttQ5+L8LlRNA== X-Google-Smtp-Source: AGHT+IHNNrcwfvUi2X2fBnDGMEcMMaIltzbXJjudZXRLqcvk6Y0JAx2h6vMV5WRRunLMTSfvVohb X-Received: by 2002:a05:6808:19a7:b0:3d2:292e:1a3b with SMTP id 5614622812f47-3d2292e1c62mr6220802b6e.0.1718095468685; Tue, 11 Jun 2024 01:44:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718095468; cv=pass; d=google.com; s=arc-20160816; b=0K9iDkqzBuvzVmERAZ12T6FiXqwk4IvL2sqeX+PGX8NQZz278yNkFx7e5Za6v0NVzV ZLhQLinGZQ9JmUgGI2y2z0KJJ6sekb69QleiVgvqOlNe3z3YTn6FYZLUxjGeONsuf0aa WJo93BnfJnyDnpD4V/rnYAzl/U9p+ezx3WxfgBzqy+vxFiiwJEiviz8/lOOR3IuID14K vdKPJH5Mm5kK+BvWY+hJeJYu3pzkkpHNvA3eoQtUwmAjg+KnnH1J/VqPj34wLP2u8IKD OwbGNKb/tVUaoR/6oARRecOboYLEQwMWcRlCbsSFB7N8KPEVi+TnNNXO4hUw9yT8i7tO scIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=R6g564VKiL0eMr15/61Xj8es8OXMxMV9Cr2DrDtu5sA=; fh=apoUDo+h5C3mn0xWGSj4B49HeSNC+pjpwR3qi0eTT1o=; b=kxauW6Y2+vMzwpOsxUCdRYJP3lITTYmU7mgF2Rf1dD2sAyOtWeIxCsIQ1oSZs+qOBu vJtTL46jSfixpRo5/TNe/LEgfJ/8gNVqiTHwo08XYp3c+586/8oE15Dt4qkOhbt1KZml ctW1hYJlbhl5iHkcWPvKNOSySuhMbjVDpoATJKp2qi54dkyDPPqrhMpIf+TryD1ouR5l 7iPUAbmjTjkD5/27oLhQ6hUH/AsS0vN6NEe5zfDy0MfgRgIMz5hUIRnRUfemBYHxMFz5 2J3nsmDvKUorAdRFueea4yJWW5WK/V8AYbzfLN7RT+V5METLVLu7NEMjMXEZllVoMRNa 0ZLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-209458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e583975afesi6386810a12.346.2024.06.11.01.44.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 01:44:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-209458-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CC081B26530 for ; Tue, 11 Jun 2024 08:17:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75E2C174EFC; Tue, 11 Jun 2024 08:16:45 +0000 (UTC) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C98318643; Tue, 11 Jun 2024 08:16:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718093805; cv=none; b=slc2lzrIVD2n+h5h+3ABcm+g8GKIEQ+yaPnX8bTKhJm+zY5LgnqTQBdRsrqLIeMTJr9jDdypHqPHCGgHVumiLa0FIJ0S7bdXux8m9iTTULZk6aZXfMK2qesV4GgWd0dzlODuwlO/tIZZONhmR+aKMnz++e6zHLMUdNMycZzsffw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718093805; c=relaxed/simple; bh=zJJ45T+EkNxfJ1lntg1XIT+bWbsPNOtek2btucIw8dE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Js82FruHYhDpnbcm8atC0XeY4JMQL5bVBFj8MUAKVjykcObpmiXa/PmyF+ehzQ+gfublEsUXbgH3/g1Ft1K3UjoywTSoHO2bqJqgdGQbdatNySXBCh2mouIMBlFEbboKXo+PvuEJNoMWRyPxZbS5BLhPRZiddxF21QgBPB34eN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.216.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2c2eb98a64fso2131616a91.2; Tue, 11 Jun 2024 01:16:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718093802; x=1718698602; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R6g564VKiL0eMr15/61Xj8es8OXMxMV9Cr2DrDtu5sA=; b=BiluWINgr5OB0XMp8KRAldJcB15dvn/AScAOY+Kjy3ZhIJMBsMejLf4ppJOL6AIdc0 BQ/Lu/R1fi/IE9Pw+nRT534nSeNEcy7KjB/6v3Swkfk1xVZ4CmsmL9Hx1e2RDOk5xRsu QW8ygOHsnnuOJ+F29EJAUxna2GAolMd6Xm9X087iqG3pUgyrfxqa7J1wWdmM6lp03QLl Vf2bYZbUrVERsrguKiWdg638HKnP8fchYfq8TWH8gbJBWQGCZvL+dzKfkrDodo2QJ5jO l62jiKUKryWAVjwGR7En+hNjUNVqkuux8r0kltdGGDwgpLEf8FQqX7clkkFcZJcJtoDc Hyuw== X-Forwarded-Encrypted: i=1; AJvYcCUkAHMkpZ+rSPNu7ZsmuZ5bVwStY84R+w/UBe7kWTX5c3SapFBSpSQexYu7yRjFCtfb6mZiA2YIDANqclSDNw5z3X5iww9biBIzUkHAtcbNfJnlLMqIQJ+ywkrI4R4oC41ii5wv8krv X-Gm-Message-State: AOJu0Yz87xHZXeYmyEAnl5tLf8+gQIvwuRXGTXEjOw/uUq77bvk3J07t ICIsBtPedy7m8T5oz1SN0PQR2/OgedZnqmfmXdMpUb4y7MpD08OY04k/dMZnt4pahMb3djmtNeE RbNognfs4WQ9SHEJaXMifWj1h5c8= X-Received: by 2002:a17:90b:ec8:b0:2c2:cee8:bd6e with SMTP id 98e67ed59e1d1-2c2cee8c23emr8492707a91.49.1718093801440; Tue, 11 Jun 2024 01:16:41 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <2024061137-jawless-dipped-e789@gregkh> In-Reply-To: <2024061137-jawless-dipped-e789@gregkh> From: Vincent MAILHOL Date: Tue, 11 Jun 2024 17:16:30 +0900 Message-ID: Subject: Re: [PATCH v2] .editorconfig: remove trim_trailing_whitespace option To: Greg Kroah-Hartman Cc: masahiroy@kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Danny Lin , =?UTF-8?B?w43DsWlnbyBIdWd1ZXQ=?= , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue. 11 juin 2024 at 16:27, Greg Kroah-Hartman wrote: > Some editors (like the vim variants), when seeing "trim_whitespace" > decide to do just that for all of the whitespace in the file you are > saving, even if it is not on a line that you have modified. This plays > havoc with diffs and is NOT something that should be intended. > > As the "only trim whitespace on modified files" is not part of the > editorconfig standard yet, just delete these lines from the > .editorconfig file so that we don't end up with diffs that are > automatically rejected by maintainers for containing things they > shouldn't. > > Cc: Danny Lin > Cc: =C3=8D=C3=B1igo Huguet > Cc: Micka=C3=ABl Sala=C3=BCn > Cc: Vincent Mailhol > Cc: Masahiro Yamada > Fixes: 5a602de99797 ("Add .editorconfig file for basic formatting") > Signed-off-by: Greg Kroah-Hartman Thanks, this v2 is way better! Acked-by: Vincent Mailhol > --- > v2: - only remove the lines, don't move the whole file to Documentation > - add Fixes: tag > > > .editorconfig | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/.editorconfig b/.editorconfig > index 854773350cc5..29a30ccfc07b 100644 > --- a/.editorconfig > +++ b/.editorconfig > @@ -5,7 +5,6 @@ root =3D true > [{*.{awk,c,dts,dtsi,dtso,h,mk,s,S},Kconfig,Makefile,Makefile.*}] > charset =3D utf-8 > end_of_line =3D lf > -trim_trailing_whitespace =3D true > insert_final_newline =3D true > indent_style =3D tab > indent_size =3D 8 > @@ -13,7 +12,6 @@ indent_size =3D 8 > [*.{json,py,rs}] > charset =3D utf-8 > end_of_line =3D lf > -trim_trailing_whitespace =3D true > insert_final_newline =3D true > indent_style =3D space > indent_size =3D 4 > @@ -26,7 +24,6 @@ indent_size =3D 8 > [*.yaml] > charset =3D utf-8 > end_of_line =3D lf > -trim_trailing_whitespace =3D unset > insert_final_newline =3D true > indent_style =3D space > indent_size =3D 2 > -- > 2.45.2 >