Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProMod3
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
ProMod3
Commits
c01e846b
Commit
c01e846b
authored
11 years ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
Excluded doc/html from being checked for whitespaces
parent
aa9458ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extras/pre-commit
+7
-6
7 additions, 6 deletions
extras/pre-commit
with
7 additions
and
6 deletions
extras/pre-commit
+
7
−
6
View file @
c01e846b
#!/bin/sh
#!/bin/sh
# Last modified: Thu
26
Ju
n
14
# Last modified: Thu
03
Ju
l
14
# global settings
# global settings
my_git_hook_repo
=
"extras/pre-commit"
my_git_hook_repo
=
"extras/pre-commit"
my_abortmsg
=
"aborting commit."
my_abortmsg
=
"aborting commit."
my_min_git_version
=
"1.7.5.1"
my_min_git_version
=
"1.7.5.1"
### my_wel: whitespace check exclude list
### my_wel: W_hitespace check E_xclude L_ist
### .pdf - PDF files
### .*.pdf - PDF files
### .pdb - PDB files
### .*.pdb - PDB files
my_wel
=
"
\\\.
pdf
\\\.
pdb"
### ^doc/html/.* - Everything in html/ is generated
my_wel
=
".*
\\\.
pdf .*
\\\.
pdb ^doc/html/.*"
# check for right version of git
# check for right version of git
...
@@ -100,7 +101,7 @@ echo "[ Checking for trailing whitespaces ]"
...
@@ -100,7 +101,7 @@ echo "[ Checking for trailing whitespaces ]"
my_rexp
=
my_rexp
=
for
i
in
$my_wel
for
i
in
$my_wel
do
do
my_rexp
=
"
${
my_rexp
}
|
.*
${
i
}
:[[:digit:]]+:"
my_rexp
=
"
${
my_rexp
}
|
${
i
}
:[[:digit:]]+:"
done
done
if
git rev-parse
--verify
HEAD 2>&1
>
/dev/null
;
then
if
git rev-parse
--verify
HEAD 2>&1
>
/dev/null
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment