sirbrillig / phpcs-changed

🐘 Run phpcs on files and only report new warnings/errors compared to the previous version.
MIT License
31 stars 11 forks source link

Fix filename detection #33

Closed david-binda closed 4 years ago

david-binda commented 4 years ago

In case the interbranch git diff is used, the diff provided by git contains /dev/null instead of a real filename on the --- line when the file does not exist in the other branch.

I don't think that there was any specific reason to use the --- filename, insteand of the +++.

sirbrillig commented 4 years ago

Yeah, I don't suppose there's a good reason for that. Thanks for spotting this.