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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html