From: Andrew Dunstan <andrew@dunslane.net>
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 17:35:04 -0400
Message-ID: <e93b75ab-df9a-4785-b3ec-174ee52086bb@dunslane.net> (raw)
In-Reply-To: <CAA9OW9dOh8S1M5pe0Q1UQN=1Wy34ruA-9XYdkjgg5CtoJ4jOxw@mail.gmail.com>
References: <CAA9OW9eFAn8FdG=vRvKE2F4PqLiiLAyS0RCHS0-SPDnPDGX8OQ@mail.gmail.com>
<CAFp7QwrvDOin28Oyk7xQg4Wbw088dGS9uV57bec7OAhO4j8Zew@mail.gmail.com>
<CAA9OW9cevrcJQ79OjJrMmQ0u1HV=r=QcXitykiDv3cmh_muNbQ@mail.gmail.com>
<2fcdd1cd-0d51-471a-b887-ed8cac2db70d@dunslane.net>
<CAA9OW9dOh8S1M5pe0Q1UQN=1Wy34ruA-9XYdkjgg5CtoJ4jOxw@mail.gmail.com>
On 2024-05-18 Sa 16:54, Yasir wrote:
>
>
> On Sun, May 19, 2024 at 1:45 AM Andrew Dunstan <andrew@dunslane.net>
> wrote:
>
>
> On 2024-05-18 Sa 15:43, Yasir wrote:
>>
>>
>> On Sat, May 18, 2024 at 7:27 PM Josef Šimánek
>> <josef.simanek@gmail.com> wrote:
>>
>> pá 17. 5. 2024 v 8:09 odesílatel Yasir
>> <yasir.hussain.shah@gmail.com> napsal:
>> >
>> > Hi Hackers,
>> >
>> > I have been playing with PG on the Windows platform
>> recently. An annoying thing I faced is that a lot of Visual
>> Studio's temp files kept appearing in git changed files.
>> Therefore, I am submitting this very trivial patch to ignore
>> these temp files.
>>
>> see
>> https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#configuring-ignored-f...
>> for various strategies
>>
>>
>> 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.
>
>
>
> eh? git creates .git/info/exclude in every git repository AFAIK.
> And it's referred to here: <https://git-scm.com/docs/gitignore;
> <https://git-scm.com/docs/gitignore;
>
>
> Yes, git creates .git/info/exclude but point is, it is not in PG
> maintained codebase repo. So, no point adding to it.
>
> BTW, Tom and Peter said it's not going to be added anyway!
>
>
You've completely missed my point, which is that *you* should be adding
it to that file, as an alternative to using a (locally) global gitignore
file.
I agree with Tom and Peter.
cheers
andrew
--
Andrew Dunstan
EDB:https://www.enterprisedb.com
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: andrew@dunslane.net, 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: <e93b75ab-df9a-4785-b3ec-174ee52086bb@dunslane.net>
* 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