Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .gitattributes file with export ignore rules #12

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ocean90
Copy link

@ocean90 ocean90 commented Nov 25, 2024

When you use git archive all the test and stub files are also exported. The archive should usually only contain the production files since this is also the package installed by Composer by default, see https://getcomposer.org/doc/05-repositories.md#package.

Testing instructions:

  1. Checkout the PR
  2. git archive -o latest.zip HEAD
  3. unzip latest.zip
  4. cd unzip
  5. tree .

Expected output:

❯ tree .
.
├── composer.json
├── includes
│   ├── adapter-interface.php
│   ├── memcache-adapter.php
│   ├── memcached-adapter.php
│   ├── stats.php
│   └── wp-object-cache.php
├── object-cache.php
└── readme.md

2 directories, 8 files

@ocean90 ocean90 force-pushed the feature/gitattributes-export-ignore branch from 30ef117 to 4d0ad12 Compare November 25, 2024 09:48
Co-authored-by: Gary Jones <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants