Re: Easy way to verify gitignore files?

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: Easy way to verify gitignore files?
Дата
Msg-id 20100923023407.GA13576@toroid.org
обсуждение исходный текст
Ответ на Re: Easy way to verify gitignore files?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
At 2010-09-22 22:19:45 -0400, tgl@sss.pgh.pa.us wrote:
>
> I can demonstrate that this is not so.  Try a "git add" on such a file.

Works fine for me with v1.7.3 (no warnings, no need for add -f). What
version do you use?

If I try to add an untracked file which is already ignored, then I get
the warning.

-- ams

$ git init a; cd a
Initialized empty Git repository in /home/ams/a/.git/
$ echo foo > a; git add a; git commit -m 1
[master (root-commit) 0031fcb] 11 files changed, 1 insertions(+), 0 deletions(-)create mode 100644 a
$ echo a > .gitignore; git add .gitignore; git commit -m 2
[master ed019e5] 21 files changed, 1 insertions(+), 0 deletions(-)create mode 100644 .gitignore
$ echo bar > a; git add a; git commit -m 3
[master 19e5d2a] 31 files changed, 1 insertions(+), 1 deletions(-)
$ echo baz > a; git commit -a -m 4
[master 73da20a] 41 files changed, 1 insertions(+), 1 deletions(-)


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Easy way to verify gitignore files?
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Git cvsserver serious issue