Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aron Helser
VTK
Commits
92c75174
Commit
92c75174
authored
Jun 07, 2010
by
Brad King
Browse files
pre-commit: Rename looks_executable -> mode_looks_exe
Keep all mode-related check helpers in the "mode_" namespace.
parent
7827726e
Changes
1
Hide whitespace changes
Inline
Side-by-side
pre-commit
View file @
92c75174
...
...
@@ -83,7 +83,7 @@ Convert them to spaces (2 per TAB) before commit.'
#-----------------------------------------------------------------------------
# Check file modes.
looks_exe
cutable
()
{
mode_
looks_exe
()
{
case
"
$1
"
in
*
.bat
)
return
0
;;
*
.cmd
)
return
0
;;
...
...
@@ -103,8 +103,8 @@ mode_non_file () {
}
check_mode
()
{
case
"
$dst_mode
"
in
100755
)
looks_exe
cutable
"
$file
"
"
$dst_obj
"
||
mode_bad_exe
;;
100644
)
looks_exe
cutable
"
$file
"
"
$dst_obj
"
&&
mode_not_exe
;;
100755
)
mode_
looks_exe
"
$file
"
"
$dst_obj
"
||
mode_bad_exe
;;
100644
)
mode_
looks_exe
"
$file
"
"
$dst_obj
"
&&
mode_not_exe
;;
160000
)
;;
*
)
mode_non_file
;;
esac
...
...
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