Sha256: faa296d032cbe4e94bf46110970a72cf46db5b1083603a39a990676e9aa6b275

Contents?: true

Size: 519 Bytes

Versions: 16

Compression:

Stored size: 519 Bytes

Contents

#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by git-commit with no arguments.  The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook, rename this file to "pre-commit".

if git-rev-parse --verify HEAD 2>/dev/null
then
	against=HEAD
else
	# Initial commit: diff against an empty tree object
	against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi

exec git diff-index --check --cached $against --

Version data entries

16 entries across 16 versions & 8 rubygems

Version Path
karmi-markout-0.1.1 test/fixtures/empty_repository__dot__git/hooks/pre-commit.sample
karmi-markout-0.1.2 test/fixtures/empty_repository__dot__git/hooks/pre-commit.sample
karmi-markout-0.1.3 test/fixtures/empty_repository__dot__git/hooks/pre-commit.sample
cheeba-1.0.4 .git/hooks/pre-commit.sample
smartcall-0.0.1 .git/hooks/pre-commit.sample
rails-extjs-direct-0.0.15 .git/hooks/pre-commit.sample
rails-extjs-direct-0.0.14 .git/hooks/pre-commit.sample
rails-extjs-direct-0.0.13 .git/hooks/pre-commit.sample
trellis-0.0.1 .git/hooks/pre-commit.sample
rip-0.0.4 test/repos/simple_c/dot_git/hooks/pre-commit.sample
rip-0.0.5 test/repos/simple_c/dot_git/hooks/pre-commit.sample
rip-0.0.3 test/repos/simple_c/dot_git/hooks/pre-commit.sample
rip-0.0.2 test/repos/simple_c/dot_git/hooks/pre-commit.sample
authlogic-oauth-1.0.0 .git/hooks/pre-commit.sample
rip-0.0.1 test/repos/simple_c/dot_git/hooks/pre-commit.sample
ulla-0.9.3 .git/hooks/pre-commit.sample