Sha256: 43a15ca1ac6facb639042002b2b67807a2d074c984ea35aebfdfaa4b9b121b27

Contents?: true

Size: 780 Bytes

Versions: 43

Compression:

Stored size: 780 Bytes

Contents

#!/bin/sh
#
# An example hook script to check the commit log message.
# Called by git-commit with one argument, the name of the file
# that has the commit message.  The hook should exit with non-zero
# status after issuing an appropriate message if it wants to stop the
# commit.  The hook is allowed to edit the commit message file.
#
# To enable this hook, make this file executable.

# Uncomment the below to add a Signed-off-by line to the message.
# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"

# This example catches duplicate Signed-off-by lines.

test "" = "$(grep '^Signed-off-by: ' "$1" |
	 sort | uniq -c | sed -e '/^[ 	]*1[ 	]/d')" || {
	echo >&2 Duplicate Signed-off-by lines.
	exit 1
}

Version data entries

43 entries across 37 versions & 7 rubygems

Version Path
titanous-git-1.1.0 tests/files/working/dot_git/hooks/commit-msg
titanous-git-1.1.0 tests/files/working.git/hooks/commit-msg
redcar-dev-0.12.1dev-java plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-dev-0.12.0dev-java plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.11 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.11.0dev plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.10 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.9.2 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.9.1 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.9.0 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.8.1 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.8 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.7 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.6.1 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.6 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.6.1dev plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.5.1 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.5 plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.5.6dev plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg
redcar-0.5.5dev plugins/scm_git/vendor/ruby-git/tests/files/working/dot_git/hooks/commit-msg