Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: composer: ignore folders Date: Tue, 12 Sep 2017 19:08:50 +0200 Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net ANwOUYV6cJcJEI1EkjXi3gCh/7yDAs5D6tWg6uIjQHBnjDUwgN Cancel-Lock: sha1:BJG0c00Ch5BLKuAFLAn+nk1QxXI= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 In-Reply-To: Content-Language: en-GB Xref: csiph.com comp.lang.php:17580 On 09/12/17 17:39, Simonex wrote: First I have to say I fail to see your PHP related question > $ cat .gitattributes > docs/ export-ignore > tests/ export-ignore > > $ composer --prefer-dist require root/ignore_paths > ... > > $ ls -l vendor/root/ignore_paths/ > totale 5 > -rwxrwxrwx 1 root root   67 set  8 17:35 composer.json > drwxrwxrwx 1 root root 4096 set  8 17:13 docs > drwxrwxrwx 1 root root    0 set  8 17:13 src > drwxrwxrwx 1 root root    0 set  8 17:13 tests > > Because DOCS and TEST not ignored? composer ain't part of git, so the .gitattributes do not affect what composer does. The export-igoner is used by git when it creates an archive file of the content, it will not include docs and tests directories in the archive file. Test "git archive" -- //Aho