Committee v1.0.0 Committee.Hooks View Source

Helper functions for handling git hooks.

Link to this section Summary

Link to this section Functions

Link to this function

create_hooks(hooks \\ ["pre_commit", "post_commit"])

View Source

Create the hooks files, backing up existing ones.

Link to this function

remove_hooks(hooks \\ ["pre_commit", "post_commit"])

View Source

Remove the hooks files.

Link to this function

restore_backups(hooks \\ ["pre_commit", "post_commit"])

View Source

Restore the hooks backups.