Re: Easy way to verify gitignore files?

From: Abhijit Menon-Sen <ams(at)toroid(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Easy way to verify gitignore files?
Date: 2010-09-23 02:34:07
Message-ID: 20100923023407.GA13576@toroid.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 2010-09-22 22:19:45 -0400, tgl(at)sss(dot)pgh(dot)pa(dot)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] 1
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 a
$ echo a > .gitignore; git add .gitignore; git commit -m 2
[master ed019e5] 2
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
$ echo bar > a; git add a; git commit -m 3
[master 19e5d2a] 3
1 files changed, 1 insertions(+), 1 deletions(-)
$ echo baz > a; git commit -a -m 4
[master 73da20a] 4
1 files changed, 1 insertions(+), 1 deletions(-)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2010-09-23 02:59:58 Re: Git cvsserver serious issue
Previous Message Tom Lane 2010-09-23 02:19:45 Re: Easy way to verify gitignore files?