Re: [HACKERS] Add .gitignore files to CVS?

2010-01-14 Thread Chris Browne
bada...@gmail.com (Alex Hunsaker) writes: On Fri, Jan 8, 2010 at 02:03, Magnus Hagander mag...@hagander.net wrote: You can always create your own branch with just the .gitignore files and merge that into whatever you're working on :) The only thing annoying about that is if you generate diffs

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-12 Thread Kevin Grittner
Robert Haas robertmh...@gmail.com wrote: What I'm interested in is being able to run 'git status' on a tree in which I've run a build without getting a lot of extra output, and that will require ignoring all the build products. If you prefer to keep it all in one directory tree, something

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-12 Thread Kevin Grittner
I wrote: git status | grep '^#[^ ]' | sed -e 's/#\t//' \ -e '/^[^\/][^\/]*$/ s/^/\//' .gitignore I guess that part can be simplified to: git status | grep '^#[^ ]' | sed -e 's/#\t/\//' .gitignore -Kevin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-11 Thread Aidan Van Dyk
* Magnus Hagander mag...@hagander.net [100109 13:05]: On Sat, Jan 9, 2010 at 18:33, Aidan Van Dyk ai...@highrise.ca wrote: * Magnus Hagander mag...@hagander.net [100109 12:03]: If that's the only remaining obstacle, I'm willing to work up some test scripts around that. But I'm not going

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-10 Thread Dimitri Fontaine
Hi, Another occasion to show ignorance, I couldn't resist! Tom Lane t...@sss.pgh.pa.us writes: What you're talking about would require a great deal more maintenance effort, and I don't see the point compared to using a VPATH build. I've discovered VPATH builds pretty recently, in the

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Magnus Hagander
On Sat, Jan 9, 2010 at 05:54, Alvaro Herrera alvhe...@commandprompt.com wrote: Tom Lane escribió: David Fetter da...@fetter.org writes: On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote: Probably eventually we'll be on git and this will be moot, but that doesn't seem to be ready to

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Peter Eisentraut
On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote: Do .gitignore files have the same format as .cvsignore? If that's the case then it's simply a matter of a find /source -name .cvsignore -exec cp {} .gitignore \; or similar, isn't it? Doesn't sound like something anybody should sweat

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Peter Eisentraut
On fre, 2010-01-08 at 20:03 -0800, David Fetter wrote: On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote: Probably eventually we'll be on git and this will be moot, but that doesn't seem to be ready to happen. What still needs to happen on this? Clearly this would be a post-8.5

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread David Fetter
On Sat, Jan 09, 2010 at 12:47:00PM +0100, Magnus Hagander wrote: But we're *never* going to get something that's *guaranteed* 100% safe, You can end the sentence right there. *Everything* has a strictly positive probability of catastrophic failure. not when going from something like CVS...

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Tom Lane
Magnus Hagander mag...@hagander.net writes: If/when we are moving the main repository, we should use the first one. Yes, this will invalidate all current git clones out there, but that's a one-time cost. Will there be issues? Possibly. But we're *never* going to get something that's

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Tom Lane
Peter Eisentraut pete...@gmx.net writes: On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote: Do .gitignore files have the same format as .cvsignore? The format is the same, but while cvsignore files currently list a few dozen files, the proposed gitignore would list all files that are

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Magnus Hagander
On Sat, Jan 9, 2010 at 17:32, Tom Lane t...@sss.pgh.pa.us wrote: Magnus Hagander mag...@hagander.net writes: If/when we are moving the main repository, we should use the first one. Yes, this will invalidate all current git clones out there, but that's a one-time cost. Will there be issues?

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Peter Eisentraut
On lör, 2010-01-09 at 12:00 -0500, Tom Lane wrote: Peter Eisentraut pete...@gmx.net writes: On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote: Do .gitignore files have the same format as .cvsignore? The format is the same, but while cvsignore files currently list a few dozen

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Aidan Van Dyk
* Magnus Hagander mag...@hagander.net [100109 12:03]: If that's the only remaining obstacle, I'm willing to work up some test scripts around that. But I'm not going to do that if it's going to fall over on something else as well, because it'll be a nontrivial amount of work to test ir

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Magnus Hagander
On Sat, Jan 9, 2010 at 18:33, Aidan Van Dyk ai...@highrise.ca wrote: * Magnus Hagander mag...@hagander.net [100109 12:03]: If that's the only remaining obstacle, I'm willing to work up some test scripts around that. But I'm not going to do that if it's going to fall over on something else as

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Tom Lane
Magnus Hagander mag...@hagander.net writes: On Sat, Jan 9, 2010 at 18:33, Aidan Van Dyk ai...@highrise.ca wrote: It's already been done.  It was not a lot of work (just processor time). It's even already been posted to -hackers, including what the differences were (i.e. which $Tags$ differed,

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Roger Leigh
On Sat, Jan 09, 2010 at 12:47:00PM +0100, Magnus Hagander wrote: On Sat, Jan 9, 2010 at 05:54, Alvaro Herrera alvhe...@commandprompt.com wrote: Tom Lane escribió: David Fetter da...@fetter.org writes: On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote: Probably eventually we'll

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Robert Haas
On Sat, Jan 9, 2010 at 12:00 PM, Tom Lane t...@sss.pgh.pa.us wrote: Peter Eisentraut pete...@gmx.net writes: On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote: Do .gitignore files have the same format as .cvsignore? The format is the same, but while cvsignore files currently list a few

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Andrew Dunstan
Robert Haas wrote: On Sat, Jan 9, 2010 at 12:00 PM, Tom Lane t...@sss.pgh.pa.us wrote: Peter Eisentraut pete...@gmx.net writes: On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote: Do .gitignore files have the same format as .cvsignore? The format is the same,

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Robert Haas
On Sat, Jan 9, 2010 at 5:18 PM, Andrew Dunstan and...@dunslane.net wrote: Robert Haas wrote: On Sat, Jan 9, 2010 at 12:00 PM, Tom Lane t...@sss.pgh.pa.us wrote: Peter Eisentraut pete...@gmx.net writes: On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote: Do .gitignore files have the same

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: On Sat, Jan 9, 2010 at 5:18 PM, Andrew Dunstan and...@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,

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Peter Eisentraut
On lör, 2010-01-09 at 17:19 -0500, Robert Haas wrote: Oh. Never mind. That doesn't seem useful enough to be worth spending time on. What I want is to ignore all of the build products, so that when I do 'git status' in my working tree, I only see the the files I've actually

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Robert Haas
On Sat, Jan 9, 2010 at 5:44 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: On Sat, Jan 9, 2010 at 5:18 PM, Andrew Dunstan and...@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

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Peter Eisentraut
On lör, 2010-01-09 at 17:12 -0500, Robert Haas wrote: Oh. Never mind. That doesn't seem useful enough to be worth spending time on. What I want is to ignore all of the build products, so that when I do 'git status' in my working tree, I only see the the files I've actually added/changed.

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Robert Haas
On Sat, Jan 9, 2010 at 5:53 PM, Peter Eisentraut pete...@gmx.net wrote: On lör, 2010-01-09 at 17:12 -0500, Robert Haas wrote: Oh.  Never mind.  That doesn't seem useful enough to be worth spending time on.  What I want is to ignore all of the build products, so that when I do 'git status' in

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: ... What I'm interested in is being able to run 'git status' on a tree in which I've run a build without getting a lot of extra output, and that will require ignoring all the build products. I'm fairly hesitant to set up ignore files that list *all*

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Robert Haas
On Sat, Jan 9, 2010 at 6:20 PM, Tom Lane t...@sss.pgh.pa.us wrote: Robert Haas robertmh...@gmail.com writes: ... What I'm interested in is being able to run 'git status' on a tree in which I've run a build without getting a lot of extra output, and that will require ignoring all the build

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-09 Thread Greg Smith
Peter Eisentraut wrote: Probably someone to actually track the open items that are mentioned every time this discussion happens. http://wiki.postgresql.org/wiki/Switching_PostgreSQL_from_CVS_to_Git now has what I believe the state of the world to be in this area. -- Greg Smith

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jan 07, 2010 at 04:44:49PM -0700, Alex Hunsaker wrote: On Thu, Jan 7, 2010 at 15:16, Tim Bunce tim.bu...@pobox.com wrote: Is there any reason not to add .gitignore files into the repository? They'll make no difference to those who don't

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread Magnus Hagander
On Fri, Jan 8, 2010 at 00:44, Alex Hunsaker bada...@gmail.com wrote: On Thu, Jan 7, 2010 at 15:16, Tim Bunce tim.bu...@pobox.com wrote: Is there any reason not to add .gitignore files into the repository? They'll make no difference to those who don't use git, but be very helpful to, and

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread Alvaro Herrera
Magnus Hagander escribió: On Fri, Jan 8, 2010 at 00:44, Alex Hunsaker bada...@gmail.com wrote: On Thu, Jan 7, 2010 at 15:16, Tim Bunce tim.bu...@pobox.com wrote: Is there any reason not to add .gitignore files into the repository? They'll make no difference to those who don't use git, but

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread Alex Hunsaker
On Fri, Jan 8, 2010 at 02:03, Magnus Hagander mag...@hagander.net wrote: You can always create your own branch with just the .gitignore files and merge that into whatever you're working on :) The only thing annoying about that is if you generate diffs ala git diff origin/master.. you get your

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread Andres Freund
On Friday 08 January 2010 17:38:15 Alex Hunsaker wrote: On Fri, Jan 8, 2010 at 02:03, Magnus Hagander mag...@hagander.net wrote: You can always create your own branch with just the .gitignore files and merge that into whatever you're working on :) The only thing annoying about that is if

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread Robert Haas
On Thu, Jan 7, 2010 at 5:45 PM, Tom Lane t...@sss.pgh.pa.us wrote: Peter Eisentraut pete...@gmx.net writes: On tor, 2010-01-07 at 22:16 +, Tim Bunce wrote: Is there any reason not to add .gitignore files into the repository? I already find the .cvsignore files to be useless and an

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread Euler Taveira de Oliveira
Robert Haas escreveu: I would be willing to maintain .gitignore files, under the agreement that if I should fail or cease to do so, and no one else wants to take over, then they all get removed. Would that be acceptable? -1. I tend to agree with Tom and Peter. Why don't you use vpath builds

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread Robert Haas
On Fri, Jan 8, 2010 at 9:21 PM, Euler Taveira de Oliveira eu...@timbira.com wrote: Robert Haas escreveu: I would be willing to maintain .gitignore files, under the agreement that if I should fail or cease to do so, and no one else wants to take over, then they all get removed.   Would that be

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: Tom's stated position was that the only way this was going to happen is if it regularly annoyed someone with access to the core repository. I am, and I do. Yeah. I don't see the harm in it if Robert (or some other git user) will contract to maintain

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread David Fetter
On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote: Probably eventually we'll be on git and this will be moot, but that doesn't seem to be ready to happen. What still needs to happen on this? Clearly this would be a post-8.5 (or whatever the new release number is) thing, but apart from

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread Tom Lane
David Fetter da...@fetter.org writes: On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote: Probably eventually we'll be on git and this will be moot, but that doesn't seem to be ready to happen. What still needs to happen on this? Clearly this would be a post-8.5 (or whatever the new

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-08 Thread Alvaro Herrera
Tom Lane escribió: David Fetter da...@fetter.org writes: On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote: Probably eventually we'll be on git and this will be moot, but that doesn't seem to be ready to happen. What still needs to happen on this? Clearly this would be a

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-07 Thread Peter Eisentraut
On tor, 2010-01-07 at 22:16 +, Tim Bunce wrote: I've a .git/info/exclude file I pulled from a link on the dev wiki. Some of the changes I'm making create new files that ought to be added to the excluded files. I can easily add them to my .git/info/exclude file but it's much more work for

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-07 Thread Andres Freund
On Thursday 07 January 2010 23:32:27 Peter Eisentraut wrote: On tor, 2010-01-07 at 22:16 +, Tim Bunce wrote: I've a .git/info/exclude file I pulled from a link on the dev wiki. Some of the changes I'm making create new files that ought to be added to the excluded files. I can easily

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-07 Thread Tom Lane
Peter Eisentraut pete...@gmx.net writes: On tor, 2010-01-07 at 22:16 +, Tim Bunce wrote: Is there any reason not to add .gitignore files into the repository? I already find the .cvsignore files to be useless and an annoyance to keep up to date (well, I basically ignore them and someone

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-07 Thread Tim Bunce
On Thu, Jan 07, 2010 at 05:45:08PM -0500, Tom Lane wrote: Peter Eisentraut pete...@gmx.net writes: On tor, 2010-01-07 at 22:16 +, Tim Bunce wrote: Is there any reason not to add .gitignore files into the repository? I already find the .cvsignore files to be useless and an annoyance to

Re: [HACKERS] Add .gitignore files to CVS?

2010-01-07 Thread Alex Hunsaker
On Thu, Jan 7, 2010 at 15:16, Tim Bunce tim.bu...@pobox.com wrote: Is there any reason not to add .gitignore files into the repository? They'll make no difference to those who don't use git, but be very helpful to, and maintained by, those who do. Since it seems we don't want them in CVS,