FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
daScript/utils/das-fmt/pre-commit at master · feiyunwill/daScript · GitHub
feiyunwill
/
daScript
Public
forked from
GaijinEntertainment/daScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
daScript
/
utils
/
das-fmt
/
pre-commit
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (15 loc) · 388 Bytes
Breadcrumbs
daScript
/
utils
/
das-fmt
/
pre-commit
Copy path
File metadata and controls
19 lines (15 loc) · 388 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
#!
/bin/sh
root=
"
$(
git rev-parse --show-toplevel
)
"
files=
$((
git diff
--
cached
--
name
-
only
--
diff
-
filter
=
ACMR
|
grep
-
Ei "\.das$")
||
true)
if [ ! -z "
${files}
" ]; then
result=
0
paths=""
for it in
$files
; do
paths+="--path
${it}
"
done
daScript dasfmt.das --
${paths}
||
result
=
1
for it in
$files
; do
git add "
${it}
"
done
exit
$result
fi
Back
|
FazBrowse Home
|
New Git URL