Re: .gitignore files, take two

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: .gitignore files, take two
Date: 2010-09-21 19:43:22
Message-ID: AANLkTikE5OkPS5YkLjA3zCkw93phvwWO=e9oFsNWuMwM@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Sep 21, 2010 at 21:32, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Magnus Hagander <magnus(at)hagander(dot)net> writes:
>> On Tue, Sep 21, 2010 at 20:59, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> Just paranoia, I guess.  I can't actually see a reason why we'd have
>>> any committable files in the tree matching that pattern.  OTOH, we
>>> probably also need the same type of pattern for .sl and .dylib,
>>> so at some point a more conservative pattern would be wise.
>
>> Do we know what the exact pattern would be for .sl and .dylib? Are
>> they following the same basic pattern of .sl.<major>.<minor>?
>
> Yes, they'll be just the same --- Makefile.shlib treats all those
> extensions alike.

Hmm. Hold on.

My gitignore manpage doesn't say anything about supporting regular
expressions at all. And actually adding the line proposed by Peter
doesn't work.

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?

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-09-21 20:06:48 Re: .gitignore files, take two
Previous Message Tom Lane 2010-09-21 19:32:04 Re: .gitignore files, take two