mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
Add git hooks to tools
- Place these in your .git/hooks/ directory
This commit is contained in:
parent
816833bac0
commit
96b1ba4b04
@ -1,4 +1,4 @@
|
||||
@echo off
|
||||
(
|
||||
git log -1 --pretty="format:{\"commit\": \"%%H\", \"commit_short\": \"%%h\", \"version\": \"%%ad\", \"url\": \"https://github.com/bui/taiko-web/\"}" --date="format:%%y.%%m.%%d"
|
||||
git log -1 --pretty="format:{\"commit\": \"%%H\", \"commit_short\": \"%%h\", \"version\": \"%%ad\"}" --date="format:%%y.%%m.%%d"
|
||||
) > ../version.json
|
||||
|
@ -1 +1,3 @@
|
||||
git log -1 --pretty="format:{\"commit\": \"%H\", \"commit_short\": \"%h\", \"version\": \"%ad\", \"url\": \"https://github.com/bui/taiko-web/\"}" --date="format:%y.%m.%d" > ../version.json
|
||||
#!/bin/bash
|
||||
toplevel=$( git rev-parse --show-toplevel )
|
||||
git log -1 --pretty="format:{\"commit\": \"%H\", \"commit_short\": \"%h\", \"version\": \"%ad\"}" --date="format:%y.%m.%d" > "$toplevel/version.json"
|
||||
|
2
tools/hooks/post-checkout
Normal file
2
tools/hooks/post-checkout
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
./tools/get_version.sh
|
2
tools/hooks/post-commit
Normal file
2
tools/hooks/post-commit
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
./tools/get_version.sh
|
2
tools/hooks/post-merge
Normal file
2
tools/hooks/post-merge
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
./tools/get_version.sh
|
2
tools/hooks/post-rewrite
Normal file
2
tools/hooks/post-rewrite
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
./tools/get_version.sh
|
Loading…
Reference in New Issue
Block a user