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

From Brendan Jurd
Subject Re: Easy way to verify gitignore files?
Date
Msg-id AANLkTikR6cSEVpUBq5adc+BHsC_MYU-Ty+2KGp3-spyx@mail.gmail.com
Whole thread Raw
In response to Re: Easy way to verify gitignore files?  (Abhijit Menon-Sen <ams@toroid.org>)
List pgsql-hackers
On 23 September 2010 11:28, Abhijit Menon-Sen <ams@toroid.org> wrote:
>> 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.)
>

Right; .gitignore patterns are only applied to untracked files.  Once
a file is tracked by git, you can try to gitignore it all you like, it
won't have any effect.

Cheers,
BJ


pgsql-hackers by date:

Previous
From: Abhijit Menon-Sen
Date:
Subject: Re: Easy way to verify gitignore files?
Next
From: Tom Lane
Date:
Subject: Re: Easy way to verify gitignore files?