pedroborges / kirby-autogit

⬢ Saves every change made via Kirby Panel to a Git repository
149 stars 23 forks source link

Add the ability to disable autogit via config setting. #36

Closed mrunkel closed 6 years ago

mrunkel commented 6 years ago

Hello Pedro!

First off, this module is exactly what we needed to build, so thank you very much for sharing it.

However, we want to turn off autogit for our local dev instances, so we needed to add a flag to do that.

If you're ok with it, can we merge this back in so that we can use your version for our project?

mrunkel commented 6 years ago

This fixes #26

ghost commented 6 years ago

The method you used works fine if you just use the panel. However, if you're calling AutoGit from a controller or somewhere else, you would run into errors, as there's no longer an instance, which can be accessed.

The Autogit class is not that big, by adding your code to the functions, my scenario continues working.

pedroborges commented 6 years ago

Thank you! I just published a new version which includes this feature.