masterをマージした状態で
git diff --name-only --diff-filter=AMCR master...|xargs -n 1 php-cs-fixer fix
diff-filterで削除したファイルを一覧から消している
ファイル名の後にオプションを指定する場合は
git diff --name-only --diff-filter=AMCR master...|xargs -I'{}' php-cs-fixer fix '{}' --level=psr2
More than 5 years have passed since last update.
masterをマージした状態で
git diff --name-only --diff-filter=AMCR master...|xargs -n 1 php-cs-fixer fix
diff-filterで削除したファイルを一覧から消している
ファイル名の後にオプションを指定する場合は
git diff --name-only --diff-filter=AMCR master...|xargs -I'{}' php-cs-fixer fix '{}' --level=psr2
Register as a new user and use Qiita more conveniently