From patchwork Thu Dec 9 20:28:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 15103 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id A4988BF415 for ; Thu, 9 Dec 2021 20:28:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CF6666087A; Thu, 9 Dec 2021 21:28:52 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="QxFOF/oq"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4CE92607DE for ; Thu, 9 Dec 2021 21:28:51 +0100 (CET) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C50EE501 for ; Thu, 9 Dec 2021 21:28:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1639081730; bh=mD1gm/LrBLVTwvDLG84k4MI0l8efAuHjr3NZo1ufXXQ=; h=From:To:Subject:Date:From; b=QxFOF/oqs7xFESILlNd3s3YiRs0Ymdw4m3VpZCMx8prrCXKVYLuhaqM2XZ107QZEp ojSlwWg0yqR6UQmqhlR8W6daMpughNc0+LpNA0LQvKvL+Msbo6dH5MoQIBWM+LY/PJ e5cBO80dylATEGM/kenvMFdqGIyaK27+15+1xfmA= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Thu, 9 Dec 2021 22:28:18 +0200 Message-Id: <20211209202818.29950-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: Restrict .gitignore build/ and patches/ to the root directory X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The build/ and patches/ directories are listed in .gitignore as they're commonly used respectively as the meson build directory (this is the directory name used in README.rst) and as a local patches store (this usage pattern isn't official though, and may need to be reconsidered if not used anymore). As those two directories are supposed to be at the root of the source tree, restrict the corresponding .gitignore patterns to avoid matching other locations. While at it, sort the entries alphabetically, with the absolute path entries separate from the entries that match any location within the source tree. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- .gitignore | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) base-commit: f16acb275c85518c13e81ffa6503347abcc01dc5 diff --git a/.gitignore b/.gitignore index d3d73615bac1..f6d1d68e4a7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ # SPDX-License-Identifier: CC0-1.0 -__pycache__/ -build/ -patches/ +/build/ +/patches/ + *.patch *.pyc +__pycache__/