Re: Easy way to verify gitignore files? - Mailing list pgsql-hackers

From Abhijit Menon-Sen
Subject Re: Easy way to verify gitignore files?
Date
Msg-id 20100923012833.GA12781@toroid.org
Whole thread Raw
In response to Easy way to verify gitignore files?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Easy way to verify gitignore files?
Re: Easy way to verify gitignore files?
List pgsql-hackers
At 2010-09-22 20:54:19 -0400, tgl@sss.pgh.pa.us wrote:
>
> However, it seems that git isn't so willing to tell you about gitignore
> patterns that cover too much, i.e. match files that are already in the
> repository.

If .gitignore specifies a pattern that matches something that's already
in the repository, that specification is itself ignored, and the file is
treated like any other file.

> This seems pretty dangerous, especially for people who are willing to
> rely on "git commit -a" :-(

There is no danger. "git commit -a" will commit changes to files that
match .gitignore but are already in the repository. (I vaguely remember
that there were bugs in this regard in old versions of git, but it's not
a problem with any recent version AFAIK.)

-- ams


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Easy way to verify gitignore files?
Next
From: Brendan Jurd
Date:
Subject: Re: Easy way to verify gitignore files?