FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
smithproxy/.git_pre-commit at master · astibal/smithproxy · GitHub
astibal
/
smithproxy
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
9
Star
59
Code
Issues
3
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
smithproxy
/
.git_pre-commit
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
12 lines (9 loc) · 301 Bytes
Breadcrumbs
smithproxy
/
.git_pre-commit
Copy path
File metadata and controls
executable file
·
12 lines (9 loc) · 301 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
#!
/bin/sh
#
create symlink to your hook directory with (from project dir)
#
ln -s ../../.git_pre-commit .git/hooks/pre-commit
.
git-sh-setup
#
for die
if
git-diff-index -p -M --cached HEAD -- \
|
grep
'
^+
'
\
|
grep
'
USE_EXPERIMENT= *"Y"
'
;
then
die Blocking commit because of banned string
fi
Back
|
FazBrowse Home
|
New Git URL