caderek / gramma

command-line grammar checker
https://caderek.github.io/gramma/
ISC License
252 stars 18 forks source link

git hook: limit checking to user messages #28

Closed AbdulrhmnGhanem closed 3 years ago

AbdulrhmnGhanem commented 3 years ago

Is there a way to limit checking to user messages? Currently, it checks the diff too.

caderek commented 3 years ago

Do you mean merge commits? Diffing on itself shouldn't trigger hooks. Anyway - I will look into it.

AbdulrhmnGhanem commented 3 years ago

Sorry for not being clear. when creating a new commit, is it possible to limit checking to the top box, and by diff, I meant the bottom box.

image

caderek commented 3 years ago

Ok that's clear now. I will fix it later today. Thanks!

caderek commented 3 years ago

Fixed in v.1.4.1 https://github.com/caderek/gramma/commit/e80cee498bcf73f78f244b02d56ebf60fc7b921a#diff-19dadc9d14bceba97e3eb829df1f257870b538da90033aacde699077ca6ff6b4R143

AbdulrhmnGhanem commented 3 years ago

Thanks! It works as expected now.