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 | SAL_DEBUG(), instead of those temporary debug printf's (diff) | |
download | core-7d540bd08ea06c95d5ac27530b8386ae1bea6526.tar.gz core-7d540bd08ea06c95d5ac27530b8386ae1bea6526.zip |
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) |