Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
91fd0781
Commit
91fd0781
authored
Oct 25, 2007
by
df@pippilotta.erinye.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new trigger to prevent certain naming clashes
parent
fa219200
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
BitKeeper/triggers/pre-commit.check-case.pl
BitKeeper/triggers/pre-commit.check-case.pl
+26
-0
No files found.
BitKeeper/triggers/pre-commit.check-case.pl
0 → 100755
View file @
91fd0781
#!/usr/bin/perl
my
$status
=
0
;
my
$pending
=
$ENV
{'
BK_PENDING
'};
exit
0
unless
-
f
$pending
;
open
FI
,
"
<
",
$pending
||
exit
0
;
while
(
<
FI
>
)
{
my
(
$file
,
$stuff
)
=
split
/\|/
,
$_
,
2
;
next
unless
-
f
$file
;
$file
=~
s/^(.*)\/([^\/]*)$/$2/
;
my
$path
=
$1
;
opendir
DIR
,
$path
;
my
@files
=
sort
map
{
lc
}
readdir
DIR
;
closedir
DIR
;
my
%
count
=
();
$count
{
$_
}
++
for
@files
;
@files
=
grep
{
$count
{
$_
}
>
1
}
keys
%
count
;
if
(
@files
>
0
)
{
print
"
$path
/
$file
: duplicate file names:
"
.
(
join
"
",
@files
)
.
"
\n
";
$status
=
1
;
}
}
close
FI
;
exit
$status
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment