From 6fad401807254ca484b90304ded9501ce4d1cf99 Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Fri, 28 Feb 2014 13:29:33 +0100 Subject: [PATCH] pre-commit helper --- README.md | 7 +++++-- pre-commit.sh => scr/git/pre-commit.sh | 0 scr/git/use-pre-commit.sh | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) rename pre-commit.sh => scr/git/pre-commit.sh (100%) create mode 100755 scr/git/use-pre-commit.sh diff --git a/README.md b/README.md index 11d1a2b..bb53bcf 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,14 @@ ANNA ==== -ANNA is the acronym for "ANNA is not 'N' anymore", a complete suite of tools and resources to build proffesional applications with minimum cost. +ANNA is the acronym for "ANNA is not 'N' anymore", a complete suite of tools and resources + to build proffesional applications with minimum cost. Revision control ================ Based on GIT, hosted on www.bitbucket.org. -Copy or link 'pre-commit.sh' to '.git/hooks/pre-commit' if you want to do some basic checkings (i.e. astyle code processing) + +You could use my pre-commit specific template if you want to do some basic checkings (i.e. + astyle code processing): Execute './scr/git/use-pre-commit.sh' Documentation ============= diff --git a/pre-commit.sh b/scr/git/pre-commit.sh similarity index 100% rename from pre-commit.sh rename to scr/git/pre-commit.sh diff --git a/scr/git/use-pre-commit.sh b/scr/git/use-pre-commit.sh new file mode 100755 index 0000000..04fcb26 --- /dev/null +++ b/scr/git/use-pre-commit.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd `dirname $0` +ln -sf ../../scr/git/pre-commit.sh ../../.git/hooks/pre-commit -- 2.20.1