Skip to content

Commit

Permalink
Add setup for pre-commit hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Jun 5, 2014
1 parent 6379eb3 commit 19d28e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions git/hooks/pre-commit
@@ -0,0 +1,7 @@
#!/usr/bin/env perl

use strict;
use warnings;

use Code::TidyAll::Git::Precommit;
Code::TidyAll::Git::Precommit->check();
5 changes: 5 additions & 0 deletions git/setup.sh
@@ -0,0 +1,5 @@
#!/bin/bash

chmod +x git/hooks/pre-commit
cd .git/hooks
ln -s ../../git/hooks/pre-commit

0 comments on commit 19d28e9

Please sign in to comment.