diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-04-03 17:17:06 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-04-03 18:16:38 +0200 |
commit | 7d540bd08ea06c95d5ac27530b8386ae1bea6526 (patch) | |
tree | 1081f3eb87bee4405e9e6b648b054c2fdc57c02f /git-hooks | |
parent | f46775a206589fb9486833ae2e043731cb6be54f (diff) |
commit hook preventing commits with SAL_DEBUG
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/pre-commit | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit index 2e1ebf8212f2..495dc169aea8 100755 --- a/git-hooks/pre-commit +++ b/git-hooks/pre-commit @@ -64,6 +64,9 @@ sub check_whitespaces($) if (/^(?:[<>=]){7}$/) { bad_line("unresolved merge conflict", $src_full); } + if (/SAL_DEBUG/) { + bad_line("temporary debug in commit", $_, $src_limited); + } } } if ( $found_bad) |