Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EAB8C05027 for ; Tue, 24 Jan 2023 01:06:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231828AbjAXBGO (ORCPT ); Mon, 23 Jan 2023 20:06:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbjAXBGL (ORCPT ); Mon, 23 Jan 2023 20:06:11 -0500 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9B413756F for ; Mon, 23 Jan 2023 17:06:07 -0800 (PST) Received: from biznet-home.integral.gnuweeb.org (unknown [182.253.88.152]) by gnuweeb.org (Postfix) with ESMTPSA id 41855824E0; Tue, 24 Jan 2023 01:06:04 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1674522367; bh=+N1TAk23R+sr7LDX9WLDQgAOiTO+vJ3bImLnwUgTUeA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pwoZhDhW/49qboqynwnJnYR1KdUkJPAUf4nbLubG1xMHkqJCBEguS64iaXETgWnym qEOomS1Zqcc5KuuGVoPGaS6JHkuOsaXk5wNmeqLZwL4Silrnq68M11w0wVcRD0ixLs fD25DBd3OdvupB+C2Uc48x+Y5Skme1D7k6yG6cnzTEzjVq+cVcxFElTbXKGj2XfxOw SlJ7dosP+q7vrLq8Xd/bbvW1dKOZ7+ANVS/tFPb0Pg9m+lJn1g89+mnJkD8q3eyQxW Jl5JDTQDJ/8ssG1z6sPSqoNVSiim1sOAoFmyjdRQi9KRea+cTYjJ1hzRY1Ttx/0FE6 2zazauHQD8psQ== Date: Tue, 24 Jan 2023 08:06:00 +0700 From: Ammar Faizi To: "Paul E. McKenney" Cc: Linux Kernel Mailing List , Willy Tarreau , Sven Schnelle Subject: Re: [PATCH RFC] tools/nolibc: Add gitignore to avoid git complaints about sysroot Message-ID: References: <20230124004707.GA318943@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230124004707.GA318943@paulmck-ThinkPad-P17-Gen-1> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 23, 2023 at 04:47:07PM -0800, Paul E. McKenney wrote: > Testing of nolibc can produce a tools/include/nolibc/sysroot file, which > is not known to git. Because it is automatically generated, there is no > reason for it to be known to git. Therefore, add a .gitignore to remove > it from git's field of view. Yeah, I hit the same "git status" complaint and have a pending patch for that too: https://github.com/ammarfaizi2/linux-block/commit/89bfe86a03c173863de12.patch ^ I'll drop this one. > Signed-off-by: Paul E. McKenney > Cc: Willy Tarreau > Cc: Ammar Faizi > Cc: Sven Schnelle > > diff --git a/tools/include/nolibc/.gitignore b/tools/include/nolibc/.gitignore > new file mode 100644 > index 0000000000000..dea22eaaed2ba > --- /dev/null > +++ b/tools/include/nolibc/.gitignore > @@ -0,0 +1 @@ > +sysroot Small nit about the naming, not so much important, but the common pattern for directory has a trailing slash. So, I would write "sysroot/". ".gitignore" and "tools/testing/selftests/.gitignore" do that too :-) Reviewed-by: Ammar Faizi Thanks! -- Ammar Faizi