Git development
 help / color / mirror / Atom feed
* git-add ignores .gitignore
@ 2006-12-29 15:51 Brian Gernhardt
  2006-12-29 18:57 ` [PATCH] Fix 'git add' with .gitignore (Re: git-add ignores .gitignore) Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Gernhardt @ 2006-12-29 15:51 UTC (permalink / raw)
  To: git

I just ran "git add ." and got a very surprising result. Test case:

$ mkdir tmp
$ git init-db
$ mkdir a
$ touch a/b c
$ cat > .gitignore << EOF
a
EOF
$ git status
# On branch refs/heads/master
#
# Initial commit
#
# Untracked files:
#   (use "git add file1 file2" to include for commit)
#
#       .gitignore
#       c
nothing to commit (use "git add file1 file2" to include for commit)
$ git add .
$ git status
# On branch refs/heads/master
#
# Initial commit
#
# Added but not yet committed:
#   (will commit)
#
#       new file: .gitignore
#       new file: a/b
#       new file: c
#
$ git --version
git version 1.5.0.rc0.g04509

Huh?  I'm deep into my own code so can't diagnose it myself right  
now, but thought maybe someone on list could.  I really hope that's  
not the expected behavior.  Same thing happens with "git add *"

~~ Brian

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-30 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-29 15:51 git-add ignores .gitignore Brian Gernhardt
2006-12-29 18:57 ` [PATCH] Fix 'git add' with .gitignore (Re: git-add ignores .gitignore) Junio C Hamano
2006-12-30  4:42   ` Brian Gernhardt
2006-12-30 14:50   ` Brian Gernhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox