Re: Add .gitignore files to CVS? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Add .gitignore files to CVS?
Date
Msg-id 603c8f071001091451k735839a8v2a5dc43c3a8ed7f3@mail.gmail.com
Whole thread Raw
In response to Re: Add .gitignore files to CVS?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, Jan 9, 2010 at 5:44 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Sat, Jan 9, 2010 at 5:18 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
>>> Robert Haas wrote:
>>>> What I want is to ignore all of the build products
>
>>> Use a vpath build, and you'll keep those artifacts out of your source tree.
>
>> I suppose that's one answer, but of what use is it to ignore only the
>> 'make distclean' leftovers?
>
> Well, it fits my workflow, which is make distclean -> cvs update ->
> fresh build.  If you want to update without cleaning the build tree,
> using a separate build tree seems like a much better answer.

Oh, I see.  With git, I clean the tree with "git clean -dfx" rather
than "make distclean".  That just blows away all the files that aren't
in the repository.  I find that faster and more reliable than "make
distclean", although of course you have to be careful not to be leave
anything in the tree that you were planning to hold on to...

...Robert


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Add .gitignore files to CVS?
Next
From: Peter Eisentraut
Date:
Subject: Re: Add .gitignore files to CVS?