Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s8QnQ-00Ca4v-I7 for pgsql-hackers@arkaria.postgresql.org; Sat, 18 May 2024 20:36:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s8QnP-009kz3-OR for pgsql-hackers@arkaria.postgresql.org; Sat, 18 May 2024 20:36:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s8QnP-009kyv-Et for pgsql-hackers@lists.postgresql.org; Sat, 18 May 2024 20:36:47 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s8QnI-000rtT-8V for pgsql-hackers@lists.postgresql.org; Sat, 18 May 2024 20:36:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 44IKacEf3030320; Sat, 18 May 2024 16:36:38 -0400 From: Tom Lane To: Yasir cc: =?UTF-8?B?Sm9zZWYgxaBpbcOhbmVr?= , PostgreSQL Hackers Subject: Re: Ignore Visual Studio's Temp Files While Working with PG on Windows In-reply-to: References: Comments: In-reply-to Yasir message dated "Sun, 19 May 2024 00:43:42 +0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3030318.1716064598.1@sss.pgh.pa.us> Date: Sat, 18 May 2024 16:36:38 -0400 Message-ID: <3030319.1716064598@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Yasir writes: > We can add it to "~/.config/git/ignore" as it will ignore globally on > windows which we don't want. Also we don't have ".git/info/exclude" in PG > project's so the best place left is projects's .gitignore. That's what was > patched. As Peter said, we're not going to do that. The intention with the project's .gitignore files is to ignore files that are intentionally built by our "make" targets (and, hopefully, will be removed by "make maintainer-clean"). Anything else that you want git to ignore should be in a personal ignore list; especially files that are platform-specific. The fact that it's reasonable to ignore ".vs" files when working with your toolset doesn't mean that it's reasonable to ignore them when working on some other platform. If we used some other policy, we'd have tons of debates about which files were reasonable to exclude. For myself, for example, I exclude "*~" (Emacs backup files) and "*.orig" (patch(1) backup files) but those choices are very much dependent on the set of tools I choose to use. Other developers have other personal exclusion lists. If we tried to make the project's files be the union of all those lists, we'd be at serious risk of ignoring stuff we absolutely shouldn't ignore in some contexts. regards, tom lane