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>
This commit is contained in:
Jeff King 2009-10-26 21:10:24 -04:00 committed by Junio C Hamano
parent 3c1ca01528
commit c591d5f311

354
.gitignore vendored
View file

@ -1,184 +1,184 @@
GIT-BUILD-OPTIONS /GIT-BUILD-OPTIONS
GIT-CFLAGS /GIT-CFLAGS
GIT-GUI-VARS /GIT-GUI-VARS
GIT-VERSION-FILE /GIT-VERSION-FILE
git /git
git-add /git-add
git-add--interactive /git-add--interactive
git-am /git-am
git-annotate /git-annotate
git-apply /git-apply
git-archimport /git-archimport
git-archive /git-archive
git-bisect /git-bisect
git-bisect--helper /git-bisect--helper
git-blame /git-blame
git-branch /git-branch
git-bundle /git-bundle
git-cat-file /git-cat-file
git-check-attr /git-check-attr
git-check-ref-format /git-check-ref-format
git-checkout /git-checkout
git-checkout-index /git-checkout-index
git-cherry /git-cherry
git-cherry-pick /git-cherry-pick
git-clean /git-clean
git-clone /git-clone
git-commit /git-commit
git-commit-tree /git-commit-tree
git-config /git-config
git-count-objects /git-count-objects
git-cvsexportcommit /git-cvsexportcommit
git-cvsimport /git-cvsimport
git-cvsserver /git-cvsserver
git-daemon /git-daemon
git-diff /git-diff
git-diff-files /git-diff-files
git-diff-index /git-diff-index
git-diff-tree /git-diff-tree
git-difftool /git-difftool
git-difftool--helper /git-difftool--helper
git-describe /git-describe
git-fast-export /git-fast-export
git-fast-import /git-fast-import
git-fetch /git-fetch
git-fetch--tool /git-fetch--tool
git-fetch-pack /git-fetch-pack
git-filter-branch /git-filter-branch
git-fmt-merge-msg /git-fmt-merge-msg
git-for-each-ref /git-for-each-ref
git-format-patch /git-format-patch
git-fsck /git-fsck
git-fsck-objects /git-fsck-objects
git-gc /git-gc
git-get-tar-commit-id /git-get-tar-commit-id
git-grep /git-grep
git-hash-object /git-hash-object
git-help /git-help
git-http-fetch /git-http-fetch
git-http-push /git-http-push
git-imap-send /git-imap-send
git-index-pack /git-index-pack
git-init /git-init
git-init-db /git-init-db
git-instaweb /git-instaweb
git-log /git-log
git-lost-found /git-lost-found
git-ls-files /git-ls-files
git-ls-remote /git-ls-remote
git-ls-tree /git-ls-tree
git-mailinfo /git-mailinfo
git-mailsplit /git-mailsplit
git-merge /git-merge
git-merge-base /git-merge-base
git-merge-index /git-merge-index
git-merge-file /git-merge-file
git-merge-tree /git-merge-tree
git-merge-octopus /git-merge-octopus
git-merge-one-file /git-merge-one-file
git-merge-ours /git-merge-ours
git-merge-recursive /git-merge-recursive
git-merge-resolve /git-merge-resolve
git-merge-subtree /git-merge-subtree
git-mergetool /git-mergetool
git-mergetool--lib /git-mergetool--lib
git-mktag /git-mktag
git-mktree /git-mktree
git-name-rev /git-name-rev
git-mv /git-mv
git-pack-redundant /git-pack-redundant
git-pack-objects /git-pack-objects
git-pack-refs /git-pack-refs
git-parse-remote /git-parse-remote
git-patch-id /git-patch-id
git-peek-remote /git-peek-remote
git-prune /git-prune
git-prune-packed /git-prune-packed
git-pull /git-pull
git-push /git-push
git-quiltimport /git-quiltimport
git-read-tree /git-read-tree
git-rebase /git-rebase
git-rebase--interactive /git-rebase--interactive
git-receive-pack /git-receive-pack
git-reflog /git-reflog
git-relink /git-relink
git-remote /git-remote
git-remote-curl /git-remote-curl
git-repack /git-repack
git-replace /git-replace
git-repo-config /git-repo-config
git-request-pull /git-request-pull
git-rerere /git-rerere
git-reset /git-reset
git-rev-list /git-rev-list
git-rev-parse /git-rev-parse
git-revert /git-revert
git-rm /git-rm
git-send-email /git-send-email
git-send-pack /git-send-pack
git-sh-setup /git-sh-setup
git-shell /git-shell
git-shortlog /git-shortlog
git-show /git-show
git-show-branch /git-show-branch
git-show-index /git-show-index
git-show-ref /git-show-ref
git-stage /git-stage
git-stash /git-stash
git-status /git-status
git-stripspace /git-stripspace
git-submodule /git-submodule
git-svn /git-svn
git-symbolic-ref /git-symbolic-ref
git-tag /git-tag
git-tar-tree /git-tar-tree
git-unpack-file /git-unpack-file
git-unpack-objects /git-unpack-objects
git-update-index /git-update-index
git-update-ref /git-update-ref
git-update-server-info /git-update-server-info
git-upload-archive /git-upload-archive
git-upload-pack /git-upload-pack
git-var /git-var
git-verify-pack /git-verify-pack
git-verify-tag /git-verify-tag
git-web--browse /git-web--browse
git-whatchanged /git-whatchanged
git-write-tree /git-write-tree
git-core-*/?* /git-core-*/?*
gitk-wish /gitk-git/gitk-wish
gitweb/gitweb.cgi /gitweb/gitweb.cgi
test-chmtime /test-chmtime
test-ctype /test-ctype
test-date /test-date
test-delta /test-delta
test-dump-cache-tree /test-dump-cache-tree
test-genrandom /test-genrandom
test-match-trees /test-match-trees
test-parse-options /test-parse-options
test-path-utils /test-path-utils
test-sha1 /test-sha1
test-sigchain /test-sigchain
common-cmds.h /common-cmds.h
*.tar.gz *.tar.gz
*.dsc *.dsc
*.deb *.deb
git.spec /git.spec
*.exe *.exe
*.[aos] *.[aos]
*.py[co] *.py[co]
config.mak /config.mak
autom4te.cache /autom4te.cache
config.cache /config.cache
config.log /config.log
config.status /config.status
config.mak.autogen /config.mak.autogen
config.mak.append /config.mak.append
configure /configure
tags /tags
TAGS /TAGS
cscope* /cscope*
*.obj *.obj
*.lib *.lib
*.sln *.sln
@ -188,5 +188,5 @@ cscope*
*.user *.user
*.idb *.idb
*.pdb *.pdb
Debug/ /Debug/
Release/ /Release/