FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
graphql-java/scripts/setup-hooks.sh at partial-async-support · graphql-java/graphql-java · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
graphql-java
/
graphql-java
Public
Notifications
You must be signed in to change notification settings
Fork
1.1k
Star
6.2k
Code
Issues
22
Pull requests
17
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
graphql-java
/
scripts
/
setup-hooks.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
22 lines (16 loc) · 678 Bytes
Breadcrumbs
graphql-java
/
scripts
/
setup-hooks.sh
Copy path
File metadata and controls
executable file
·
22 lines (16 loc) · 678 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
13
14
15
16
17
18
19
20
21
22
#!
/bin/bash
#
Script to install Git hooks for this repository
#
This configures Git to use hooks from the .githooks directory
set
-e
#
Get the repository root directory
REPO_ROOT=
$(
git rev-parse --show-toplevel
)
echo
"
Installing Git hooks for graphql-java...
"
#
Configure Git to use the .githooks directory
git config core.hooksPath
"
$REPO_ROOT
/.githooks
"
echo
"
✓ Git hooks installed successfully!
"
echo
"
"
echo
"
The following hooks are now active:
"
echo
"
- pre-commit: Checks for Windows-incompatible filenames and large files
"
echo
"
"
echo
"
To disable hooks temporarily, use: git commit --no-verify
"
echo
"
To uninstall hooks, run: git config --unset core.hooksPath
"
Back
|
FazBrowse Home
|
New Git URL