Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
05f04112
Unverified
Commit
05f04112
authored
Apr 24, 2020
by
bruvzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Git Hooks: Suppress "which" error messages.
parent
58cbec8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
pre-commit-black
misc/hooks/pre-commit-black
+5
-5
pre-commit-clang-format
misc/hooks/pre-commit-clang-format
+5
-5
No files found.
misc/hooks/pre-commit-black
View file @
05f04112
...
...
@@ -6,7 +6,7 @@
##################################################################
# SETTINGS
# Set path to black binary.
BLACK
=
`
which black
`
BLACK
=
`
which black
2>/dev/null
`
BLACK_OPTIONS
=
"-l 120"
# Remove any older patches from previous commits. Set to true or false.
...
...
@@ -18,7 +18,7 @@ FILE_EXTS="py"
# Use pygmentize instead of cat to parse diff with highlighting.
# Install it with `pip install pygments` (Linux) or `easy_install Pygments` (Mac)
PYGMENTIZE
=
`
which pygmentize
`
PYGMENTIZE
=
`
which pygmentize
2>/dev/null
`
if
[
!
-z
"
$PYGMENTIZE
"
]
;
then
READER
=
"pygmentize -l diff"
else
...
...
@@ -26,13 +26,13 @@ else
fi
# Path to zenity
ZENITY
=
`
which zenity
`
ZENITY
=
`
which zenity
2>/dev/null
`
# Path to xmessage
XMSG
=
`
which xmessage
`
XMSG
=
`
which xmessage
2>/dev/null
`
# Path to powershell (Windows only)
PWSH
=
`
which powershell
`
PWSH
=
`
which powershell
2>/dev/null
`
##################################################################
# There should be no need to change anything below this line.
...
...
misc/hooks/pre-commit-clang-format
View file @
05f04112
...
...
@@ -16,7 +16,7 @@
##################################################################
# SETTINGS
# Set path to clang-format binary.
CLANG_FORMAT
=
`
which clang-format
`
CLANG_FORMAT
=
`
which clang-format
2>/dev/null
`
# Remove any older patches from previous commits. Set to true or false.
DELETE_OLD_PATCHES
=
false
...
...
@@ -31,7 +31,7 @@ FILE_EXTS=".c .h .cpp .hpp .cc .hh .cxx .m .mm .inc .java .glsl"
# Use pygmentize instead of cat to parse diff with highlighting.
# Install it with `pip install pygments` (Linux) or `easy_install Pygments` (Mac)
PYGMENTIZE
=
`
which pygmentize
`
PYGMENTIZE
=
`
which pygmentize
2>/dev/null
`
if
[
!
-z
"
$PYGMENTIZE
"
]
;
then
READER
=
"pygmentize -l diff"
else
...
...
@@ -39,13 +39,13 @@ else
fi
# Path to zenity
ZENITY
=
`
which zenity
`
ZENITY
=
`
which zenity
2>/dev/null
`
# Path to xmessage
XMSG
=
`
which xmessage
`
XMSG
=
`
which xmessage
2>/dev/null
`
# Path to powershell (Windows only)
PWSH
=
`
which powershell
`
PWSH
=
`
which powershell
2>/dev/null
`
##################################################################
# There should be no need to change anything below this line.
...
...
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