PreCommitHook

Here is a pre-commit hook that can be used with GIT to check the following things:

To use, save as .git/hooks/pre-commit and make executable. Requires Ruby and Ming

{{{#!/usr/bin/ruby

toplevel = git-rev-parse --show-cdup toplevel.strip!() if toplevel != ""

end

files = []

skip = true IO.popen("git-diff-index -z -M --cached HEAD").each("\0") { |line|

}

$ok = true def error(msg)

end

def do_initialize_h(files)

end

def do_test_trace_makefile_am(files)

end

do_initialize_h(files) do_test_trace_makefile_am(files)

if not $ok

else

end}}}