Skip to content

KidMastermind/Pre-commit-hooks

 
 

Repository files navigation

This repository contains some useful pre-commit hooks to use with git.
Check INSTALL for documentation on how to install and use these hooks.

canonicalize_filename.sh
   Provides the ability to canonicalize filenames similar to the GNU version of
   readlink -f with non GNU versions of readlink.

install_hooks.sh:
    Copy hooks over to your local git repository.

pre-commit:
    Allow to run multiple pre-commit hooks as specified in the script.

pre-commit-compile:
    Compile the project and abort commit if it fails.

pre-commit-default:
    The default git pre-commit hook checking for example for trailing
    whitespaces.

pre-commit-uncrustify:
    Run uncrustify on your sourcefiles and abort the commit if style violations
    have been detected. Generate a patch to fix these violations.

About

A set of useful (and documented!) git pre-commit hooks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%