gitignore: root most patterns at the top-level directory
authorJeff King <peff@peff.net>
Tue, 27 Oct 2009 01:10:24 +0000 (21:10 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Oct 2009 06:03:58 +0000 (23:03 -0700)
commitc591d5f311e0c2c0708b91bf5e05bd1c36da658a
treec181b11bdd8f96d60676cf78b4167f4593048b64
parent3c1ca015281e90541a7baf092448556ec6c588a0
gitignore: root most patterns at the top-level directory

Our gitignore doesn't use a preceding "/" to root its
patterns in the top of the repository. This means that if
you add a file or directory called "git" (for example)
inside a subdirectory, it will be erroneously ignored.

This patch was done mechanically with "s/^[^*]/\/&/" with
one exception: instead of ignoring gitk-wish, we should
gitk-git/gitk-wish (arguably, this should be done in
gitk-git/.gitignore, but because that is a subtree merge
from elsewhere, this is easier).

Acked-by: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore