| 1 | hooks = [ |
| 2 | 'applypatch-msg.sample', |
| 3 | 'commit-msg.sample', |
| 4 | 'fsmonitor-watchman.sample', |
| 5 | 'post-update.sample', |
| 6 | 'pre-applypatch.sample', |
| 7 | 'pre-commit.sample', |
| 8 | 'pre-merge-commit.sample', |
| 9 | 'prepare-commit-msg.sample', |
| 10 | 'pre-push.sample', |
| 11 | 'pre-rebase.sample', |
| 12 | 'pre-receive.sample', |
| 13 | 'push-to-checkout.sample', |
| 14 | 'sendemail-validate.sample', |
| 15 | 'update.sample', |
| 16 | ] |
| 17 | |
| 18 | foreach hook : hooks |
| 19 | configure_file( |
| 20 | input: hook, |
| 21 | output: hook, |
| 22 | configuration: template_config, |
| 23 | install: true, |
| 24 | install_dir: get_option('datadir') / 'git-core/templates/hooks', |
| 25 | ) |
| 26 | endforeach |