Skip to content

Instantly share code, notes, and snippets.

@anyt
Last active June 22, 2021 14:10
Show Gist options
  • Save anyt/0f04cbe2cd295c43e54e5c94ce769a45 to your computer and use it in GitHub Desktop.
Save anyt/0f04cbe2cd295c43e54e5c94ce769a45 to your computer and use it in GitHub Desktop.
composer create-project davidrjonas/composer-lock-diff:^1.0 --working-dir=$APP_ROOT
local composer_diff=$(php -derror_reporting=0 ./composer-lock-diff/composer-lock-diff --from HEAD:composer.lock --to composer.lock --md)
rm -rf ${APP_ROOT}/composer-lock-diff
git commit -a -m "Updated composer.locks
${composer_diff}" || fatal "Can't commit to git"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment