pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Yasir <yasir.hussain.shah@gmail.com>
Cc: Josef Šimánek <josef.simanek@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Ignore Visual Studio's Temp Files While Working with PG on Windows
Date: Sat, 18 May 2024 16:36:38 -0400
Message-ID: <3030319.1716064598@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA9OW9cevrcJQ79OjJrMmQ0u1HV=r=QcXitykiDv3cmh_muNbQ@mail.gmail.com>
References: <CAA9OW9eFAn8FdG=vRvKE2F4PqLiiLAyS0RCHS0-SPDnPDGX8OQ@mail.gmail.com>
	<CAFp7QwrvDOin28Oyk7xQg4Wbw088dGS9uV57bec7OAhO4j8Zew@mail.gmail.com>
	<CAA9OW9cevrcJQ79OjJrMmQ0u1HV=r=QcXitykiDv3cmh_muNbQ@mail.gmail.com>

Yasir <yasir.hussain.shah@gmail.com> 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





view thread (19+ messages)  latest in thread

Message-ID: <3030319.1716064598@sss.pgh.pa.us>
Permalink:  ../3030319.1716064598@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3030319.1716064598@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, yasir.hussain.shah@gmail.com, josef.simanek@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: Ignore Visual Studio's Temp Files While Working with PG on Windows
  In-Reply-To: <3030319.1716064598@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox