summaryrefslogtreecommitdiffstats
path: root/git-hooks
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-02-13 11:05:38 +0100
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-02-13 12:54:38 +0000
commit45a7ada21fc00026d23d96277bf910aad451c842 (patch)
treee6cc0d2e3fdcd319e7f208e801f49fe650bb4399 /git-hooks
parent51744f4f0afd24c38a27505cb2a1feefa4af80ce (diff)
don't tab-check svg files
adobe illustrator's export function creates tabs, and it would be unreasonable to clean that up. Change-Id: I94555a7f2e2f6c9b153a8d5f5395b8972f410e88 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/sanitize-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index 82161d3..fdd9f17 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -776,7 +776,7 @@ while (<DIFF>) {
$mixws_check = !$merge && !$foreign && $clike && !defined($cfg{mixws});
$ws_check = !defined($cfg{style}) && !$foreign && ($file !~ /\.(ts|diff|patch)$|^\.gitmodules$/);
$tsv_check = $ws_check && ($file =~ /((^|\/)objects\.map$|\.tsv$)/);
- $tabs_check = $ws_check && !$tsv_check && !defined($cfg{tabs}) && ($file !~ /((^|\/)Makefile\b|debian[.\/]rules|\.(pbxproj|plist(\.[^.\/]+)?|def|spec|changes|[xn]ib|storyboardc?|go)(?:\.in)?$)/);
+ $tabs_check = $ws_check && !$tsv_check && !defined($cfg{tabs}) && ($file !~ /((^|\/)Makefile\b|debian[.\/]rules|\.(pbxproj|plist(\.[^.\/]+)?|def|spec|changes|[xn]ib|storyboardc?|go|svg)(?:\.in)?$)/);
$allow_2spaces = $ws_check && ($file =~ /\.md$/);
$ctlkw_check = $tabs_check && $clike;
$eof_check = !$is_bin && ($file !~ /(\.plist(\.[^.\/]+)?|\.xcassets\/.*\.json)$/); # Xcode consistently forgets the trailing newline