diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-07-29 23:33:48 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-07-29 23:43:27 +0200 |
commit | 7870670d1e3dba21dc4b42352c01b85f72adeea1 (patch) | |
tree | 29979912f2628786542287e0190867f327d81628 | |
parent | Add rekonq commit-template (diff) | |
download | rekonq-7870670d1e3dba21dc4b42352c01b85f72adeea1.tar.xz |
Copyright year check fixes (waiting for a better regexp...)
-rwxr-xr-x | git_hooks/pre-commit/copyrightyear_check | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git_hooks/pre-commit/copyrightyear_check b/git_hooks/pre-commit/copyrightyear_check index 535b3c16..43c97d0c 100755 --- a/git_hooks/pre-commit/copyrightyear_check +++ b/git_hooks/pre-commit/copyrightyear_check @@ -41,7 +41,10 @@ case "${1}" in echo "Check the files that are being committed for a copyright with a proper year." ;; * ) - for file in `git diff-index --cached --name-only HEAD | /bin/grep -F .` ; do + for file in `git diff-index --cached --name-only HEAD | /bin/grep \.h$` ; do + test_file "${file}" + done + for file in `git diff-index --cached --name-only HEAD | /bin/grep \.cpp$` ; do test_file "${file}" done ;; |