]> source.dussan.org Git - nextcloud-server.git/commitdiff
gitignore: Make paths relative to repository root.
authorAndreas Fischer <bantu@owncloud.com>
Sat, 29 Jun 2013 14:31:04 +0000 (16:31 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Sat, 29 Jun 2013 14:33:42 +0000 (16:33 +0200)
Paths without the leading slash apply to all subdirectories, which especially
means that /tests/data is ignored, making it unnecessarily hard to add test
data.

.gitignore

index 6259482c002d6e877d10a6dcf18d820878a84f15..43f33783e3979f99a7eed0a278ab0eea7afaa89c 100644 (file)
@@ -1,24 +1,24 @@
 # the default generated dir + db file
-data
-owncloud
-config/config.php
-config/mount.php
-apps/inc.php
+/data
+/owncloud
+/config/config.php
+/config/mount.php
+/apps/inc.php
 
 # ignore all apps except core ones
-apps*
-!apps/files
-!apps/files_encryption
-!apps/files_external
-!apps/files_sharing
-!apps/files_trashbin
-!apps/files_versions
-!apps/user_ldap
-!apps/user_webdavauth
+/apps*
+!/apps/files
+!/apps/files_encryption
+!/apps/files_external
+!/apps/files_sharing
+!/apps/files_trashbin
+!/apps/files_versions
+!/apps/user_ldap
+!/apps/user_webdavauth
 
 # ignore themes except the README
-themes/*
-!themes/README
+/themes/*
+!/themes/README
 
 # just sane ignores
 .*.sw[po]
@@ -76,7 +76,7 @@ nbproject
 /tests/phpunit.xml
 
 # Tests - auto-generated files
-data-autotest
+/data-autotest
 /tests/coverage*
 /tests/autoconfig*
 /tests/autotest*