shibapm / Komondor

Git Hooks for Swift projects 🐩
MIT License
552 stars 32 forks source link

How to run on staged files only? [edited] not working #32

Open cerupcat opened 4 years ago

cerupcat commented 4 years ago

Is it possible to run swiftformat/swiftlint on staged files only?

There's past issues showcasing swift run swiftformat [edited swift] but utilizing that command returns error: input path cannot contain wildcards.

cerupcat commented 4 years ago

Decided to use a workaround by calling a bash script from komondor rather than individual commands.