Re: Easy way to verify gitignore files?

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: Easy way to verify gitignore files?
Дата
Msg-id AANLkTikR6cSEVpUBq5adc+BHsC_MYU-Ty+2KGp3-spyx@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Easy way to verify gitignore files?  (Abhijit Menon-Sen <ams@toroid.org>)
Список 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 по дате отправления:

Предыдущее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: Easy way to verify gitignore files?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Easy way to verify gitignore files?