salarkhan / git-pear

swap credentials after each commit
3 stars 0 forks source link

Stretch goal: don't murder other pre-commit hooks #21

Open supertopher opened 10 years ago

supertopher commented 10 years ago

We should be able to append what we need to the pre-commit hook with our-pre-commit >> .git/pre-commit and i think we can remove it with `our-pre-commit << .git/pre-commit

I think we are gonna need an if clause to catch the shebang though... or we can just keep adding it forever as it is a comment but that seems stupid

salarkhan commented 10 years ago

This makes sense. We should prob do some research into how people generally handle multiple hooks & see if we can integrate into that flow