cortadocodes / personal-development

My 2018 personal development plan as a software engineer.
6 stars 5 forks source link

Updated hooks should take effect from the moment they are saved #4

Open cortadocodes opened 6 years ago

cortadocodes commented 6 years ago

Context I have created a directory hooks/ that contains my git hooks to allow them to be visible and version-controlled. However, for git to use them, they have to be copied to .git/hooks/. Currently, I have them copied across upon each commit, meaning any changes only take effect after this commit.

Action A post-save hook should be created for the hook files that copies them to the .git/hooks/ directory.