[Libreoffice-commits] core.git: .git-hooks/pre-commit
Thorsten Behrens
Thorsten.Behrens at CIB.de
Sat Jun 13 01:42:23 PDT 2015
.git-hooks/pre-commit | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 8f45f78e8202a0313fcd0c21c50f3fc456f9c52c
Author: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Date: Sat Jun 13 10:40:47 2015 +0200
Catch funny line-ends in pre-commit hook.
Change-Id: I38836a9b3c9fb8ab7b71e157bba8a803eb4d3905
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index 6933198..e7b647e 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -68,6 +68,10 @@ sub check_whitespaces($)
{
bad_line("trailing whitespace", $_ , $src_limited);
}
+ if (/\r$/)
+ {
+ bad_line("DOS lineends", $_ , $src_limited);
+ }
if (/\s* /)
{
bad_line("indent with Tab", $_, $src_limited);
More information about the Libreoffice-commits
mailing list