close
Skip to content

pbehne/git_hooks_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

git_hooks_demo

This repository provides some very basic examples of pre-commit hooks. They are adapted from here and here.

The branches are as follows:

  • bash - tests/run-tests is written in bash
  • python - tests/run-tests is written in python
  • bash_with_stash - same as bash, but uses stashing to prevent unstaged files from influencing test results
  • bash_with_stash - same as python, but uses stashing to prevent unstaged files from influencing test results

The following files need to be made executable:

  • tests/run-tests
  • tests/pre-commit.sh
  • tests/install_hooks.sh

To install hooks, run tests/install_hooks.sh. This only needs to be done once, regardless of the branch.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages