Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As a PrestaShop core developer I reworked our .gitignore file last year (PrestaShop/PrestaShop@d6956eb). I realized recently that the one provided by GitHub is an old version of our file.
The file in this repo was written to maintain the core, then we ignore files that a normal user will need to track (and vice versa).
Here are some explainations about my modifications ('we' refers to the PrestaShop core team) :
index.php
files, except the one under the root directory, are redirections to the root folder. We used to version them because of the licence at the top of the file.cache/
should be ignored completely (of course).robots.txt
should be versionned. As a user, you will edit it and want to keep his changes. We ignored it to keep a clean version for releases.*sitemap.xml
config*.xml
files needs to be ignored since they are generated if needed.If you need more details please let me know, I'll be happy to explain.
NOTE: The previous version kept track of core files, I didn't change this behavior.