rehandalal / therapist

Work out your commitment issues.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make install/uninstall smarter

rehandalal opened this issue · comments

commented

Currently we replace the existing pre-commit hook entirely. We should offer the user a chance to either replace the existing hook or rename the existing hook and load it once we are done with running all the actions.

This would also require us to be able to identify the therapist pre-commit hook.

Similarly for uninstall we should be able to detect if the pre-commit hook is the therapist hook and uninstall accordingly. We should restore the legacy pre-commit hook when uninstalling the therapist hook.