toplenboren / simple-git-hooks

A simple git hooks manager for small projects
MIT License
1.26k stars 39 forks source link

Preserve existing git hooks path (core.hooksPath) #86

Open kcmr opened 1 year ago

kcmr commented 1 year ago

Hi 👋,

This is a feature request more than an issue.

My suggestion is to preserve the existing hooks path if it is defined in git config core.hooksPath, so this way it's not necessary to take into account this step when you're migrating from Husky, for instance. This is also an issue when you're switching branches with different git hooks setup and requires executing a script in preinstall or prepare like explained here to make it transparent for users.

What do you think?

Thanks

toplenboren commented 4 months ago

This feature would help to migrate from husky =) please feel free to send PR to this repo 🚀