/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
.github/sync-packages.php
17 строк
481 B
Nicolas Grekas
Drop PR warning and auto-closing on subtree splits
05 июн 2026, 09:18
05 июн 2026, 09:18
35accc0
Код
Авторство
О чём код?
<?php if ('cli' !== PHP_SAPI) { echo "This script can only be run from the command line.\n"; exit(1); } $mainRepo = 'https://github.com/symfony/symfony'; exec('find src -name composer.json', $packages); foreach ($packages as $package) { $package = dirname($package); $c = file_get_contents($package.'/.gitattributes'); $c = preg_replace('{^/\.git.*+\n}m', '', $c); $c .= "/.git* export-ignore\n"; file_put_contents($package.'/.gitattributes', $c); }