Re: can we add some file(msvc) to gitignore - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: can we add some file(msvc) to gitignore
Date
Msg-id YVERg4K0yVOBPv7R@paquier.xyz
Whole thread Raw
In response to Re: can we add some file(msvc) to gitignore  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: can we add some file(msvc) to gitignore  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
On Sun, Sep 26, 2021 at 12:18:01PM +0200, Daniel Gustafsson wrote:
> As postgres isn't mandating a specific IDE or dev environment, we typically
> don't add these files to the .gitignore we ship.  If we did it would be an
> enormous list we'd have to curate and maintain.  Instead, everyone hacking on
> postgres can add these to their local gitignore with the core.excludesfile Git
> config.

Yeah.  This is an issue for many things.  For example, under emacs or
vim, we'd still track backup files for unsaved changes.

> Now, it is true that there are some MSVC specific files in the .gitignore
> already, but past discussion on this have leaned towards removing those (which
> I personally support) rather than adding new ones.

Agreed.  I don't think that we should remove the entries that track
files we could expect based on the state of the build code, though,
like config.pl or buildenv.pl in src/tools/msvc/ as committing those
could silently break builds.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: typos (and more)
Next
From: Masahiko Sawada
Date:
Subject: Re: Skipping logical replication transactions on subscriber side