Re: .gitignore files, take two

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Peter Eisentraut <peter_e@gmx.net>, Robert Haas <robertmhaas@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2010-09-21T20:06:48Z
Lists: pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> My gitignore manpage doesn't say anything about supporting regular
> expressions at all. And actually adding the line proposed by Peter
> doesn't work.

Yeah, I was wondering about that.  They're meant to be shell patterns
not regexps, I think.

> What works is adding all of:
> *.so
> *.so.[0-9]
> *.so.[0-9].[0-9]

> That will break if there's a two-digit number, i guess. Do we want to
> go with that anyway?

What we can do, when and if any of those numbers get to two digits,
is add

*.so.[0-9][0-9]

etc etc.  Which would not need to be back-patched.  So let's just go in
that direction.

			regards, tom lane