Skip to content

Commit 19d28e9

Browse files
committed
Add setup for pre-commit hooks.
1 parent 6379eb3 commit 19d28e9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

git/hooks/pre-commit

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env perl
2+
3+
use strict;
4+
use warnings;
5+
6+
use Code::TidyAll::Git::Precommit;
7+
Code::TidyAll::Git::Precommit->check();

git/setup.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
chmod +x git/hooks/pre-commit
4+
cd .git/hooks
5+
ln -s ../../git/hooks/pre-commit

0 commit comments

Comments
 (0)